start Teil kabot gmacht

This commit is contained in:
Michael Keist 2018-08-11 20:46:46 +02:00
parent 16ef195a82
commit 7bb796578f
1 changed files with 7 additions and 1 deletions

8
nlvmi
View File

@ -134,7 +134,13 @@ function vmstart {
USBDEV3=""; fi
if [ ${array[23]}!="" ]; then
USBDEV3="-usbdevice ${array[22]}"; fi
echo "su ${array[3]} -c \"${array[10]} -enable-kvm -cpu host -m 1024 -smp 2 -boot ${array[5]} $USBDEV1 $USBDEV2 $USBDEV3 -k ${array[24]} -daemonize $DRIVE1 $DRIVE2 $DRIVE3 $CDROM $NETDEV1 $TAPDEV1 $TAPDEV2 $TAPDEV3 $VNCPORT -pidfile $RUNDIRECTORY/${array[1]}.pid -monitor unix:$RUNDIRECTORY/${array[1]}.mon,server,nowait\""
tunctl -t $TAPDEV1 -u ${array[3]}
brctl addif br0 $TAPDEV1
ifconfig $TAPDEV1 up
su ${array[3]} -c \"${array[10]} -enable-kvm -cpu host -m 1024 -smp 2 -boot ${array[5]} $USBDEV1 $USBDEV2 $USBDEV3 -k ${array[24]} -daemonize $DRIVE1 $DRIVE2 $DRIVE3 $CDROM $NETDEV1 $TAPDEV1 $TAPDEV2 $TAPDEV3 $VNCPORT -pidfile $RUNDIRECTORY/${array[1]}.pid -monitor unix:$RUNDIRECTORY/${array[1]}.mon,server,nowait\"
#Set VNC Password
echo "change vnc password ${array[20]}" | socat - unix-connect:$RUNDIRECTORY/${array[1]}.mon >/dev/null
done
export VMFOUND="yes"
}