WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Corepure64 with virtualbox 64bit  (Read 5732 times)

Offline virtualbox

  • WikiUser
  • *
  • Posts: 21
Corepure64 with virtualbox 64bit
« on: August 18, 2013, 03:06:54 PM »
Hi,

I have set up Corepure64 + Xorg-7.6 + Xprogs + fluxbox and it's working fine.

I upgraded this platform hardware and added 8GB RAM (before 4GB).

I didn't find Virtualbox in x86_64 repo (via App Browser).

So I went to Virtualbox homepage and downloaded the latest AMD64 version for all distributions: https://www.virtualbox.org/wiki/Linux_Downloads
This was the installer: http://download.virtualbox.org/virtualbox/4.2.16/VirtualBox-4.2.16-86992-Linux_amd64.run

Tried to execute installer, but got the following:
Code: [Select]
$ sudo su
$ chmod 755 VirtualBox-4.2.16-86992-Linux_amd64.run
$ ./VirtualBox-4.2.16-86992-Linux_amd64.run
Verifying archive integrity... All good.
Uncompressing VirtualBox for Linux installation............
VirtualBox Version 4.2.16 r86992 (2013-07-04T14:33:09Z) installer
Please install GNU make.
Please install the build and header files for your current Linux kernel.
The current kernel version is 3.0.21-tinycore64
Please install the GNU compiler.
Problems were found which would prevent VirtualBox from installing.
Please correct these problems and try again.

I did a little research, few days actually and proceeded with following steps:

I installed all the necessary extensions for the installer to work:
Code: [Select]
$ tce-load -wi compiletc
I also didn't find header files in x86_64 repo (via App Browser).

I read from http://forum.tinycorelinux.net/index.php/topic,15577.msg90800.html?PHPSESSID=q1rqf5p2ome1g5oi30fr0ige53#msg90800 that I need full kernel source and prepare it with 64bit config and Module.symvers.

So I got those from http://www.tinycorelinux.net/4.x/x86_64/src/kernel/

Kernel source: http://www.tinycorelinux.net/4.x/x86_64/src/kernel/linux-3.0.21-patched.txz
Config: http://www.tinycorelinux.net/4.x/x86_64/src/kernel/config-3.0.21-tinycore64
Module.symvers: http://www.tinycorelinux.net/4.x/x86_64/src/kernel/Module.symvers-3.0.21-tinycore64

I got some information from http://alien.slackbook.org/dokuwiki/doku.php?id=linux:kernelbuilding to continue my journey.

I didn't have src dir under usr, so i created one and extracted kernel source and symlinked it to linux:
Code: [Select]
$ sudo su
$ cd /usr/
$ mkdir src
$ cd src/
$ tar xf /PATH_TO_FILE/linux-3.0.21-patched.txz
$ ln -s linux-3.0.21/ linux

I copied config and Module.symvers to /usr/src/linux/ and prepared as following:
Code: [Select]
$ sudo su
$ cd /usr/src/linux/
$ make mrproper
  CLEAN   .version
$ cp /PATH_TO_FILE/config-3.0.21-tinycore64 .config
$ make oldconfig
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/lex.zconf.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf --oldconfig Kconfig
#
# configuration written to .config
#
$ make prepare
scripts/kconfig/conf --silentoldconfig Kconfig
  CHK     include/linux/version.h
  UPD     include/linux/version.h
  CHK     include/generated/utsrelease.h
  UPD     include/generated/utsrelease.h
  CC      kernel/bounds.s
  GEN     include/generated/bounds.h
  CC      arch/x86/kernel/asm-offsets.s
  GEN     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
$ make modules_prepare
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
  CALL    scripts/checksyscalls.sh
  CC      scripts/mod/empty.o
  HOSTCC  scripts/mod/mk_elfconfig
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/modpost.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTLD  scripts/mod/modpost
  HOSTCC  scripts/pnmtologo
  HOSTCC  scripts/conmakehash
