Skip to content

Instantly share code, notes, and snippets.

@mendeni
Created April 30, 2014 19:30
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 mendeni/304dc3f34c41b7516c95 to your computer and use it in GitHub Desktop.
Save mendeni/304dc3f34c41b7516c95 to your computer and use it in GitHub Desktop.
libvirt.idmap.xml
<domain type='lxc'>
<name>sew02</name>
<uuid>2f4d4d57-2a9a-4e7c-9668-bbe5406cb4a9</uuid>
<memory unit='KiB'>65536</memory>
<currentMemory unit='KiB'>65536</currentMemory>
<vcpu placement='static'>1</vcpu>
<resource>
<partition>/machine</partition>
</resource>
<os>
<type arch='x86_64'>exe</type>
<init>/bin/sh</init>
</os>
<idmap>
<uid start='0' target='10000' count='10'/>
<gid start='0' target='10000' count='10'/>
</idmap>
<features>
<privnet/>
</features>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<devices>
<emulator>/usr/lib/libvirt_lxc</emulator>
<filesystem type='mount' accessmode='passthrough'>
<source dir='/var/lib/lxc/sew02/rootfs'/>
<target dir='/'/>
</filesystem>
<filesystem type='mount' accessmode='passthrough'>
<source dir='/sys/fs/fuse/connections'/>
<target dir='/sys/fs/fuse/connections'/>
</filesystem>
<console type='pty'>
<target type='lxc' port='0'/>
</console>
</devices>
</domain>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment