RHEL 7.9 KVM - cli host, how to create GUI VM
by Syberwizard from LinuxQuestions.org on (#5QH5A)
I think I am almost there, but now I'm a little lost. The host is a minimal RHEL 7.9 CLI load, and virt-host-validate says all good (except for the 'fuse' module?). My thought is that I should be able to run virt-install for creating a GUI VM, access the setup via ssh or vnc, and complete the installation from there. But when I run
virt-install --network bridge:br0 --name vm1 --ram=2048 --vcpus=2 --disk path=/vm/images/vm1.img,size=10 --location=/apps01/rhel-server-7.9-x86_64-dvd.iso --extra-args="console=tty0 console=ttyS0,115200"
to create a vm, I get
WARNING Graphics requested but DISPLAY is not set. Not running virt-viewer.
WARNING No console to launch for the guest, defaulting to --wait -1.
I tried running from a remote Windows machine with ssh username@hostname -X -Y which also ended with the same error. I then ran export DISPLAY='IP:myIPadd' and then tried again. I also tried setting a variable to DISPLAY=:0.0, as I saw somewhere. Ether way, then I got
Gtk-WARNING **: 16:43:27.333: cannot open display: IP:myIPadd
Domain installation still in progress. You can reconnect to the console to complete the installation process.
Now I'm trying via both and ssh connection and a CygenWin connection, which I have loaded xterm as well. When I run that same command, I get
WARNING Graphics requested but DISPLAY is not set. Not running virt-viewer.
WARNING No console to launch for the guest, defaulting to --wait -1
Starting install...
Retrieving file .treeinfo... | 1.9 kB 00:00
Retrieving file vmlinuz... | 6.5 MB 00:00
Retrieving file initrd.img... | 49 MB 00:00
Domain installation still in progress. Waiting for installation to complete.
I am not sure what to do, or what not to do. I think I've almost got it, but don't want to screw up the host by just throwing stuff at it to see what happens. For you KVM gurus, what am I missing?
virt-install --network bridge:br0 --name vm1 --ram=2048 --vcpus=2 --disk path=/vm/images/vm1.img,size=10 --location=/apps01/rhel-server-7.9-x86_64-dvd.iso --extra-args="console=tty0 console=ttyS0,115200"
to create a vm, I get
WARNING Graphics requested but DISPLAY is not set. Not running virt-viewer.
WARNING No console to launch for the guest, defaulting to --wait -1.
I tried running from a remote Windows machine with ssh username@hostname -X -Y which also ended with the same error. I then ran export DISPLAY='IP:myIPadd' and then tried again. I also tried setting a variable to DISPLAY=:0.0, as I saw somewhere. Ether way, then I got
Gtk-WARNING **: 16:43:27.333: cannot open display: IP:myIPadd
Domain installation still in progress. You can reconnect to the console to complete the installation process.
Now I'm trying via both and ssh connection and a CygenWin connection, which I have loaded xterm as well. When I run that same command, I get
WARNING Graphics requested but DISPLAY is not set. Not running virt-viewer.
WARNING No console to launch for the guest, defaulting to --wait -1
Starting install...
Retrieving file .treeinfo... | 1.9 kB 00:00
Retrieving file vmlinuz... | 6.5 MB 00:00
Retrieving file initrd.img... | 49 MB 00:00
Domain installation still in progress. Waiting for installation to complete.
I am not sure what to do, or what not to do. I think I've almost got it, but don't want to screw up the host by just throwing stuff at it to see what happens. For you KVM gurus, what am I missing?