Hello

Missed the vmware part from your message, but I can see it now in the
vagrantfile, I just took a bit from it didn't copy paste all.

So for VMWare, it also works:

kikitux@alvaro MINGW64 ~/Downloads/vagrant_bridge_eth0_vmware
$ vagrant up
Bringing machine 'default' up with 'vmware_workstation' provider...
==> default: Cloning VMware VM: 'hashicorp/precise64'. This can take some
time...
==> default: Checking if box 'hashicorp/precise64' is up to date...
==> default: Verifying vmnet devices are healthy...
==> default: Preparing network adapters...
WARNING: The VMX file for this box contains a setting that is automatically
overwritten by Vagrant
WARNING: when started. Vagrant will stop overwriting this setting in an
upcoming release which may
WARNING: prevent proper networking setup. Below is the detected VMX setting:
WARNING:
WARNING:   ethernet0.pcislotnumber = "32"
WARNING:
WARNING: If networking fails to properly configure, it may require this VMX
setting. It can be manually
WARNING: applied via the Vagrantfile:
WARNING:
WARNING:   Vagrant.configure(2) do |config|
WARNING:     config.vm.provider :vmare_workstation do |vmware|
WARNING:       vmware.vmx["ethernet0.pcislotnumber"] = "32"
WARNING:     end
WARNING:   end
WARNING:
WARNING: For more information:
https://www.vagrantup.com/docs/vmware/boxes.html#vmx-whitelisting
==> default: Starting the VMware VM...
==> default: Waiting for the VM to receive an address...
==> default: Forwarding ports...
    default: -- 22 => 2222
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 0:22
    default: SSH username: vagrant
    default: SSH auth method: private key
    default:
    default: Vagrant insecure key detected. Vagrant will automatically
replace
    default: this with a newly generated keypair for better security.
    default:
    default: Inserting generated public key within guest...
    default: Removing insecure key from the guest if it's present...
    default: Key inserted! Disconnecting and reconnecting using new SSH
key...
==> default: Machine booted and ready!
==> default: Configuring network adapters within the VM...
==> default: Waiting for HGFS to become available...
==> default: Enabling and configuring shared folders...
    default: -- C:/Users/kikitux/Downloads/vagrant_bridge_eth0_vmware:
/vagrant

kikitux@alvaro MINGW64 ~/Downloads/vagrant_bridge_eth0_vmware
$ vagrant ssh -c 'ifconfig ; route -n'
eth0      Link encap:Ethernet  HWaddr 00:0c:29:1f:47:89
          inet addr:10.0.15.89  Bcast:10.0.115.255  Mask:255.255.252.0
          inet6 addr: fe80::20c:29ff:fe1f:4789/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1469 errors:0 dropped:0 overruns:0 frame:0
          TX packets:497 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:224165 (224.1 KB)  TX bytes:70375 (70.3 KB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
0.0.0.0         10.0.12.1      0.0.0.0         UG    100    0        0 eth0
10.0.12.0      0.0.0.0         255.255.252.0   U     0      0        0 eth0
Connection to 10.0.115.89 closed.

kikitux@alvaro MINGW64 ~/Downloads/vagrant_bridge_eth0_vmware
$


This one requires less tricks since VMware works bit differently:

$ cat Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure("2") do |config|
  config.vm.box = "hashicorp/precise64"
  config.vm.network "public_network", adapter: 0, auto_config: false
  config.vm.provider :vmware_workstation do |v|
    v.gui = true
  end
end

let me know if works.

Alvaro.

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
--- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/CAHqq0ey_LjEbeV0D6bAzhT7PTyGtiSZX7S-k1p52HxJ5-%3DDz2A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to