Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 May 2015 20:23:25 -0400
From:      Allan Jude <allanjude@freebsd.org>
To:        freebsd-virtualization@freebsd.org
Subject:   Re: Nested virtualization networking issues with bhyve
Message-ID:  <5553EAFD.8030406@freebsd.org>
In-Reply-To: <CAO8hVipq_5AzxvL%2BkSbpaLFEuP%2BecU5_s1bGR2Rqv_=xM_ampQ@mail.gmail.com>
References:  <CAO8hVipq_5AzxvL%2BkSbpaLFEuP%2BecU5_s1bGR2Rqv_=xM_ampQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On 2015-05-13 19:15, Jonathan Wong wrote:
> I've recently tried to experiment with vmware esxi 6 + vmworkstation and I
> managed to get nested virtualization with freebsd guest and nested bhyve
> ubuntu VM working. However, the networking doesn't seem to come up properly
> while installing, and post install for the ubuntu VM.
> 
> The bridged networking works as expected with freebsd guests and other
> network nodes on the network. However, the nested VMs themselves can't seem
> to bring up networking properly.
> 
> lspci seems to bring up the virtio network device, but even configuring
> static ips doesn't help. The VM is not able to receive or route any packets
> from any VM
> 
> FreeBSD guest can ssh into the nested VM. The nested VM can ssh into
> freebsd guest.  The nested VM cannot contact internet or local gateway.
> Tried with E1000 and VMXNET 2. Computers on network can ssh into freebsd
> guest. The freebsd guest can ssh into other computers on the network.
> Computers on the network cannot contact the VM. The vmware host cannot
> contact the nested VM or vice versa.
> 
> Any tips to getting this to work?
> 
> Thanks.
> _______________________________________________
> freebsd-virtualization@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
> To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freebsd.org"
> 

I helped you (or someone else) with this issue on IRC.

The answer was to enable promiscuous mode on the nic in ESXi

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1004099

So that the FreeBSD (middle) host would receive the packets destine for
the inner VM. Without promiscuous mode, any packets with an ethernet
address other than that of the ESXi virtual nic, will not be passed into
the VM.

-- 
Allan Jude


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)

iQIcBAEBAgAGBQJVU+r/AAoJEJrBFpNRJZKfIhYP/jBOOfT1vQRFuxhVqtNtkYNf
HTJ1b1YWDlKLVviMDGiUtts6CF3bAGoPdkzO0Lqma9aBdyKC49NdffU+YDlIRefs
r4J9hareSpO5WiL6Ej7eDuTmAnouKvYkyTqv27pP5VGbHjpc+Xwhd3q2e32ZAeMU
YAJhrIFoJQfgyv9f9n1siietksHHPfsP5O49aE8RHaGt4ezsqT4e8UDfu3zpqMpG
HuE3ZTnm8WC+FCAGoQOcu2FQa/Soq6xl7SpatrBAd41VBboyt29hbYbH3i6aHn9u
3dQ1kGQzaoCFGwaQlCLGRwvf/PkznZ8iLLW8PQDr+0Z8Rs6USqd+39BE8Pjlwzsc
YZewE9Ka5J+gbiAZhZzPrxrQKzAcY2rBwpQWJjJX5JdlQoHsWyNhMNWTjMPKuMCw
ruicqbaYIS8wnk7IIu6n1ifpgES22BOl2ME0k27zSyXVo0808+gBzu2nR6meUeMW
08w1xZYDgR6iVLqYA6oFnE26aG8qOH5UzmAHJPVd6LQ+NcubrhNKPsT062nTQASc
Nqa6msED4dOpSDok77fKwoT6C0Uj01v8/kvyIwTM1E7P8/ddADGLrYF6lokQ2Tnr
j81+sMkGFwxFGTpvQM3HQXAudtltrWvBnslZ/nT4tV/T2x0dmyutjRXe/vtHtkyl
z/9kQJamG074kBu0wUoN
=Vhcs
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5553EAFD.8030406>