Dear list, I'm trying to set up a Dual Opteron Host system to run several X86_64 Guest UMLs. I'm using Gentoo 2006.1 amd64 for both the host and the guest kernels.
But: inside some of the X86_64 guests, I should be able to run older 32-bit binaries.. (e.g the gcc 4.1.1 bootstrap code produces a 32-bit binary, tries to execute it and fails.. ; also, at least one of the guests will be a virtual workstation (via VNC), and hence may require some 32-bit binaries.. (e.g. Shockwave Flash inside the browser.. There may be others that can't be had in source form and that, alas, are needed.).. I hear OpenOffice won't compile for 64-bit..)) Gentoo 2006.1 in it's 64-bit forms has multi-library features built-in. both lib32 and lib64 are present. On the host, I have CONFIG_IA32_EMULATION enabled and I can compile and execute both 64-bit and 32-bit binaries transparantly. The .config file, in ARCH=um, however, does not support CONFIG_IA32_EMULATION, so obviously I can't compile this into the guest kernel.. if simply refuses to run 32-bit binaries: -------------------------------------------------- On the host: $cat > test.c #include <stdio.h> int main(int argc, char* argv[]) { printf("hullo wurld\n"); } $ cc test.c $ ./a.out hullo wurld $cc -m32 test.c $ ./a.out hullo wurld $ file a.out a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped ---------------------------------------------------------------- On the guest: $cat > test.c #include <stdio.h> int main(int argc, char* argv[]) { printf("hullo wurld\n"); } $ cc test.c $ ./a.out hullo wurld $cc -m32 test.c $ ./a.out -bash: ./a.out: cannot execute binary file $ file a.out a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped ------------------------------------------- Question 0: Am I forced to run 32-bit kernels and Gentoo for i386 guests just to be able to run these few non-OSS pieces of software in 32-bit? Question 1: If Q0=true, are there plans to change that? Can I help? Question 2: If Q0=true, how do I do that? compiling with SUBARCH=i386 didn't work I still get a 64-bit binary vmlinux executable.. Mean I have to compile these on a 32-bit machine? Question 3: If Q0=false, what am I doing wrong? Prethanks, Frank The Newbie Greetings! ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user