Changes between Version 6 and Version 7 of Internal/VMHostSetup


Ignore:
Timestamp:
Nov 29, 2011, 8:06:15 AM (12 years ago)
Author:
ssugrim
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Internal/VMHostSetup

    v6 v7  
    113113    However we'll want to add a few parameters to get the machine in a usable mode.
    114114    {{{
    115 kvm -daemonize -vnc :0 -m 2048 -smp 2 -net nic,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
     115kvm -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
    116116    }}}
    117117    The paramenters are:
     
    119119    * -m - Memeory
    120120    * -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.
    122122    * -net tap,... - specify how the other end of the nic gets connected. In this case we used the vswitch start up scripts
    123123    * -drive - the name of the disk drive (there are many ways to specify this flag, include -hda,etc ...)
     
    131131    }}}
    132132 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. 
    134134    {{{
    135 kvm -daemonize -vnc :0 -m 2048 -smp 2 -net nic,macaddr=00:11:22:EE:EE:EE -net tap,script=/etc/ovs-ifup,downscript=/etc/ovs-ifdown -drive file=/root/test_mac.img
     135kvm -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
    136136    }}}
    137137 1. On external3 I've made 2 scripts to start the VM. Their contents are very simple:
    138138    {{{
    139139start_vm:
    140 kvm -daemonize -vnc :$2 -m 2048 -smp 2 -net nic,macaddr=00:11:22:EE:EE:E$2 -net tap,script=/etc/ovs-ifup,downscript=/etc/ovs-ifdown -drive file=$1
     140kvm -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
    141141install_vm:
    142 kvm -daemonize -vnc :0 -m 2048 -smp 2 -net nic,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
     142kvm -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
    143143root@external3:/root#
    144144    }}}