Linode.com Forum Forum Index Linode.com Forum
Linode Community Forums
 


Running virtualbox on linode?

Click here to go to the original topic
Goto page 1, 2  Next
 
       Linode.com Forum Forum Index -> General Discussion
Author Message
jiwhang



Joined: 08 Aug 2008
Posts: 1

Posted: Fri Aug 08, 2008 5:19 am    Post subject: Running virtualbox on linode?  

Hi,
Does anyone know if it's possible to run vitualbox on linode?
Back to top  
marcus0263



Joined: 21 Jul 2008
Posts: 77
Location: Seattle

Posted: Fri Aug 08, 2008 10:13 am    Post subject: Re: Running virtualbox on linode?  

jiwhang wrote: 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
Back to top  
mwalling



Joined: 10 Dec 2007
Posts: 142

Posted: Fri Aug 08, 2008 10:16 am    Post subject:  

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.
Back to top  
marcus0263



Joined: 21 Jul 2008
Posts: 77
Location: Seattle

Posted: Fri Aug 08, 2008 10:29 am    Post subject:  

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. ;)
Back to top  
mwalling



Joined: 10 Dec 2007
Posts: 142

Posted: Fri Aug 08, 2008 11:57 am    Post subject:  

marcus0263 wrote: Correct me if I'm wrong but doesn't it have it's own kernel mod's like vboxdrv?
mwalling wrote: 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.
Back to top  
marcus0263



Joined: 21 Jul 2008
Posts: 77
Location: Seattle

Posted: Fri Aug 08, 2008 12:19 pm    Post subject:  

mwalling wrote: marcus0263 wrote: Correct me if I'm wrong but doesn't it have it's own kernel mod's like vboxdrv?
mwalling wrote: 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 ;)
Back to top  
bdonlan



Joined: 22 Jan 2008
Posts: 70

Posted: Fri Aug 08, 2008 1:15 pm    Post subject:  

Xen linodes can load kernel modules.

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



Joined: 10 Dec 2007
Posts: 142

Posted: Fri Aug 08, 2008 2:41 pm    Post subject:  

From http://www.linode.com/forums/viewtopic.php?p=13196#13196
caker wrote: 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.php?p=14043#14043
caker wrote: 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.
Back to top  
marcus0263



Joined: 21 Jul 2008
Posts: 77
Location: Seattle

Posted: Fri Aug 08, 2008 7:08 pm    Post subject:  

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 wrote: 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 ;)
Back to top  
anderiv



Joined: 27 Apr 2004
Posts: 129

Posted: Sat Aug 09, 2008 10:20 am    Post subject:  

marcus0263 wrote: 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.
Back to top  
neoecos



Joined: 29 Oct 2008
Posts: 4

Posted: Wed Oct 29, 2008 1:38 pm    Post subject: Vbox  

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 register_cpu_notifie

Reading in vbox forums
register_cpu_notifier 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
Back to top  
neoecos



Joined: 29 Oct 2008
Posts: 4

Posted: Wed Oct 29, 2008 1:54 pm    Post subject: IS DONE !!!! WORKS  

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[/u]
Back to top  
neoecos



Joined: 29 Oct 2008
Posts: 4

Posted: Wed Oct 29, 2008 5:40 pm    Post subject: Not working at all.  

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:[<d7250172>] 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:
[<d723d67c>] supdrvIOCtl+0x15fc/0x1ac0 [vboxdrv]
[<d723d6cb>] supdrvIOCtl+0x164b/0x1ac0 [vboxdrv]
[<d723f588>] rtMemAlloc+0x78/0x90 [vboxdrv]
[<c0173b21>] vmalloc+0x31/0x40
[<d723f588>] rtMemAlloc+0x78/0x90 [vboxdrv]
[<d723f588>] rtMemAlloc+0x78/0x90 [vboxdrv]
[<d72391af>] VBoxDrvLinuxIOCtl+0xff/0x1c0 [vboxdrv]
[<d72390b0>] VBoxDrvLinuxIOCtl+0x0/0x1c0 [vboxdrv]
[<c018c09b>] vfs_ioctl+0x2b/0xa0
[<c010a140>] do_IRQ+0x40/0x80
[<c018c16c>] do_vfs_ioctl+0x5c/0x2c0
[<c018c438>] sys_ioctl+0x68/0x80
[<c0107256>] 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 <f3> 0f c7 34 24 77 0e 74 07 b9 5e f0 ff ff eb 05 b9 5d f0 ff ff
EIP: [<d7250172>] 0xd7250172 SS:ESP 0069:ca831ce8
---[ end trace a58d89095bf664fd ]---

And no more...
Back to top  
sweh



Joined: 13 Apr 2004
Posts: 232

Posted: Wed Oct 29, 2008 9:14 pm    Post subject:  

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 :-)
Back to top  
cburgess



Joined: 06 Sep 2008
Posts: 16
Location: Los Angeles, CA

Posted: Wed Oct 29, 2008 9:56 pm    Post subject:  

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.
Back to top  
 
       Linode.com Forum Forum Index -> General Discussion Goto page 1, 2  Next
Page 1 of 2