builder/parallels: Init VM without hdd and attach it later
Avoid the disk resize because it is unsupported for some guests (OS X) http://kb.parallels.com/en/113653
This commit is contained in:
parent
dc3f156f02
commit
48c64b05cb
|
@ -20,7 +20,7 @@ func (s *stepCreateDisk) Run(state multistep.StateBag) multistep.StepAction {
|
||||||
|
|
||||||
command := []string{
|
command := []string{
|
||||||
"set", vmName,
|
"set", vmName,
|
||||||
"--device-set", "hdd0",
|
"--device-add", "hdd",
|
||||||
"--size", strconv.FormatUint(uint64(config.DiskSize), 10),
|
"--size", strconv.FormatUint(uint64(config.DiskSize), 10),
|
||||||
"--iface", config.HardDriveInterface,
|
"--iface", config.HardDriveInterface,
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,6 +29,7 @@ func (s *stepCreateVM) Run(state multistep.StateBag) multistep.StepAction {
|
||||||
"--distribution", config.GuestOSType,
|
"--distribution", config.GuestOSType,
|
||||||
"--dst", config.OutputDir,
|
"--dst", config.OutputDir,
|
||||||
"--vmtype", "vm",
|
"--vmtype", "vm",
|
||||||
|
"--no-hdd",
|
||||||
}
|
}
|
||||||
commands[1] = []string{"set", name, "--cpus", "1"}
|
commands[1] = []string{"set", name, "--cpus", "1"}
|
||||||
commands[2] = []string{"set", name, "--memsize", "512"}
|
commands[2] = []string{"set", name, "--memsize", "512"}
|
||||||
|
|
Loading…
Reference in New Issue