linux

Pinned ·

Modifying virtual machine images

What to do when you have a virtual machine image and for a example you need to some files contents like ssh config or so? Modified images can be uploaded to glance – repeating same step after running several VMs of the same type can be easily avoided in this way. There are few to…

Pinned ·

Increase LV size of a qcow2 image

When you get a qcow2 image with a given size – it can’t be simply changed on-the-fly while running a VM or by giving just more space to a VM flavor in OpenStack. Situation gets even more complex when image has LVs inside but fortunately by using guestfish and virt-resize image ca…

Pinned ·

Manual kernel installation on Debian

Recently I had to manually install kernel on one Debian machine. Steps are as follows: Download kernel-headers and kernel-image deb packages Install these packages with dpkg --force-architecture --force-overwrite --install Still we are missing initial RAM disk and this one c…

Pinned ·

Create fake loop device on Fedora

First question – what is the purpose? Such fake loop device can be used as pv in lvm in case we want to play around and don’t want to add a new disk. Prepare a binary file with dd e.g. /srv/swift-disk.bin Create a script in e.g: /usr/lib/systemd/scripts and ensure that it is e…