VirtualBox Plugin for unRAID v5 and v6


theone

Recommended Posts

So this is your first installation of the VirtualBox plugin?

 

Please post your syslog and VirtualBox configuration files in the plugin folder.

 

virtualbox.cfg

# VirtualBox plugin configuration
INSTALL_ON_BOOT="false"
UPGRADE_ON_BOOT="false"
UPGRADE_PLG_ON_BOOT="false"
START_ON_ARRAY_MOUNT="false"
START_VMS_ON_START="false"
VBOX_SYMLINK_LOCATION="/boot/custom/vbox"
VBOXWEBSRV_HOST_IP="0.0.0.0"
VBOXWEBSRV_HOST_PORT="18083"
VBOXWEBSRV_LOGFILE="/mnt/disk2/MiscData/vboxwebsrv.log"
VBOXWEBSRV_VERBOSE="false"
VBOXWEBSRV_LOGROTATE="2"
VBOXWEBSRV_LOGSIZE="10000"
VBOXWEBSRV_LOGINTERVAL="604800"

 

vms_session.cfg

"SeedBox" {7b500da8-a494-48eb-9820-7f89fc3c7b2d}

 

 

Oct 22 14:01:32 Tower rc.virtualbox[18812]: Installing Virtualbox package (v4.3.14)...
Oct 22 14:01:44 Tower groupadd[19067]: group added to /etc/group: name=vboxusers, GID=999
Oct 22 14:01:44 Tower groupadd[19067]: group added to /etc/gshadow: name=vboxusers
Oct 22 14:01:44 Tower groupadd[19067]: new group: name=vboxusers, GID=999
Oct 22 14:01:44 Tower kernel: vboxdrv: Found 2 processor cores.
Oct 22 14:01:44 Tower kernel: vboxdrv: fAsync=0 offMin=0x206 offMax=0x6ba
Oct 22 14:01:44 Tower kernel: vboxdrv: TSC mode is 'synchronous', kernel timer mode is 'normal'.
Oct 22 14:01:44 Tower kernel: vboxdrv: Successfully loaded version 4.3.14 (interface 0x001a0007).
Oct 22 14:01:44 Tower kernel: vboxpci: pci-stub module not available, cannot detach PCI devices
Oct 22 14:01:44 Tower kernel: vboxpci: IOMMU not found (not compiled)
Oct 22 14:01:44 Tower rc.virtualbox[19262]: Installation of Virtualbox package v4.3.14 succeeded
Oct 22 14:01:44 Tower rc.virtualbox[19263]: /boot/custom/vbox does not exists - Cannot change VirtualBox symlink
Oct 22 14:01:44 Tower rc.virtualbox[19264]: Installing Virtualbox Extension package (v4.3.14)...
Oct 22 14:01:48 Tower rc.virtualbox[19343]: Installation of Virtualbox Extension package v4.3.14 succeeded
Oct 22 14:02:19 Tower rc.virtualbox[19799]: /opt/VirtualBox/VBoxManage setproperty websrvauthlibrary null
Oct 22 14:02:19 Tower rc.virtualbox[19814]: vboxwebsrv service started

Link to comment
  • 1 month later...

6.0 beta 4

 

Two issues:

 

1. When I "Save Below Configuration" it blanks out all the settings in the virtualbox config file, except for the symlink location, regardless of what settings I have on the webpage.

 

2.  I 'll restore the previous settings by editing the file manually, including upgrade on boot, start on array mount, etc, however after a system restart none of the settings are followed and according to the log it says these settings are disabled?  The plugin doesn't install on boot, and obviously nothing else happens either.  I have to manually install it from the webpage and start everything up.

 

Everything else works fine and I can run VMs without problems.  Just wish it would survive a restart as expected.

 

Still having these issues with 4.3.16.

Link to comment

I can't seem to connect to VB from my laptop.  I'm using remotebox on my laptop and entering in the IP address I used in the config settings and admin/admin and keep getting errors stating my creds and/or host are invalid. 

 

Help?

 

Okay, connected but the issue now is I can't figure out how to mount an ISO from within the VB GUI.  How do you do this?  When I click on the storage tab I don't have any options to choose other ISO's.

 

Okay took a while to figure all that stuff out above but I got it :).  Thing I can't seem to crack now is getting the guest window size bigger then 800/600.  I have guest additions installed and I can change the screen resolution on my ubuntu vm but the guest window won't resize.  How do you go about resizing that thing??

 

 

Link to comment

I haven't got the time to do the update now.

 

I have tried pHaZe's workaround for the gui and it works just fine.

 

Would it be possible to just repack for the new kernel? Or is there more to it than that?

 

Can anyone else help? This is the last update before upgrading to V6b12.

 

