October 8, 2019

Fix for HP CUPS driver in Ubuntu

Symptom: In /var/log/cups/error_log there is a message (/usr/lib/cups/filter/hpcups) crashed on signal 11. and printer doesn’t print anything. The problem is that hpcups is buggy in Ubuntu 19.04. A solution is to install HP printer driver from sources from https://developers.hp.com/hp-linux-imaging-and-printing. There are several problems with this however. Delete all printer configurations from /etc/cups/printers.conf. First download and run HPLIP main source hplip-3.19.8.run and a plugin for it hplip-3.19.8-plugin.run. Use whatever version is latest from HP site. ... Read more

February 26, 2019

Vagrant Libvirt Plugin Build on Ubuntu

On modern Ubuntu versions vagrant plugin vagrant-plugin fails to build. It is necessary to specify correct locations of libvirt headers and librarires. Possible solution can be found here: CONFIGURE_ARGS="with-libvirt-include=/usr/include/libvirt with-libvirt-lib=/usr/lib64" vagrant plugin install vagrant-libvirt Installing the 'vagrant-libvirt' plugin. This can take a few minutes... Building native extensions. This could take a while... Fetching: fog-libvirt-0.5.0.gem (100%) Fetching: vagrant-libvirt-0.0.43.gem (100%) Installed the plugin 'vagrant-libvirt (0.0.43)'!

August 30, 2018

How to clone a libvirt VM controlled by Vagrant

Strangely enough, googling about this problem doesn’t produce any meaningful results. So here are steps which allow cloning a libvirt VM controlled by Vagrant. Imagine that you have a VM named testvm1 which you want to clone into testvm2. Shutdown all VMs with vagrant halt or at least from inside of VM with sudo shutdown -h 0. Figure our real VM name with virsh list --all | grep testvm1. ... Read more