Re: [Lxc-users] lxc-centos/lxc-rhel?
hi Dwight, Sorry for the late reply. Probably you were right and there was something in the bash initial configuration/profile. It is deployed by puppet, that's why I missed it. After disabling puppet, I didn't experience this issue again. I need the check the bash configuration:) Thanks for the tip. Cheers, tamas On 10/11/2013 06:17 PM, Dwight Engen wrote: On Thu, 10 Oct 2013 21:58:58 +0200 Tamas Papp tom...@martos.bme.hu wrote: On 10/10/2013 08:56 PM, Dwight Engen wrote: Hmm not sure what could be the issue. I would start by running ssh -vv against the container and see where it is getting stuck. On the server: [...] It show up nothing to me. I agree that wasn't too helpful, but it shows there is nothing going wrong in the key exchange / authentication. There is strace log as well. This fork cycle is repeating: [...] Hmm, so for some reason /usr/bin/id -gn is being invoked over and over again? Do you have something in your login scripts that might do this? (ie. a quick google brought up http://stackoverflow.com/questions/5929552/ssh-command-execution-hangs-although-interactive-shell-functions-fine). Not sure where sshd is without seeing earlier in the strace. -- Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631iu=/4140/ostg.clktrk ___ lxc-users mailing list lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] lxc-centos/lxc-rhel?
On Thu, 10 Oct 2013 21:58:58 +0200 Tamas Papp tom...@martos.bme.hu wrote: On 10/10/2013 08:56 PM, Dwight Engen wrote: Hmm not sure what could be the issue. I would start by running ssh -vv against the container and see where it is getting stuck. On the server: [...] It show up nothing to me. I agree that wasn't too helpful, but it shows there is nothing going wrong in the key exchange / authentication. There is strace log as well. This fork cycle is repeating: [...] Hmm, so for some reason /usr/bin/id -gn is being invoked over and over again? Do you have something in your login scripts that might do this? (ie. a quick google brought up http://stackoverflow.com/questions/5929552/ssh-command-execution-hangs-although-interactive-shell-functions-fine). Not sure where sshd is without seeing earlier in the strace. -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134071iu=/4140/ostg.clktrk ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] lxc-centos/lxc-rhel?
On 10/02/2013 05:41 PM, Dwight Engen wrote: On Mon, 30 Sep 2013 23:18:59 +0200 Tamas Papp tom...@martos.bme.hu wrote: On 09/30/2013 08:37 PM, Michael H. Warfield wrote: Dwight, Actually I have a problem with the Oracle template. I have a a couple of Oracle Linux containers and they are running fine. There are running Oracle Databases as well... But I cannot run anything through an ssh session noninteractively or copy files to the containers by scp as a destionation. Eg.: $ ssh container echo $ scp file container: It's waiting for something and I could not find out. Hi Tamas, sorry, I know you brought this up before and I wasn't sure if you got it solved or not. First off the host doesn't know the container by name so unless you've done something special the resolving of container isn't going to just work (ie. ping container should fail Yes, I know about that. This not that case:) to resolve to an IP). You can use a recent version of lxc-info to get the containers' IP. Here is a session I just did in Ubuntu that I think is similar to what you are trying to do: root@xubu:~# lxc-create -n ol -t oracle -- -u ftp://mymirror/ol-public-yum lots of output root@xubu:~# lxc-start -d -n ol wait a few seconds for it to start root@xubu:~# lxc-info -n ol state: RUNNING pid:8685 ip: 10.0.3.163 root@xubu:~# ssh 10.0.3.163 The authenticity of host '10.0.3.163 (10.0.3.163)' can't be established. RSA key fingerprint is 2c:1a:82:14:24:72:c5:41:db:3e:b8:65:f9:c6:7e:35. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '10.0.3.163' (RSA) to the list of known hosts. long pause here... root@10.0.3.163's password: [root@ol ~]# vi /etc/ssh/sshd_config set GSSAPIAuthentication no [root@ol ~]# halt container shuts down root@xubu:~# lxc-start -d -n ol root@xubu:~# ssh 10.0.3.163 root@10.0.3.163's password: Last login: Wed Oct 2 11:09:07 2013 from 10.0.3.1 [root@ol ~]# [root@ol ~]# exit logout Connection to 10.0.3.163 closed. root@xubu:~# scp 10.0.3.163:/etc/fstab . root@10.0.3.163's password: bash: scp: command not found This is because openssh-clients wasn't installed in the container, so we have to go install that. I think I should add that to be installed by default in the template [Good idea.] root@xubu:~# ssh 10.0.3.163 root@10.0.3.163's password: Last login: Wed Oct 2 11:11:38 2013 from 10.0.3.1 [root@ol ~]# echo 192.168.1.30 mymirror /etc/hosts [root@ol ~]# yum install openssh-clients lots of yum output [root@ol ~]# exit logout Connection to 10.0.3.163 closed. root@xubu:~# scp 10.0.3.163:/etc/fstab . root@10.0.3.163's password: fstab 100%0 0.0KB/s 00:00 root@xubu:~# root@xubu:~# scp fstab 10.0.3.163: root@10.0.3.163's password: fstab 100%0 0.0KB/s 00:00 So I hopefully your situation is similar and disabling the GSSAPIAuthentication or setting UseDNS no in the containers sshd_config will reduce the wait times. Also, the openssh-clients package has to be installed in the container for scp to work. For now you can manually install it in the container using yum or the -r option to the template when creating a new OL container. I'll submit a patch for the template that includes that package by default so scp in/out will work out of the box. Unfortunately disabling GSSAPI* and UseDNS options doesn't help. I experience the same problem. BTW, our system works fine, DNS is fine, Ubuntu and Debian containers, HW based OL installations and everything works as they expected. In fact OL containers are working fine, except this issue. For I can run Oracel DB inside one. If you tell me, how to debug, what to do, I can try that. Currently I'm out of ideas:/ 10x tamas ps.: Sorry again and thanks for not forgetting this email;) -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134071iu=/4140/ostg.clktrk ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] lxc-centos/lxc-rhel?
On Thu, 10 Oct 2013 18:21:31 +0200 Tamas Papp tom...@martos.bme.hu wrote: On 10/02/2013 05:41 PM, Dwight Engen wrote: On Mon, 30 Sep 2013 23:18:59 +0200 Tamas Papp tom...@martos.bme.hu wrote: On 09/30/2013 08:37 PM, Michael H. Warfield wrote: Dwight, Actually I have a problem with the Oracle template. I have a a couple of Oracle Linux containers and they are running fine. There are running Oracle Databases as well... But I cannot run anything through an ssh session noninteractively or copy files to the containers by scp as a destionation. Eg.: $ ssh container echo $ scp file container: It's waiting for something and I could not find out. Hi Tamas, sorry, I know you brought this up before and I wasn't sure if you got it solved or not. First off the host doesn't know the container by name so unless you've done something special the resolving of container isn't going to just work (ie. ping container should fail Yes, I know about that. This not that case:) to resolve to an IP). You can use a recent version of lxc-info to get the containers' IP. Here is a session I just did in Ubuntu that I think is similar to what you are trying to do: root@xubu:~# lxc-create -n ol -t oracle -- -u ftp://mymirror/ol-public-yum lots of output root@xubu:~# lxc-start -d -n ol wait a few seconds for it to start root@xubu:~# lxc-info -n ol state: RUNNING pid:8685 ip: 10.0.3.163 root@xubu:~# ssh 10.0.3.163 The authenticity of host '10.0.3.163 (10.0.3.163)' can't be established. RSA key fingerprint is 2c:1a:82:14:24:72:c5:41:db:3e:b8:65:f9:c6:7e:35. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '10.0.3.163' (RSA) to the list of known hosts. long pause here... root@10.0.3.163's password: [root@ol ~]# vi /etc/ssh/sshd_config set GSSAPIAuthentication no [root@ol ~]# halt container shuts down root@xubu:~# lxc-start -d -n ol root@xubu:~# ssh 10.0.3.163 root@10.0.3.163's password: Last login: Wed Oct 2 11:09:07 2013 from 10.0.3.1 [root@ol ~]# [root@ol ~]# exit logout Connection to 10.0.3.163 closed. root@xubu:~# scp 10.0.3.163:/etc/fstab . root@10.0.3.163's password: bash: scp: command not found This is because openssh-clients wasn't installed in the container, so we have to go install that. I think I should add that to be installed by default in the template [Good idea.] root@xubu:~# ssh 10.0.3.163 root@10.0.3.163's password: Last login: Wed Oct 2 11:11:38 2013 from 10.0.3.1 [root@ol ~]# echo 192.168.1.30 mymirror /etc/hosts [root@ol ~]# yum install openssh-clients lots of yum output [root@ol ~]# exit logout Connection to 10.0.3.163 closed. root@xubu:~# scp 10.0.3.163:/etc/fstab . root@10.0.3.163's password: fstab 100%0 0.0KB/s 00:00 root@xubu:~# root@xubu:~# scp fstab 10.0.3.163: root@10.0.3.163's password: fstab 100%0 0.0KB/s 00:00 So I hopefully your situation is similar and disabling the GSSAPIAuthentication or setting UseDNS no in the containers sshd_config will reduce the wait times. Also, the openssh-clients package has to be installed in the container for scp to work. For now you can manually install it in the container using yum or the -r option to the template when creating a new OL container. I'll submit a patch for the template that includes that package by default so scp in/out will work out of the box. Unfortunately disabling GSSAPI* and UseDNS options doesn't help. I experience the same problem. BTW, our system works fine, DNS is fine, Ubuntu and Debian containers, HW based OL installations and everything works as they expected. In fact OL containers are working fine, except this issue. For I can run Oracel DB inside one. If you tell me, how to debug, what to do, I can try that. Currently I'm out of ideas:/ Hmm not sure what could be the issue. I would start by running ssh -vv against the container and see where it is getting stuck. 10x tamas ps.: Sorry again and thanks for not forgetting this email;) -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134071iu=/4140/ostg.clktrk ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] lxc-centos/lxc-rhel?
On Mon, 30 Sep 2013 23:18:59 +0200 Tamas Papp tom...@martos.bme.hu wrote: On 09/30/2013 08:37 PM, Michael H. Warfield wrote: Dwight, Actually I have a problem with the Oracle template. I have a a couple of Oracle Linux containers and they are running fine. There are running Oracle Databases as well... But I cannot run anything through an ssh session noninteractively or copy files to the containers by scp as a destionation. Eg.: $ ssh container echo $ scp file container: It's waiting for something and I could not find out. Hi Tamas, sorry, I know you brought this up before and I wasn't sure if you got it solved or not. First off the host doesn't know the container by name so unless you've done something special the resolving of container isn't going to just work (ie. ping container should fail to resolve to an IP). You can use a recent version of lxc-info to get the containers' IP. Here is a session I just did in Ubuntu that I think is similar to what you are trying to do: root@xubu:~# lxc-create -n ol -t oracle -- -u ftp://mymirror/ol-public-yum lots of output root@xubu:~# lxc-start -d -n ol wait a few seconds for it to start root@xubu:~# lxc-info -n ol state: RUNNING pid:8685 ip: 10.0.3.163 root@xubu:~# ssh 10.0.3.163 The authenticity of host '10.0.3.163 (10.0.3.163)' can't be established. RSA key fingerprint is 2c:1a:82:14:24:72:c5:41:db:3e:b8:65:f9:c6:7e:35. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '10.0.3.163' (RSA) to the list of known hosts. long pause here... root@10.0.3.163's password: [root@ol ~]# vi /etc/ssh/sshd_config set GSSAPIAuthentication no [root@ol ~]# halt container shuts down root@xubu:~# lxc-start -d -n ol root@xubu:~# ssh 10.0.3.163 root@10.0.3.163's password: Last login: Wed Oct 2 11:09:07 2013 from 10.0.3.1 [root@ol ~]# [root@ol ~]# exit logout Connection to 10.0.3.163 closed. root@xubu:~# scp 10.0.3.163:/etc/fstab . root@10.0.3.163's password: bash: scp: command not found This is because openssh-clients wasn't installed in the container, so we have to go install that. I think I should add that to be installed by default in the template root@xubu:~# ssh 10.0.3.163 root@10.0.3.163's password: Last login: Wed Oct 2 11:11:38 2013 from 10.0.3.1 [root@ol ~]# echo 192.168.1.30 mymirror /etc/hosts [root@ol ~]# yum install openssh-clients lots of yum output [root@ol ~]# exit logout Connection to 10.0.3.163 closed. root@xubu:~# scp 10.0.3.163:/etc/fstab . root@10.0.3.163's password: fstab 100%0 0.0KB/s 00:00 root@xubu:~# root@xubu:~# scp fstab 10.0.3.163: root@10.0.3.163's password: fstab 100%0 0.0KB/s 00:00 So I hopefully your situation is similar and disabling the GSSAPIAuthentication or setting UseDNS no in the containers sshd_config will reduce the wait times. Also, the openssh-clients package has to be installed in the container for scp to work. For now you can manually install it in the container using yum or the -r option to the template when creating a new OL container. I'll submit a patch for the template that includes that package by default so scp in/out will work out of the box. The system is Ubuntu (12.04 and 13.04). Don't you have this error? Thanks, tamas -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134791iu=/4140/ostg.clktrk ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] lxc-centos/lxc-rhel?
On Sat, 28 Sep 2013 09:52:15 +0700 Fajar A. Nugraha l...@fajar.net wrote: On Sat, Sep 28, 2013 at 3:03 AM, Michael H. Warfield m...@wittsend.comwrote: On Fri, 2013-09-27 at 10:38 +0700, Fajar A. Nugraha wrote: In particular, it solves the problem of mismatched rpmdb version (i.e. when installing centos5 on latest ubuntu) by doing yum install twice. I accomplished that with an rpm --rebuilddb sortly after installing the minimal packages. Unfortunatey using JUST that didn't work last time I tested installing Centos 5 from Ubuntu 12.04. So what I did was: - move rpmdb location to the correct place (Ubuntu put this in $HOME/.rpmdb) - try rpm --rebulddb - test with yum - if yum still complains, then reinstall a new environment using yum/rpm from the temporary environment. Hi guys, just wanted to mention in case it helps is that the way I solved the db version mismatch in the oracle linux template was to use db_dump | db_load. -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60133471iu=/4140/ostg.clktrk ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] lxc-centos/lxc-rhel?
On Mon, 2013-09-30 at 12:14 -0400, Dwight Engen wrote: On Sat, 28 Sep 2013 09:52:15 +0700 Fajar A. Nugraha l...@fajar.net wrote: On Sat, Sep 28, 2013 at 3:03 AM, Michael H. Warfield m...@wittsend.comwrote: On Fri, 2013-09-27 at 10:38 +0700, Fajar A. Nugraha wrote: In particular, it solves the problem of mismatched rpmdb version (i.e. when installing centos5 on latest ubuntu) by doing yum install twice. I accomplished that with an rpm --rebuilddb sortly after installing the minimal packages. Unfortunatey using JUST that didn't work last time I tested installing Centos 5 from Ubuntu 12.04. So what I did was: - move rpmdb location to the correct place (Ubuntu put this in $HOME/.rpmdb) - try rpm --rebulddb - test with yum - if yum still complains, then reinstall a new environment using yum/rpm from the temporary environment. Hi guys, just wanted to mention in case it helps is that the way I solved the db version mismatch in the oracle linux template was to use db_dump | db_load. Nice. I've been trying rpm --initdb followed by rpm --rebuilddb that seems to cover the vast majority of the cases but I wasn't aware of those commands. That might be another idea. BTW... While I have your attention... The Oracle Linux template worked well on Fedora. Will it work on other distros like Arch, Alt, or Suse which doesn't have a (compatible) version of yum/rpm? That's one of my major take-aways from Linux Plumbers, to tub thump the message that these templates need to be as distro agnostic as possible. I think I now have the Fedora template in pretty good shape and will be posting a patch for that in the next day or two (after reviewing your suggestions). Many thanks! Regards, Mike -- Michael H. Warfield (AI4NB) | (770) 985-6132 | m...@wittsend.com /\/\|=mhw=|\/\/ | (678) 463-0932 | http://www.wittsend.com/mhw/ NIC whois: MHW9 | An optimist believes we live in the best of all PGP Key: 0x674627FF| possible worlds. A pessimist is sure of it! signature.asc Description: This is a digitally signed message part -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60133471iu=/4140/ostg.clktrk___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] lxc-centos/lxc-rhel?
On 09/30/2013 06:23 PM, Michael H. Warfield wrote: The Oracle Linux template worked well on Fedora. Will it work on other distros like Arch, Alt, or Suse which doesn't have a (compatible) version of yum/rpm? That's one of my major take-aways from Linux It works on Ubuntu (12.04+ in my case). Plumbers, to tub thump the message that these templates need to be as distro agnostic as possible. I think I now have the Fedora template in pretty good shape and will be posting a patch for that in the next day or two (after reviewing your suggestions). I'm waiting for it very much, fedora template doesn't work on Ubuntu at this moment... Cheers, tamas -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60133471iu=/4140/ostg.clktrk ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] lxc-centos/lxc-rhel?
On Mon, 2013-09-30 at 19:53 +0200, Tamas Papp wrote: On 09/30/2013 06:23 PM, Michael H. Warfield wrote: The Oracle Linux template worked well on Fedora. Will it work on other distros like Arch, Alt, or Suse which doesn't have a (compatible) version of yum/rpm? That's one of my major take-aways from Linux It works on Ubuntu (12.04+ in my case). Plumbers, to tub thump the message that these templates need to be as distro agnostic as possible. I think I now have the Fedora template in pretty good shape and will be posting a patch for that in the next day or two (after reviewing your suggestions). I'm waiting for it very much, fedora template doesn't work on Ubuntu at this moment... Oh? I thought it did, but you had to have the rpm and yum packages installed (you won't with the new one). I thought I had tested that out on one of my Ubuntu systems. Cheers, tamas -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60133471iu=/4140/ostg.clktrk Regards, Mike -- Michael H. Warfield (AI4NB) | (770) 985-6132 | m...@wittsend.com /\/\|=mhw=|\/\/ | (678) 463-0932 | http://www.wittsend.com/mhw/ NIC whois: MHW9 | An optimist believes we live in the best of all PGP Key: 0x674627FF| possible worlds. A pessimist is sure of it! signature.asc Description: This is a digitally signed message part -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60133471iu=/4140/ostg.clktrk___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] lxc-centos/lxc-rhel?
On 09/30/2013 08:37 PM, Michael H. Warfield wrote: Oh? I thought it did, but you had to have the rpm and yum packages installed (you won't with the new one). I thought I had tested that out on one of my Ubuntu systems. This is the end of the process: Copy /var/cache/lxc/fedora/x86_64/18/rootfs to /tank/lxc/ipa12/rootfs ... Copying rootfs to /tank/lxc/ipa12/rootfs ...setting root passwd to root installing fedora-release package warning: Failed to read auxiliary vector, /proc not mounted? warning: Failed to read auxiliary vector, /proc not mounted? warning: Failed to read auxiliary vector, /proc not mounted? warning: Failed to read auxiliary vector, /proc not mounted? warning: Failed to read auxiliary vector, /proc not mounted? warning: Failed to read auxiliary vector, /proc not mounted? warning: Failed to read auxiliary vector, /proc not mounted? warning: Failed to read auxiliary vector, /proc not mounted? Error: Cannot retrieve metalink for repository: fedora/18/x86_64. Please verify its path and try again container rootfs and config created But I wouldn't care about this if you rewrite it anyway. BTW: ii lxc 1.0.0~alpha1.0+master~201309 amd64Linux Containers userspace tools I also suggest you to take a look at this: https://github.com/lxc/lxc/issues/47 Sorry about the quality of the report, it was quite late, when I wrote it:) Cheers, tamas -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134791iu=/4140/ostg.clktrk ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] lxc-centos/lxc-rhel?
On 09/30/2013 08:37 PM, Michael H. Warfield wrote: Dwight, Actually I have a problem with the Oracle template. I have a a couple of Oracle Linux containers and they are running fine. There are running Oracle Databases as well... But I cannot run anything through an ssh session noninteractively or copy files to the containers by scp as a destionation. Eg.: $ ssh container echo $ scp file container: It's waiting for something and I could not find out. The system is Ubuntu (12.04 and 13.04). Don't you have this error? Thanks, tamas -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134791iu=/4140/ostg.clktrk ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] lxc-centos/lxc-rhel?
On Fri, 2013-09-27 at 10:38 +0700, Fajar A. Nugraha wrote: On Fri, Sep 27, 2013 at 6:55 AM, Michael H. Warfield m...@wittsend.com wrote: On Thu, 2013-09-26 at 19:43 +0530, Shridhar Daithankar wrote: Would there be a official centos/rhel template bundled with lxc? If not, which one is most preferred one? It's on my list of things to do. Templates were a hot topic in a couple of talks at Linux Plumbers last week in New Orleans. I seem to have ended up handling the Fedora template at the moment and I see the templates for RHEL/CentOS/SL as an offshoot of that effort. I've got a number on my list. Any help is appreciated... This is what I modified from the official lxc-fedora template: https://github.com/fajarnugraha/lxc/tree/centos-template Got it. Installed CentOS 56 quite nicely on my Fedora 19 system. I need to give it a close look over, particularly with regards to distro independent installation (IOW, installing say CentOS on OpenSuse, which was failing). This should go into the package, ASAP. In particular, it solves the problem of mismatched rpmdb version (i.e. when installing centos5 on latest ubuntu) by doing yum install twice. I accomplished that with an rpm --rebuilddb sortly after installing the minimal packages. This is good. Much appreciated. I'll look the actual code over in closer detail later. You said it was based on the official lxc-fedora template. That template has been changing (by me). What version of LXC where you working from? -- Fajar Regards, Mike -- Michael H. Warfield (AI4NB) | (770) 985-6132 | m...@wittsend.com /\/\|=mhw=|\/\/ | (678) 463-0932 | http://www.wittsend.com/mhw/ NIC whois: MHW9 | An optimist believes we live in the best of all PGP Key: 0x674627FF| possible worlds. A pessimist is sure of it! signature.asc Description: This is a digitally signed message part -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60133471iu=/4140/ostg.clktrk___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] lxc-centos/lxc-rhel?
On Sat, Sep 28, 2013 at 3:03 AM, Michael H. Warfield m...@wittsend.comwrote: On Fri, 2013-09-27 at 10:38 +0700, Fajar A. Nugraha wrote: In particular, it solves the problem of mismatched rpmdb version (i.e. when installing centos5 on latest ubuntu) by doing yum install twice. I accomplished that with an rpm --rebuilddb sortly after installing the minimal packages. Unfortunatey using JUST that didn't work last time I tested installing Centos 5 from Ubuntu 12.04. So what I did was: - move rpmdb location to the correct place (Ubuntu put this in $HOME/.rpmdb) - try rpm --rebulddb - test with yum - if yum still complains, then reinstall a new environment using yum/rpm from the temporary environment. Relevant code section, https://github.com/fajarnugraha/lxc/blob/centos-template/templates/lxc-centos.in lines 195 - 230 You said it was based on the official lxc-fedora template. That template has been changing (by me). What version of LXC where you working from? It was a long time ago, I forked the branch from Serge's staging tree, with his last commit 60a742e0af on Jul 31, 2012. My change history should still be visible from the git commit log, so you could either try to merge it directly, squash it into a single commit, or write your own changes following the same principal above, as long as it works :) -- Fajar -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60133471iu=/4140/ostg.clktrk___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
[Lxc-users] lxc-centos/lxc-rhel?
Hi, Recently I had to set up containers on centos and discovered that there is no template for centos/rhel in lxc-source. Googling turned up quite a few templates but I am not sure which one is preferred. I tried one which created the container alright but on starting the container, killed the host X and it didn't continue working afterwards i.e. it was stopped. The host OS is centos as well. Would there be a official centos/rhel template bundled with lxc? If not, which one is most preferred one? -- Regards Shridhar -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60133471iu=/4140/ostg.clktrk ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] lxc-centos/lxc-rhel?
On 09/26/2013 09:13 AM, Shridhar Daithankar wrote: Hi, Recently I had to set up containers on centos and discovered that there is no template for centos/rhel in lxc-source. Googling turned up quite a few templates but I am not sure which one is preferred. I tried one which created the container alright but on starting the container, killed the host X and it didn't continue working afterwards i.e. it was stopped. The host OS is centos as well. Would there be a official centos/rhel template bundled with lxc? If not, which one is most preferred one? https://gist.github.com/hagix9/3514296 That's a good one, but the mirror list is outdated, you should change that line and you are done. -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60133471iu=/4140/ostg.clktrk ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] lxc-centos/lxc-rhel?
On Thu, 2013-09-26 at 19:43 +0530, Shridhar Daithankar wrote: Hi, Recently I had to set up containers on centos and discovered that there is no template for centos/rhel in lxc-source. Googling turned up quite a few templates but I am not sure which one is preferred. I tried one which created the container alright but on starting the container, killed the host X and it didn't continue working afterwards i.e. it was stopped. The host OS is centos as well. Would there be a official centos/rhel template bundled with lxc? If not, which one is most preferred one? It's on my list of things to do. Templates were a hot topic in a couple of talks at Linux Plumbers last week in New Orleans. I seem to have ended up handling the Fedora template at the moment and I see the templates for RHEL/CentOS/SL as an offshoot of that effort. I've got a number on my list. Any help is appreciated... -- Regards Shridhar -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60133471iu=/4140/ostg.clktrk Regards, Mike -- Michael H. Warfield (AI4NB) | (770) 985-6132 | m...@wittsend.com /\/\|=mhw=|\/\/ | (678) 463-0932 | http://www.wittsend.com/mhw/ NIC whois: MHW9 | An optimist believes we live in the best of all PGP Key: 0x674627FF| possible worlds. A pessimist is sure of it! signature.asc Description: This is a digitally signed message part -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60133471iu=/4140/ostg.clktrk___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] lxc-centos/lxc-rhel?
On Fri, Sep 27, 2013 at 6:55 AM, Michael H. Warfield m...@wittsend.comwrote: On Thu, 2013-09-26 at 19:43 +0530, Shridhar Daithankar wrote: Would there be a official centos/rhel template bundled with lxc? If not, which one is most preferred one? It's on my list of things to do. Templates were a hot topic in a couple of talks at Linux Plumbers last week in New Orleans. I seem to have ended up handling the Fedora template at the moment and I see the templates for RHEL/CentOS/SL as an offshoot of that effort. I've got a number on my list. Any help is appreciated... This is what I modified from the official lxc-fedora template: https://github.com/fajarnugraha/lxc/tree/centos-template In particular, it solves the problem of mismatched rpmdb version (i.e. when installing centos5 on latest ubuntu) by doing yum install twice. -- Fajar -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60133471iu=/4140/ostg.clktrk___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users