Thanks

 

Link to comment

Many versions back of VirtualBox and when there was no unRAID 6, I wrote this guide: http://vbox.a1aina.com/install.php

 

Most of the information specific links are out-dated and no longer available... if you just need an overview and can find newer versions of web servers and such, it "might" help you. If you need specific instructions and don't want to look into newer or different versions, avoid it.

 

Once the guide was good, but things kept changing and I was unable to dedicate the time to keep it up. I'm working lots of overtime at work and recently moved to a new place (still trying to get everything unpacked and settled in)... so I won't be able to do any updating in the foreseeable future.

Link to comment

Many versions back of VirtualBox and when there was no unRAID 6, I wrote this guide: http://vbox.a1aina.com/install.php

 

Most of the information specific links are out-dated and no longer available... if you just need an overview and can find newer versions of web servers and such, it "might" help you. If you need specific instructions and don't want to look into newer or different versions, avoid it.

 

Once the guide was good, but things kept changing and I was unable to dedicate the time to keep it up. I'm working lots of overtime at work and recently moved to a new place (still trying to get everything unpacked and settled in)... so I won't be able to do any updating in the foreseeable future.

 

Thanks for responding Lainie.

 

Regarding the plugin, I still use your origional plugin and with PhAzE giving us the update in the Go file I am able to get the GUI loaded. The problem I have is that there is a new Kernel with V6B12. Could you tell me how to unpack and repack for the new kernel?

 

Link to comment
  • 3 weeks later...

I need some help with Virtualbox.

Installed the latest version. No problems here:

 

sZFD2Wvl.png

 

Here is my config.php in the webserver:

<?php

/**

* phpVirtualBox example configuration.

* @version $Id: config.php-example 452 2012-10-17 12:22:12Z [email protected] $

*

* rename to config.php and edit as needed.

*

*/

