[fedora-virt] Couple of new tools: virt-rescue and virt-edit

Richard W.M. Jones rjones at redhat.com
Wed Sep 23 15:00:53 UTC 2009

virt-rescue lets you run a rescue shell against a virtual machine
(don't run it on a live VM).

  # virt-rescue F11x64
  Welcome to virt-rescue, the libguestfs rescue shell.
  Note: The contents of / are the rescue appliance.
  You have to mount the guest's partitions under /sysroot
  before you will be able to examine them.
  ><rescue> /sbin/e2fsck /dev/vg_f11x64/lv_root
  ><rescue> mount /dev/vg_f11x64/lv_root /sysroot
  ><rescue> ls /sysroot/
  bin   dev  home  lib64       media  opt   root  selinux  sys  usr
  boot  etc  lib   lost+found  mnt    proc  sbin  srv      tmp  var
  ><rescue> sync
  ><rescue> umount /sysroot
  ><rescue> exit

virt-edit lets you edit a file inside a VM (again, not for live VMs):

  # virt-edit mydomain /boot/grub/grub.conf

These are or will be in the Fedora libguestfs-tools package, version
>= 1.0.72.


(There's a build problem which stops us from building libguestfs in
rawhide at the moment).


Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.

More information about the Fedora-virt mailing list