There are times when you need to remotely shutdown any running virtual machines on a linux-box. This is how to do it.

 

  1. Ssh to the host:
    # ssh sorin@lanfear

  2. Su to user running the vm:
    # su -

  3. List all vms:
    # vboxmanage list vms

    vm1
    vm2
    ...

  4. Shutdown vm1:
    # vboxmanage controlvm "vm1" poweroff

  5. Start vm2:
    # vboxmanage startvm "vm2" --type gui

    # vboxmanage startvm "vm2" --type headless

 

 

Stop Spam Harvesters, Join Project Honey Pot

 

Get a free SSL certificate!

 

The leading nonprofit defending digital privacy, free speech, and innovation.

 

The Linux Foundation provides a neutral, trusted hub for developers and organizations to code, manage, and scale open technology projects and ecosystems.

 

Kubuntu is an operating system built by a worldwide community of developers, testers, supporters and translators.

 

 43ef5c89 CanonicalUbuntudarktext