]> git.ipfire.org Git - thirdparty/libvirt.git/commit
LXC driver: started implementing connectDomainXMLFromNative
authorCédric Bosdonnat <cbosdonnat@suse.com>
Wed, 5 Feb 2014 14:10:00 +0000 (15:10 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 12 Feb 2014 17:52:46 +0000 (17:52 +0000)
commit7195c807b2255637a46539d6724c046d2f12dd87
treefaad8cb865171afb84f19bc1f98052c4d0909c2d
parent3daa14834ae9ffab55cae67808508d47d1b53dbb
LXC driver: started implementing connectDomainXMLFromNative

This function aims at converting LXC configuration into a libvirt
domain XML description to help users migrate from LXC to libvirt.

Here is an example of how the lxc configuration works:
virsh -c lxc:/// domxml-from-native lxc-tools /var/lib/lxc/migrate_test/config

It is possible that some parts couldn't be properly mapped into a
domain XML fragment, so users should carefully review the result
before creating the domain.

fstab files in lxc.mount lines will need to be merged into the
configuration file as lxc.mount.entry.

As we can't know the amount of memory of the host, we have to set a
default value for max_balloon that users will probably want to adjust.
.gitignore
po/POTFILES.in
src/Makefile.am
src/lxc/lxc_driver.c
src/lxc/lxc_native.c [new file with mode: 0644]
src/lxc/lxc_native.h [new file with mode: 0644]
tests/Makefile.am
tests/lxcconf2xmldata/lxcconf2xml-simple.config [new file with mode: 0644]
tests/lxcconf2xmldata/lxcconf2xml-simple.xml [new file with mode: 0644]
tests/lxcconf2xmltest.c [new file with mode: 0644]