[Lxc-users] Alternative to Debian Testing? No Prompt upon lxc-console execution
My problem is, I need squeeze in my containers and if anyone knows of a path for doing this that has some good instructions, I'd really appreciate knowing where that is. This is my first query to the mail list and if I am not suppose to ask a Debian Testing question, please let me know... So far, the only way I have found that offers squeeze, is using Debian Testing, which appears to work just fine, and I can ping the container both from my host and my LAN, but...when I try to enter the container via lxc-console, it doesn't take me to the container's prompt command linethe situation looks to me like probably a simple programming syntax error of some kind. Below is what happens... root@server:/# lxc-start -n vm101 -d root@server:/# lxc-info -n vm101 state: RUNNING pid: 7103 root@server:/# lxc-console -n vm101 Type Ctrl+a q to exit the console *- There is no Prompt here, and all that is visible is the above instruction...and I can type stuff. However, by pressing **Ctrl+a q I am immediately returned to my host prompt, like so...* root@server:/# root@server:/# lxc-info -n vm101 state: RUNNING pid: 7103 root@server:/# I tried nano /usr/bin/lxc-console hoping to be able to find the offending program line as I speculate it is near or at the echoed instruction, but opening the program I think I am seeing binary characters in the file. I was wondering (wishful hoping) if there are any potential commands I might use to just break past the point that hangs after I give the lxc-console command and get a prompt that belongs to the container? Or some other route to obtaining squeeze... Thanks for your thoughts! -- 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] how to use system container
Quoting allen (allen303al...@gmail.com): 2012/2/20 Serge Hallyn serge.hal...@canonical.com: Quoting allen (allen303al...@gmail.com): HI ALL: My aim is to run a Graphical application in a container, then an user connect to the container with a GUI interface, so that he can see and operate the application. As I want to separate all resources, I think I'll need a system container. Now I already use lxc-create -n maverick-lxc-template -t maverick -f /tmp/maverick-template-network.conf to create an Ubuntu template, start it and use lxc-console to get a console of it. Now my question is: 1. If I want to run an application, do I have to install it in the system container first? no. Then how can I run that application, could you show me some examples? I mean, in a system container. I'm sorry, I had misread this as asking whether you need to install it on the system (i.e. the host). Now, you *can* get around installing the application in the container by binding in the binaries and libraries from the host, but I would recommend installing the application in the container, yes. 2. How can I connect to the container with a GUI interface? It depends on how you've set up the container's network and where the guest will connect from. If your container were using a veth connected to libvirt's virbr0, and the application is available on port , then your guest could simply ssh -L :container_ip_addr: and then connect to port on his local host. For instance, if you were opening up vnc on :1 in the container, the container is Dose this mean I have to start vncserver in my system container? yes Then I have some troubles on that, my template is a minimum system, the lack of a lot of library files make the job difficult. Do I need a more powerful template? How can I get that? I don't know what you've started with. Treat it the same way as installing the application on the container's distribution if it were on the host... yum for fedora, apt-get for debian/ubuntu, or git clone/configure/make if you did it from scratch, etc. -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] LXC Container inside of a Virtual Machine + problem networking
Hi, I have experience successfully creating an LXC container in many system configurations except for when it is inside of a Virtual Machine (Oracle VirtualBox). More specifically, I have problems with networking. Here is my config: lxc.network.type = veth lxc.network.flags = up lxc.network.link = br0 lxc.network.ipv4 = 0.0.0.0/24 My problem is, that if the container is inside a virtual machine which has its network interface bridged to its hosts network bridge, then when I'm inside the LXC container I cannot ping any computer on the internet or local network EXCEPT for the virtual machines IP. So I have a Computer hosting a Virtual Machine hosting a LXC Container. The LXC container can only access the Virtual Machine. If I change the Virtual Machine to use NAT instead of Bridge for its network adapter, then the container can access the internet no problem. Any ideas? -- Open source radio in the cloud. Get yours now! --- http://airtime.pro Martin Konecny Software Developer, Sourcefabric martin.kone...@sourcefabric.org 720 Bathurst St. Suite 203 M5S 2R4, Toronto, ON, Canada +1 (416) 892-8420 (Cell) Skype: martin.konecny15 http://www.sourcefabric.org http://www.twitter.com/Sourcefabric -- 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] LXC Container inside of a Virtual Machine + problem networking
On Tue 2012-02-21 (17:52), Martin Kone?ný wrote: I have experience successfully creating an LXC container in many system configurations except for when it is inside of a Virtual Machine (Oracle VirtualBox). More specifically, I have problems with networking. Here is my config: lxc.network.type = veth lxc.network.flags = up lxc.network.link = br0 lxc.network.ipv4 = 0.0.0.0/24 I have had problems with LXC and veth inside a vmware ESX VM. Routing was not possible. I solved this problem by configuring lxc.network.type = phys lxc.network.link = eth3 lxc.network.name = eth3 Where eth3 is a virtual ESX interface. I am not using VirtualBox, but perhaps you can create there also more virtual ethernet devices, -- Ullrich Horlacher Server- und Arbeitsplatzsysteme Rechenzentrum E-Mail: horlac...@rus.uni-stuttgart.de Universitaet Stuttgart Tel:++49-711-685-65868 Allmandring 30 Fax:++49-711-682357 70550 Stuttgart (Germany) WWW:http://www.rus.uni-stuttgart.de/ REF: can_ugsa_1kjw7f8vueh7_x0z6obme4g3zhzjkvxhvf90cdv...@mail.gmail.com -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] LXC Container inside of a Virtual Machine + problem networking
Am 21.02.2012 23:52, schrieb Martin Konečný: lxc.network.link = br0 [...] So I have a Computer hosting a Virtual Machine hosting a LXC Container. The LXC container can only access the Virtual Machine. If I change the Virtual Machine to use NAT instead of Bridge for its network adapter, then the container can access the internet no problem. I had exactly the same problem with vbox. The issue came already up on this mailinglist around Q1 2011. VBox and VMware are known to work with only ONE mac address for ONE virutal device. Bridging ist not possible inside the guest. Create a virtualdevice in VBox and attach it as physical device to the container (as Ulli described it). Regards, Marcus -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users