[Lxc-users] lxc configuration bug

Papp Tamas tompos at martos.bme.hu
Sun Mar 3 01:07:14 UTC 2013


On 02/19/2013 11:53 PM, Serge Hallyn wrote:
>
>
> At this point, there will be a /var/lib/lxc/ltest/config which will
> list lxc.rootfs = /var/lib/lxc/ltest/rootfs.  So these steps are not
> quite what you want.
>
> Perhaps you just want to
>
> 	sudo lxc-create -n ltest -t ubuntu
> 	sudo mkdir -p /data/lxc/ltest
> 	sudo mv /var/lib/lxc/ltest/rootfs /data/lxc/ltest/
> 	sudo sed -i 's/@/var/lib/lxc@/data/lxc@' /var/lib/lxc/ltest/config
> 	sudo lxc-start -n ltest
> 	[ check mac address ]
> 	sudo lxc-stop -n ltest
> 	[ change mac address in config ]
> 	sudo lxc-start -n ltest
> 	[ check mac address ]

OK, now I tested again.

And with am appropriate lxcpath setting indeed, it works as expected.


Thanks,
tamas




More information about the lxc-users mailing list