[Pkg-libvirt-maintainers] Bug#992119: virt-install --cloud-init doesn't work with Debian genericcloud images
David Mandelberg
david at mandelberg.org
Thu Aug 12 01:13:29 BST 2021
Package: virtinst
Version: 1:3.2.0-3
I tried to use virt-install's --cloud-init option with a genericcloud
image[0], and cloud-init in the image didn't seem to find the ISO that
virt-install set up. From the XML, it looks like virt-install made a
SATA drive:
<disk type='file' device='cdrom'>
<driver name='qemu' type='raw'/>
<source
file='/var/lib/libvirt/boot/virtinst-5wk0hc7u-cloudinit.iso' index='1'/>
<backingStore/>
<target dev='sda' bus='sata'/>
<readonly/>
<alias name='sata0-0-0'/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
</disk>
https://cloud.debian.org/images/cloud/ says that genericcloud "is
smaller than `generic` by excluding drivers for physical hardware", so
I'm guessing the reason cloud-init couldn't find the ISO is that
genericcloud images don't include SATA drivers? I tried a generic image
instead, and it worked.
Would it make sense to change virt-install to use virtio for the ISO
file? (Or some other way of providing the ISO that genericcloud has
drivers for?)
[0]
https://cloud.debian.org/images/cloud/bullseye/daily/20210808-728/debian-11-genericcloud-amd64-daily-20210808-728.raw
More information about the Pkg-libvirt-maintainers
mailing list