Ok
the problem is where the config.vm is
it's insise the virtualbox block
Take it out, since vagrant read the file multiple times ..
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "Empty"
config.vm.provider "virtualbox" do |vb|
vb.gui = true
vb.customize ["modifyvm", :id, "--vram", "128"]
vb.customize ["modifyvm", :id, "--hwvirtex", "on"]
vb.customize ["modifyvm", :id, "--clipboard", "bidirectional"]
vb.customize ["modifyvm", :id, "--usb", "on", "--usbehci", "on"]
#to get usb device info, connect usb device and run on host: $
vboxmanage list usbhost
vb.customize ['usbfilter', 'add', '0', '--target', :id, '--name',
'Altera', '--action', 'hold', '--active', 'yes', '--vendorid',
'0x09fb']
vb.customize ["modifyvm", :id, "--memory", 4096]
vb.customize ["modifyvm", :id, "--cpus", 4]
end
config.vm.network "public_network", bridge: "en1:Realtek PCIe GBE
Family Controller", ip: "192.168.1.4", netmask: "255.255.255.0",
:use_dhcp_assigned_default_route => false
config.vm.synced_folder "e://Dropbox//Linux", "//media//sf_linux"
end
On Mon, Jun 8, 2015 at 6:14 PM, Michal Koziel <[email protected]> wrote:
> Sure:
>
> VAGRANTFILE_API_VERSION = "2"
> Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
> config.vm.box = "Empty"
> config.vm.provider "virtualbox" do |vb|
> vb.gui = true
> vb.customize ["modifyvm", :id, "--vram", "128"]
> vb.customize ["modifyvm", :id, "--hwvirtex", "on"]
> vb.customize ["modifyvm", :id, "--clipboard", "bidirectional"]
> vb.customize ["modifyvm", :id, "--usb", "on", "--usbehci", "on"]
> #to get usb device info, connect usb device and run on host: $
> vboxmanage list usbhost
> vb.customize ['usbfilter', 'add', '0', '--target', :id, '--name',
> 'Altera', '--action', 'hold', '--active', 'yes', '--vendorid', '0x09fb']
> vb.customize ["modifyvm", :id, "--memory", 4096]
> vb.customize ["modifyvm", :id, "--cpus", 4]
> config.vm.network "public_network", bridge: "en1:Realtek PCIe GBE Family
> Controller", ip: "192.168.1.4", netmask: "255.255.255.0",
> :use_dhcp_assigned_default_route => false
> config.vm.synced_folder "e://Dropbox//Linux", "//media//sf_linux"
> end
> end
>>
>>
> --
> 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.
--
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.