VirtualBox Command-line

In the last weeks I learned that the command-line usage of VirtualBox is actually very neat and usable.

  • It is possible to start my virtual machine images headless with:

    /usr/bin/VBoxManage startvm VirtualMachineName --type headless
  • or even attaching a USB device on-the-fly (as used in the GUI):
    1. First get a list of devices with

      VBoxManage list usbhost
    2. Then have a look at the result and note the UUID, here my example:

      Host USB Devices:
      UUID: 5674d5b0-ff30-4b60-a3dd-b9ee162ff07f
      VendorId: 0x044e (044E)
      ProductId: 0x3007 (3007)
      Revision: 17.104 (17104)
      Manufacturer: ALPS
      Product: UGX
      Address: sysfs:/sys/devices/pci0000:00/0000:00:1d.2/usb4/4-2//device:/dev/vboxusb/004/002
      Current State: Busy

      UUID: ff41ad0f-7332-4f65-8598-ac982527243c
      VendorId: 0x059b (059B)
      ProductId: 0x0571 (0571)
      Revision: 0.0 (0000)
      Manufacturer: Iomega
      Product: Iomega HDD
      SerialNumber: 505000004ED0
      Address: sysfs:/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-1//device:/dev/vboxusb/001/002
      Current State: Busy

    3. After that attach the USB device with the "usbattach" command:

      /usr/bin/VBoxManage controlvm VirtualMachineName usbattach ff41ad0f-7332-4f65-8598-ac982527243c

    All in all a very nice management tool to host the own "private" cloud. ;-)

    User login

    CAPTCHA
    This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
    3 + 0 =
    Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.
    Powered by Drupal