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

On Monday, December 9, 2013 1:40:07 PM UTC+2, Félix Barbeira wrote:
>
> 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$
>

-- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to