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!):

Click image for larger version. 

Name:	2014-11-25_21h53_03.png 
Views:	126 
Size:	41.6 KB 
ID:	8797

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.