diff --git a/nlvmi b/nlvmi index 32fe770..4829f48 100755 --- a/nlvmi +++ b/nlvmi @@ -121,7 +121,7 @@ function vmstart { if [ ! -z ${array[26]} ]; then TAPDEV3="-netdev tap,ifname=${array[26]},script=no,id=net0"; fi if [ ! -z ${array[27]} ]; then MACADDR3="-net nic,macaddr=${array[27]},model=virtio,netdev=net0"; fi if [ ! -z ${array[28]} ]; then BRDEV3="${array[28]}"; fi - if [ ! -z ${array[29]} ]; then VNCPORT="-vnc ${array[29]},websocket=${array[30]},password"; fi + if [ ! -z ${array[29]} ]; then VNCPORT="-vnc :${array[29]},websocket=${array[30]},password"; fi # tunctl -t ${array[20]} -u ${array[2]} # brctl addif ${array[22]} ${array[20]} # ifconfig ${array[20]} up diff --git a/web/index.php b/web/index.php index 1da23b5..87c05fe 100644 --- a/web/index.php +++ b/web/index.php @@ -223,7 +223,11 @@ while ($row = $res->fetchArray(SQLITE3_ASSOC)){ } echo "
"; + echo " "; + $server = gethostname(); + if ($button = "stop") { + echo "VNC"; + } } echo "