Commit d75d44ad authored by Rickard von Essen's avatar Rickard von Essen

Merge pull request #1548 from legal90/create_disk

builder/parallels: Create VM without hdd and then add it later
parents fc08874c 48c64b05
...@@ -20,7 +20,7 @@ func (s *stepCreateDisk) Run(state multistep.StateBag) multistep.StepAction { ...@@ -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 { ...@@ -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"}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment