Custom images using curtin_userdata_custom


#1

Hello all,

i’m trying to deploy a custom image in maas, i have downloaded a Debian Raw file and done the following as per the link
when i try to deploy debianOS on my Virtual-box i will be getting the error like “No such file or directory” i’m very new to maas after that i found something curtain, which is preseeding system similar to Kickstart or d-i (Debian Installer), applies customization during operating system (OS) image installation, finally i understand that i have to modify/add something in “curtin_userdata_custom” but i really don’t know how to do. can anyone please help me on this ? If anything wrong please educate me…

Thanks in advance.

my /etc/maas/preseeds/curtin_userdata_custom file

#cloud-config
debconf_selections:
 maas: |
  {{for line in str(curtin_preseed).splitlines()}}
  {{line}}
  {{endfor}}

late_commands:
  maas: [wget, '--no-proxy', {{node_disable_pxe_url|escape.json}}, '--post-data', {{node_disable_pxe_data|escape.json}}, '-O', '/dev/null']

#2

Please find the attachment of error.