Showing posts with label kvm. Show all posts
Showing posts with label kvm. Show all posts

2014-01-17

Root into a virtual machine (KVM)

Scenario: I have a KVM virtualization server with a number of VMs defined. Suddenly, I cannot log in as root to one of the VMs. I will need to reset the root password. The "normal" methods like adding single or init=/bin/bash to the kernel boot line in GRUB do not work. The only option left is to boot from a rescue disc, but this is a virtual machine -- there is no DVD drive. Oh, no -- what to do?

NEWS FLASH: I just learned from a colleague that there is a much easier method. It is possible to chroot directly into the VM from the virtualization host. Will post detailed instructions as soon as I get them. Until then, there is always the "long route" described below.

2013-10-04

KVM: boot VM from PXE or ISO image

Boot from PXE

Scenario: you have a KVM virtualization host with some VMs and you want to boot one of them from PXE instead of the virtual hard drive.

Magic incantation:
  1. edit the /kvm/vm/[guestname].xml file
  2. find the line that says <boot dev='hd'/>
  3. add a line before it that says <boot dev='network'/>

Boot from ISO

Second scenario: you have a KVM virtualization host with some VMs and you want to boot one of them from an ISO that you have downloaded.

Magic incantations available here:
* http://mycfg.net/articles/booting-from-a-cdrom-in-a-kvm-guest-with-libvirt.html

2013-04-16

kde5 kwallet ssh-agent cache passphrase

Known working instructions for caching SSH passphrase in kwallet on openSUSE distros using KDE5.