From 70f48fd53dd5c4d0eaf8ca3e9bae7020809f8e1f Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Sat, 14 May 2011 20:03:06 +0000 Subject: [PATCH] start kvm with two ethernets git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@259 191e9f34-6774-4a6d-acfc-7664dacd4a2a --- recepies/lxc/kvm/02-network/02-kvm-two-ethernets.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 recepies/lxc/kvm/02-network/02-kvm-two-ethernets.sh diff --git a/recepies/lxc/kvm/02-network/02-kvm-two-ethernets.sh b/recepies/lxc/kvm/02-network/02-kvm-two-ethernets.sh new file mode 100755 index 0000000..407f653 --- /dev/null +++ b/recepies/lxc/kvm/02-network/02-kvm-two-ethernets.sh @@ -0,0 +1,7 @@ +#!/bin/sh -x + +kvm -m 1024 -kernel ../01-setup/linux-2.6.*/arch/x86/boot/bzImage -no-reboot \ + -hda ../01-setup/squeeze.ext3 -append "root=/dev/hda rw panic=1" \ + -net nic,model=e1000 -net user -redir tcp:9876::22 \ + -net nic,model=e1000 -net tap,ifname=kvm0,script=no + -- 2.20.1