• Jozef Jarosciak
Jozef Jarosciak Blog

Strive not to be a success, but rather to be of value.

How to Automatically start VirtualBox VMs running under Centos 7 ?

December 23, 2015by joe0

The command that controls a lot of automation that comes with VirtualBox software is called: vboxmanage. This article show how to use it in Centos/RHEL to automatically start your VM on boot.

First run:

vboxmanage list vms

This will list the names of all VMs you have.

If you have many VMs and want to list just the one you’re currently running, use:

vboxmanage list runningvms

Capture the name of your VM.

Following is the command to start VM of your choice from the Linux shell, in a headless state:

vboxmanage startvm NAMEOFYOURVM --type headless

Result from the terminal would look something like this:

12-23-2015 11-15-46 AM

Now you can create your own SH script to run your VM on boot.

Btw. command to shutdown VM is this:

VBoxManage controlvm NAMEOFYOURVM savestate

This will stop your VM by “hibernating” it. This is a recommended way of turning off the VM machine, as hibernating prevents the data loss.

Facebook Comments
Posted in: Operating SystemsTagged: linux
  • Jozef Jarosciak – About Me

Site Search

Categories

  • Cloud & Big Data (60)
  • Databases (26)
  • Information Technology (44)
  • Operating Systems (86)
  • Slovak Language Posts (50)
  • Software Development (114)
  • Uncategorized Posts (65)

Links

  • 0. ToolBox
  • 1. FB Comments
  • Bananagrams Solver
  • Block Puzzle Solver
  • Canadian Mortgage Calculator
  • ETX.ca
  • ScrabbleDB.com
  • TryToBreak.com
  • Usenet Archives

Copyright © 2021 Jozef Jarosciak Blog.

Omega WordPress Theme by ThemeHall

sponsored