일요일, 5월 26, 2024
HomeESXiVMware ESXi Server using libvirt API and virsh command

VMware ESXi Server using libvirt API and virsh command

VMware ESXi Server using libvirt API and virsh command

1.Compile and Install libvirt 1.0.0 on Ubuntu 14.04

wget http://libvirt.org/sources/old/libvirt-1.0.0.tar.gz

2.Extract the tarball

tar -xzf libvirt-1.0.0.tar.gz

3.Install dependencies

apt-get install gcc make pkg-config libxml2-dev libgnutls-dev libdevmapper-dev libcurl4-gnutls-dev python-dev libpciaccess-dev libxen-dev libnl-dev libyajl-dev

4.configure command.

./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --with-esx=yes --with-xen=yes

5.make & install

make
make install

6.Verify Version

virsh --version

7.connect to VMware ESXi server

virsh -c esxi://192.168.100.100?no_verify=1
Enter username for 192.168.100.100 [root]: root
Enter root's password for 192.168.100.100: 
Welcome to virsh. the virtualization interactive terminal.

Type:  'help' for with commands
       'quit' to quit

virsh # list
Id    Name                  State
---------------------------------
27    win7                  runnung
28    ubuntu                runnung

virsh # list --all
Id    Name                  State
---------------------------------
27    win7                  runnung
28    ubuntu                runnung
-     centos                shut off

virsh # pool-list
Id              State      Autostart
------------------------------------
datastore       active     yes

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Time limit exceeded. Please complete the captcha once again.

Most Popular