From FGWiki
Jump to: navigation, search

Quick introduction to using LXC for development locally on an Ubuntu 12.04 system

Initial setup

 sudo apt-get install lxc

Creating a new instance

Create an Ubuntu instance named 'fgdb', you may use any name you wish for the name parameter (-n)

 sudo lxc-create -t ubuntu -n fgdb

Start the instance

The name must match what you used in the create above

 sudo lxc-start -n fgdb

Username should be ubuntu with password ubuntu. To stop the vm run:

 sudo halt

From within the instance.

Deleting a VM

Make sure the instance is already stopped and then run

 sudo lxc-destroy -n fgdb