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

_______________________________________________
virt-tools-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/virt-tools-list

Reply via email to