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:
Mikhail Zholobov 2014-10-01 16:04:22 +04:00
parent dc3f156f02
commit 48c64b05cb
2 changed files with 2 additions and 1 deletions

View File

@ -20,7 +20,7 @@ func (s *stepCreateDisk) Run(state multistep.StateBag) multistep.StepAction {
command := []string{
"set", vmName,
"--device-set", "hdd0",
"--device-add", "hdd",
"--size", strconv.FormatUint(uint64(config.DiskSize), 10),
"--iface", config.HardDriveInterface,
}

View File

@ -29,6 +29,7 @@ func (s *stepCreateVM) Run(state multistep.StateBag) multistep.StepAction {
"--distribution", config.GuestOSType,
"--dst", config.OutputDir,
"--vmtype", "vm",
"--no-hdd",
}
commands[1] = []string{"set", name, "--cpus", "1"}
commands[2] = []string{"set", name, "--memsize", "512"}