class phpVBoxConfig {

 

/* Username / Password for system user that runs VirtualBox */

var $username = 'administrator';

var $password = 'administrator';

 

/* SOAP URL of vboxwebsrv (not phpVirtualBox's URL) */

var $location = 'http://192.168.1.78:2222/';

 

/* Default language. See languages folder for more language options.

* Can also be changed in File -> Preferences -> Language in

* phpVirtualBox.

*/

var $language = 'en';

 

/* Set the standard VRDE Port Number / Range, e.g. 1010-1020 or 1027 */

var $vrdeports = '9000-9100';

 

/*

*

* Not-so-common options / tweaking

*

*/

 

// Multiple servers example config. Uncomment (remove /* and */) to use.

// Add ALL the servers you want to use. Even if you have the server set

// above. The default server will be the first one in the list.

/*

var $servers = array(

        array(

                'name' => 'London',

                'username' => 'user',

                'password' => 'pass',

                'location' => 'http://192.168.1.1:18083/',

                'authMaster' => true // Use this server for authentication

        ),

        array(

                'name' => 'New York',

                'username' => 'user2',

                'password' => 'pass2',

                'location' => 'http://192.168.1.2:18083/'

        ),

);

*/

 

// Disable authentication

#var $noAuth = true;

 

// Host / ip to use for console connections

#var $consoleHost = '192.168.1.40';

 

// Disable "preview" box

#var $noPreview = true;

 

// Default preview box update interval in seconds

#var $previewUpdateInterval = 30;

 

// Preview box pixel width

#var $previewWidth = 180;

 

// Max number of progress operations to keep in list

var $maxProgressList = 5;

 

// Change default preview aspect ratio to 1.

// http://www.wikipedia.org/wiki/Aspect_ratio_%28image%29#Previous_and_presently_used_aspect_ratios

#var $previewAspectRatio = 1.6;

 

// Enable custom VM icons

#var $enableCustomIcons = true;

 

/*

Exclusively use phpVirtualBox's groups configuration rather than VirtualBox groups.

This has the following effects:

 

*) Group changes made in phpVirtualBox will not be reflected in VirtualBox programs such as

VirtualBox and VBoxManage

*) Group changes will not affect which folder a VM is placed in

*) You can rename groups that contain running VMs and move / copy running VMs to groups

*/

#var $phpVboxGroups = true;

 

 

/*

Allow to prompt deletion hard disk files on removal from Virtual Media Manager.

If this is not set, files are always kept. If this is set, you will be PROMPTED

to decide whether or not you would like to delete the hard disk file(s) when you

remove a hard disk from virtual media manager. You may still choose not to delete

the file when prompted.

*/

var $deleteOnRemove = true;

 

/*

* File / Folder browser settings

*/

 

// Restrict file types

var $browserRestrictFiles = array('.iso','.vdi','.vmdk','.img','.bin','.vhd','.hdd','.ovf','.ova','.xml','.vbox','.cdr','.dmg','.ima','.dsk','.vfd');

 

// Restrict locations / folders

#var $browserRestrictFolders = array('D:\\','C:\\Users\\Ian'); // Or something like array('/home/vbox','/var/ISOs')

 

// Force use of local, web server based file browser instead of going through vboxwebsrv

#var $browserLocal = true;

 

// Disable file / folder browser.

#var $browserDisable = true;

 

// Disable Windows drive detection

#var $noWindowsDriveList = true;

 

// Just list all drives from C:\ - Z:\ without checking if they exist or not.

// This may be required on older Windows systems with more than one drive.

#var $forceWindowsAllDriveList = true;

 

/*

* Misc

*/

 

/*

* Auto-refresh interval in seconds for VirtualBox host memory usage information.

* Any value below 3 will be ignored.

*/

var $hostMemInfoRefreshInterval = 5;

 

/* Show % of free host memory instead of % used */

#var $hostMemInfoShowFreePct = true;

 

/*

* VM Memory warnings.

*

* If $vmMemoryStartLimitWarn is enabled, each time a VM is started through

* phpVirtualBox, it will check that the available host memory is greater than

* the base and video memory of the VM + 50MB (a little bit of overhead). If it

* is not, a confirmation dialog will be presented to confirm that you want to

* start the VM.

*

* If $vmMemoryOffset is set (and $vmMemoryStartLimitWarn), $vmMemoryOffset

* megabytes is subtracted from the available host memory before the check is

* performed by $vmMemoryStartLimitWarn logic. For instance it may be a good

* idea to always have VM memory requirements + 100MB free. 100 is the default.

*/

#var $vmMemoryStartLimitWarn = true;

#var $vmMemoryOffset = 100;

 

 

/*

* Display guest additions version of a running VM on its Details tab

*/

#var $enableGuestAdditionsVersionDisplay = true;

 

/* Disable any of phpVirtualBox's main tabs */

#var $disableTabVMSnapshots = true; // Snapshots tab

#var $disableTabVMConsole = true; // Console tab

 

/* Screen resolutions for console tab */

var $consoleResolutions = array('640x480','800x600','1024x768','1280x720','1440x900');

 

/* Console tab keyboard layout. Currently Oracle's RDP client only supports EN and DE. */

var $consoleKeyboardLayout = 'EN';

 

/* Max number of network cards per VM. Do not set above VirtualBox's limit (typically 8) or below 1 */

var $nicMax = 4;

 

/* Enable advanced configuration items (normally hidden in the VirtualBox GUI)

* Note that some of these items may not be translated to languages other than English.

*/

#var $enableAdvancedConfig = true;

 

/* Enable startup / shutdown configuration.

* This only works in linux and you must add the vboxinit file to

* your startup scripts list.

*/

#var $startStopConfig = true;

 

// Authentication library.

var $authLib = 'Builtin';

 

// VM ownership

#var $enforceVMOwnership = true;

 

// Per-user VM quota

#var $vmQuotaPerUser = 2;

 

 

// Allow VDE network configuration. This must be supported by the underlying VirtualBox installation!

// If you do not know what VDE networking is - you do not need it, it is probably not supported by your

// VirtualBox installation and will cause errors if enabled.

#var $enableVDE = true;

 

// Disable setting SATA controllers port count to the max port number found when saving VMs.

#var $disableSataPortCount = true;

 

/* Enable Parallel Port configuration - EXPERIMENTAL

LPT support may or may not work for you.

!!! VirtualBox LPT support only works in Linux. !!!

*/

#var $enableLPTConfig = true;

 

/* Enable HardDisk IgnoreFlush configuration. This controls the "ExtraData" setting

* in "VBoxInternal/Devices/[controller type]/0/LUN#[x]/Config/IgnoreFlush". See

* Responding to guest IDE/SATA flush requests at:

* http://www.virtualbox.org/manual/ch12.html#idp12757424

*/

#var $enableHDFlushConfig = true;

 

 

/* END SETTINGS  */

 

 

}

 

 

 

Restarted the webserver as well as virtualbox plugin.

When I try to connect via browser I receive the following:

 

VpRNfPdl.png

 

gTrcbeil.png

 

I am really not an expert and cant debug the problem so will need a hand to solve this.

What is also strange that virtualbox plugin is not creating a log file at all.

Please help.

 

 

 

Link to comment

Some comments on the above topic would be highly appreciated.

 

Had a similar problem some time back and fixed it by changing the IP for the vboxserver host ip to 127.0.0.1.. I also left the port on the standard 18083. Any changes from that yielded a similar problem. Let me know if it helps.

 

Cheers

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.