$ cp /PATH_TO_FILE/Module.symvers-3.0.21-tinycore64 Module.symvers
$ make SUBDIRS=scripts/mod
  Building modules, stage 2.
  MODPOST 0 modules

When I now tried to execute the installer, it successfully installed it. Well, so I thought...
Code: [Select]
$ ./VirtualBox-4.2.16-86992-Linux_amd64.run
Verifying archive integrity... All good.
Uncompressing VirtualBox for Linux installation............
VirtualBox Version 4.2.16 r86992 (2013-07-04T14:33:09Z) installer
Installing VirtualBox to /opt/VirtualBox
As our installer does not recognize your Linux distribution, we were unable to
set up the initialization script vboxdrv correctly.  The script has been copied
copied to the /etc/init.d directory.  You should set up your system to start
it at system start, or start it manually before using VirtualBox.

If you would like to help us add support for your distribution, please open a
new ticket on http://www.virtualbox.org/wiki/Bugtracker.
As our installer does not recognize your Linux distribution, we were unable to
set up the initialization script vboxballoonctrl-service correctly.  The script has been copied
copied to the /etc/init.d directory.  You should set up your system to start
it at system start, or start it manually before using VirtualBox.

If you would like to help us add support for your distribution, please open a
new ticket on http://www.virtualbox.org/wiki/Bugtracker.
As our installer does not recognize your Linux distribution, we were unable to
set up the initialization script vboxautostart-service correctly.  The script has been copied
copied to the /etc/init.d directory.  You should set up your system to start
it at system start, or start it manually before using VirtualBox.

If you would like to help us add support for your distribution, please open a
new ticket on http://www.virtualbox.org/wiki/Bugtracker.
As our installer does not recognize your Linux distribution, we were unable to
set up the initialization script vboxweb-service correctly.  The script has been copied
copied to the /etc/init.d directory.  You should set up your system to start
it at system start, or start it manually before using VirtualBox.

If you would like to help us add support for your distribution, please open a
new ticket on http://www.virtualbox.org/wiki/Bugtracker.
ln: /usr/share/pixmaps/VBox.png: No such file or directory
ln: /usr/share/pixmaps/virtualbox.png: No such file or directory
ln: /usr/share/applications/virtualbox.desktop: No such file or directory
ln: /usr/share/mime/packages/virtualbox.xml: No such file or directory
sh: test: unknown operand
Python found: python, installing bindings...
/bin/sh: python: not found
Building the VirtualBox kernel modules
As our installer does not recognize your Linux distribution, we were unable to
set up the initialization script vboxdrv correctly.  The script has been copied
copied to the /etc/init.d directory.  You should set up your system to start
it at system start, or start it manually before using VirtualBox.

If you would like to help us add support for your distribution, please open a
new ticket on http://www.virtualbox.org/wiki/Bugtracker.
/sbin/modprobe: invalid option -- 'c'
BusyBox v1.20.2 (2012-11-03 10:19:40) multi-call binary.

Usage: modprobe [-alrqvsDb] MODULE [symbol=value]...

        -a      Load multiple MODULEs
        -l      List (MODULE is a pattern)
        -r      Remove MODULE (stacks) or do autoclean
        -q      Quiet
        -v      Verbose
        -s      Log to syslog
        -D      Show dependencies
        -b      Apply blacklist to module names too


VirtualBox has been installed successfully.

You will find useful information about using VirtualBox in the user manual
  /opt/VirtualBox/UserManual.pdf
and in the user FAQ
  http://www.virtualbox.org/wiki/User_FAQ

We hope that you enjoy using VirtualBox.

Now.. if I execute virtualbox in command line, I get:
Code: [Select]
$ virtualbox
ps: invalid option -- 'U'
BusyBox v1.20.2 (2012-11-03 10:19:40) multi-call binary.

Usage: ps [-o COL1,COL2=HEADER]

Show list of processes

        -o COL1,COL2=HEADER     Select columns for display

