[lxc-users] About creating a BTRFS file instead of a BTRFS partition

Serge Hallyn serge.hallyn at ubuntu.com
Wed Jun 4 15:28:42 UTC 2014


If I'm understanding you right, then yes.

Quoting Marcel Sánchez Toledano (marcelsanchezt at gmail.com):
> I assume that:
> 
> sudo lxc-create -t ubuntu -B loop --fstype btrfs -n loop1
> 
> Should be the same as creating a loopback filesystem (as specified here
> <http://www.walkernews.net/2007/07/01/create-linux-loopback-file-system-on-disk-file/>,
> but with btrfs instead of ext3) and then:
> 
> lxc-create -n template -t ubuntu -B btrfs
> 
> and specifing in "lxc.rootfs" the path "mnt/vfs", for example.
> 
> 
> Is that correct?
> 
> 
> 
> *Marcel Sánchez Toledano*
> 
> 
> 
> 2014-06-04 15:15 GMT+02:00 Serge Hallyn <serge.hallyn at ubuntu.com>:
> 
> > Quoting Marcel Sánchez Toledano (marcelsanchezt at gmail.com):
> > > Partially yes. Thanks for that.
> > >
> > > Maybe is a bit offtopic, but.. Do you know any manual or website where I
> > > can found information about creating a image file with BRTFS? I have
> > tried
> > > with no luck...
> >
> > If you want a loopback file, you can just
> >
> > sudo lxc-create -t download -B loop -n loop1 -- -d ubuntu -r trusty -a
> > amd64
> >
> > (just tested, still works for me)
> >
> > You can specify the loopback size and fstype as well (see lxc-create(1)).
> > _______________________________________________
> > lxc-users mailing list
> > lxc-users at lists.linuxcontainers.org
> > http://lists.linuxcontainers.org/listinfo/lxc-users
> >

> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users



More information about the lxc-users mailing list