I have a request from a neighbour to build a win10 machine - all the machine is used for is to play microsoft solitaire collection and use email (I assume outlook). I plan to build a ubuntu mate 22.04 machine and have a win10 qemu/kvm machine running inside. I have asked the question before re launching the VM automatically at start-up so it appears as if the PC is a win 10 machine (user non-tech 80 year old who knows nothing about PCs). My question here is, can I have a script on the host that will shut the host down when the user shuts down the win10 vm? On a number of machines I 'look after' for various neighbours, who use ubuntu without any virtualisation, I run a script at shutdown that backs-up and updates their PC - the script includes the lines:
sudo apt --yes update
sudo apt --yes upgrade
sudo apt --yes autoclean
sudo apt --yes autoremove
and eventually
shutdown -h now
If I can write a script that will shut down the host when the VM shutsdown it would be nice to include these lines so the ubuntu host is updated without any user intervention.
Bookmarks