Created
June 27, 2013 17:34
-
-
Save roramirez/5878530 to your computer and use it in GitHub Desktop.
freeze virtual machine Xen on Debian Lenny
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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