Please let me know if I am doing something incorrectly or if this is a bug.
Host OS: Debian 9.6 Stretch amd64
Package:
ii libvirt-daemon 3.0.0-4+deb9u3 amd64 Virtualization daemon
ii libvirt-daemon-system 3.0.0-4+deb9u3 amd64 Libvirt daemon configuration files
ii libvirt-glib-1.0-0:amd64 1.0.0-1 amd64 libvirt GLib and GObject mapping library
ii libvirt0 3.0.0-4+deb9u3 amd64 library for interfacing with different virtualization systems
ii python-libvirt 3.0.0-2 amd64 libvirt Python bindings
ii qemu-kvm 1:2.8+dfsg-6+deb9u5 amd64 QEMU Full virtualization on x86 hardware
ii virt-viewer 5.0-1 amd64 Displaying the graphical console of a virtual machine
ii virtinst 1:1.4.0-5 all Programs to create and clone virtual machines
Also verified on: Host OS: Ubuntu 18.04.1 LTS amd64
Packages:
ii libvirt-clients 4.0.0-1ubuntu8.5 amd64 Programs for the libvirt library
ii libvirt-daemon 4.0.0-1ubuntu8.5 amd64 Virtualization daemon
ii libvirt-daemon-driver-storage-rbd 4.0.0-1ubuntu8.5 amd64 Virtualization daemon RBD storage driver
ii libvirt-daemon-system 4.0.0-1ubuntu8.5 amd64 Libvirt daemon configuration files
ii libvirt-glib-1.0-0:amd64 1.0.0-1 amd64 libvirt GLib and GObject mapping library
ii libvirt0:amd64 4.0.0-1ubuntu8.5 amd64 library for interfacing with different virtualization systems
ii ovmf 0~20180205.c0d9813c-2 all UEFI firmware for 64-bit x86 virtual machines
ii python-libvirt 4.0.0-1 amd64 libvirt Python bindings
ii qemu-kvm 1:2.11+dfsg-1ubuntu7.8 amd64 QEMU Full virtualization on x86 hardware
ii virt-viewer 6.0-2 amd64 Displaying the graphical console of a virtual machine
ii virtinst 1:1.5.1-0ubuntu1.1 all Programs to create and clone virtual machines
Guest OS: Ubuntu 18.04.1 LTS amd64
Guest OS: Debian 9.6 amd64
If I install one of the linux guests with a desktop environment using the command:
virt-install --virt-type=kvm \
--name ubuntu1804 --ram 4096 --vcpus 4 \
--os-variant=ubuntu16.04 --hvm \
--cdrom /tmp/ubuntu-18.04.1-desktop-amd64.iso \
--network bridge=br0,model=virtio \
--graphics vnc \
--disk path=/tmp/ubuntu1804.qcow2,size=32
The install will succeed but on the first reboot after installation the guest will just hang during bootup.
If the graphics is changed to spice, the guest OS boots with no problem.
virt-install --virt-type=kvm \
--name ubuntu1804 --ram 4096 --vcpus 4 \
--os-variant=ubuntu16.04 --hvm \
--cdrom /tmp/ubuntu-18.04.1-desktop-amd64.iso \
--network bridge=br0,model=virtio \
--graphics spice \
--disk path=/tmp/ubuntu1804.qcow2,size=32
This was also tested with a Debian 9.6 guest. If I install the OS with --graphics vnc, and choose to install a 'Desktop Environment', the first reboot after install will hang at "Booting from Hard Disk". If I choose not to install a 'Desktop Environment' the reboot after installation successfully boots up. If I add add --graphics spice then the guest OS will boot correctly after installation with the 'Desktop Environment' (instead of --graphics vnc which will cause it to hang)
I assume this is not expected behavior but I am unable to figure out why the choice of graphics display configuration affects the ability of the guest to boot.