Hi all,
I am having issues with cd images attaching to the template created.
I need this for the cloud-init configuration.
There are 2 ways I try to accomplish that on freshly created Debian 10 template with cloud-init packages installed:
-
I create new vm in XO and boot it. I stop it on grub level, then I attach my cd image with cloud-init user, meta and network data in XO, continue with the boot - cloud-init works as expected.
-
I create vm in CLI:
xe vm-install new-name-label=<vm_name> template=Debian10_cloud-init_template
xe vm-cd-add vm=Debian10_cloud-init_template cd-name=nciso11.iso device=4
xe vm-start vm=Debian10_cloud-init_template
and cloud-init does not work, cd is not moutable as it says that there is noting to mount.
Only difference I see is that when I create VM in XO I got two cd devices:
CD 0 VBD:
uuid ( RO) : 7663f608-efdd-38e0-581a-87d2a21da3fc
vm-name-label ( RO): Debian_10_cloud_init_template
empty ( RO): false
userdevice ( RW): 3
CD 0 VDI:
uuid ( RO) : 105c96fb-0d1f-4df3-bf6e-e8edf51ee78a
name-label ( RW): nciso11.iso
sr-name-label ( RO): ISO's
virtual-size ( RO): 376832
When I create it in CLI I have 3 fore some reason:
CD 0 VBD:
uuid ( RO) : 3f18cca9-2630-0e2f-d146-ddd1f716ea65
vm-name-label ( RO): Debian_10_cloud_init_template
empty ( RO): false
userdevice ( RW): 4
CD 0 VDI:
uuid ( RO) : 105c96fb-0d1f-4df3-bf6e-e8edf51ee78a
name-label ( RW): nciso11.iso
sr-name-label ( RO): ISO's
virtual-size ( RO): 376832
CD 1 VBD:
uuid ( RO) : d28e5090-4e2c-cbaf-fbab-4ccbdd54c3ca
vm-name-label ( RO): Debian_10_cloud_init_template
empty ( RO): true
userdevice ( RW): 3
... and then coud-init does not work as cd is not mountable - no media (???).
Could someone explain to me why CLI creates additional and empty CD? Thanks!