Re: [Lxc-users] Fedora / CentOS
there should be no issue runnig ubuntu on redhat like systems but f15/16 don't run becuase of something related to systemd I have been trying although there was thread about running f15 starting from a openVZ rootfs On Tue, Dec 6, 2011 at 1:36 AM, Huang Liang excee...@gmail.com wrote: I remember that it is not possible to run ubuntu guests on CentOs host due to the upstart things. On Dec 6, 2011, at 2:58 AM, István Király - LaKing wrote: Hi folks. I wrote a guide how to get lxc running on CentOs host, with CentOS or Fedora 14 guest. http://forums.fedoraforum.org/showthread.php?t=272995 I could not get FC15/FC16 containers to work tho. I read somewhere it is because of systemd. Any ideas or suggestions on that subject? Thank you. lak...@d250.hu D250 Laboratories www.D250.hu -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users -- BR RH http://informatiq.org -- Cloud Services Checklist: Pricing and Packaging Optimization This white paper is intended to serve as a reference, checklist and point of discussion for anyone considering optimizing the pricing and packaging model of a cloud services business. Read Now! http://www.accelacomm.com/jaw/sfnl/114/51491232/ ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
[Lxc-users] Downgrade disk IO PRIORITY automatically
Hi, I understand that this is not the quite appropriate mailing list to ask the question, but the question is related to the LXC tech we use on the server, so here it goes: Most of the time the LXC containers on our servers work properly, but occasionally someone, somewhere starts an IO heavy operation that kills performance for everybody. For some time I tried to ask people nicely to use ionice -c 3 or run the task offhours but this is not enough. The problem happens quite often for people to complain, but not (IMHO) to warrant purchasing of new hardware. I envision that an ideal solution would be some daemon that would monitor disk IO activity and automatically reduce (or raise, depending how you view it) ionice priority of the process or the container. The daemon would restore the IO niceness after some good behavior period. Is there any solution along the lines? -- Arie -- Cloud Services Checklist: Pricing and Packaging Optimization This white paper is intended to serve as a reference, checklist and point of discussion for anyone considering optimizing the pricing and packaging model of a cloud services business. Read Now! http://www.accelacomm.com/jaw/sfnl/114/51491232/___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] Downgrade disk IO PRIORITY automatically
Quoting Arie Skliarouk (sklia...@gmail.com): Hi, I understand that this is not the quite appropriate mailing list to ask the question, but the question is related to the LXC tech we use on the server, so here it goes: Most of the time the LXC containers on our servers work properly, but occasionally someone, somewhere starts an IO heavy operation that kills performance for everybody. For some time I tried to ask people nicely to use ionice -c 3 or run the task offhours but this is not enough. The problem happens quite often for people to complain, but not (IMHO) to warrant purchasing of new hardware. I envision that an ideal solution would be some daemon that would monitor disk IO activity and automatically reduce (or raise, depending how you view it) ionice priority of the process or the container. The daemon would restore the IO niceness after some good behavior period. Is there any solution along the lines? Have you tried the blkio cgroup? (I haven't, so am curious how effective it is) -serge -- Cloud Services Checklist: Pricing and Packaging Optimization This white paper is intended to serve as a reference, checklist and point of discussion for anyone considering optimizing the pricing and packaging model of a cloud services business. Read Now! http://www.accelacomm.com/jaw/sfnl/114/51491232/ ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] Downgrade disk IO PRIORITY automatically
2011/12/6 Arie Skliarouk sklia...@gmail.com: Hi, I understand that this is not the quite appropriate mailing list to ask the question, but the question is related to the LXC tech we use on the server, so here it goes: Most of the time the LXC containers on our servers work properly, but occasionally someone, somewhere starts an IO heavy operation that kills performance for everybody. For some time I tried to ask people nicely to use ionice -c 3 or run the task offhours but this is not enough. The problem happens quite often for people to complain, but not (IMHO) to warrant purchasing of new hardware. I envision that an ideal solution would be some daemon that would monitor disk IO activity and automatically reduce (or raise, depending how you view it) ionice priority of the process or the container. The daemon would restore the IO niceness after some good behavior period. Is there any solution along the lines? -- Arie Hi, Basically cgroup's blkio controller works for such scenario. Please see http://www.mjmwired.net/kernel/Documentation/cgroups/blkio-controller.txt for details. In my test I found that the blkio controller shipped with older kernel (e.g. rhel6's 2.6.32) doesn't work quite well when the all IO workers in each group are very seeky ones, unless you echo 0 slice_idle to switch to iops mode manually. However in the latest upstream kernel it works very well by the default arguments, without any adjustment. Thanks, Zhu Yanhai -- Cloud Services Checklist: Pricing and Packaging Optimization This white paper is intended to serve as a reference, checklist and point of discussion for anyone considering optimizing the pricing and packaging model of a cloud services business. Read Now! http://www.accelacomm.com/jaw/sfnl/114/51491232/ ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] Fedora / CentOS
On 12/05/2011 04:58 PM, István Király - LaKing wrote: Hi folks. I wrote a guide how to get lxc running on CentOs host, with CentOS or Fedora 14 guest. http://forums.fedoraforum.org/showthread.php?t=272995 I could not get FC15/FC16 containers to work tho. I read somewhere it is because of systemd. Any ideas or suggestions on that subject? I think that has been fixed with lxc 0.7.5, no ? I try'd with 0.7.5 from tarball, as well as from the git source. Here are the error messages: [root@C4 ~]# lxc-start -n fc14 lxc-start: Invalid argument - pivot_root syscall failed lxc-start: failed to setup pivot root lxc-start: failed to set rootfs for 'fc14' lxc-start: failed to setup the container lxc-start: invalid sequence number 1. expected 2 lxc-start: failed to spawn 'fc14' lxc-start: Device or resource busy - failed to remove cgroup '/sys/fs/cgroup/systemd/fc14' [root@C4 ~]# lxc-start -n fc14 lxc-start: failed to mount '/dev/pts/5' on '/usr/local/lib/lxc/rootfs/dev/console' lxc-start: failed to setup the console for 'fc14' lxc-start: failed to setup the container lxc-start: invalid sequence number 1. expected 2 lxc-start: failed to spawn 'fc14' Host is Fedora 16, x86_64 with the 3.x kernel. I wanted to ask on the lxc-devel mailing list, if I should commit lxc-centos :) ... Cheers .) -- Cloud Services Checklist: Pricing and Packaging Optimization This white paper is intended to serve as a reference, checklist and point of discussion for anyone considering optimizing the pricing and packaging model of a cloud services business. Read Now! http://www.accelacomm.com/jaw/sfnl/114/51491232/ ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] .. CentOS .. + ubuntu
Huang Liang excee...@gmail.com there should be no issue runnig ubuntu on redhat like systems but f15/16 don't run becuase of something related to systemd I have been trying although there was thread about running f15 starting from a openVZ rootfs On Fedora 16 host, with the ubuntu container, I get the same errors then with fedora or centos containers. On a CentOS 6, with ubunto containers, I get the following errors: lxc-start 1323193897.780 DEBUG lxc_conf - umounted '/mnt' lxc-start 1323193897.781 INFO lxc_conf - created new pts instance lxc-start 1323193897.781 INFO lxc_conf - set personality to '0x0' lxc-start 1323193897.781 DEBUG lxc_conf - capabilities has been setup lxc-start 1323193897.781 NOTICE lxc_conf - 'ub' is setup. lxc-start 1323193897.781 NOTICE lxc_start - exec'ing '/sbin/init' lxc-start 1323193897.781 NOTICE lxc_start - '/sbin/init' started with pid '13324' lxc-start 1323193897.781 DEBUG lxc_utmp - Added '/proc/13324/root/var/run' to inotifywatch lxc-start 1323193897.798 DEBUG lxc_utmp - got inotify event 256 for utmp Here the guest system hangs ... restart lxc-start 1323195414.802 NOTICE lxc_conf - 'ub' is setup. lxc-start 1323195414.802 NOTICE lxc_start - exec'ing '/sbin/init' lxc-start 1323195414.802 NOTICE lxc_start - '/sbin/init' started with pid '13522' lxc-start 1323195414.802 ERROR lxc_commands - failed to create the command service point lxc-start 1323195414.802 ERROR lxc_start - failed to add command handler to mainloop lxc-start 1323195414.803 ERROR lxc_start - mainloop exited with an error lxc-start 1323195414.803 DEBUG lxc_cgroup - destroying /cgroup ub lxc-start 1323195414.808 DEBUG lxc_cgroup - '/cgroup/ub' unlinked But seems like I can start a /bin/bash in the ubuntu container. -- Cloud Services Checklist: Pricing and Packaging Optimization This white paper is intended to serve as a reference, checklist and point of discussion for anyone considering optimizing the pricing and packaging model of a cloud services business. Read Now! http://www.accelacomm.com/jaw/sfnl/114/51491232/ ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
[Lxc-users] How assign the IP address sequentially?
Hi, I want to assign the ip address of containers sequentially for eg:: container1 ::195.168.206.1 container2::195.168.206.2 like this. I have taken out my network cable I think that means DHCP is out of picture, but when I start the container it gets ipv6 address and not ipv4 address, my conf file contents are :: CONF FILE:: lxc.utsname = ubuntu lxc.mount = /home/nishant/ubuntu.fstab lxc.pts = 1024 lxc.tty = 4 lxc.cgroup.devices.deny = a # /dev/null and zero lxc.cgroup.devices.allow = c 1:3 rwm lxc.cgroup.devices.allow = c 1:5 rwm # consoles lxc.cgroup.devices.allow = c 5:1 rwm lxc.cgroup.devices.allow = c 5:0 rwm lxc.cgroup.devices.allow = c 4:0 rwm lxc.cgroup.devices.allow = c 4:1 rwm # /dev/{,u}random lxc.cgroup.devices.allow = c 1:9 rwm lxc.cgroup.devices.allow = c 1:8 rwm lxc.cgroup.devices.allow = c 136:* rwm lxc.cgroup.devices.allow = c 5:2 rwm # rtc lxc.cgroup.devices.allow = c 254:0 rwm # ADD THOSE LINES lxc.network.type = veth lxc.network.flags = up lxc.network.link = br0 lxc.network.name = eth0 lxc.network.ipv4 = 192.168.206.1/24 lxc.cgroup.cpuset.cpus=0-1,3 What are changes to be done in order to get the address sequentially? Please help me ASAP. Regards, Nishant -- Cloud Services Checklist: Pricing and Packaging Optimization This white paper is intended to serve as a reference, checklist and point of discussion for anyone considering optimizing the pricing and packaging model of a cloud services business. Read Now! http://www.accelacomm.com/jaw/sfnl/114/51491232/___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
[Lxc-users] How to start only network services using lxc-execute.
Hi, I am using lxc-execute and I want to just* up the network services of containers so that I get the IP address of each container. * I don't wann use lxc-start for this is there any solution to this problem? Please help me ASAP. Regards, Nishant -- Cloud Services Checklist: Pricing and Packaging Optimization This white paper is intended to serve as a reference, checklist and point of discussion for anyone considering optimizing the pricing and packaging model of a cloud services business. Read Now! http://www.accelacomm.com/jaw/sfnl/114/51491232/___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users