/usr/bin/virtualbox: exec: line 110: /opt/VirtualBox/VirtualBox: not found

If I look under /opt/VirtualBox, all files seems to be in place:
Code: [Select]
$ ls -la /opt/VirtualBox/
drwxr-xr-x   12 root     staff         1760 Aug 19 00:23 ./
drwxrwsr-x    4 root     staff          200 Aug 19 00:23 ../
-rw-r--r--    1 root     root         20137 Sep 13  2012 LICENSE
-rw-r--r--    1 root     root       6187414 Jul  4 13:58 UserManual.pdf
-rw-r--r--    1 root     root          5359 Sep 13  2012 VBox.png
-rwxr-xr-x    1 root     root          3246 Feb  8  2013 VBox.sh
-rwxr-xr-x    1 root     root          8040 Jul  4 14:33 VBoxAuth.so
-rwxr-xr-x    1 root     root         38288 Jul  4 14:33 VBoxAuthSimple.so
-rwxr-xr-x    1 root     root         98376 Jul  4 14:33 VBoxAutostart
-rwxr-xr-x    1 root     root        168424 Jul  4 14:33 VBoxBalloonCtrl
-rwxr-xr-x    1 root     root          1508 Feb  8  2013 VBoxCreateUSBNode.sh
-rwxr-xr-x    1 root     root       2443160 Jul  4 14:33 VBoxDD.so
-rwxr-xr-x    1 root     root        160528 Jul  4 14:33 VBoxDD2.so
-rw-r--r--    1 root     root         17268 Jul  4 14:33 VBoxDD2GC.gc
-rw-r--r--    1 root     root         23472 Jul  4 14:33 VBoxDD2R0.r0
-rw-r--r--    1 root     root        127840 Jul  4 14:33 VBoxDDGC.gc
-rw-r--r--    1 root     root        169448 Jul  4 14:33 VBoxDDR0.r0
-rwxr-xr-x    1 root     root        358992 Jul  4 14:33 VBoxDDU.so
-rwxr-xr-x    1 root     root        143608 Jul  4 14:33 VBoxDbg.so
-rwxr-xr-x    1 root     root         53752 Jul  4 14:33 VBoxDragAndDropSvc.so
-rw-r--r--    1 root     root       1048576 Jul  4 13:52 VBoxEFI32.fd
-rw-r--r--    1 root     root       1048576 Jul  4 13:53 VBoxEFI64.fd
-rwxr-xr-x    1 root     root         57560 Jul  4 14:33 VBoxExtPackHelperApp
-rwxr-xr-x    1 root     root         19872 Jul  4 14:33 VBoxGuestControlSvc.so
-rwxr-xr-x    1 root     root         38560 Jul  4 14:33 VBoxGuestPropSvc.so
-r-s--x--x    1 root     root         27912 Jul  4 14:33 VBoxHeadless
-rwxr-xr-x    1 root     root        163952 Jul  4 14:33 VBoxHeadless.so
-rwxr-xr-x    1 root     root         18312 Jul  4 14:33 VBoxHostChannel.so
-rwxr-xr-x    1 root     root         66072 Jul  4 14:33 VBoxKeyboard.so
-rwxr-xr-x    1 root     root       1091064 Jul  4 14:33 VBoxManage
-r-s--x--x    1 root     root         11264 Jul  4 14:33 VBoxNetAdpCtl
-r-s--x--x    1 root     root         27912 Jul  4 14:33 VBoxNetDHCP
-rwxr-xr-x    1 root     root         40872 Jul  4 14:33 VBoxNetDHCP.so
-rwxr-xr-x    1 root     root        158456 Jul  4 14:33 VBoxOGLhostcrutil.so
-rwxr-xr-x    1 root     root        153256 Jul  4 14:33 VBoxOGLhosterrorspu.so
-rwxr-xr-x    1 root     root        152832 Jul  4 14:33 VBoxOGLrenderspu.so
-rwxr-xr-x    1 root     root        281480 Jul  4 14:33 VBoxPython.so
-rwxr-xr-x    1 root     root        281552 Jul  4 14:33 VBoxPython2_3.so
-rwxr-xr-x    1 root     root        281552 Jul  4 14:33 VBoxPython2_4.so
-rwxr-xr-x    1 root     root        283984 Jul  4 14:33 VBoxPython2_5.so
-rwxr-xr-x    1 root     root        280688 Jul  4 14:33 VBoxPython2_6.so
-rwxr-xr-x    1 root     root        280688 Jul  4 14:33 VBoxPython2_7.so
-rwxr-xr-x    1 root     root        841968 Jul  4 14:33 VBoxREM.so
-rwxr-xr-x    1 root     root       4183152 Jul  4 14:33 VBoxRT.so
-r-s--x--x    1 root     root         27904 Jul  4 14:33 VBoxSDL
-rwxr-xr-x    1 root     root        241496 Jul  4 14:33 VBoxSDL.so
-rwxr-xr-x    1 root     root       3262000 Jul  4 14:33 VBoxSVC
-rwxr-xr-x    1 root     root         49480 Jul  4 14:33 VBoxSharedClipboard.so
-rwxr-xr-x    1 root     root        950304 Jul  4 14:33 VBoxSharedCrOpenGL.so
-rwxr-xr-x    1 root     root         40536 Jul  4 14:33 VBoxSharedFolders.so
-rwxr-xr-x    1 root     root          4161 Feb  8  2013 VBoxSysInfo.sh
-rwxr-xr-x    1 root     root         99624 Jul  4 14:33 VBoxTestOGL
-rwxr-xr-x    1 root     root          7792 Jul  4 14:33 VBoxTunctl
-rwxr-xr-x    1 root     root       2299720 Jul  4 14:33 VBoxVMM.so
-r-s--x--x    1 root     root          7048 Jul  4 14:33 VBoxVolInfo
-rwxr-xr-x    1 root     root       1451344 Jul  4 14:33 VBoxXPCOM.so
-rwxr-xr-x    1 root     root         65624 Jul  4 14:33 VBoxXPCOMC.so
-rwxr-xr-x    1 root     root         32896 Jul  4 14:33 VBoxXPCOMIPCD
-rw-r--r--    1 root     root        490368 Jul  4 14:33 VMMGC.gc
-rw-r--r--    1 root     root        726104 Jul  4 14:33 VMMR0.r0
-r-s--x--x    1 root     root         27912 Jul  4 14:33 VirtualBox
-rw-r--r--    1 root     root       4831681 Jul  4 13:58 VirtualBox.chm
-rwxr-xr-x    1 root     root       8592952 Jul  4 14:33 VirtualBox.so
drwxr-xr-x    2 root     root            60 Aug 19 00:23 accessible/
drwxr-xr-x    2 root     root            60 Aug 19 00:23 additions/
drwxr-xr-x    2 root     root           240 Aug 19 00:23 components/
drwxr-xr-x    2 root     root            60 Aug 19 00:23 helpers/
drwxr-xr-x   13 root     root           260 Aug 19 00:23 icons/
-rwxr-xr-x    1 root     root        441848 Jul  4 14:33 kchmviewer
-rwxr-xr-x    1 root     root       3673424 Jul  4 14:27 libQtCoreVBox.so.4
-rwxr-xr-x    1 root     root      13298664 Jul  4 14:27 libQtGuiVBox.so.4
-rwxr-xr-x    1 root     root       1356032 Jul  4 14:27 libQtNetworkVBox.so.4
-rwxr-xr-x    1 root     root       1165728 Jul  4 14:27 libQtOpenGLVBox.so.4
-rwxr-xr-x    1 root     root        197640 Jul  4 14:33 libvboxjxpcom.so
drwxr-xr-x    2 root     root           840 Aug 19 00:23 nls/
-rwxr-xr-x    1 root     root        269912 Jul  4 14:33 rdesktop-vrdp
drwxr-xr-x    2 root     root           840 Aug 19 00:23 rdesktop-vrdp-keymaps/
-rw-r--r--    1 root     root        982690 Jul  4 14:27 rdesktop-vrdp.tar.gz
-rwxr-xr-x    1 root     root         20079 Aug 19 00:23 routines.sh
drwxr-xr-x    2 root     root           120 Aug 19 00:23 scripts/
drwxr-xr-x    4 root     root            80 Aug 19 00:23 sdk/
drwxr-xr-x    3 root     root            60 Aug 19 00:23 src/
-rwxr-xr-x    1 root     root          5930 Aug 19 00:23 uninstall.sh
-rwxr-xr-x    1 root     root        115838 Sep 25  2012 vboxshell.py
-rwxr-xr-x    1 root     root      14217992 Jul  4 14:33 vboxwebsrv
-rw-r--r--    1 root     root           792 Jul  4 14:27 virtualbox.desktop
-rw-r--r--    1 root     root          2148 Sep 13  2012 virtualbox.xml
-rwxr-xr-x    1 root     root      10566064 Jul  4 14:33 webtest

