mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-30 18:03:32 +00:00
552f7c139a
Some containers may want the application to run in a special directory. Add <initdir> element in the domain configuration to handle this case and use it in the lxc driver. Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
31 lines
839 B
XML
31 lines
839 B
XML
<domain type='lxc'>
|
|
<name>jessie</name>
|
|
<uuid>e21987a5-e98e-9c99-0e35-803e4d9ad1fe</uuid>
|
|
<memory unit='KiB'>1048576</memory>
|
|
<currentMemory unit='KiB'>1048576</currentMemory>
|
|
<vcpu placement='static'>1</vcpu>
|
|
<resource>
|
|
<partition>/machine</partition>
|
|
</resource>
|
|
<os>
|
|
<type arch='x86_64'>exe</type>
|
|
<init>/sbin/sh</init>
|
|
<initdir>/path/to/pwd</initdir>
|
|
</os>
|
|
<clock offset='utc'/>
|
|
<on_poweroff>destroy</on_poweroff>
|
|
<on_reboot>restart</on_reboot>
|
|
<on_crash>restart</on_crash>
|
|
<devices>
|
|
<emulator>/usr/libexec/libvirt_lxc</emulator>
|
|
<filesystem type='mount' accessmode='passthrough'>
|
|
<source dir='/mach/jessie'/>
|
|
<target dir='/'/>
|
|
</filesystem>
|
|
<console type='pty'>
|
|
<target type='lxc' port='0'/>
|
|
</console>
|
|
</devices>
|
|
<seclabel type='none'/>
|
|
</domain>
|