Merge pull request #1548 from legal90/create_disk
builder/parallels: Create VM without hdd and then add it later
This commit is contained in:
commit
d75d44ad9e
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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"}
|
||||
|
|
Loading…
Reference in New Issue