On both Ubuntu Server 20.04 and Ubuntu hirsute 21.04, I am running into the exact same error installing ubuntu 20.04 as a KVM guest using the virt-install utility.
I issue:
The installation program seems to run successfully. I use the full disk guided install and allow it to install grub to the virtual disk MBR. When it reboots, however, it simply hangs. If I issue the above command without the 'graphics none' option on my workstation so that it displays in the virt-viewer, it will return:
Otherwise, it is just a dead hang. I can shutdown from virsh, start, same issue. I finally got somewhere when I check libvirtd's status from systemctl and it returns:
Here are the permissions on /var/lib/libvirt/boot
Nearly identical returns on attempts from my server and my workstation. I did find this article from a Redhat user.
https://bugzilla.redhat.com/show_bug.cgi?id=566425
It seems the most relevant to me, but I'm in over my head at this point. I very much appreciate any feedback.
Thank you!
edit: One more terminal snippet that doesn't look relevant to me, but may provide a hint to the enlightened.
I issue:
Code:
sudo virt-install --name=opeplsguest0 --description='Ubuntu 20.04' --os-variant ubuntu20.04 --vcpus 2 --ram 2048 --location http://ftp.ubuntu.com/ubuntu/dists/focal/main/installer-amd64/ --network bridge=virbr0,model=virtio --network bridge=virbr0,model=virtio --graphics none --extra-args='console=ttyS0,115200n8 serial'
Code:
/dev/vda5: recovering journal
/dev/vda5: clean, x/y files, x/y blocks
Code:
Mar 27 14:30:53 workstation libvirtd[10451]: 2022-03-27 18:30:53.052+0000: 10451: info : libvirt version: 7.0.0, package: 2ubuntu2.2 (Christian Ehrhardt <christian.ehrhardt@canonical.com> Thu, 18 Nov 2021 10:22:28 +0100)
Mar 27 14:30:53 workstation libvirtd[10451]: 2022-03-27 18:30:53.052+0000: 10451: info : hostname: workstation
Mar 27 14:30:53 workstation libvirtd[10451]: 2022-03-27 18:30:53.052+0000: 10451: warning : virSecurityDACTransactionRun:289 : Ignoring failed restore attempt on /var/lib/libvirt/images/opeplsguest0.qcow2
Mar 27 14:30:53 workstation libvirtd[1167]: internal error: child reported (status=125): unable to stat: /var/lib/libvirt/boot/virtinst-e7yxjidg-linux: No such file or directory
Mar 27 14:30:53 workstation libvirtd[1167]: unable to stat: /var/lib/libvirt/boot/virtinst-e7yxjidg-linux: No such file or directory
Mar 27 14:30:53 workstation libvirtd[1167]: Unable to run security manager transaction
Mar 27 14:31:01 workstation dnsmasq-dhcp[1596]: DHCPDISCOVER(virbr0) 52:54:00:b3:21:de
Mar 27 14:31:01 workstation dnsmasq-dhcp[1596]: DHCPOFFER(virbr0) 192.168.122.201 52:54:00:b3:21:de
Mar 27 14:31:01 workstation dnsmasq-dhcp[1596]: DHCPREQUEST(virbr0) 192.168.122.201 52:54:00:b3:21:de
Mar 27 14:31:01 workstation dnsmasq-dhcp[1596]: DHCPACK(virbr0) 192.168.122.201 52:54:00:b3:21:de ubuntuguest
Code:
userh@workstation:/var/lib/libvirt$ sudo ls -la boot
total 8
drwx--x--x 2 root root 4096 Mar 27 14:16 .
drwxr-xr-x 7 root root 4096 Feb 12 11:13 ..
https://bugzilla.redhat.com/show_bug.cgi?id=566425
It seems the most relevant to me, but I'm in over my head at this point. I very much appreciate any feedback.
Thank you!
edit: One more terminal snippet that doesn't look relevant to me, but may provide a hint to the enlightened.
Code:
Starting install...
Retrieving file linux... | 11 MB 00:00:05
Retrieving file initrd.gz... | 49 MB 00:00:17
Allocating 'opeplsguest0.qcow2' | 25 GB 00:00:00
Running graphical console command: virt-viewer --connect qemu:///system --wait opeplsguest0
error: XDG_RUNTIME_DIR not set in the environment.
Domain creation completed.
Restarting guest.
Running graphical console command: virt-viewer --connect qemu:///system --wait opeplsguest0