Custom Search

Saturday, March 9, 2013

How to libvirt API and virsh reconnect to another remote hypervisor

We can use "connect" URI command to reconnect to another remote hypervisor

1)Open virsh Terminal

#virsh

2) Connect to Remote VMware ESXi Server
virsh #connect esx://192.168.12.153?no_verify=1
or
virsh #connect esx://root@192.168.12.156?no_verify=1


esx : driver or hypervisor
192.168.12.153 : ESXi Server

3) Connect to Remote VMware vCenter Server
virsh #connect vpx://192.168.12.156/vCenter/Cluster-1/192.168.12.153?no_verify=1
or
virsh #connect vpx://root@192.168.12.156/vCenter/Cluster-1/192.168.12.153?no_verify=1


vpx :  driver or hypervisor
192.168.12.156 : vCenter Server
192.168.12.153 : ESXi Server (host)
vCenter : Name of Datacenter
Cluster-1 : Name of Cluster or Compute Resource

http://libvirt.org/uri.html

1 comment:

  1. virsh #connect vpx://vcenter-server-name/datacenter-name/cluster-or-computeresource-name/host-name?no_verify=1

    ReplyDelete