Skip to content

Instantly share code, notes, and snippets.

@antoneliasson
Created June 7, 2016 17:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antoneliasson/a2621eb13740d9d5fd05dd8a9e5c7bfa to your computer and use it in GitHub Desktop.
Save antoneliasson/a2621eb13740d9d5fd05dd8a9e5c7bfa to your computer and use it in GitHub Desktop.
Minimal LXC domain definition
<domain type='lxc'>
<name>debian</name>
<memory unit="GiB">8</memory>
<os>
<type>exe</type>
<init>/sbin/init</init>
</os>
<vcpu>4</vcpu>
<devices>
<emulator>/usr/lib/libvirt/libvirt_lxc</emulator>
<filesystem type='mount'>
<source dir='/var/lib/lxc/debian/rootfs'/>
<target dir='/'/>
</filesystem>
<interface type='bridge'>
<source bridge='br0'/>
</interface>
<console type='pty'/>
</devices>
</domain>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment