Start virt-manager on the KVM host and note the name of the guest VM. (In my case I want to take a backup of the OpenStack VM) The instance is running. It is recommended to shut down the instance before taking a backup. In the KVM host create a backup folder as required and copy…
Tag: KVM
OS installation: Debian 11 on a KVM guest VM.
Download the ISO image to the /var/lib/libvirt/images folder of the KVM host. Start virt-manager and opt to create a new VM and select Local install media. Click on browse and select the downloaded ISO image If the OS is not automatically detected, uncheck automatic detection and type in Debian testing Assign memory and CPU resources….
Ubuntu Server 20.04 on a KVM guest VM (Remove snapd, netplan, motd, and enable legacy networking)
Download and copy the Ubuntu server ISO image to /var/lib/libvirt/images/ folder. Start virt-manager Create a new VM (File -> New Virtual Machine) and choose local install media Click on browse, select the downloaded image Allocate/assign CPU and memory resources Allocate/assign storage as much as required. Provide a name and select a network interface. In my…
Orchestrating Guest VM(s) using simple scripts on KVM host.
As a developer, I had a need to spin up VMs as and when required. The more I started working on Kubernetes, the need to automate the spinning up of multiple VMs to bring up a setup for configuring a cluster. There were several options, solutions already available to automate the same on KVM. However,…
Installing KVM
Pre-requisite Install Debian 11 or Ubuntu 20.04 server as required. Optional I had upgraded the kernel version by compiling the kernel as explained in this how-to. Installing KVM on Debian Simple and easy – First, install the required packages apt install -y qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils virtinst libvirt-daemon virt-manager Additionally, I had installed libguestfs-tools, for…