How to open the graphical console from the command line

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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,
  rdiez

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list



[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux