Skip to content

Instantly share code, notes, and snippets.

@gtt116
Last active August 29, 2015 14:08
Show Gist options
  • Save gtt116/e5c83481188aef0c5284 to your computer and use it in GitHub Desktop.
Save gtt116/e5c83481188aef0c5284 to your computer and use it in GitHub Desktop.
Example lxc config file for libvirt
<domain type='lxc'>
<name>helloworld</name>
<uuid>7c3f13f0-6fcf-0e80-c3c3-5bc73607cda9</uuid>
<memory>102400</memory>
<currentMemory>102400</currentMemory>
<vcpu>1</vcpu>
<os>
<type arch='x86_64'>exe</type>
<init>/bin/sh</init>
</os>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<devices>
<!--<emulator>/usr/lib/libvirt/libvirt_lxc</emulator>-->
<filesystem type='mount' accessmode='passthrough'>
<source dir='/home/ubuntu/test/config'/>
<target dir='/etc/httpd'/>
</filesystem>
<filesystem type='mount' accessmode='passthrough'>
<source dir='/home/ubuntu/test/data'/>
<target dir='/var/www'/>
</filesystem>
<console type='pty'>
</console>
<interface type='network'>
<source network='default'/>
</interface>
</devices>
</domain>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment