Skip to content

Instantly share code, notes, and snippets.

@nelsonjchen
Forked from dscape/out.log
Created July 25, 2013 00:04
Show Gist options
  • Star 14 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save nelsonjchen/c09924feb0830415a1d0 to your computer and use it in GitHub Desktop.
Save nelsonjchen/c09924feb0830415a1d0 to your computer and use it in GitHub Desktop.
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] Running any VM customizations...
A customization command failed:
["controlvm", "13e6f29d-db68-4639-8a49-d75fafce637b", "usbattach", "p=0x7811;v=0x7392;s=0x000087b375caedec;l=0xfd120000"]
The following error was experienced:
VBoxManage: error: Cannot attach a USB device to the machine which is not running or paused (machine state: PoweredOff)
VBoxManage: error: Details: code VBOX_E_INVALID_VM_STATE (0x80bb0002), component Console, interface IConsole, callee nsISupports
VBoxManage: error: Context: "AttachUSBDevice(usbId.raw())" at line 955 of file VBoxManageControlVM.cpp
Please fix this customization and try again.
config.vm.provider :virtualbox do |vb|
vb.customize ['modifyvm', :id, '--usb', 'on']
vb.customize ['usbfilter', 'add', '0', '--target', :id, '--name', 'edimax7718un', '--vendorid', '0x7392']
end
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu10"
config.vm.provider :virtualbox do |vb|
vb.customize ["controlvm", :id, "usbattach", "p=0x7811;v=0x7392;s=0x000087b375caedec;l=0xfd120000"]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment