Skip to content

Instantly share code, notes, and snippets.

@mojodna
Last active May 20, 2019 09:23
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mojodna/5259675 to your computer and use it in GitHub Desktop.
Save mojodna/5259675 to your computer and use it in GitHub Desktop.
libvirt LXC container w/ bridged networking (and 2GB RAM)
<domain type='lxc'>
<name>geotools</name>
<memory>2097152</memory>
<os>
<type>exe</type>
<init>/sbin/init</init>
</os>
<vcpu>1</vcpu>
<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">
<source dir="/var/lib/lxc/geotools/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