3

I'm teaching mysel KVM/QEMU and working with the virt-install and virsh commands. the one thing I can't figure out how to do is launch the graphical console from the virsh shell. is this possible?

Specifically, when I start a domain with something like virsh start <MachineName> I dont seem to be able to find a command that will let me launch the graphical window that displays the VM screen / launch the graphical console?

DJ K
  • 41

2 Answers2

2
$ virsh start VM_name

and then

$ virt-viewer VM_name
Alexis Wilke
  • 2,787
1

AH! Looks like I found the answer in this AU StackExchange Article

You do not use the virsh console, you use the virt-manager (typically installed with KVM/QEMU anyways). The Command is:

virt-manager --connect qemu:///system --show-domain-console < VMNAME >

so to break that down, you're telling virt-manager to connect to the hypervisor running on local host and then asking for the domain console of a particular vm name.

Alexis Wilke
  • 2,787
DJ K
  • 41