Maybe someone can help me to point me in the right direction, because at the moment I'm totally lost.

The reason I am doing this is because I need virtualization solution, that will work under Corepure64 and has a good GUI interaction (besides >4GB support). I know that there is also KVM + AQEMU (better overall performance: http://www.phoronix.com/scan.php?page=article&item=ubuntu_1204_virt&num=1), but Virtualbox has slightly better graphic support and this is important for me (incl. multiple screen). For a server KVM is a must though.

Anyway, is it possible to get the latest Virtualbox installed under Corepure64? I'm willing to learn anything, to get it done.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10701
Re: Corepure64 with virtualbox 64bit
« Reply #1 on: August 19, 2013, 01:31:33 AM »
Take a look at the deps of the 32-bit vbox extension: ftp://ftp.nluug.nl/pub/metalab/distributions/tinycorelinux/4.x/x86/tcz/virtualbox-ose.tcz.dep

It's likely you should also load those for the 64-bit version.
The only barriers that can stop you are the ones you create yourself.

Offline virtualbox

  • WikiUser
  • *
  • Posts: 21
Re: Corepure64 with virtualbox 64bit
« Reply #2 on: August 19, 2013, 02:40:55 AM »
Thank you for the answer.

Good point, I don't know why I didn't figure this out by myself to check 32-bit deps.

I also found this thread...
http://forum.tinycorelinux.net/index.php/topic,1761.msg27398.html
...which is quite related to my goal and problems I'm getting.

From Virtualbox manual:
https://www.virtualbox.org/manual/ch02.html#install-linux-host
Quote
You will need to install the following packages on your Linux system before starting the installation (some systems will do this for you automatically when you install VirtualBox):

    Qt 4.4.0 or higher;

    SDL 1.2.7 or higher (this graphics library is typically called libsdl or similar).

Note

To be precise, these packages are only required if you want to run the VirtualBox graphical user interfaces. In particular, VirtualBox, the graphical VirtualBox manager, requires both Qt and SDL; VBoxSDL, our simplified GUI, requires only SDL. By contrast, if you only want to run VBoxHeadless, neither Qt nor SDL are required.


I will try to load those extensions and hopefully get Virtualbox up and running.

I did a quick lookup and following required extensions are in x86_64 repo:

libasound.tcz
libxslt.tcz
curl.tcz
openssl-1.0.0.tcz
python.tcz
eglibc_apps.tcz

...and following are not:

libvncserver.tcz
libcap.tcz
libIDL.tcz
SDL.tcz
qt-4.x-xml.tcz
qt-4.x-opengl.tcz
procps.tcz

So my P1 is to build QT (working on this at the moment) and SDL myself.