Invalid machine group (virtualbox)

541 views
Skip to first unread message

Félix Barbeira

unread,
Dec 9, 2013, 6:40:07 AM12/9/13
to vagra...@googlegroups.com
I want to create a vagrant machine that automatically adds itself to the group "Vagrant" in my virtualbox mac installation. The group is already created. I add the following lines in the "Vagrantfile" but it fails:

config.vm.provider "virtualbox" do |v|
  v.name = "Ubuntu 12 LTS x64"
  v.customize ["modifyvm", :id, "--groups", "Vagrant"]
end

This is the output:

fbarbeira@station:~/VagrantLab$ vagrant up precise
Bringing machine 'precise' up with 'virtualbox' provider...
[precise] Importing base box 'precise64'...
[precise] Matching MAC address for NAT networking...
[precise] Setting the name of the VM...
[precise] Clearing any previously set forwarded ports...
[precise] Creating shared folders metadata...
[precise] Clearing any previously set network interfaces...
[precise] Preparing network interfaces based on configuration...
[precise] Forwarding ports...
[precise] -- 22 => 2222 (adapter 1)
[precise] Running 'pre-boot' VM customizations...
A customization command failed:

["modifyvm", "910a92bd-35e3-43d4-9c13-2b4adfea5cd9", "--groups", "Vagrant"]

The following error was experienced:

VBoxManage: error: Invalid machine group 'Vagrant'
VBoxManage: error: Details: code NS_ERROR_INVALID_ARG (0x80070057), component VirtualBox, interface IVirtualBox, callee nsISupports
VBoxManage: error: Context: "COMSETTER(Groups)(ComSafeArrayAsInParam(groups))" at line 485 of file VBoxManageModifyVM.cpp


Please fix this customization and try again.
fbarbeira@station:~/VagrantLab$

Vit Chernomor

unread,
May 16, 2014, 9:21:37 AM5/16/14
to vagra...@googlegroups.com
prepend "Vagrant" by forwar dslash as below

v.customize ["modifyvm", :id, "--groups", "/Vagrant"]

i found similar in example:

https://blogs.oracle.com/fatbloke/entry/creating_and_using_vm_groups
Reply all
Reply to author
Forward
0 new messages