 			when 'hostonly'
 				actions.push do (vm, adaptor, index) ->
 					(callback) ->
+						return callback new Error "no network specified for adaptor" if not adaptor.network?
+						
 						network.set_hostonly vm, index, adaptor.network, callback
 						
 			when 'internal'
 				actions.push do (vm, adaptor, index) ->
 					(callback) ->
+						return callback new Error "no network specified for adaptor" if not adaptor.network?
+						
 						network.set_internal vm, index, adaptor.network, callback
 						
 			when 'nat'

					 add_dhcp nn, nc.ip, nc.netmask, nc.dhcp.lower_ip, nc.dhcp.upper_ip, callback
					 
	for netname, netconfig of config.network.hostonly
		if netconfig.dhcp?
			actions.push do (netname, netconfig) ->
				configure_dhcp netname, netconfig, dhcp.add_hostonly_server, dhcp.modify_hostonly_server

	config.shares ?= {}
	
	for adaptor, i in config.network.adaptors
		return callback new Error "no type specified for adaptor" if not adaptor.type?
		
		index = i + 1
		
