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

R. Diez rdiezmail-temp2 at yahoo.de
Wed Jul 18 11:39:09 UTC 2018


Hallo Pavel:

First of all, many thanks for your answer.


 > virsh --connect qemu:///system start UbuntuMATE1804

Is there any easy way to detect whether the virtual machine is already 
running? Otherwise, I get this:

error: Domain is already active

And the exit code is 1. This way, my script cannot tell whether the 
virtual machine failed to start or is already running, so it does not 
know whether it should proceed to the next step (opening the graphical 
console).

Thanks again,
   rdiez




More information about the virt-tools-list mailing list