I’m testing Rocky 8.5 as a guest VM on a CentOS 8.4 KVM host, using things like virt-install and virsh, specifically to test things like Secure Boot, UEFI and GPT partitions, and it’s working…
BUT
There are two things (related to virtualization) that I can’t make sense of:
- If I set up the VM guest as a standard user, the “default” network doesn’t work, and I end up with a guest that can’t talk to anything, and can’t be ssh’d into.
- If I set up the VM guest as root, the “default” network works, but I get a major problem at install time, where virt-install exits saying:
No protocol specified
Unable to init server: Could not connect: Connection refused
(virt-viewer:22409): Gtk-WARNING **: 23:08:42.225: cannot open display: :0
Domain installation still in progress. You can reconnect to
the console to complete the installation process.
this is because root (running in a terminal) doesn’t have a “display”, and the Rocky installer uses a GUI at install time, so it needs virt-viewer.
So my questions are:
- Should I be creating VMs as ‘root’ or as a standard user?
- If stanard user, how can I get the “default” network to work?
- If ‘root’, how can I get virt-viewer to work?