Update VM Launch script
This commit is contained in:
parent
29512cc6d7
commit
a500df36b0
@ -33,9 +33,13 @@ function countdown
|
|||||||
echo " "
|
echo " "
|
||||||
}
|
}
|
||||||
|
|
||||||
virsh --connect qemu:///system start win11
|
tmp=$(virsh --connect qemu:///system list | grep " win11 " | awk '{ print $3}')
|
||||||
echo "Waiting 20 sec for Windows 11 startup..."
|
if ([ "x$tmp" == "x" ] || [ "x$tmp" != "xrunning" ])
|
||||||
countdown "00:00:20"
|
then
|
||||||
|
virsh --connect qemu:///system start win11
|
||||||
|
echo "Waiting 20 sec for Windows 11 startup..."
|
||||||
|
countdown "00:00:20"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Starting xfreerdp now..."
|
echo "Starting xfreerdp now..."
|
||||||
xfreerdp -grab-keyboard /t:"Windows 11" /v:192.168.122.42 /size:100% /d: /p:sancho /dynamic-resolution /gfx-h264:avc444 +gfx-progressive &
|
xfreerdp -grab-keyboard /t:"Windows 11" /v:192.168.122.42 /size:100% /d: /p:sancho /dynamic-resolution /gfx-h264:avc444 +gfx-progressive &
|
||||||
|
Loading…
Reference in New Issue
Block a user