[virt-tools-list] How to open the graphical console from the command line

R. Diez rdiezmail-temp2 at yahoo.de
Tue Jul 17 14:46:00 UTC 2018

Hi there:

I am a newbie with KVM. Every day, I normally start virt-manager, select 
my one and only virtual machine, click on the "Start" toolbar button, 
and then click on the "Open" toolbar icon. I finally close virt-manager, 
and only keep the other window with the graphical console. That's too 
many mouse clicks.

I would like to start and open the virtual machine graphical console 
with a single mouse click.

I can issue command "virsh start UbuntuMATE1804" to start the virtual 
machine, and I can issue command "virt-viewer UbuntuMATE1804" to open 
the graphical console. However, that graphical console is not exactly 
the same as the one that virt-manager opens. For example, it lacks the 
"Virtual Machine" menu.

It seems that virt-manager launches a process like this:

/usr/bin/qemu-system-x86_64 -name UbuntuMATE1804 -S -machine 
pc-i440fx-xenial,accel=kvm,usb=off -cpu Opteron_G5 -m 4096 -realtime 
mlock=off - (text cut off by ps)

Is there any way to get virt-manager or something else to create or 
start such a qemu command for me? Ideally, the script would also check 
whether the virtual machine is already running, and not try to start it 
if it is.

Please copy me on all the answers, for I am not subscribed to this 
mailing list.

Thanks in advance,

More information about the virt-tools-list mailing list