3 patch boot/grub/menu.lst <<"_EOF"
5 < kernel /boot/bzImage rw root=/dev/sda1 rootwait console=ttyS0,115200n8
7 > kernel /boot/bzImage rw root=/dev/sda1 rootwait ipv6.disable=1 console=ttyS0,115200n8
10 patch etc/network/interfaces <<"_EOF"
14 > iface mgmt0 inet dhcp
17 patch etc/init.d/S40network <<"_EOF"
20 > # Rename interfaces. The e1000 interface is managment.
23 > for dev in /sys/class/net/eth*
25 > devname=`basename $dev`
26 > driver=`readlink ${dev}/device/driver`
27 > if test "${driver#*virtio}" != "$driver"
29 > ip link set dev $devname name virtio${NUM_VIRTIO}
30 > NUM_VIRTIO=$(($NUM_VIRTIO+1))
32 > ip link set dev $devname name mgmt${NUM_MGMT}
33 > NUM_MGMT=$((NUM_MGMT+1))