[QPKG] Virtualbox 4.1.8 on line

Silas Mariusz

rm -rf /
Help us, GOD!
5 Kwiecień 2008
10 168
31
2 248
153
39
Nowy Sącz
forum.qnap.net.pl
QNAP
TS-x77
Ethernet
1 GbE
Hi,

I am please to announce the New version of Virtualbox QPKG. All is "sourced" and Open Source, so feel free to take the hands on ....
... support of X86 (32 bits) AND x86_64 (64 bits) Firmware
###### it's a maintenance release, so if you don't have a BUG referenced on Virtualbox Changelog ... update is NOT mandatory #############
30 Dec. 2011--------- NEW QPKG file due to an error in name of environment file for X86_64 bits -------- Thanks to Bilbob


License and basic information : https://forum.qnap.com/viewtopic.php?f=2 ... 30#p205230

******** IF YOU DO an UPDATE from version BEFORE 4.1 ... READ CAREFULLY the UPDATE section ********

[Prerequisite]
Please create IF NOT EXIST, BEFORE install a new shared resource USING THE WEB ADMIN interface named My_VM with access rigth for admin user ATTENTION to respect the name (case dependent).
[EDIT] do not create the folder directly under /share ... it MUST be delete are boot .... /share are in RAM ... shared resources are created on disk THEM at creation and at each boot the link in /share is recreated .... [END EDIT]
[Name]
vbox4

[Description]
Install a READY to RUN Virtualbox V4 (inside a chroot Debian environment)
Install the module need for QNAP kernel
Install phpvirtualbox under a lighttpd web server (port 81) to manage without X server your virtual machine
Using an external X server the X QT interface can be also used.

[Version]

Debian Squeeze stable 32 or 64 bits depend of Qnap kernel
QPKG : New version name created by using Virtualbox version and -nn QPKG version
Example : ... QPKG version : 4.1.0-02 (Virtualbox 4.1.0 ; Qpkg 02 )
Virtualbox 4.1.0
Phpvirtualbox 4.1

