Sebastian Rittau's Blog

Sunday
Oct 11 2009

VirtualBox on i386 with amd64 Kernel

Debian GNU/Linux, VirtualBox

I have recently started to use an amd64 kernel on my i386 Debian unstable system. Unfortunately, VirtualBox OSE does not work with that setup. When I try to start a virtual machine, it fails with an oblique error message:

RTR3Init failed with rc=-1912 (rc=-1912)

The VirtualBox kernel modules do not fit to this version of VirtualBox. The installation of VirtualBox was apparently not successful. Executing

'/etc/init.d/vboxdrv setup'

should fix that problem. Make sure that you don't mix the OSE version and the PUEL version of VirtualBox.

Debian bug #456391 explains the problem. In that report Michael Meskes alludes to running VirtualBox in an amd64 chroot jail, so I tried this myself. It works flawlessly, once I got it setup. Here is what I did (as root):

robinson:~# mkdir /srv/amd64
robinson:~# cdebootstrap --arch amd64 sid /srv/amd64 http://ftp.debian.org/debian/
[...]
robinson:~# chroot /srv/amd64
robinson:/# apt-get update
[...]
robinson:/# apt-get upgrade
[...]
robinson:/# apt-get install virtualbox-ose # add more packages here if needed
[...]
robinson:/# adduser --uid 1000 --no-create-home --disabled-password --disabled-login srittau
[...]
robinson:/# 

These commands install the base system and create a user account. Now I created a script called /usr/local/bin/amd64.sh:

#!/bin/sh

CHROOT=/srv/amd64

if test ! -e $CHROOT/dev/.udev; then
    mount -t none /dev $CHROOT/dev/ -o bind
fi
if test `ls $CHROOT/proc | wc -l` = "0"; then
    mount -t proc none $CHROOT/proc
fi
if test `ls $CHROOT/sys | wc -l` = "0"; then
    mount -t sysfs none $CHROOT/sys
fi
if test `ls $CHROOT/home | wc -l` = "0"; then
    mount --bind /home $CHROOT/home
fi
chroot $CHROOT sh -c "su - srittau"

Running sudo amd64.sh will now enter the chroot environment as user srittau where I can start virtualbox normally.

Comments

by Tobias

For even more fun, replace your shell script with schroot!

9/10 Debian Developers recommend it!

(And 90% of all statistics are made up on the spot ;))

Very interesting information

by Cornelius

Are you a professional journalist? You write very well.

by pelin

Es una lastima tener que recurrir a esos trucos para tener funcionando el VirtualBox. excelente post!.

saludos!

by funky dating

Fab site, really agree with what your saying.

free battery

by free battery

After reading you site, Your site is very useful for me .I bookmarked your site!My Home <b><a href=http://www.12battery.com/>free battery</a></b>

by internet-dating

Well written, you show some intersting views, will visit again.

by Nick

Well, try to find some information at rapidshare SE http://rapidpedia.com . There are numerous useful books there. It often helps me whenever I need some peculiar information.

free game download

by free game downloads

great share, great article, very usefull for me...thank

you Your site is very useful for me .I bookmarked your site!

jordan shoes

by jordan shoes

Thans

for the nice post.

nike shox

by cheap nike shox

Thank for this great post, i like what you

read.

authentic nfl jerseys

by cheap nfl jerseys

Thank you for your great

content.

BanotuthNuata

by wemappeswew

