How to reset forgotten root password for Linux KVM qcow2 image/vm

Posted on in Categories , , , last updated February 10, 2018

I have Debian Linux VM running on KVM. I think I forgotten the password for the root account and I am no longer able to run ‘su -‘ command. How do I reset the password for the root account for KVM VM which is in qcow2 format?
Continue reading “How to reset forgotten root password for Linux KVM qcow2 image/vm”

How to install KVM server on Debian Linux 9 Headless Server

Posted on in Categories , , last updated May 8, 2018

Kernel-based Virtual Machine (KVM) is a virtualization module for the Linux kernel that turns it into a hypervisor. How can I install KVM with bridged networking, setup guest operating system as the back-end virtualization technology for non-graphic Debain Linux 9.x server?
Continue reading “How to install KVM server on Debian Linux 9 Headless Server”

How to add ssh key to qcow2 Linux cloud images using virt-sysprep

Posted on in Categories , , , , last updated December 28, 2017

I have installed and setup KVM server on an Ubuntu Linux. I downloaded various .qcow2 cloud images. How do I setup public ssh keys for downloaded CentOS/FreeBSD/Ubuntu cloud images using virt-sysprep?
Continue reading “How to add ssh key to qcow2 Linux cloud images using virt-sysprep”