[libvirt] [PATCH]lxc: don't start container when no root fs found

Chen Hanxiao chenhanxiao at cn.fujitsu.com
Fri Sep 27 12:42:12 UTC 2013



> -----Original Message-----
> From: Daniel P. Berrange [mailto:berrange at redhat.com]
> Sent: Friday, September 27, 2013 8:35 PM
> To: Chen Hanxiao
> Cc: libvir-list at redhat.com
> Subject: Re: [libvirt] [PATCH]lxc: don't start container when no root fs found
> 
> On Fri, Sep 27, 2013 at 08:27:06PM +0800, Chen Hanxiao wrote:
> > From: Chen Hanxiao <chenhanxiao at cn.fujitsu.com>
> >
> > Currently, if we don't explicitly add root fs for container,
> > libvirt will add one for us implicitly with "/" as src.
> > It would be not safe.
> > Unless user asked for it, we should not assume this.
> 
> Nonsense. This is the defined semantics of the configuration. The
> container inherits the root filesystem unless otherwise overriden.
> 

Thanks for clarification. 
I read the lxc driver doc once more and got what your pointed out...

> Daniel
> --
> |: http://berrange.com      -o-
> http://www.flickr.com/photos/dberrange/ :|
> |: http://libvirt.org              -o-
> http://virt-manager.org :|
> |: http://autobuild.org       -o-
> http://search.cpan.org/~danberr/ :|
> |: http://entangle-photo.org       -o-
> http://live.gnome.org/gtk-vnc :|






More information about the libvir-list mailing list