Jump to content
XPEnology Community

Virtualbox and phpVirtualbox on XPEnology


seba

Recommended Posts

Hi all

 

First thank you for the best Plugin in Xpenologyy

Maybe do you know that there is en issue when you use Virtualbox and Docker together and set in Virtualbox for any maschine a Bridged adapter(all other adapter works fine as example host only, NAT etc) only bridged adapter the complete system is frozen you can only reset the system with hardware button.

The reason is here docker and virtualbox use the same ports or local ports ???

I have already set for one maschine "windows 7" one for docker and one for virtualbox in the bridged adapter settings the system freeze again.

Then i have read that there is en workaround set 2 NICS set eth0 to Virtualbox and the other to Docker<<- what this exaclty mean ? because you can not select in virtualbox two nics for all maschine or im wrong? :sad:

 

http://forums.openmediavault.org/index. ... -and-more/

https://github.com/docker/docker/issues/10031

 

Is there anything that i can change for running docker and virtualbox with bridged adapter on the same system.

thank you very much for your help.

regards

Michael

Link to comment
Share on other sites

Hi all

 

First thank you for the best Plugin in Xpenologyy

Maybe do you know that there is en issue when you use Virtualbox and Docker together and set in Virtualbox for any maschine a Bridged adapter(all other adapter works fine as example host only, NAT etc) only bridged adapter the complete system is frozen you can only reset the system with hardware button.

The reason is here docker and virtualbox use the same ports or local ports ???

I have already set for one maschine "windows 7" one for docker and one for virtualbox in the bridged adapter settings the system freeze again.

Then i have read that there is en workaround set 2 NICS set eth0 to Virtualbox and the other to Docker<<- what this exaclty mean ? because you can not select in virtualbox two nics for all maschine or im wrong? :sad:

 

http://forums.openmediavault.org/index. ... -and-more/

https://github.com/docker/docker/issues/10031

 

Is there anything that i can change for running docker and virtualbox with bridged adapter on the same system.

thank you very much for your help.

regards

Michael

 

You can select which interface VM will be bridged to in VM configuration "settings->network adapter" there is dropdown where you select on which interface bridge will be created. I didn't test this since I have only one NIC working. And yes you can have several VM's bridged to one NIC.

Link to comment
Share on other sites

in phpvirtualbox you can set the boot up on start.

 

Bildschirmfoto_2015_06_08_um_18_27_13.png

 

 

Oh my, I feel like a total nob, I must have been blind not seeing it. Thanks for this.

I was having problems with my VMs because they start so fast that they aren't able to get the correct time and date from the host DSM. So I changed that startup-script a little bit and build in a 15 second wait-timer for each VM:

 

vi /var/packages/virtualbox/scripts/vboxinit.sh

 

Search "start ()" and change the block to:

 

start()
{
# Get all autostart machines
MACHINES=$($su_command "$vboxmanage list vms | awk '{ print \$NF }' | sed -e 's/[{}]//g'")
for UUID in $MACHINES; do
	STARTUP=$($su_command "$vboxmanage getextradata $UUID 'pvbx/startupMode'" | awk '{ print $NF }')
	if [ "${STARTUP}" == "auto" ]; then
		VMNAME=$($su_command "$vboxmanage showvminfo $UUID | sed -n '0,/^Name:/s/^Name:[ \t]*//p'")
		echo "$0: starting machine ${VMNAME} ... and waiting 15 seconds"
		sleep 15
		$su_command "$vboxmanage startvm $UUID --type headless" >>$LOG
	fi
done
}

 

The changed lines are:

echo "$0: starting machine ${VMNAME} ... and waiting 15 seconds"

sleep 15

 

Save the file (type :wq) and you are ready to go. The next time the server starts every VM with automatic start will wait 15 seconds. This works for me very good and the VMs have the correct time from the host-system (which gets the time from a ntp-server).

Link to comment
Share on other sites

  • 4 weeks later...

Hi, here a new Update (Synology/Xpenology).

 

CHANGELOG:

 

Version: 4.3.30-101610-1

Changes made by dodo-dk

Update VirtualBox and Kernels to version 4.3.30 r101610 for DSM 5.1/5.2 bromolow/x86_64

 

Use at your own risk

Download: https://mega.co.nz/#!lZoQTCzY!5hsxMityp ... L0svzvbkB8

 

Dodo

 

VirtualBox 5.0 Update is coming when a compatible phpVirtualBox Version is released.

Link to comment
Share on other sites

  • 2 weeks later...

Hi, here a new Update (Synology/Xpenology).

 

CHANGELOG:

 

Version: 5.0.2-102096-1

Changes made by dodo-dk

Update VirtualBox and Kernels to version 5.0.2 102096 and phpVirtualBox to 5.0-2 for DSM 5.1/5.2 bromolow/x86_64

 

Use at your own risk

Download: https://mega.nz/#!FdYkASLI!Z5jrUUNg5XYN ... euUzX-GkZ8

Mirror: http://gofile.io/?id=PZXU6U

 

Please reboot your device and clear your browsercache if you have problems.

 

Dodo

Link to comment
Share on other sites

Hi

 

Thank you very much for this package i have 2 questions:

1) fresh install is working or i have to update over the last package or both is working ?

ty for very much for your feedback.

Anyone sucessfull installed on DSM 5592,2?

 

 

 

2) Maybe do you know with the old virtualbox there is en issue when docker and Virtualbox is at the same time running(Kernel Panic and the hole system freeze)

is this fixed with this version 5,0 ?

Answer here yep is fixed :

changed 12 hours ago by frank

Status changed from new to closed

Resolution set to fixed

Fix is part of VBox 5.0.2.

https://www.virtualbox.org/ticket/13795

 

Also fixed is the RPD connect Bug with windows 10

VRDP: allow Windows 10 RDP clients (bug #14216

https://www.virtualbox.org/ticket/14216

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.

×
×
  • Create New...