Skip to content

Instantly share code, notes, and snippets.

@sandlbn
Last active October 10, 2021 23:46
Show Gist options
  • Save sandlbn/997d9b08406128914cce to your computer and use it in GitHub Desktop.
Save sandlbn/997d9b08406128914cce to your computer and use it in GitHub Desktop.
How to compile libvirt on ubuntu
sudo apt-get install git build-essential xsltproc libxml-xpath-perl libyajl-dev libdevmapper-dev libpciaccess-dev libnl-dev systemtap-sdt-dev uuid-dev libtool autoconf pkg-config libxml2 libxml2-utils autopoint python-dev libnuma-dev gettext
git clone https://github.com/K1773R/numad.git
cd numad
make
sudo make install
cd ..; cd libvirt
git clone git://libvirt.org/libvirt.git
./autogen.sh
./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --with-qemu=yes --with-dtrace --with-numad --with-storage-rbd --disable-nls
@jshen28
Copy link

jshen28 commented Apr 7, 2020

Hi, how to build from a tarball? I follow the official doc but seems there is no configure executable out of the box...

@sandlbn
Copy link
Author

sandlbn commented Apr 7, 2020

@jshen8 you will need to run autogen.sh before. It will create the configure.sh file.

@jshen28
Copy link

jshen28 commented Apr 7, 2020

I am afraid it does not work because autogen.sh always complains current fold does not have .git ....
By the way do you know where I can find a ubuntu repo of libvirt 6.0.0?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment