Monday, 20 February 2012

how to connect to remote qemu/xen/lxc instances using virsh

libvirt has evolved to support remote qemu/xen/lxc connections. To connect to the remote instance:

To determine the path of the hypervisor do the following on the remote hypervisor:


[root@01 ~]# virsh uri
xen:///


The above uri is for xen, it can be replaced by qemu, lxc etc.

To connect to the remote hypervisor using ssh:

[root@01~]# virsh -c xen+ssh://02/system

as mentioned earlier "xen"  can be replace with qemu as follows:

[root@01~]#virsh -c qemu+ssh://03/system


References:

http://ubuntuforums.org/showthread.php?t=864955

No comments:

Post a Comment