1)
Download the libvirt tarball from
http://libvirt.org/sources/
http://libvirt.org/sources/libvirt-1.0.3.tar.gz
2)
Extract the tarball
3)
Install dependencies
4)
run the configure command.
5)
6)
Verify that everything seems to be working as expected.
a)
restart libvirt
7)
Verify Version
Download the libvirt tarball from
http://libvirt.org/sources/
http://libvirt.org/sources/libvirt-1.0.3.tar.gz
2)
Extract the tarball
#tar -xzf libvirt-1.0.3.tar.gz
3)
Install dependencies
#sudo apt-get install gcc make pkg-config libxml2-dev libgnutls-dev libdevmapper-dev libcurl4-gnutls-dev python-dev libpciaccess-dev libxen-dev libnl-dev
You can omit the libcurl4-gnutls-dev package if you don’t want ESX support.4)
run the configure command.
#./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --with-esx=yes --with-xen=yes
if you need Xen support, you’ll need to add --with-xen=yes to the command.5)
#sudo make
#sudo make install
6)
Verify that everything seems to be working as expected.
a)
restart libvirt
#initctl stop libvirt-bin
#initctl start libvirt-bin
7)
Verify Version
#virsh --version
#libvirtd --version
to verify that you’re running libvirt 1.0.3
make failed with error /bin/sed: can't read 1.0.3/libvirt-1.0.3/src/libvirt.la: No such file or directory
ReplyDelete1.0.3/libvirt-1.0.3$ sudo make
make all-recursive
make[1]: Entering directory `/home/saju/Desktop/libvirt 1.0.3/libvirt-1.0.3'
Making all in gnulib/lib
make[2]: Entering directory `/home/saju/Desktop/libvirt 1.0.3/libvirt-1.0.3/gnulib/lib'
make all-am
make[3]: Entering directory `/home/saju/Desktop/libvirt 1.0.3/libvirt-1.0.3/gnulib/lib'
CC allocator.lo
CC areadlink.lo
CC base64.lo
CC binary-io.lo
CC bitrotate.lo
CC c-ctype.lo
CC c-strcasecmp.lo
CC c-strncasecmp.lo
CC c-strcasestr.lo
CC libvirt_security_manager_la-security_selinux.lo
CCLD libvirt_security_manager.la
CCLD libvirt.la
CC libvirt_qemu_la-libvirt-qemu.lo
CCLD libvirt-qemu.la
/bin/sed: can't read 1.0.3/libvirt-1.0.3/src/libvirt.la: No such file or directory
libtool: link: `1.0.3/libvirt-1.0.3/src/libvirt.la' is not a valid libtool archive
make[3]: *** [libvirt-qemu.la] Error 1
make[3]: Leaving directory `/home/saju/Desktop/libvirt 1.0.3/libvirt-1.0.3/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/saju/Desktop/libvirt 1.0.3/libvirt-1.0.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/saju/Desktop/libvirt 1.0.3/libvirt-1.0.3'
make: *** [all] Error 2
saju@saju-desktop:~/Desktop/libvirt 1.0.3/libvirt-1.0.3$
gcc?
ReplyDelete