Re: [Lxc-users] Can not write log, openpty() failed
Hi Serge, For now, I recommend you do it the old fashioned way: either symlink or bind mount /home/chm/lxc to /var/lib/lxc: rm -rf /var/lib/lxc mkdir -p /home/chm/lxc ln -s /home/chm/lxc /var/lib/lxc Now just do lxc-create -f lxc.conf -n p1 -t ubuntu and the container will sit in your homedir. this works - thank you. Question: How long does it usually take until you get your prompt after executing lxc-create? Here is takes several minutes - fells like it takes longer than booting on physical hardware. cheers christian -- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] Can not write log, openpty() failed
Quoting christian mueller (christian.muell...@gmx.de): Hi Serge, For now, I recommend you do it the old fashioned way: either symlink or bind mount /home/chm/lxc to /var/lib/lxc: rm -rf /var/lib/lxc mkdir -p /home/chm/lxc ln -s /home/chm/lxc /var/lib/lxc Now just do lxc-create -f lxc.conf -n p1 -t ubuntu and the container will sit in your homedir. this works - thank you. Question: How long does it usually take until you get your prompt after executing lxc-create? Here is takes several minutes - fells like it takes longer than booting on physical hardware. It should be fast - a few seconds. If it takes longer, please file a bug with 'ubuntu-bug lxc'. Stephane suggested that when he has seen slow boots it's been due to dhcp, in particular (one time) due to virbr0 having stp on. We'll likely have to either find the problem in your network setup, or else switching to static network setup should work around it regardless. -serge -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] Can not write log, openpty() failed
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 01/26/2012 10:08 AM, Serge Hallyn wrote: Quoting christian mueller (christian.muell...@gmx.de): Hi Serge, For now, I recommend you do it the old fashioned way: either symlink or bind mount /home/chm/lxc to /var/lib/lxc: rm -rf /var/lib/lxc mkdir -p /home/chm/lxc ln -s /home/chm/lxc /var/lib/lxc Now just do lxc-create -f lxc.conf -n p1 -t ubuntu and the container will sit in your homedir. this works - thank you. Question: How long does it usually take until you get your prompt after executing lxc-create? Here is takes several minutes - fells like it takes longer than booting on physical hardware. It should be fast - a few seconds. If it takes longer, please file a bug with 'ubuntu-bug lxc'. Stephane suggested that when he has seen slow boots it's been due to dhcp, in particular (one time) due to virbr0 having stp on. We'll likely have to either find the problem in your network setup, or else switching to static network setup should work around it regardless. -serge Right, Can you post the result of brctl show? - -- Stéphane Graber Ubuntu developer http://www.ubuntu.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBCgAGBQJPIW+XAAoJEMY4l01keS1nVn8P/1U21/g/ZuTGhb35f2Tuc9Ze CP4roTZcZn+aOZ+3BGiw6p5QYXthJYIi8FllHOwtjjMdG5XwHb+CO3GOGJ3udVXr cT025oH2gQnyl1suL77NSfYUMUcsI8iPv1x71Sge12/VCorIsB639D3B3NOljh0J ksT1VecbVKVq6nv6krYqut+PtMbeI21HVvAig/JuS5UmAWpVMd3WzavvAkeimOIk Ft8Ij454JK3hyn+rWMmrweycsRYMG/Dc0D3KTbo/PCUunWApGe4JsxDoO0t1TtJY bgUxFCgeSlWLau4DmjOMNPoE9GnfUt4zix7xUIdlCZhGZ4xQpy5jSwxzAohJW1gi Dy9Q7JhbgMzYaM+1hzr5Xd24Zq7skKLg75w6Lms+edim1YbDuzIYPgt+1jK9+sMK Uo3NLk4vPd/2Dr5mDjFlYRgu46xaT0vjkOPqGddmIyn3lMYPQQEF3ktWFLKRwM/X quisVM6Uwcy0qpX497rhH83xId6u6WR1sYJEMR9Ig7Nz0vGfzu9TKYppYIVqpJB8 hO/diVcjhKrX3m71fyDVhFiEw9AaaN7NW4nyInKqgOiQ1rBvWiJD2Q5M4lpic8zA UKZ/yn+Mp4eKJl9wBi8dEX5+N3gI7kM6TZQW7Iv2UrXoFyiO/HcNUs2m2kyFl6iG AyDrMj4n1TlnYP/zrSw4 =5O87 -END PGP SIGNATURE- -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] Can not write log, openpty() failed
Hi Serge, thanks for your reply and your work. I assume you did '--path=/home/chm/lxc/myfirstcontainer/', not '- path=/home/chm/lxc/myfirstcontainer/'? yes, you are right. Would you mind opening a bug on launchpad? Otherwise I'll do it. since i dont have a launchpad account, and you seem to have the better technical experience, maybe its the better choice if you file the bug. Can I ask why you specified '--path'? i wanted the LXC container to reside on my home partition, since i have plenty of space left there. By default lxc-create installed the containers rootfs somewhere in my rootfs where space is limited. Cheers Christian -- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] Can not write log, openpty() failed
Quoting christian mueller (christian.muell...@gmx.de): Hi Serge, thanks for your reply and your work. I assume you did '--path=/home/chm/lxc/myfirstcontainer/', not '- path=/home/chm/lxc/myfirstcontainer/'? yes, you are right. Would you mind opening a bug on launchpad? Otherwise I'll do it. since i dont have a launchpad account, and you seem to have the better technical experience, maybe its the better choice if you file the bug. Can I ask why you specified '--path'? i wanted the LXC container to reside on my home partition, since i have plenty of space left there. By default lxc-create installed the containers rootfs somewhere in my rootfs where space is limited. Ok. The --path to lxc-ubuntu is only meant to be used by lxc-create. I've removed it (in precise, not in oneiric which I think you're on) from the help list. I will add an option to lxc-create itself to specify where the rootfs should be stored. It'll look like lxc-create -t ubuntu -n p1 -f lxc.conf -B dir --rootfs /home/chm/lxc/p1 For now, I recommend you do it the old fashioned way: either symlink or bind mount /home/chm/lxc to /var/lib/lxc: rm -rf /var/lib/lxc mkdir -p /home/chm/lxc ln -s /home/chm/lxc /var/lib/lxc Now just do lxc-create -f lxc.conf -n p1 -t ubuntu and the container will sit in your homedir. -serge -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
[Lxc-users] Can not write log, openpty() failed
Hi, i wanted to try out LXC and tried to create an LXC instance on ubuntu 11.10. To do so I followed this guide: http://wiki.debian.org/LXC and finally executed: lxc-create -n myfirstcontainer -f lxc.conf -t ubuntu -- - path=/home/chm/lxc/myfirstcontainer/ and received the following error message: Can not write log, openpty() failed (/dev/pts not mounted?) Additional Information: - /dev/pts is mounted on my host system - when i try to start the new machine lxc-start --logfile=/var/log/lxc --logpriority=INFO -n myfirstcontainer my hosts x-server chrashes. Any Ideas what went wrong? regards Christian -- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users