<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2015-01-05 13:00 GMT+01:00 <span dir="ltr"><<a href="mailto:lxc-users-request@lists.linuxcontainers.org" target="_blank">lxc-users-request@lists.linuxcontainers.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Send lxc-users mailing list submissions to<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:lxc-users-request@lists.linuxcontainers.org" target="_blank">lxc-users-request@lists.linuxcontainers.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:lxc-users-owner@lists.linuxcontainers.org" target="_blank">lxc-users-owner@lists.linuxcontainers.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of lxc-users digest..."<br>
<br>Today's Topics:<br>
<br>
1. Re: lxc-users Digest, Vol 55, Issue 6 (Thouraya TH)<br>
2. Re: lxc-users Digest, Vol 55, Issue 6 (Tycho Andersen)<br>
3. Snapshot size (Thouraya TH)<br>
4. Failure with authorisation of update-manager in Ubuntu<br>
Desktop-Container (Guido Jäkel)<br>
5. cpu.shares doesn't work (zhen wang)<br>
6. Re: Snapshot size (Ashish Bunkar)<br>
<br><br>---------- Message transféré ----------<br>From: Thouraya TH <<a href="mailto:thouraya87@gmail.com" target="_blank">thouraya87@gmail.com</a>><br>To: LXC users mailing-list <<a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a>><br>Cc: <br>Date: Sun, 4 Jan 2015 16:26:12 +0100<br>Subject: Re: [lxc-users] lxc-users Digest, Vol 55, Issue 6<br><div dir="ltr"><div><i><b>Question 1:</b> lxc-attach didnt' work after restart !! Have you an idea please ?<br></i>
<i>This is a known bug that I have unfortunately not had enough time to<br>
look into. It is definitely something that needs to be fixed, though<br>
:)<br><br></i></div><span lang="en"><span>So, How to access to the</span> <span>container</span> <span>after the dumping process</span><span>?<br><br></span></span><b><br></b><div><b>
Question 3:</b> i ask what can i do to restart a container on the new <span>machine</span> ? i have just to send imgDir to the new <span>machine</span> and run the command <span>to</span> restore ? migration to another machine i mean<br><br></div><div>Thanks a lot for answer.<br></div><div>Best Regards. <br></div><span lang="en"><span><br><br></span></span></div>
<br><br>---------- Message transféré ----------<br>From: Tycho Andersen <<a href="mailto:tycho.andersen@canonical.com" target="_blank">tycho.andersen@canonical.com</a>><br>To: LXC users mailing-list <<a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a>><br>Cc: <br>Date: Sun, 4 Jan 2015 08:37:23 -0700<br>Subject: Re: [lxc-users] lxc-users Digest, Vol 55, Issue 6<br>[Can you please reply to the threads instead of the daily digest? It<br>
would make tracking things in my mailer much easier :)]<br>
<br>
On Sun, Jan 04, 2015 at 04:26:12PM +0100, Thouraya TH wrote:<br>
> *Question 1: lxc-attach didnt' work after restart !! Have you an idea<br>
> please ?*<br>
><br>
><br>
> *This is a known bug that I have unfortunately not had enough time to look<br>
> into. It is definitely something that needs to be fixed, though :)*<br>
> So, How to access to the container after the dumping process?<br>
<br>
You can ssh to it, or any other network connectivity.<br>
<br>
><br>
> * Question 3:* i ask what can i do to restart a container on the new machine<br>
> ? i have just to send imgDir to the new machine and run the command to<br>
> restore ? migration to another machine i mean<br>
<br>
You can follow the instructions on my blog post:<br>
<a href="http://tycho.ws/blog/2014/09/container-migration.html" target="_blank">http://tycho.ws/blog/2014/09/container-migration.html</a><br>
<br>
Tycho<br>
<br>
> Thanks a lot for answer.<br>
> Best Regards.<br>
<br>
> _______________________________________________<br>
> lxc-users mailing list<br>
> <a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a><br>
> <a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
<br>
<br>
<br><br>---------- Message transféré ----------<br>From: Thouraya TH <<a href="mailto:thouraya87@gmail.com" target="_blank">thouraya87@gmail.com</a>><br>To: LXC users mailing-list <<a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a>><br>Cc: <br>Date: Sun, 4 Jan 2015 19:42:38 +0100<br>Subject: [lxc-users] Snapshot size<br><div dir="ltr"><div><div>Hello,<br><br><span lang="en"><span>On what depends</span> <span>the size of a</span> <span>checkpoint</span> <span>of a container</span><span>?</span> <span>the</span> <span>size of data</span> <span>that are in</span> <span>the</span> <span>container ? <br></span></span></div><div><span lang="en"><span>if i increase the size of data in a container, the snapshot's size increase ?<br></span></span></div><div><br></div>Thanks a lot for answer. <br></div>Best Regards. <br></div>
<br><br>---------- Message transféré ----------<br>From: "Guido Jäkel" <<a href="mailto:G.Jaekel@dnb.de" target="_blank">G.Jaekel@dnb.de</a>><br>To: LXC users mailing-list <<a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a>><br>Cc: <br>Date: Sun, 04 Jan 2015 20:01:15 +0100<br>Subject: [lxc-users] Failure with authorisation of update-manager in Ubuntu Desktop-Container<br>Dear others,<br>
<br>
using LXC at work in a server environment for years, this days I start to use it at home. My goal here is to set up a Ubuntu Desktop Container running on the existing vanilla PC acting as my home server. Up to now it was used as a server (router, firewall, NAS, DLNA-server, ...); it was managed "nearly headless" via ssh and on a simple VGA text mode console for emergencies. For the "Desktop Container" project, i have added a simple 3D graphic card and attached an WSXGA-display and a mouse, too.<br>
<br>
On the host (running on Gentoo), i have installed LXC 1.0.7 and as the container rootfs, I use a copy of one of my already established and well-working Ubuntu 14.04 Desktop installations.<br>
<br>
To do it step-by-step, i have first started with a "Ubuntu-Server" container. With this, i do the basics like a proper network setup. Then, i just add a few more lines to the configuration file an switch the rootfs to the Desktop clone.<br>
<br>
<br>
# Template used to create this container: /usr/share/lxc/templates/lxc-download<br>
# Parameters passed to the template: --no-validate --dist ubuntu --release trusty --arch amd64<br>
# For additional config options, please look at lxc.container.conf(5)<br>
<br>
# Distribution configuration<br>
lxc.include = /usr/share/lxc/config/ubuntu.common.conf<br>
<br>
[... usual basic and network setup ...]<br>
<br>
# Desktop-Container: Allow direct access to video and input devices<br>
lxc.mount.entry = /dev/dri dev/dri none bind,optional,create=dir<br>
lxc.mount.entry = /dev/input dev/input none bind,optional,create=dir<br>
<br>
lxc.cgroup.devices.allow = c 4:7 rwm # /dev/tty7 X Desktop<br>
lxc.cgroup.devices.allow = c 4:8 rwm # /dev/tty8 X Desktop<br>
lxc.cgroup.devices.allow = c 4:9 rwm # /dev/tty9 X Desktop<br>
lxc.cgroup.devices.allow = c 29:0 rwm # /dev/fb0/* framebuffer device<br>
lxc.cgroup.devices.allow = c 226:* rwm # /dev/dri/* video card devices<br>
lxc.cgroup.devices.allow = c 13:* rwm # /dev/input/* input devices<br>
<br>
<br>
<br>
After a a few tweaks, this already runs very well: I just disabled some unnecessary services (avahi, bluetooth, cups, udev, ureadahead) in /etc/init/ because they produce a lot of "useless noise".<br>
<br>
To get the keyboard and mouse working, before i have to install the package xserver-xorg-input-kbd and have to add the file /etc/X11/xorg.conf.d/10-input.conf containing<br>
<br>
Section "ServerFlags"<br>
Option "AutoAddDevices" "False"<br>
EndSection<br>
<br>
Section "ServerLayout"<br>
Identifier "Desktop"<br>
InputDevice "Mouse0" "CorePointer"<br>
InputDevice "Keyboard0" "CoreKeyboard"<br>
EndSection<br>
<br>
Section "InputDevice"<br>
Identifier "Keyboard0"<br>
Driver "kbd"<br>
Option "XkbLayout" "de"<br>
EndSection<br>
<br>
Section "InputDevice"<br>
Identifier "Mouse0"<br>
Driver "mouse"<br>
Option "Protocol" "auto"<br>
Option "Device" "/dev/input/mice"<br>
Option "ZAxisMapping" "4 5 6 7"<br>
EndSection<br>
<br>
Then I was able to interact with the X server and even switch between the containers X Desktop and the hosts textmode terminals out of the box.<br>
<br>
<br>
<br>
But now I stuck at an issue concerning the GUI versions of software management: The apt commandline tools work, but the GUI program update-manager shows the error message "You are not allowed to perform this action" and fail to work. However, if i start it with 'gksudo update-manager', there is no such message.<br>
<br>
In the same way, the software-manager or other GUI methods to install/remove software is not working. May anybody please have a hint what might be missing in the container setup or have to be tweaked inside?<br>
<br>
<br>
greetings<br>
<br>
Guido<br>
<br>
<br><br>---------- Message transféré ----------<br>From: zhen wang <<a href="mailto:wangzhenaaa7@gmail.com" target="_blank">wangzhenaaa7@gmail.com</a>><br>To: <a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a><br>Cc: <br>Date: Mon, 5 Jan 2015 13:35:48 +0800<br>Subject: [lxc-users] cpu.shares doesn't work<br><div dir="ltr"><span style="font-size:14px">I have created two containers using docker. When i changed the value of cpu.shares in the associated path of the docker id ,and i have already substituted -1 in the cpu.cfs_quota_us with 50000, I tested a program ,which doesn't use io, the result of test didn't show the setting of cpu.shares work. Example :</span><div style="font-size:14px">i set the cpu.shares 128 in one container and the other 1024 and i run the program in the two container concurrently. The time of the program cost is almost the same.<div>Kernel version 2.6.32-431. </div><div>cpu cores - 2</div></div></div>
<br><br>---------- Message transféré ----------<br>From: Ashish Bunkar <<a href="mailto:ashish.bunkar@oracle.com" target="_blank">ashish.bunkar@oracle.com</a>><br>To: <a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a><br>Cc: <br>Date: Mon, 05 Jan 2015 11:25:13 +0530<br>Subject: Re: [lxc-users] Snapshot size<br>
<div text="#000000" bgcolor="#FFFFFF">
<div>Hi <br>
What is your OS, because in my environment lxc-chekpoint is
depreciated command now ?<br>
<pre cols="72">Thanks & Regards
Ashish Bunkar
Contact No.- <a href="tel:%2B91-7259183696" value="+917259183696" target="_blank">+91-7259183696</a></pre></div></div></blockquote><div>Hello, Ubuntu Trusty 14.04 LTS. Have you an idea please about my question ?<br></div><div>Best Regards. <br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div text="#000000" bgcolor="#FFFFFF"><div>
On 01/05/2015 12:12 AM, Thouraya TH wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>
<div>Hello,<br>
<br>
<span lang="en"><span>On
what depends</span> <span>the size of a</span>
<span>checkpoint</span> <span>of a
container</span><span>?</span> <span>the</span>
<span>size of data</span> <span>that
are in</span> <span>the</span> <span>container
? <br>
</span></span></div>
<div><span lang="en"><span>if
i increase the size of data in a container, the
snapshot's size increase ?<br>
</span></span></div>
<div><br>
</div>
Thanks a lot for answer. <br>
</div>
Best Regards. <br>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
lxc-users mailing list
<a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a></pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br></blockquote></div><br></div></div>