|
@ -320,10 +320,12 @@ func (d *Driver) Create() error { |
|
|
|
|
|
|
|
|
d.setMachineNameIfNotSet() |
|
|
d.setMachineNameIfNotSet() |
|
|
|
|
|
|
|
|
|
|
|
if d.osTemplateLabelName == "Other install media" { |
|
|
b2dutils := mcnutils.NewB2dUtils(d.StorePath) |
|
|
b2dutils := mcnutils.NewB2dUtils(d.StorePath) |
|
|
if err := b2dutils.CopyIsoToMachineDir(d.Boot2DockerURL, d.MachineName); err != nil { |
|
|
if err := b2dutils.CopyIsoToMachineDir(d.Boot2DockerURL, d.MachineName); err != nil { |
|
|
return err |
|
|
return err |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
log.Infof("Logging into XenServer %s...", d.Server) |
|
|
log.Infof("Logging into XenServer %s...", d.Server) |
|
|
c, err := d.GetXenAPIClient() |
|
|
c, err := d.GetXenAPIClient() |
|
|