Quoting Qiang Huang (h.huangqi...@huawei.com):
> On 2013/9/16 12:23, Stéphane Graber wrote:
> > On Mon, Sep 16, 2013 at 11:37:02AM +0800, Qiang Huang wrote:
> >> Sometimes we use:
> >> lxc-create -n xxx -f config
> >> to copy config to the default lxcpath with the rootfs already
> >> exist.
> >> But we will get error right now, so fix this.
> > 
> > Hmm, I'm not sure I understand.
> > 
> > Running "lxc-create -n xxx -f config" when xxx already exists is an
> > error and should return an error code so the current code seems
> > perfectly right to me.
> 
> Well, it did works this way in the former lxc_create version.
> 
> We used to use LXC this way:
> - We made a template(rootfs, config and fstab) manually.

>From here, can you just write a script 'lxc-homebrew' which
copies the rootfs+config+fstab into place, and call

        lxc-create -t homebrew -n c1

?

If you want to just copy the stuff in by hand, you can
do that.  You don't *have* to run lxc-create if you've done
everything by hand.

------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
Lxc-devel mailing list
Lxc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-devel

Reply via email to