Re: How to open the graphical console from the command line

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

 



On Wed, Jul 18, 2018 at 01:39:09PM +0200, R. Diez wrote:
> 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).

You will need to use same other tools to parse the output:

virsh --connect qemu:///system domstate UbuntuMATE1804

If you would not mind you can just open virt-manager with that one
command and one extra click on the "run" button.

Pavel

Attachment: signature.asc
Description: PGP signature

_______________________________________________
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