Howto: install libvirt on Debian Etch (the ugly way)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello list

I read on the list that other people tried to install libvirt on Debian
Etch. I finally succeeded so I'll post a little Howto. Maybe someone
with a better understanding of automake and C stuff knows a nicer way
but the ugly folder with the links to the different header files.

The start point is a Debian Etch with a running Xen (in my case it's the
xen-hypervisor-3.0.3-1-i386-pae package). If you're not using the PAE
version of the xen-hypervisor change the "apt-get source" line
accordingly.

First you will need to install a bunch of development packages

  apt-get install build-essential libxml2-dev libncurses5-dev
  apt-get isntall libreadline5-dev python-dev

Go to your home directory and install the Xen hypervisor sources

  cd
  apt-get source xen-hypervisor-3.0.3-1-i386-pae

Create a folder with a bunch of symbolic links. We will use this folder
libvirt to find the header files.

  mkdir libvirt-include
  cd libvirt-include/
  ln -s /root/xen-3.0-3.0.3-0/xen/include/public/xen.h
  ln -s /root/xen-3.0-3.0.3-0/tools/xenstore/xs.h
  ln -s /root/xen-3.0-3.0.3-0/tools/xenstore/xs_lib.h
  ln -s /root/xen-3.0-3.0.3-0/xen/include/public xen
  ln -s /root/xen-3.0-3.0.3-0/linux-2.6-xen-sparse/include/xen/public/ xen/linux

Configure the dynamic linker that it will be able to find the libxenstore library

  echo '/usr/lib/xen-3.0.3-1/lib' > /etc/ld.so.conf.d/i486-linux-gnu.conf
  ldconfig

Go to your home directory, download an extract the libvirt source package

  cd
  wget http://libvirt.org/sources/libvirt-0.2.3.tar.gz
  tar xvfz libvirt-0.2.3.tar.gz
  cd libvirt-0.2.3

Configure, build and install the libvirt

  CFLAGS="-fno-stack-protector -I/root/libvirt-include -L/usr/lib/xen-3.0.3-1/lib" ./configure --with-xen --without-qemu
  make 
  make install

Enable the Unix socket server for xend. Edit /etc/xen/xend-config.sxp and change the line

  #(xend-unix-server no)

to

  (xend-unix-server yes)

Restart your Xen-Daemon

  /etc/init.d/xend restart

If everything work you should see your running virtual machines when you enter

  virsh list

Regards Roman

Attachment: smime.p7s
Description: S/MIME cryptographic signature

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]