[Lxc-users] lxc configuration bug
Papp Tamas
tompos at martos.bme.hu
Tue Feb 19 23:06:33 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 ]
You're right. Certainly I missed sed from steps.
tamas
More information about the lxc-users
mailing list