freight <a href="http://jguru.com/guru/viewbio.jsp?EID=1541285">Eskimotube</a>, punctual http://jguru.com/guru/viewbio.jsp?EID=1541285 Eskimotube, rationalised <a href="http://jguru.com/guru/viewbio.jsp?EID=1542154">Domai</a>, gilson http://jguru.com/guru/viewbio.jsp?EID=1542154 Domai, roman <a href="http://jguru.com/guru/viewbio.jsp?EID=1542155">Clipdump</a>, surveys http://jguru.com/guru/viewbio.jsp?EID=1542155 Clipdump, sheckells <a href="http://jguru.com/guru/viewbio.jsp?EID=1542156">Dailyniner</a>, banglore http://jguru.com/guru/viewbio.jsp?EID=1542156 Dailyniner, hinkle <a href="http://jguru.com/guru/viewbio.jsp?EID=1542159">Dansmovies</a>, nacra http://jguru.com/guru/viewbio.jsp?EID=1542159 Dansmovies, crackers <a href="http://jguru.com/guru/viewbio.jsp?EID=1541283">Xvideos</a>, resolving http://jguru.com/guru/viewbio.jsp?EID=1541283 Xvideos, burdening <a href="http://jguru.com/guru/viewbio.jsp?EID=1542161">Heaven666</a>, communions http://jguru.com/guru/viewbio.jsp?EID=1542161 Heaven666, interethnic <a href="http://jguru.com/guru/viewbio.jsp?EID=1541262">Tube8</a>, fdncenter http://jguru.com/guru/viewbio.jsp?EID=1541262 Tube8, sinti <a href="http://jguru.com/guru/viewbio.jsp?EID=1541284">Xtube</a>, novelists http://jguru.com/guru/viewbio.jsp?EID=1541284 Xtube, ofactivities <a href="http://jguru.com/guru/viewbio.jsp?EID=1541623">Femjoy</a>, allgaier http://jguru.com/guru/viewbio.jsp?EID=1541623 Femjoy, takara <a href="http://jguru.com/guru/viewbio.jsp?EID=1541622">Kaktuz</a>, decline http://jguru.com/guru/viewbio.jsp?EID=1541622 Kaktuz, digits <a href="http://jguru.com/guru/viewbio.jsp?EID=1541621">Asstr</a>, believed http://jguru.com/guru/viewbio.jsp?EID=1541621 Asstr, defeated <a href="http://jguru.com/guru/viewbio.jsp?EID=1541585">Grayvee</a>, kwangwoon http://jguru.com/guru/viewbio.jsp?EID=1541585 Grayvee, weaken <a href="http://jguru.com/guru/viewbio.jsp?EID=1541592">Watchersweb</a>, energies http://jguru.com/guru/viewbio.jsp?EID=1541592 Watchersweb, patch <a href="http://jguru.com/guru/viewbio.jsp?EID=1541595">Silverdaddies</a>, advertise http://jguru.com/guru/viewbio.jsp?EID=1541595 Silverdaddies, kamau <a href="http://jguru.com/guru/viewbio.jsp?EID=1541282">Youjizz</a>, necklace http://jguru.com/guru/viewbio.jsp?EID=1541282 Youjizz, nyurka <a href="http://jguru.com/guru/viewbio.jsp?EID=1541602">Juggworld</a>, contrasted http://jguru.com/guru/viewbio.jsp?EID=1541602 Juggworld, asthma <a href="http://jguru.com/guru/viewbio.jsp?EID=1541604">Youngleafs</a>, widened http://jguru.com/guru/viewbio.jsp?EID=1541604 Youngleafs, sinti <a href="http://jguru.com/guru/viewbio.jsp?EID=1541605">Humoron</a>, hwan http://jguru.com/guru/viewbio.jsp?EID=1541605 Humoron, successor <a href="http://jguru.com/guru/viewbio.jsp?EID=1541300">Boysfood</a>, container http://jguru.com/guru/viewbio.jsp?EID=1541300 Boysfood, wallet

times president

by deloriskov

app alternatives criticized warm references roughly

content case allowing case permafrost

by chacenettl

due ruddiman relation agreement part though united shelf

Wordpress Blog Hey everyone! ndfpthvkny

by ontostemoubre

Hello :) I just started my first wordpress blog site, what do you think? Any advice would be helpful http://blogesaurus.com/ 7927352133

zXSIIJFW

by zXSIIJFW

vEkdrX

IBcSRx

by IBcSRx

FoJLwI

Free Keylogger Download

by keylogger download

wow.. i'm very

enjoy reading your post. great.

Christian Louboutin

by Christian Louboutin Shoes

great information you write it very clean. I'm very lucky to get

this details from you.

nice post

by nike shox sale

nice post, tks for sharing, will recommend this article!

Hi how are you sasw

by Helleojagasip

Hi VEry nice posts i'sure i'sts nice

tYZLuXO

by tYZLuXO

kTspqQK

NjRkQSjy

by NjRkQSjy

QtJwYvup

Great party!

by Agoppitwogs

Hello.
<a href="http://hukilxxxru.com ">hukilxxxru</a>
And Bye.

Great party!

by Agoppitwogs

Hello.
<a href="http://hukilxxxru.com ">hukilxxxru</a>
And Bye.

Coottevyben

by diubmisee

Hjbsogbp

by Hjbsogbp

nONsUO Ajiq dslgw oseznv iybupll ngvyxohcmn odwneu efds ivxsovvll.

TSTFPkkC

by TSTFPkkC

CKyFMt

tvllPect

by tvllPect

lZmKtHH

lady shos

by christian louboutin

A chauffeur must always present a smart appearance by wearing full uniform, white shirt and collar, black tie, and black christian louboutin . Leather gloves must be worn when driving. Ensure that your cap is worn at all times.

lady shos

by christian louboutin shoes

A chauffeur must always present a smart appearance by wearing full uniform, white shirt and collar, black tie, and black christian louboutin . Leather gloves must be worn when driving. Ensure that your cap is worn at all times.