Vagrant.configure("2") do |c| 

 c.vm.box = "learningchef/centos65" 

 c.vm.box_url = "learningchef/centos65" 

 c.vm.hostname = "server-centos65.vagrantup.com" 

 c.vm.network(:private_network, {:ip=>"192.168.38.34"}) 

 c.vm.synced_folder ".", "/vagrant", disabled: true 

 c.vm.provider :virtualbox do |p| 

 end 



On Tuesday, May 5, 2015 at 12:27:29 PM UTC-4, AixNPanes wrote:
>
> I have attempted to set up a new VBox with the following. The net is that 
> I can't get the HostOnly interface to communicate.
>
> chef generate cookbook chef-server
> cat <<EOF > .kitchen1.yml
> ---
> driver:
> name: vagrant
>
> provisioner:
> name: chef_solo
>
> platforms:
> - name: centos65
> driver:
> box: learningchef/centos65
> box_url: learningchef/centos65
> network:
> - ["private_network", {ip: "192.168.38.34"}]
>
> suites:
> - name: server
> run_list:
> - recipe[chef-server::default]
> attributes:
> EOF
> kitchen converge
> ifconfig
> ...
> -->vboxnet2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> --> ether 0a:00:27:00:00:02 
> --> inet 192.168.38.1 netmask 0xffffff00 broadcast 192.168.38.255
> vboxmanage list hostonlyifs
> ...
> -->Name: vboxnet2
> -->GUID: 786f6276-656e-4274-8000-0a0027000002
> -->DHCP: Disabled
> -->IPAddress: 192.168.38.1
> -->NetworkMask: 255.255.255.0
> -->IPV6Address: 
> -->IPV6NetworkMaskPrefixLength: 0
> -->HardwareAddress: 0a:00:27:00:00:02
> -->MediumType: Ethernet
> -->Status: Up
> -->VBoxNetworkName: HostInterfaceNetworking-vboxnet2
> kitchen login
> ifconfig
> -->eth0 Link encap:Ethernet HWaddr 08:00:27:94:25:0F 
> --> inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
> --> inet6 addr: fe80::a00:27ff:fe94:250f/64 Scope:Link
> --> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> --> RX packets:31025 errors:0 dropped:0 overruns:0 frame:0
> --> TX packets:13881 errors:0 dropped:0 overruns:0 carrier:0
> --> collisions:0 txqueuelen:1000 
> --> RX bytes:42553897 (40.5 MiB) TX bytes:821400 (802.1 KiB)
> -->
> -->eth1 Link encap:Ethernet HWaddr 08:00:27:E8:8E:0B 
> --> inet addr:192.168.38.34 Bcast:192.168.38.255 Mask:255.255.255.0
> --> inet6 addr: fe80::a00:27ff:fee8:8e0b/64 Scope:Link
> --> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> --> RX packets:1 errors:0 dropped:0 overruns:0 frame:0
> --> TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
> --> collisions:0 txqueuelen:1000 
> --> RX bytes:60 (60.0 b) TX bytes:944 (944.0 b)
> -->
> -->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)
> exit
> ping 10.0.2.15
> -->PING 10.0.2.15 (10.0.2.15): 56 data bytes
> -->36 bytes from 10.0.2.15: Destination Host Unreachable
> -->Vr HL TOS Len ID Flg off TTL Pro cks Src Dst
> --> 4 5 00 5400 401d 0 0000 3e 01 1f3e 10.200.6.120 10.0.2.15 
> ping 192.168.38.34
> -->PING 192.168.38.34 (192.168.38.34): 56 data bytes
> -->Request timeout for icmp_seq 0
> kitchen login
> ping 192.168.38.1
> -->PING 192.168.38.1 (192.168.38.1) 56(84) bytes of data.
> -->^C
> -->--- 192.168.38.1 ping statistics ---
> -->9 packets transmitted, 0 received, 100% packet loss, time 8339ms
>

-- 
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