× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

Running VirtualBox VM host on ReadyNAS Pro

WhoCares_
Mentor

Re: Running VirtualBox VM host on ReadyNAS Pro

Neither, you'll have to build from source.
The ReadyNAS firmware is built on etch but with some updated packages from Lenny thrown in. So chances are you won't be able to use any external .deb packages without major modification to the ReadyNAS base system.

-Stefan
Message 226 of 442
sphardy1
Apprentice

Re: Running VirtualBox VM host on ReadyNAS Pro

So - I finally got around to reinstalling VB on my Ultra-4.

Here are the steps I used to install the 64 bit version of VB 3.2.8 under RAIDiator 4.2.13 - all worked perfectly first time (though hope I haven't forgotten to copy/paste something)

cd /c/backup

apt-get update
apt-get install build-essential amd64-libs lib64stdc++6 bzip2 lib64z1 lzma
apt-get --reinstall install libc6-amd64

wget -q http://www.readynas.com/download/GPL/RNDP6xxx_4.2.13_WW_src.zip
unzip -q RNDP6xxx_4.2.13_WW_src.zip -d ./GPL
cd GPL/linux-2.6.33.6
make ARCH=x86_64
make prepare
ln -s /c/backup/GPL/linux-2.6.33.6 /usr/src/linux
export KERN_DIR=/usr/src/linux

wget -q http://download.virtualbox.org/virtualbox/3.2.8/VirtualBox-3.2.8-64453-Linux_amd64.run
chmod 755 VirtualBox-3.2.8-64453-Linux_amd64.run
./VirtualBox-3.2.8-64453-Linux_amd64.run

/etc/init.d/vboxdrv start


Hopefully a clean start for those still trying to get this working
Message 227 of 442
alouch47
Guide

Re: Running VirtualBox VM host on ReadyNAS Pro

WhoCares? wrote:
Neither, you'll have to build from source.
-Stefan


Cool. Thanks for the info.
Now it runs perfect 🙂
Message 228 of 442
bartw
Aspirant

Re: Running VirtualBox VM host on ReadyNAS Pro

I would like to throw in a wild question in here ... if the answer is "yes" I'll open a separate topic on it ...

On a Pro, running Virtual Box, running Opensolaris, using ZFS ... would deduplication be supported /working (possibly given enough memory is installed) ?
Message 229 of 442
WhoCares_
Mentor

Re: Running VirtualBox VM host on ReadyNAS Pro

Well, the general answer is: Yes, it should. But whether it really works or not you'll have to try for yourself. But since in this scenario OpenSolaris would be the guest machine I see no special benefit in using dedup there.

-Stefan
Message 230 of 442
bartw
Aspirant

Re: Running VirtualBox VM host on ReadyNAS Pro

Not intending to hijack this topic, so this is where I will refer to for the follow-up.

viewtopic.php?f=65&t=45591
Message 231 of 442
chirpa
Luminary

Re: Running VirtualBox VM host on ReadyNAS Pro

VirtualBox 3.2.10 is out: http://www.virtualbox.org/wiki/Changelog
Message 232 of 442
sphardy1
Apprentice

Re: Running VirtualBox VM host on ReadyNAS Pro

Just updated to 3.2.10 on my Ultra-4 - update went fine.

I have seen the following issue - so hopefully solved in this release as the change log claims:
VBoxHeadless: fixed event queue processing problems which led to hangs if the VM could not be started successfully


Also noticed there is a new startup script included for vboxwebsrv (/etc/init.d/vboxweb-service) To get it to work however, needed to define the user vboxdrv runs as in /etc/vbox/vbox.cfg - just add the line:
VBOXWEB_USER='root'
Message 233 of 442
borrisl
Aspirant

Re: Running VirtualBox VM host on ReadyNAS Pro

Sorry to ask. Newbie question coming through.

I complied the modules manually. How does one update the VirtualBox installation afterwards?
Message 234 of 442
WhoCares_
Mentor

Re: Running VirtualBox VM host on ReadyNAS Pro

In a nutshell: shut down all running virtual machines, shut down VirtualBox, download the new version of VirtualBox, install and compile the drivers as you did with the old version, restart VirtualBox, restart virtual machines.

-Stefan
Message 235 of 442
sphardy1
Apprentice

Re: Running VirtualBox VM host on ReadyNAS Pro

sphardy wrote:
Just updated to 3.2.10 on my Ultra-4 - update went fine.

Upgraded to 4.2.15, recompiled kernel modules & all appears fine also
Message 236 of 442
horim80
Guide

Re: Running VirtualBox VM host on ReadyNAS Pro

Hi, all

I have installed the VB 4.0.0 on Pro6. (RAIDiator 4.2.15)
Then finished the few jobs by VBoxManage.

VBoxManage createvm --name "WinXP" --ostype "WindowsXP" --register --basefolder /c/backup/virtualbox/machines

VBoxManage createhd --filename "/c/backup/virtualbox/virtual_hdd/ WinXP" --size 5000

VBoxManage storagectl WinXP --name "IDE Controller" --add ide

VBoxManage storagectl WinXP --name "SATA Controller" --add sata

VBoxManage storageattach WinXP --storagectl "IDE Controller" --port 0 --device 0 --type dvddrive --medium "/c/backup/WinXP.iso"

VBoxManage storageattach WinXP --storagectl "SATA Controller" --port 0 --device 0 --type hdd --medium "/c/backup/virtualbox/virtual_hdd/ WinXP.vdi"

VBoxManage modifyvm WinXP --memory 512 --nic1 bridged --bridgeadapter1 eth0 --boot1 dvd --boot2 none --boot3 none --boot4 none

VBoxHeadless --startvm WinXP --vrdp on &


But I can't access the VM via MS remote desktop client.
What things should I check for resolve this problem?

Any advice will be appreciated.

Thanks.
Message 237 of 442
alouch47
Guide

Re: Running VirtualBox VM host on ReadyNAS Pro

hi,
quick reply here.

I think that by default, the Vm rdp port is @8888
so you should try to connect to : ip_of_vm:8888
Keep us posted if it's ok or not
Message 238 of 442
horim80
Guide

Re: Running VirtualBox VM host on ReadyNAS Pro

alouch47 wrote:
hi,
quick reply here.

I think that by default, the Vm rdp port is @8888
so you should try to connect to : ip_of_vm:8888
Keep us posted if it's ok or not


I tried to connect VM use port 8888 but failed..
Any more advice?
Message 239 of 442
alaeth
Aspirant

Re: Running VirtualBox VM host on ReadyNAS Pro

sphardy wrote:
So - I finally got around to reinstalling VB on my Ultra-4.

Here are the steps I used to install the 64 bit version of VB 3.2.8 under RAIDiator 4.2.13 - all worked perfectly first time (though hope I haven't forgotten to copy/paste something)

cd /c/backup

apt-get update
apt-get install build-essential amd64-libs lib64stdc++6 bzip2 lib64z1 lzma
apt-get --reinstall install libc6-amd64

wget -q http://www.readynas.com/download/GPL/RNDP6xxx_4.2.13_WW_src.zip
unzip -q RNDP6xxx_4.2.13_WW_src.zip -d ./GPL
cd GPL/linux-2.6.33.6
make ARCH=x86_64
make prepare
ln -s /c/backup/GPL/linux-2.6.33.6 /usr/src/linux
export KERN_DIR=/usr/src/linux

wget -q http://download.virtualbox.org/virtualbox/3.2.8/VirtualBox-3.2.8-64453-Linux_amd64.run
chmod 755 VirtualBox-3.2.8-64453-Linux_amd64.run
./VirtualBox-3.2.8-64453-Linux_amd64.run

/etc/init.d/vboxdrv start


Hopefully a clean start for those still trying to get this working

Your instructions worked flawlessly, thank you!
Message 240 of 442
alaeth
Aspirant

Re: Running VirtualBox VM host on ReadyNAS Pro

horim80 wrote:
alouch47 wrote:
hi,
quick reply here.

I think that by default, the Vm rdp port is @8888
so you should try to connect to : ip_of_vm:8888
Keep us posted if it's ok or not


I tried to connect VM use port 8888 but failed..
Any more advice?

I think the default RDP port is 3389. If you have a Windows system, just connect to the NAS IP, not the IP of the VM (although I'm sure that should work too if it's a Windows VM).

For example, I ran:
$ VBoxHeadless --startvm "WinXP"
Oracle VM VirtualBox Headless Interface 3.2.8
(C) 2008-2010 Oracle Corporation
All rights reserved.

Listening on port 3389.


and connected with Windows RDP with <readynas ip>
Message 241 of 442
horim80
Guide

Re: Running VirtualBox VM host on ReadyNAS Pro

alaeth wrote:
horim80 wrote:
alouch47 wrote:
hi,
quick reply here.

I think that by default, the Vm rdp port is @8888
so you should try to connect to : ip_of_vm:8888
Keep us posted if it's ok or not


I tried to connect VM use port 8888 but failed..
Any more advice?

I think the default RDP port is 3389. If you have a Windows system, just connect to the NAS IP, not the IP of the VM (although I'm sure that should work too if it's a Windows VM).

For example, I ran:
$ VBoxHeadless --startvm "WinXP"
Oracle VM VirtualBox Headless Interface 3.2.8
(C) 2008-2010 Oracle Corporation
All rights reserved.

Listening on port 3389.


and connected with Windows RDP with <readynas ip>


I have reinstalled the VB 3.2.8 then it works perfectly.
In VB 4.0, when I enter the 'VBoxHeadless --startvm' command, "Listening on port 3389" is doesn't appeared.
I guess VB 4.0 is not compatible with RADIator 4.2.15 yet. Specially network adapter..

Thanks.
Message 242 of 442
jmalmlund
Aspirant

Re: Running VirtualBox VM host on ReadyNAS Pro

For those who like me update to VirtualBox 4.0.x, remember that Oracle have change how VBox is packaged and distributed (all binaries are now GPLv2 and no longer ships with VRDP support built in).

This is what I did to install and run 4.0.2 (slightly adopted for easier copy and paste of my commands) and remember that if you log in as root (you really shouldn't) you can skip the 'sudo' part of all the listed commands.

sudo apt-get update
sudo apt-get install build-essential amd64-libs lib64stdc++6 bzip2 lib64z1 lzma
sudo apt-get --reinstall install libc6-amd64

wget -q http://www.readynas.com/download/GPL/RNDP6xxx_4.2.15_WW_src.zip
unzip -q RNDP6xxx_4.2.15_WW_src.zip "linux-2.6.33.7/*"
sudo ln -sn `pwd`/linux-2.6.33.7 /usr/src/linux
cd linux-2.6.33.7
make ARCH=x86_64
make prepare

cd ..
wget -q http://download.virtualbox.org/virtualbox/4.0.2/VirtualBox-4.0.2-69518-Linux_amd64.run
wget -q http://download.virtualbox.org/virtualbox/4.0.2/Oracle_VM_VirtualBox_Extension_Pack-4.0.2-69518.vbox-extpack
chmod 755 VirtualBox-4.0.2-69518-Linux_amd64.run
sudo ./VirtualBox-4.0.2-69518-Linux_amd64.run
sudo /usr/bin/VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.0.2-69518.vbox-extpack

Note that it's the extpack that contains the RDP module...

I won't repeat instructions on how to do a basic setup of a virtual machine, only the additions/changes needed for VBox 4.0

VBoxManage modifyvm <uuid|name> --vrde on --vrdeaddress <host ip> --vrdeport <port for RDP>

After this all that's needed to start is

VBoxHeadless --startvm <uuid|name> &

Or if you don't want to configure your machines with static ip/ports for RDP use

VBoxHeadless --startvm <uuid|name> --vrde on --vrdeaddress <host ip> --vrdeport <port for RDP> &


Edit: Added an '&' to the start command to put the process in the background and returning you to the prompt, which enables you to logout and disconnect your ssh session.
Message 243 of 442
fbmachines
Guide

Running VirtualBox VM host on ReadyNAS Pro

SSH newb question...

Do I have to keep the SSH client open the whole time a VM is running?

When I close putty, my VM closes. Anyway around this?

Thanks.
Message 244 of 442
jmalmlund
Aspirant

Re: Running VirtualBox VM host on ReadyNAS Pro

fbmachines wrote:
SSH newb question...

Do I have to keep the SSH client open the whole time a VM is running?

When I close putty, my VM closes. Anyway around this?

Thanks.


Edited my start command in the previous post.. you just need to add an '&' to the end of the start command to put the VBox process into the background allowing you to disconnect your ssh session.
Message 245 of 442
horim80
Guide

Re: Running VirtualBox VM host on ReadyNAS Pro

jmalmlund wrote:
For those who like me update to VirtualBox 4.0.x, remember that Oracle have change how VBox is packaged and distributed (all binaries are now GPLv2 and no longer ships with VRDP support built in).

This is what I did to install and run 4.0.2 (slightly adopted for easier copy and paste of my commands) and remember that if you log in as root (you really shouldn't) you can skip the 'sudo' part of all the listed commands.

apt-get update
apt-get install build-essential amd64-libs lib64stdc++6 bzip2 lib64z1 lzma
apt-get --reinstall install libc6-amd64

wget -q http://www.readynas.com/download/GPL/RNDP6xxx_4.2.15_WW_src.zip
unzip -q RNDP6xxx_4.2.15_WW_src.zip "linux-2.6.33.7/*"
sudo ln -sn `pwd`/linux-2.6.33.7 /usr/src/linux
cd linux-2.6.33.7
make ARCH=x86_64
make prepare

cd ..
wget -q http://download.virtualbox.org/virtualbox/4.0.2/VirtualBox-4.0.2-69518-Linux_amd64.run
wget -q http://download.virtualbox.org/virtualbox/4.0.2/Oracle_VM_VirtualBox_Extension_Pack-4.0.2-69518.vbox-extpack
chmod 755 VirtualBox-4.0.2-69518-Linux_amd64.run
sudo ./VirtualBox-4.0.2-69518-Linux_amd64.run
sudo /usr/bin/VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.0.2-69518.vbox-extpack

Note that it's the extpack that contains the RDP module...

I won't repeat instructions on how to do a basic setup of a virtual machine, only the additions/changes needed for VBox 4.0

VBoxManage modifyvm <uuid|name> --vrde on --vrdeaddress <host ip> --vrdeport <port for RDP>

After this all that's needed to start is

VBoxHeadless --startvm <uuid|name> &

Or if you don't want to configure your machines with static ip/ports for RDP use

VBoxHeadless --startvm <uuid|name> --vrde on --vrdeaddress <host ip> --vrdeport <port for RDP> &


Edit: Added an '&' to the start command to put the process in the background and returning you to the prompt, which enables you to logout and disconnect your ssh session.


Thanks for the infomation!!
Message 246 of 442
fbmachines
Guide

Re: Running VirtualBox VM host on ReadyNAS Pro

jmalmlund wrote:
Edited my start command in the previous post.. you just need to add an '&' to the end of the start command to put the VBox process into the background allowing you to disconnect your ssh session.


Thanks! I'll give it a try when I get home. I knew it had to be something simple.


Also, I am running VirtualBox 3.2.12 on the "new" Pro 6 (2nd series) so the E5300 CPU has VT-X capabilities allowing a 64bit OS. I did have to enable acpi, in the VM though to allow it to boot without error. Woohoo!!! My 8GB of RAM in the Pro is put to good use now!

VBoxManage modifyvm <uuid|name> --acpi on
Message 247 of 442
fbmachines
Guide

Re: Running VirtualBox VM host on ReadyNAS Pro

VB 4.0.4 is out and all seems well after updating it in the NAS.
Message 248 of 442
jmalmlund
Aspirant

Re: Running VirtualBox VM host on ReadyNAS Pro

fbmachines wrote:
VB 4.0.4 is out and all seems well after updating it in the NAS.

Works great over here aswell...
did however have to un-install previous version of the extpack and then install the updated extpack to get rdp working properly again..
and reconfigure /etc/vbox/vbox.cfg to get the VirtualBox web console backend back in business. But other than that it's all good :lol:
Message 249 of 442
Mackila
Aspirant

Re: Running VirtualBox VM host on ReadyNAS Pro

Hi,

You are the guy who made me buy 2x4GB for my pro...
As I changed processor to E6600, I use my nas to host some VM.
I got them running "as services" with help from scripts from here and there.
When you want to start a VM then disconnect your ssh session, & is not enough. It only sends VBoxHeadless to the background, but it stays attached to your ssh session.

Try this instead :
nohup VBoxHeadless --startvm <uuid|name> --vrde on --vrdeaddress <host ip> --vrdeport <port for RDP> &


- Mackila

fbmachines wrote:
jmalmlund wrote:
Edited my start command in the previous post.. you just need to add an '&' to the end of the start command to put the VBox process into the background allowing you to disconnect your ssh session.


Thanks! I'll give it a try when I get home. I knew it had to be something simple.
[...]
Message 250 of 442
Top Contributors
Announcements