Coder Social home page Coder Social logo

macosx-vbox-headless's Introduction

macosx-vbox-headless

Running/Stopping headless VMs during boot/shutdown under Mac OS X, AKA A MAC OS X configuration helpful to start and stop headless VMs.

## Install

You should customize the following placeholders inside the file virtualbox.machine.plist:

  • VM.VIRTUALBOX.NAME : This required key uniquely identifies the job. If you don't have multiple vbox you can leave it as is.
  • PATH_TO : the path where the vbox.sh script is stored.
  • 12345678-1234-abcd-abcd-0123456789ab : This is the virtual machine unique id.
  • WORKING_DIRECTORY_PATH : the path where the logs are stored. If you don't care about it, use: /tmp
  • USERNAME : This is your username.

Then copy the file virtualbox.machine.plist into /Library/LaunchDaemons/

sudo cp virtualbox.machine.plist  /Library/LaunchDaemons/

When you want start the virtual machine type the following command:

sudo launchctl load -w /Library/LaunchDaemons/virtualbox.machine.plist

If you want stop the VM (and the you should type the following command:

sudo launchctl unload -w /Library/LaunchDaemons/virtualbox.machine.plist

The VM will be started machine everytime MAC OS X boots. Set into virtualbox.machine.plist the field RunAtLoad to false if you don't want that the VM starts automatically every time your mac os x boots. When RunAtLoad is set to false, after the load you must start and stop the VM using the following command:

sudo launchctl start VM.VIRTUALBOX.NAME
sudo launchctl stop VM.VIRTUALBOX.NAME

macosx-vbox-headless's People

Contributors

freedev avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.