[opensuse] Running 32Bit Linux LXC guest in a 64Bit system?
Hello, I wonder, if it's possible to install and run a 32Bit LXC Linux guest in a 64Bit host system. Some Debian/Ubuntu guides mention the option "--arch" for "lxc-create" e.g.: https://help.ubuntu.com/lts/serverguide/lxc.html But this option is not available in openSUSE and in LXC source code. Greetings, Björn -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2014-11-29 12:40, Bjoern Voigt wrote:
Hello,
I wonder, if it's possible to install and run a 32Bit LXC Linux guest in a 64Bit host system.
Yes. I do. Well, I don't know what the LXC above stands for :-? I do have some 32 bit SuSE/openSUSE guests running under vmplayer on 64 bit host hardware. I just create the virtual machine telling it to emulate 32 bit hardware, and it does. Then the installation CD thinks it is a 32 bit cpu, and the 64 bit CD refuses. I don't have to use any switches, it's automatic. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
On 11/29/2014 5:55 AM, Carlos E. R. wrote:
Well, I don't know what the LXC above stands for :-?
Good thing he provided a link .....
Looks like pretty much of a mess if you ask me. What we need is develop a container technology that is simple to install and manage and run all web browsers in that container. I don't think we can trust the containerization that browsers supposedly create. I've been watching some discussion on the openbsd list about running browsers as a unprivileged user in a container (like docker?) which does not run with the user's rights, and can't access the user's storage (like their .ssh directory). -- _____________________________________ ---This space for rent--- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
John Andersen wrote:
On 11/29/2014 5:55 AM, Carlos E. R. wrote:
Well, I don't know what the LXC above stands for :-?
Good thing he provided a link .....
Looks like pretty much of a mess if you ask me.
What we need is develop a container technology that is simple to install and manage and run all web browsers in that container.
LXC containers are quite easy to install and run. I'm not sure about running X applications in them though. -- Per Jessen, Zürich (0.0°C) http://www.dns24.ch/ - free dynamic DNS, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Per Jessen wrote:
John Andersen wrote:
On 11/29/2014 5:55 AM, Carlos E. R. wrote:
Well, I don't know what the LXC above stands for :-? Good thing he provided a link ..... https://help.ubuntu.com/lts/serverguide/lxc.html Looks like pretty much of a mess if you ask me.
What we need is develop a container technology that is simple to install and manage and run all web browsers in that container. LXC containers are quite easy to install and run. I'm not sure about running X applications in them though. Yes, I want to run a single application in LXC (Linux Containers). Of course, I can try a full virtualization technology like VMware, VirtualBox or KVM. But at first I want to give LXC a change.
And yes, LXC has some problems with running X applications. But it's possible to run an X application inside LXC (for instance with SSH X11 forwarding or $DISPLAY/xhost). But the special problem here is, that my application probably requires (I am not sure, until it's tested) a clean 32 Bit environment. Without the "--arch" switch of "lxc-create" it's not directly possible to install an 32 Bit LXC guest. The name of the application is Borland JBuilder 2005. I still need it for special tasks. On 64 Bit openSUSE 13.1 it prints this error during startup: $ /opt/Borland/JBuilder2005/bin/jbuilder count = 145, total = 522 count = 145, total = 522 Use -verbose for details on OpenTool failures *** OpenTool com.borland.jbuilder.webservices.personality.WebServicesPersonality failed to initialize *** OpenTool com.borland.jbuilder.personality.JBuilderPersonalities failed to initialize *** OpenTool com.borland.jbuilder.JBuilderCore failed to initialize This is why I wanted to try JBuilder on a 32 Bit system. Any tips? (the command "linux32" does not help) Greetings, Björn -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Bjoern Voigt wrote:
Per Jessen wrote:
John Andersen wrote:
On 11/29/2014 5:55 AM, Carlos E. R. wrote:
Well, I don't know what the LXC above stands for :-? Good thing he provided a link ..... https://help.ubuntu.com/lts/serverguide/lxc.html Looks like pretty much of a mess if you ask me.
What we need is develop a container technology that is simple to install and manage and run all web browsers in that container. LXC containers are quite easy to install and run. I'm not sure about running X applications in them though.
Yes, I want to run a single application in LXC (Linux Containers). Of course, I can try a full virtualization technology like VMware, VirtualBox or KVM. But at first I want to give LXC a change.
And yes, LXC has some problems with running X applications. But it's possible to run an X application inside LXC (for instance with SSH X11 forwarding or $DISPLAY/xhost).
But the special problem here is, that my application probably requires (I am not sure, until it's tested) a clean 32 Bit environment. Without the "--arch" switch of "lxc-create" it's not directly possible to install an 32 Bit LXC guest. The name of the application is Borland JBuilder 2005. I still need it for special tasks.
Just out of curiosity, why do you want/need to use a container?
On 64 Bit openSUSE 13.1 it prints this error during startup:
$ /opt/Borland/JBuilder2005/bin/jbuilder count = 145, total = 522 count = 145, total = 522 Use -verbose for details on OpenTool failures *** OpenTool com.borland.jbuilder.webservices.personality.WebServicesPersonality failed to initialize *** OpenTool com.borland.jbuilder.personality.JBuilderPersonalities failed to initialize *** OpenTool com.borland.jbuilder.JBuilderCore failed to initialize
This is why I wanted to try JBuilder on a 32 Bit system.
You ought to be able to install the required 32bit libraries on your 64bit system. You would need those for a 32bit container anyway (if it we had support for it). -- Per Jessen, Zürich (3.7°C) http://www.hostsuisse.com/ - virtual servers, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Bjoern Voigt wrote:
Per Jessen wrote:
John Andersen wrote:
On 11/29/2014 5:55 AM, Carlos E. R. wrote:
Well, I don't know what the LXC above stands for :-? Good thing he provided a link ..... https://help.ubuntu.com/lts/serverguide/lxc.html Looks like pretty much of a mess if you ask me.
What we need is develop a container technology that is simple to install and manage and run all web browsers in that container. LXC containers are quite easy to install and run. I'm not sure about running X applications in them though. Yes, I want to run a single application in LXC (Linux Containers). Of course, I can try a full virtualization technology like VMware, VirtualBox or KVM. But at first I want to give LXC a change.
And yes, LXC has some problems with running X applications. But it's possible to run an X application inside LXC (for instance with SSH X11 forwarding or $DISPLAY/xhost).
But the special problem here is, that my application probably requires (I am not sure, until it's tested) a clean 32 Bit environment. Without the "--arch" switch of "lxc-create" it's not directly possible to install an 32 Bit LXC guest. The name of the application is Borland JBuilder 2005. I still need it for special tasks. Just out of curiosity, why do you want/need to use a container? I wanted to test JBuilder 2005 with a lightweight system. The
I found the setting lxc.arch Specify the architecture for the container. Valid options are x86, i686, x86_64, amd64 in "man lxc.container.conf(5)". With this I wrote lxc.arch = x86 in a file /etc/lxc/debian701.conf and installed Debian with "lxc-create -f /etc/lxc/debian701.conf -n debian701 -t debian". But it still installed the x86_64 Debian system. Any tips? Per Jessen wrote: problem with JBuilder 2005 is, that this software is nearly 10 years old and unsupported. So my task is: Find a (32 Bit) Linux distribution, which is old enough to run this software correctly. I thought, that LXC would be good for this task, because with LXC I can quickly test some distributions. There is an incompatibility with newer Linux kernels or with newer libraries in this software: JBuilder2005 FC4 AMD64 http://www.borlandtalk.com/jbuilder2005-fc4-amd64-vt90132.html Bug 190333 - jbuilderx opentool failure with 2.6.16 kernels https://bugzilla.redhat.com/show_bug.cgi?id=190333 Until now, I didn't found a solution to install an 32 Bit LXC guest with opensuse, I managed to install a Debian 7 32 bit system with debootstrap. But ok, JBuilder 2005 does not run inside this system (running in Chroot environment on openSUSE 13.1). Of course, if this software does not run with newer kernels, LXC and Chroot does not help me. It only helps to test other libraries and configurations.
On 64 Bit openSUSE 13.1 it prints this error during startup:
$ /opt/Borland/JBuilder2005/bin/jbuilder count = 145, total = 522 count = 145, total = 522 Use -verbose for details on OpenTool failures *** OpenTool com.borland.jbuilder.webservices.personality.WebServicesPersonality failed to initialize *** OpenTool com.borland.jbuilder.personality.JBuilderPersonalities failed to initialize *** OpenTool com.borland.jbuilder.JBuilderCore failed to initialize
This is why I wanted to try JBuilder on a 32 Bit system. You ought to be able to install the required 32bit libraries on your 64bit system. You would need those for a 32bit container anyway (if it we had support for it). Yes, of course. But installing 32 bit libraries alone does not help here. See above.
Björn -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 02/12/14 09:54, Bjoern Voigt wrote:
I found the setting
lxc.arch Specify the architecture for the container.
Valid options are x86, i686, x86_64, amd64
in "man lxc.container.conf(5)". With this I wrote
lxc.arch = x86
in a file /etc/lxc/debian701.conf and installed Debian with "lxc-create -f /etc/lxc/debian701.conf -n debian701 -t debian". But it still installed the x86_64 Debian system. Any tips?
Why can't you use virtualbox and install from 32-bit source media? Dx -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Dylan wrote:
On 02/12/14 09:54, Bjoern Voigt wrote:
I found the setting
lxc.arch Specify the architecture for the container.
Valid options are x86, i686, x86_64, amd64
in "man lxc.container.conf(5)". With this I wrote
lxc.arch = x86
in a file /etc/lxc/debian701.conf and installed Debian with "lxc-create -f /etc/lxc/debian701.conf -n debian701 -t debian". But it still installed the x86_64 Debian system. Any tips?
Why can't you use virtualbox and install from 32-bit source media? Of course, I can (I prefer KVM over Virtualbox.) But I wanted to try LXC first.
Beside the JBuilder 2005 problem, I want to use LXC for other tasks too, e.g. for building and testing Debian/Ubuntu software on my openSUSE system for my Debian/Ubuntu servers. Björn -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Bjoern Voigt wrote:
Per Jessen wrote:
Just out of curiosity, why do you want/need to use a container?
I wanted to test JBuilder 2005 with a lightweight system. The problem with JBuilder 2005 is, that this software is nearly 10 years old and unsupported. So my task is: Find a (32 Bit) Linux distribution, which is old enough to run this software correctly. I thought, that LXC would be good for this task, because with LXC I can quickly test some distributions.
I guess that would work, but it seems like a lot of work - wouldn't it be easier to try to figure out why JBuilder can't run on more recent systems?
There is an incompatibility with newer Linux kernels or with newer libraries in this software:
JBuilder2005 FC4 AMD64 http://www.borlandtalk.com/jbuilder2005-fc4-amd64-vt90132.html
Bug 190333 - jbuilderx opentool failure with 2.6.16 kernels https://bugzilla.redhat.com/show_bug.cgi?id=190333
Both of these seem to be related to SElinux, which probably isn't active on your openSUSE system. Are you seeing the same problems?
Of course, if this software does not run with newer kernels, LXC and Chroot does not help me. It only helps to test other libraries and configurations.
With jbuilder being just an application, the kernel most probably will not matter much.
On 64 Bit openSUSE 13.1 it prints this error during startup:
$ /opt/Borland/JBuilder2005/bin/jbuilder count = 145, total = 522 count = 145, total = 522 Use -verbose for details on OpenTool failures *** OpenTool com.borland.jbuilder.webservices.personality.WebServicesPersonality failed to initialize *** OpenTool com.borland.jbuilder.personality.JBuilderPersonalities failed to initialize *** OpenTool com.borland.jbuilder.JBuilderCore failed to initialize
Not exactly very informative :-(
Yes, of course. But installing 32 bit libraries alone does not help here. See above.
Just my opinion, it seems like a bit of a stretch to conclude from those three errors that you need an older distro :-) I would try to focus on figuring out what the real problem is - my gut feeling says it's about java. Maybe try changing the JDK for instance. -- Per Jessen, Zürich (4.8°C) http://www.dns24.ch/ - free dynamic DNS, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
I found the solution. The "--arch" option has to be on the end of the "lxc-create" command line. "--" should be used to divide "lxc-create" and template arguments. A valid command line for installing Debian 7 with configuration file /etc/lxc/debian701.conf, name "debian701" and template "debian" is lxc-create -f /etc/lxc/debian701.conf -n debian701 -t debian -- --arch i386 Björn Bjoern Voigt wrote:
Hello,
I wonder, if it's possible to install and run a 32Bit LXC Linux guest in a 64Bit host system.
Some Debian/Ubuntu guides mention the option "--arch" for "lxc-create" e.g.:
https://help.ubuntu.com/lts/serverguide/lxc.html
But this option is not available in openSUSE and in LXC source code.
Greetings, Björn
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (5)
-
Bjoern Voigt
-
Carlos E. R.
-
Dylan
-
John Andersen
-
Per Jessen