Re: [lxc-devel] Does lxc support unionfs ?
On 06/05/2012 04:01 PM, Jin Chen wrote: Currently, I am trying to implement full container clone (with all processes running in container). For performance, copy-on-write filesystem will be a good choice. Does lxc container support fs like unionfs-fuse? Any reply will be appreciated. Thanks. Jin I don't think we explicitly tried unionfs, but both overlayfs and aufs work fine. Look at lxc-start-ephemeral in Ubuntu for a tool that already does that. Essentially you can do: lxc-start-ephemeral -o base container which will spawn a new clone of base container with all changes stored on tmpfs using overlayfs/aufs. -- Stéphane Graber Ubuntu developer http://www.ubuntu.com signature.asc Description: OpenPGP digital signature -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Lxc-devel mailing list Lxc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-devel
Re: [lxc-devel] Does lxc support unionfs ?
Thank you, Stéphane. It seems that I need to talk with my lab members about which cow fs is more proper. Wishes, Jin 2012/6/5 Stéphane Graber stgra...@ubuntu.com On 06/05/2012 04:01 PM, Jin Chen wrote: Currently, I am trying to implement full container clone (with all processes running in container). For performance, copy-on-write filesystem will be a good choice. Does lxc container support fs like unionfs-fuse? Any reply will be appreciated. Thanks. Jin I don't think we explicitly tried unionfs, but both overlayfs and aufs work fine. Look at lxc-start-ephemeral in Ubuntu for a tool that already does that. Essentially you can do: lxc-start-ephemeral -o base container which will spawn a new clone of base container with all changes stored on tmpfs using overlayfs/aufs. -- Stéphane Graber Ubuntu developer http://www.ubuntu.com -- 陈进 电话:+86-21-51355360 复旦大学并行处理研究所 上海浦东新区张衡路825号,软件楼320 Jin Chen Phone: 510 - 375 3168 Room 320, Software Building No. 825, Zhangheng Road Pudong District, Shanghai -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Lxc-devel mailing list Lxc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-devel
Re: [lxc-devel] Does lxc support unionfs ?
Another question. If I start a ubuntu template lxc container tm1 and do lxc-start-ephemeral -o tm1, overlayfs mount will not include those ramfs (e.g. /proc, /sys, /run) in original container root directory, right ? Actually, I think this script run outside container tm1 and it even can't see those ramfs directories in original container. Thanks Jin 2012/6/5 Jin Chen ciccin...@gmail.com Thank you, Stéphane. It seems that I need to talk with my lab members about which cow fs is more proper. Wishes, Jin 2012/6/5 Stéphane Graber stgra...@ubuntu.com On 06/05/2012 04:01 PM, Jin Chen wrote: Currently, I am trying to implement full container clone (with all processes running in container). For performance, copy-on-write filesystem will be a good choice. Does lxc container support fs like unionfs-fuse? Any reply will be appreciated. Thanks. Jin I don't think we explicitly tried unionfs, but both overlayfs and aufs work fine. Look at lxc-start-ephemeral in Ubuntu for a tool that already does that. Essentially you can do: lxc-start-ephemeral -o base container which will spawn a new clone of base container with all changes stored on tmpfs using overlayfs/aufs. -- Stéphane Graber Ubuntu developer http://www.ubuntu.com -- 陈进 电话:+86-21-51355360 复旦大学并行处理研究所 上海浦东新区张衡路825号,软件楼320 Jin Chen Phone: 510 - 375 3168 Room 320, Software Building No. 825, Zhangheng Road Pudong District, Shanghai -- 陈进 电话:+86-21-51355360 复旦大学并行处理研究所 上海浦东新区张衡路825号,软件楼320 Jin Chen Phone: 510 - 375 3168 Room 320, Software Building No. 825, Zhangheng Road Pudong District, Shanghai -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Lxc-devel mailing list Lxc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-devel
Re: [lxc-devel] Does lxc support unionfs ?
Quoting Jin Chen (ciccin...@gmail.com): Another question. If I start a ubuntu template lxc container tm1 and do lxc-start-ephemeral -o tm1, overlayfs mount will not include those ramfs (e.g. /proc, /sys, /run) in original container root directory, right ? Actually, I think this script run outside container tm1 and it even can't see those ramfs directories in original container. Yes, lxc-start-ephemeral isn't meant to be used with a running container as the original. Rather you create a pristine container, then use it only as a base for multiple ephemeral containers. Note also that if /var is btrfs, then lxc-create will automatically use btrfs snapshots for creating containers. -serge -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Lxc-devel mailing list Lxc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-devel