[Changelog]
4.1.8-01
Virtualbox 4.1.8 changelog : https://www.virtualbox.org/wiki/Changelog
Phpvirtualbox 4.1.5 changelog : http://code.google.com/p/phpvirtualbox/ ... t&can=2&q=
QPKG : just add models : TS-639, SS-839
4.1.6-02
Please read on virtualbox site the change ... minor release Bug fix ... Update is not mandatory
php RDP fixed but keyboard support are EN and GE only ... so for others use external RDP client ...
QPKG ehancement :
Add possibility to Disable the QPKG during boot
Add possibility to update QPKG only[/color]
integrate in the QPKG zip file of CHANGELOG and INSTALL Linux text file
4.1.4
Now version of Virtualbox and phpvirtualbox are the same (except for minor maintenance release)
Know problem with php RDP ... use other RDP client (Windows, Rrdesktop or like ...)
4.1.0-02
Maintenance release
Solve creation of .VirtualBox and "VirtualBox VMs" folder in /share/My_VM (stop vboxwebsrv working
Add support for SS-439 (tester needed) ATTENTION to have enough physical memory 1GB is the minimum.
... less, can run but Guest can be only very light (Dos, Small Linux, etc.)
4.1.0-01
Please look at Virtualbox Web site for 4.1.0 Changelog
All VM MUST BE in /share/My_VM folder (shared resource )
Update save the actual version of QPKG in a folder (to be deleted if new on works at well)
Manage 2 (two) versions based on kernel (32 or 64 bits)
... ATTENTION ... I don't have 64 bits model, so error can exist ...
Manage modules based on Model name (/etc/config/Model_Name.conf)
... ATTENTION modules are different for
...... TS-x59 series up to 459 (32 bits)
...... TS-x39 series, TS-509, and SS-439 (32 bits)
...... TS-x59 series from TS-559 and TS-x79 series (64 bits) (TS-x79 not yet available but source GPL are available .... so )
...... TS-809 series (64 bits)
Modules are provided in QPKG (/share/XXX_DATA/.qpkg/vbox4/modules/MODEL_NAME/)
Add delay in umount to prevent unmounted file system on stop
Change phpvirtualbox version to 4.1-1b
Add command (mount, umount) to vboxmgr for maintenance (mount all needed mount point for chroot without starting virtualbox)
1.0.3
Bridged Network Works using the Standard Vbox module.
Solve all USB problem (dynamic List, or filter)
Solve NAT forwarding problem even for port < 1024
Change vbox user to root user, add vboxusers group in QNAP side
Add some command to manage update


[Know Bugs]

4.1.0-01 & 4.1.0-02
Console don't work in phpvirtualbox (know bug) ... use an external RDP program (Remote desktop in Windows, rdesktop in Linux, etc. )
If Phpvirtualbox stop with a GetRecentMediums error, clear the browser cache .
force usbfs before using X Gui (export VBOX_USB=usbfs)
1.0.3
problem keyboard layout in RDP inside phpvirtualbox, use RDP client ...
force usbfs before using X Gui (export VBOX_USB=usbfs)
1.0.2
bad modules loaded 4.0.6 vs. 4.0.8

[Update]
Not need to un-install previous version BUT delete if they exist the old ... rm -Rf /share/XXX_DATA/.qpkg/vbox4-old
STOP vbox (vboxmgr stop) verify that all is stopped and unmounted (if not umount manually) (vboxmgr status)
****** In case of, do a save of your existing VM (export) or cp VirtualBox VMs folder to a safe place .....
IF My_VM does not exist (so it's update from version 1.0.3)
1 ) Please create a My_VM shared resource
2 ) move your VM to this new /share/My_VM folder (replace XXX by MD0, HDA, etc.)
... mv /share/XXX_DATA/.qpkg/vbox4/virtualbox/root/.Virtualbox /share/My_VM/
... mv /share/XXX_DATA/.qpkg/vbox4/virtualbox/root/VirtualBox\ VMs /share/My_VM (protect space with \ , or use quotes)
3 ) create the folder in chroot directory for keeping old version functionnal
... mkdir /share/XXX_DATA/.qpkg/vbox4/virtualbox/share/My_VM
4 ) create link to keep previous version running
... cd /share/XXX_DATA/.qpkg/vbox4/virtualbox/root
... ln -sf /share/My_VM/.Virtualbox
... ln -sf /share/My_VM/VirtualBox\ VMs
5 ) add mount and umount lines in /share/XXX_DATA/.qpkg/vbox4/other_mount (and other_umount) like this
... other_mount : mount -o bind /share/My_VM $DEB_BASE/share/My_VM
... other_umount : umount $DEB_BASE/share/My_VM
OK ***** now your old version is always functional BUT VM are outside the chroot ... so after UPDATE you can have access to your VM
Here you are if you run a 4.1.x version without modding your My_VM
Do the Update ... your actual version is saved in vbox4-old folder in /share/XXX_DATA/.qpkg/
... return to the previous version by a rename (or a link)
... delete it if the new version work as well ....

[Release note]

Please read corresponding Release notes on Virtualbox and Phpvirtualbox respective site ...
QNAP specific :
VM are dependent of your QNAP
verify the memory available or increase it ...
search if your system is 32 or 64 bits (uname -a ; write x86 or x86_64)
verify if your CPU support VT technology ... (No for 32 bits ATOM processor)
So without VT :
... you can't run 64 bits system in a 32 bits QNAP
... you can use only ONE CPU per VM
... 2 specific commands are created :
...... vboxsh to open a console inside the chroot
...... vboxmgr it's a link to the vbox4.sh use by QPKG to run some specific command
Stopping QPKG by disable button in QPKG menu is equal to vboxmgr stop; vboxmgr setqpkg_disable

[Resources]
Debian : http://www.debian.org/
Virtualbox : http://www.virtualbox.org/
phpvirtualbox : http://code.google.com/p/phpvirtualbox/
VM preloaded Images : http://virtualboximages.com/

[Download]
https://forum.qnapclub.fr/files/category ... ributions/

Video of Windows XP running inside QNAP : http://perso.numericable.fr/qnap_mande/ ... p.swf.html (require flash plugin in your browser ... please put your speaker highest possible or you don't listen .... )

Have fun.
Philippe.