[Lxc-users] lxc configuration bug
Papp Tamas
tompos at martos.bme.hu
Fri Feb 22 09:36:42 UTC 2013
On 02/20/2013 12:06 AM, Papp Tamas wrote:
> 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.
hi Serge and Others,
Do you have any idea about this?
Thanks,
tamas
More information about the lxc-users
mailing list