Last active
August 29, 2015 14:08
-
-
Save gtt116/e5c83481188aef0c5284 to your computer and use it in GitHub Desktop.
Example lxc config file for libvirt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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