Skip to content

Instantly share code, notes, and snippets.

@roramirez
Created June 27, 2013 17:34
Show Gist options
  • Save roramirez/5878530 to your computer and use it in GitHub Desktop.
Save roramirez/5878530 to your computer and use it in GitHub Desktop.
freeze virtual machine Xen on Debian Lenny
#Freeze virtual machine on Debian Lenny
PATH_VM=/home/vm/domains/XenSqueeze
SED=/bin/sed
#Go to domain and mount partition
cd $PATH_VM
mkdir tmp
mount disk.img tmp -o loop
#Change respawn
$SED -i s/'1:2345:respawn:\/sbin\/getty 38400 tty1'/'1:2345:respawn:\/sbin\/getty 38400 hvc0'/ tmp/etc/inittab
umount tmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment