vbox-scripts-4.1: Failed to disable DHCP for network vboxnet0

Bug #1306546 reported by Alexander Maretskiy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Invalid
Undecided
Unassigned

Bug Description

vbox-scripts-4.1/launch.sh fails, with the following output:

$ sudo ./launch.sh
Checking for 'expect'... OK
If you run this script under Cygwin, you may have to add path to VirtualBox directory to your PATH.
Usually it is enough to run "export PATH=$PATH:"/cygdrive/c/Program Files/Oracle/VirtualBox"
Checking for "VBoxManage"... OK
Checking for VirtualBox Extension Pack... OK
Checking for Mirantis OpenStack ISO image... OK
Checking if SSH client installed...
OK
Checking if ipconfig or ifconfig installed...
OK
Deleting host-only interface: vboxnet0...
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Creating host-only interface (name ip netmask): vboxnet0 10.20.0.1 255.255.255.0
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Interface 'vboxnet0' was successfully created
Disabling DHCP server on interface: vboxnet0...
+ echo 'Configuring IP address 10.20.0.1 and network mask 255.255.255.0 on interface: vboxnet0...'
Configuring IP address 10.20.0.1 and network mask 255.255.255.0 on interface: vboxnet0...
+ VBoxManage hostonlyif ipconfig vboxnet0 --ip 10.20.0.1 --netmask 255.255.255.0
+ set +x
Verifying interface vboxnet0 has IP 10.20.0.1 and mask 255.255.255.0 properly set.
Failed to disable DHCP for network vboxnet0
Looks like VirtualBox failed to apply settings for interface vboxnet0
Sometimes such error happens under Windows.
Please run launch.sh one more time.
If this error remains after several attempts, then something really went wrong.
Aborting.

ISO image: fuel-gerrit-5.0-261-2014-04-07_15-04-24.iso

$ VBoxManage --version
4.1.12_Ubuntur77245

$ VBoxManage list extpacks
Extension Packs: 1
Pack no. 0: Oracle VM VirtualBox Extension Pack
Version: 4.1.14
Revision: 77440
Description: USB 2.0 Host Controller, VirtualBox RDP, PXE ROM with E1000 support.
VRDE Module: VBoxVRDP
Usable: true
Why unusable:

Revision history for this message
Mike Scherbakov (mihgen) wrote :

Are you running into this on Windows?

Changed in fuel:
milestone: none → 5.0
Revision history for this message
Miroslav Anashkin (manashkin) wrote :

Please try running these scripts under user (not superuser) account.

Revision history for this message
Miroslav Anashkin (manashkin) wrote :

Also, please check your user is included to vboxusers group.

Revision history for this message
Alexander Maretskiy (maretskiy) wrote :

Here is the full shell session to reproduce the bug on my pc:

amaretskiy@amaretskiy-pc:fuel$ uname -a
Linux amaretskiy-pc 3.8.0-38-generic #56~precise1-Ubuntu SMP Thu Mar 13 16:22:48 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
amaretskiy@amaretskiy-pc:fuel$ groups
amaretskiy adm cdrom sudo dip plugdev lpadmin sambashare libvirtd vboxusers
amaretskiy@amaretskiy-pc:fuel$ pwd
/home/amaretskiy/fuel
amaretskiy@amaretskiy-pc:fuel$ VBoxManage --version
4.1.12_Ubuntur77245
amaretskiy@amaretskiy-pc:fuel$ VBoxManage list extpacks
Extension Packs: 1
Pack no. 0: Oracle VM VirtualBox Extension Pack
Version: 4.1.14
Revision: 77440
Description: USB 2.0 Host Controller, VirtualBox RDP, PXE ROM with E1000 support.
VRDE Module: VBoxVRDP
Usable: true
Why unusable:
amaretskiy@amaretskiy-pc:fuel$ unzip vbox-scripts-4.1.zip
Archive: vbox-scripts-4.1.zip
   creating: virtualbox/
   creating: virtualbox/actions/
  inflating: virtualbox/actions/master-node-create-and-install.sh
  inflating: virtualbox/actions/master-node-enable-internet.sh
  inflating: virtualbox/actions/prepare-environment.sh
  inflating: virtualbox/actions/slave-nodes-create-and-boot.sh
  inflating: virtualbox/config.sh
   creating: virtualbox/functions/
  inflating: virtualbox/functions/network.sh
  inflating: virtualbox/functions/product.sh
  inflating: virtualbox/functions/vm.sh
   creating: virtualbox/iso/
 extracting: virtualbox/iso/README.md
  inflating: virtualbox/launch.sh
  inflating: virtualbox/README.md
amaretskiy@amaretskiy-pc:fuel$ cd virtualbox/
amaretskiy@amaretskiy-pc:virtualbox$ mv ~/Downloads/fuel-gerrit-5.0-401-2014-04-16_16-04-37.iso iso/
amaretskiy@amaretskiy-pc:virtualbox$ ./launch.sh
Checking for 'expect'... OK
If you run this script under Cygwin, you may have to add path to VirtualBox directory to your PATH.
Usually it is enough to run "export PATH=$PATH:"/cygdrive/c/Program Files/Oracle/VirtualBox"
Checking for "VBoxManage"... OK
Checking for VirtualBox Extension Pack... OK
Checking for Mirantis OpenStack ISO image... OK
Checking if SSH client installed...
OK
Checking if ipconfig or ifconfig installed...
OK
Deleting host-only interface: vboxnet0...
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Creating host-only interface (name ip netmask): vboxnet0 10.20.0.1 255.255.255.0
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Interface 'vboxnet0' was successfully created
Disabling DHCP server on interface: vboxnet0...
+ echo 'Configuring IP address 10.20.0.1 and network mask 255.255.255.0 on interface: vboxnet0...'
Configuring IP address 10.20.0.1 and network mask 255.255.255.0 on interface: vboxnet0...
+ VBoxManage hostonlyif ipconfig vboxnet0 --ip 10.20.0.1 --netmask 255.255.255.0
+ set +x
Verifying interface vboxnet0 has IP 10.20.0.1 and mask 255.255.255.0 properly set.
Failed to disable DHCP for network vboxnet0
Looks like VirtualBox failed to apply settings for interface vboxnet0
Sometimes such error happens under Windows.
Please run launch.sh one more time.
If this error remains after several attempts, then something really went wrong.
Aborting.
amaretskiy@amaretskiy-pc:virtualbox$

Revision history for this message
Miroslav Anashkin (manashkin) wrote :

I just noticed you used VirtualBox 4.1.14.

Please try upgrade VirtualBox to at least 4.2.16.
It is our minimal supported version, mostly because of Windows guest handling improvements.

Revision history for this message
Alexander Maretskiy (maretskiy) wrote :

Ok, but consider that I use package from standard repository of current LTS release

Changed in fuel:
status: New → Invalid
Revision history for this message
Miroslav Anashkin (manashkin) wrote :

Greetings Alexander,

You may use VBox version directly from https://www.virtualbox.org/wiki/Linux_Downloads
They directly support Ubuntu as old as 10.04 for VB4.3 and even 8.04 for VBox 4.2

Kind regards,
Miroslav

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.