I built the packages myself. I copy below the text from my notes.

One thing to keep in mind is that you must rebuild the libvirt packages
when they get updated. If you mark em as hold, apt-get will not update
them automatically...

Copy below:


Build the packages on a VM or other machine. The build process pulls in
a lot of packages that are not wanted on a production server.

# update apt and install build tools
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential devscripts

# get the source code and install build dependencies
apt-get source libvirt
sudo apt-get build-dep libvirt
sudo apt-get install libsanlock-dev

# now edit the source files.
cd libvirt-1.2.2/debian

# start with the rules file
nano rules

# add “--with-sanlock \” (no quotes) to the DEB_CONFIGURE_EXTRA_FLAGS
variable and save the file

# then modify the control file
nano control

# add “libsanlock-dev,” (no quotes) to the Build-Depends list. (Add it just 
before the “# For make check” comment.)
# add “libsanlock-client1,” (no quotes) to the Depends list of package 
libvirt-bin and save.

# cd back to the work directory and update the changelog file
cd ..
dch -i

# now build the packages
debuild -us -uc -b

# the packages are one level up in the file system after the build
ls ../*.deb

To install the packages on the target machine, copy them to the machine
and execute the following steps:

# install all the packages you want installed manually
sudo dpkg -i libvirt0_1.2.2-0ubuntu13.1.3_amd64.deb
sudo dpkg -i libvirt-bin_1.2.2-0ubuntu13.1.3_amd64.deb

# then use apt-get to fix the dependency problems
sudo apt-get install -f

# finally, mark the packages on hold so that apt-get does not try to  update 
them
sudo apt-mark hold libvirt0
sudo apt-mark hold libvirt-bin

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1263162

Title:
  libvirt missing sanlock plugin

To manage notifications about this bug go to:
https://bugs.launchpad.net/libvirt/+bug/1263162/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to