Running virtualbox on linode?

Hi,

Does anyone know if it's possible to run vitualbox on linode?

15 Replies

@jiwhang:

Hi,

Does anyone know if it's possible to run vitualbox on linode?
No you can't Linode is a VPS "Virtual Private Server" you can't run "Virtualbox" in Linode

You can't? From looking at the SlackBuild for VirtualBox, it looks like it just uses a kernel module on the host, so I don't see why it wouldn't run under Xen.

Correct me if I'm wrong but doesn't it have it's own kernel mod's like vboxdrv?

Besides even attempting to run a VM under a VM is ….. well … we'll leave it at that. ;)

@marcus0263:

Correct me if I'm wrong but doesn't it have it's own kernel mod's like vboxdrv?
@mwalling:

it looks like it just uses a kernel module on the host

By host in this context, I meant your Linode, since that is the host for vbox.

@mwalling:

@marcus0263:

Correct me if I'm wrong but doesn't it have it's own kernel mod's like vboxdrv?
@mwalling:

it looks like it just uses a kernel module on the host

By host in this context, I meant your Linode, since that is the host for vbox.
Exactly, you have to use Linode's Kernel and again correct me if I'm wrong but you "can't" load any kernel modules with Linode.

So you can't load up the vboxdrv kernel module ;)

Xen linodes can load kernel modules.

I don't know if vbox will work in xen though. Worth a try, I guess.

From http://www.linode.com/forums/viewtopic. … 3196#13196">http://www.linode.com/forums/viewtopic.php?p=13196#13196
@caker:

What is Xen, you ask? Xen is a virtualization technology that provides a few benefits over User Mode Linux, namely: performance, the ability to have SMP Linodes, and kernel modules.

From http://www.linode.com/forums/viewtopic. … 4043#14043">http://www.linode.com/forums/viewtopic.php?p=14043#14043
@caker:

Last night I released a new Xen kernel, 2.6.18.8-domU-linode5, which "Latest 2.6" now points to. It's built from the latest stable Xen tree (Xen 3.2.0), and does have module support enabled. Most likely you'll need to source to this tree to build modules – so I'll make that available soon.

MMM I could have swore that was one of the restrictions with Linode was no Kernel Mod's ….

Anyway back to the point, running a VM in a VM? Really …. :roll:

From the thread

@caker:

Last night I released a new Xen kernel, 2.6.18.8-domU-linode5, which "Latest 2.6" now points to. It's built from the latest stable Xen tree (Xen 3.2.0), and does have module support enabled. Most likely you'll need to source to this tree to build modules – so I'll make that available soon.

As far as custom kernels and other weird things: I do see support in the future, but I want to get to a point where the platform is stable first.

-Chris

I think that falls well into that category ;)

@marcus0263:

MMM I could have swore that was one of the restrictions with Linode was no Kernel Mod's ….
That was (is) the case with UML-based linodes, but no longer with nodes that have been created on (or migrated to) Xen.

Hi, I'm trying to run Vbox.

I'm using Ubuntu Server Image from linode, i downloaded VirtualBoxOSE2.0.4 and compiled it.

The kernel i used 2.6.18.8-linode10.tar.bz2

In order to enable load vboxdrv module i download kernel source from http://linode.com/src/

Untar in /usr/src/linux

copied kernel config from /proc/config.gz gunziped and moved to .conf in the kernel

then builded kernel modules and installed

sudo make modules

sudo make modueles_install

The vboxdrv magic differs with the gcc version, but forcing module should work, but gives the error

vboxdrv: Unknown symbol registercpunotifie

Reading in vbox forums

registercpunotifier is part of the SMP support in the Linux kernel. I guess that this is missing from the VectorLinux 2.6.20 kernel.

But is clear that linode kernel enable SMP in the kernels.

I'm trying to do this with a newer kernel version from linode.

I hope do a guide howto vbox linode soon

=P

hi

Finally i get it.

Just do what i tell.

I tried with the 2.6.26.lino13 version and WORKS, i recompiled the vboxdrv module, and now i'm running Vbox !!

At nigth i'll post a full howto

When i try to run the virtualmachine i get this error

invalid opcode: 0000 [#1] SMP

Modules linked in: vboxdrv(F)

Pid: 4336, comm: VirtualBox Tainted: GF (2.6.26-linode13 #1)

EIP: 0061:[] EFLAGS: 00010246 CPU: 0

EIP is at 0xd7250172

EAX: 00000000 EBX: d7228000 ECX: 00000000 EDX: 00000000

ESI: 0abde000 EDI: 00000000 EBP: ca831eb8 ESP: ca831ce8

DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0069

Process VirtualBox (pid: 4336, ti=ca830000 task=cb05d400 task.ti=ca830000)

Stack: 0abde000 00000000 d7228000 00000000 00001000 cccaf4d4 fd2f06c6 002b5384

00002620 00000000 00000005 00000000 00000005 00000000 00000000 00000000

00000000 00000041 0000002c 00000000 000027ff 00000000 00002000 00000000

Call Trace:

[] supdrvIOCtl+0x15fc/0x1ac0 [vboxdrv]

[] supdrvIOCtl+0x164b/0x1ac0 [vboxdrv]

[] rtMemAlloc+0x78/0x90 [vboxdrv]

[] vmalloc+0x31/0x40

[] rtMemAlloc+0x78/0x90 [vboxdrv]

[] rtMemAlloc+0x78/0x90 [vboxdrv]

[] VBoxDrvLinuxIOCtl+0xff/0x1c0 [vboxdrv]

[] VBoxDrvLinuxIOCtl+0x0/0x1c0 [vboxdrv]

[] vfs_ioctl+0x2b/0xa0

[] do_IRQ+0x40/0x80

[] dovfsioctl+0x5c/0x2c0

[] sys_ioctl+0x68/0x80

[] syscall_call+0x7/0xb

=======================

Code: 89 95 54 fe ff ff 31 d2 89 d1 25 00 20 00 00 09 c1 75 0c 8b 85 50 fe ff ff 80 cc 20 0f 22 e0 89 fa 89 f0 31 c9 89 d0 31 d2 50 56 0f c7 34 24 77 0e 74 07 b9 5e f0 ff ff eb 05 b9 5d f0 ff ff

EIP: [] 0xd7250172 SS:ESP 0069:ca831ce8

–-[ end trace a58d89095bf664fd ]–-

And no more…

Are you trying to run virtualbox on your linode, or on your own machine? It won't run on linode; virtual on virtual doesn't work too well :-)

Most hypervisors or virtualzation products need to make ring 0 (aka hardware) calls. Xen kernels are special kernels that have all the ring 0 calls replaced with Xen hypervisor calls (because a VM can't make a ring 0 call, only the Xen hypervisor can).

Unless the virtualbox kernel module has specifically been written to either not require ring 0 calls, or to replace those ring 0 calls with Xen hypervisor calls when running on Xen, then virtualbox won't be able to run on a Xen kernel.

Thanks for the reply…

Now i have to think in other idea to solve my problem.

My problem is that i need to install SPSSv16 Linux, in the server. To add a license a need a graphical enviroment, i used FreeNX. But SPSS detect FreeNX as NT Terminal Server and my license don't support that feature.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct