diff --git a/driver/vm.go b/driver/vm.go index 90165e8b1..44ac69bb0 100644 --- a/driver/vm.go +++ b/driver/vm.go @@ -100,7 +100,7 @@ func (d *Driver) CreateVM(config *CreateConfig) (*VirtualMachine, error) { } var host *object.HostSystem - if config.Host != "" { + if config.Cluster != "" && config.Host != "" { h, err := d.FindHost(config.Host) if err != nil { return nil, err