4 MONPORT=$(( 8500+${VMID} ))
6 SERPORT=$(( 9900+${VMID} ))
10 if [ -n "$DRIVE2" ] ; then
11 DRIVE2="-drive file=${DRIVE2},if=virtio,cache=none"
14 if [ -n "$CORES" ] ; then
15 CORES="-smp cores=$CORES"
18 if [ -n "$TABLET" ] ; then
19 TABLET="-usbdevice tablet"
22 if [ -z "$VLAN" ] ; then
25 if [ ! -L _run/ifup_br${VLAN} ] ; then
27 ln -s ifup_common ifup_br${VLAN}
31 if [ -z "MACADDR" ] ; then
32 VLANDIGIT=$( echo 'ibase=10;obase=16;'$VLAN | bc)
33 VMDIGIT=$( echo 'ibase=10;obase=16;'$VMID | bc )
34 MACADDR="C0:FF:EE:19:$VLANDIGIT:$VMDIGIT"