Recently I needed to extract some files from the root partition in a full disk backup image taken with dd. I didn’t notice when I took the disk image, but the disk only contained two primary partitions: /boot and an LVM physical volume containing the rest of the partitions as LVM logical volumes. I don’t work with LVM much manually, so I had to look up the commands to get it to find physical volumes and activate volume groups. Here’s the full process of mounting LVM logical volumes from a full disk image: There are two ways to get to the LVM partition on this disk, and I’ll cover both:…
Issues with building Xen from source
Folks, I am back working on Xen and once again, I am bumping into issues getting xen up and running on various distros. I will enumerate some of the issues that I am facing in this blog as I go along : Ubuntu python is weird. The site.py library does not import modules from /usr/lib/pythonx.y/site-packages ! Instead it imports from /usr/lib/pythonx.y/dist-packages ! Check the site.py module and you can see it yourself! The workaround is to create a symlink or install custom packages in /home/localuser/.local/lib/pythonx.y/site-packages and have site.ENABLE_USER_SITE set to True.