Changes between Version 6 and Version 7 of Internal/VMHostSetup
- Timestamp:
- Nov 29, 2011, 8:06:15 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Internal/VMHostSetup
v6 v7 113 113 However we'll want to add a few parameters to get the machine in a usable mode. 114 114 {{{ 115 kvm -daemonize -vnc :0 -m 2048 -smp 2 -net nic,m acaddr=00:11:22:EE:EE:EE -net tap,script=/etc/ovs-ifup,downscript=/etc/ovs-ifdown -drive file=/root/test_mac.img -cdrom /root/ubuntu-11.04-server-amd64.iso -boot order=dc115 kvm -daemonize -vnc :0 -m 2048 -smp 2 -net nic,model=e1000,macaddr=00:11:22:EE:EE:EE -net tap,script=/etc/ovs-ifup,downscript=/etc/ovs-ifdown -drive file=/root/test_mac.img -cdrom /root/ubuntu-11.04-server-amd64.iso -boot order=dc 116 116 }}} 117 117 The paramenters are: … … 119 119 * -m - Memeory 120 120 * -snp - #of cpus 121 * -net nic, .. - specify the mac of the first interface. more can be added but the flags will be diffrent.121 * -net nic,model=e1000,.. - specify the mac of the first interface. more can be added but the flags will be diffrent. '''NOTE''' the model flag is required other wise it defaults to 10/100 with the requisite degradation in performance. 122 122 * -net tap,... - specify how the other end of the nic gets connected. In this case we used the vswitch start up scripts 123 123 * -drive - the name of the disk drive (there are many ways to specify this flag, include -hda,etc ...) … … 131 131 }}} 132 132 1. After the os is installed, it will try to reboot and fail. At this point you can "shut down" the machine by kill -9 the process. 133 1. Next "remove" the cdrom and start the vm again. It should boot appropriately. Note the missing -boot param. 133 1. Next "remove" the cdrom and start the vm again. It should boot appropriately. Note the missing -boot param. 134 134 {{{ 135 kvm -daemonize -vnc :0 -m 2048 -smp 2 -net nic,m acaddr=00:11:22:EE:EE:EE -net tap,script=/etc/ovs-ifup,downscript=/etc/ovs-ifdown -drive file=/root/test_mac.img135 kvm -daemonize -vnc :0 -m 2048 -smp 2 -net nic,model=e1000,macaddr=00:11:22:EE:EE:EE -net tap,script=/etc/ovs-ifup,downscript=/etc/ovs-ifdown -drive file=/root/test_mac.img 136 136 }}} 137 137 1. On external3 I've made 2 scripts to start the VM. Their contents are very simple: 138 138 {{{ 139 139 start_vm: 140 kvm -daemonize -vnc :$2 -m 2048 -smp 2 -net nic,m acaddr=00:11:22:EE:EE:E$2 -net tap,script=/etc/ovs-ifup,downscript=/etc/ovs-ifdown -drive file=$1140 kvm -daemonize -vnc :$2 -m 2048 -smp 2 -net nic,model=e1000,macaddr=00:11:22:EE:EE:E$2 -net tap,script=/etc/ovs-ifup,downscript=/etc/ovs-ifdown -drive file=$1 141 141 install_vm: 142 kvm -daemonize -vnc :0 -m 2048 -smp 2 -net nic,m acaddr=00:11:22:EE:EE:E0 -net tap,script=/etc/ovs-ifup,downscript=/etc/ovs-ifdown -cdrom /root/ubuntu-11.04-server-amd64.iso -boot order=dc -drive file=$1142 kvm -daemonize -vnc :0 -m 2048 -smp 2 -net nic,model=e1000,macaddr=00:11:22:EE:EE:E0 -net tap,script=/etc/ovs-ifup,downscript=/etc/ovs-ifdown -cdrom /root/ubuntu-11.04-server-amd64.iso -boot order=dc -drive file=$1 143 143 root@external3:/root# 144 144 }}}