boot kvm
authorDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 13 May 2011 20:06:14 +0000 (20:06 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 13 May 2011 20:06:14 +0000 (20:06 +0000)
git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@253 191e9f34-6774-4a6d-acfc-7664dacd4a2a

recepies/lxc/kvm/01-setup/03-boot-kvm.sh [new file with mode: 0755]

diff --git a/recepies/lxc/kvm/01-setup/03-boot-kvm.sh b/recepies/lxc/kvm/01-setup/03-boot-kvm.sh
new file mode 100755 (executable)
index 0000000..f2ec034
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh -x
+
+kernel=$( ls -d linux-2.6.* | grep -v gz | tail -1 )
+
+kvm -m 1024 -kernel $kernel/arch/x86/boot/bzImage -no-reboot -hda squeeze.ext3 \
+  -append "root=/dev/hda rw panic=1" -net nic,model=e1000 -net user \
+  -redir tcp:9876::22