How to connect to a VM hosted on QEMU remotely using virt-viewer
I couldn’t find comprehensive articles about this, so I decided to write one myself.
In brief, here is a sample command:
virt-viewer --connect qemu+ssh://aamr@hobba/system winVM
Where:
virt-viewer: is the command itself
–connect: is obviously the parameter telling the command to connect!
qemu+ssh: telling virt-viewer that this host is reachable via SSH and QEMU is used for virtualization (since it supports Xen as well)
aamr: is the SSH username
hobba: is the remote server name
system: is a static word, just type it as it is!
winVM: The name you gave to the Virtual Machine
Anyway, I prefer spicy over it, although it’s not recommended.
Enjoy!