The important thing with a virtual switch is that it must be connected to a NIC (network adapter) on your hosts system which has a working Internet connection. See the screenshot here, when I create a new switch it can only use either my LAN adapter or WiFi adapter because that's the only adapters I have (in my case Realtek = LAN, Qualcomm Atheros = WiFi, do not select the TAP driver!):

Best Virtual machine software to try W10 TP on Windows 8.1-2014-11-25_21h53_03.png

You can create a switch and connect it to a host NIC even if the NIC is not currently online or not even enabled, but in order to connect a vm to network and Internet, the NIC used by the switch which vm is using must be connected.