I want auto close guest os before ubuntu shutdown, How can I do?
Sorry ?my English is so bad.
Auto close Guest OS before ubuntu shutdown?
-
- Posts: 4
- Joined: 17. Jan 2008, 05:19
- Primary OS: Ubuntu other
- VBox Version: PUEL
- Guest OSses: windows xp
-
- Posts: 4
- Joined: 17. Jan 2008, 05:19
- Primary OS: Ubuntu other
- VBox Version: PUEL
- Guest OSses: windows xp
VBoxManage controlvm poweroff is not a good way
"VBoxManage controlvm poweroff vm_name" would shutdown the host computer. However this is like pushing the power button of a computer, that is to say, the state of the guest os will not be saved and it could even lead to data corruption on the guest computer. A better way to do is to ssh to the guest computer and issue a "shutdown -h now" command if the guest is a Linux os. You can make it even better by implementing password-less ssh access to the guess os so the command can be issued from the host computer.