Running around Headless with VirtualBox (Oracle Edition)

Written by James McDonald

December 22, 2011

This is a script I use to start up a headless instance of virtualbox

Run as root but it fires the vm up as the user you use virtualbox as.

#!/bin/sh

# Output of "vboxmanage list vms"
# 
#"Windows XP Pro" {5998c1ff-f354-4d7d-b36d-987090351cb6}
#"JMITS LSMB" {ac08587f-b1d4-4767-a736-51adcb6f3f08}
#"Maps Dev - Debian 6.0.2.1" {9bb244ea-486b-471f-ad14-9df47c8c0157}

VM=9bb244ea-486b-471f-ad14-9df47c8c0157

su - userid -c "vboxmanage startvm $VM --type headless"

# where 'userid' is your username

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.

You May Also Like…

Squarespace Image Export

To gain continued access to your Squarespace website images after cancelling your subscription you have several...

MySQL 8.x GRANT ALL STATEMENT

-- CREATE CREATE USER 'tgnrestoreuser'@'localhost' IDENTIFIED BY 'AppleSauceLoveBird2024'; GRANT ALL PRIVILEGES ON...

Exetel Opt-Out of CGNAT

If your port forwards and inbound and/or outbound site-to-site VPN's have failed when switching to Exetel due to their...