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:

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

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!

   原文链接: https://mytechnicalthoughts.wordpress.com/2014/12/17/how-to-connect-to-a-vm-hosted-on-qemu-remotely-using-virt-viewer/ 
扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