Commit 7e96187e authored by Rickard von Essen's avatar Rickard von Essen

Merge pull request #1162 from rickard-von-essen/keep_sound

builder/parallels: Don't delete sound, since it doesn't always exist.
parents 40dbe8de 4cdce51d
...@@ -25,7 +25,7 @@ func (s *stepCreateVM) Run(state multistep.StateBag) multistep.StepAction { ...@@ -25,7 +25,7 @@ func (s *stepCreateVM) Run(state multistep.StateBag) multistep.StepAction {
name := config.VMName name := config.VMName
path := filepath.Join(".", config.OutputDir) path := filepath.Join(".", config.OutputDir)
commands := make([][]string, 9) commands := make([][]string, 8)
commands[0] = []string{ commands[0] = []string{
"create", name, "create", name,
"--ostype", config.GuestOSType, "--ostype", config.GuestOSType,
...@@ -39,8 +39,7 @@ func (s *stepCreateVM) Run(state multistep.StateBag) multistep.StepAction { ...@@ -39,8 +39,7 @@ func (s *stepCreateVM) Run(state multistep.StateBag) multistep.StepAction {
commands[4] = []string{"set", name, "--on-shutdown", "close"} commands[4] = []string{"set", name, "--on-shutdown", "close"}
commands[5] = []string{"set", name, "--on-window-close", "keep-running"} commands[5] = []string{"set", name, "--on-window-close", "keep-running"}
commands[6] = []string{"set", name, "--auto-share-camera", "off"} commands[6] = []string{"set", name, "--auto-share-camera", "off"}
commands[7] = []string{"set", name, "--device-del", "sound0"} commands[7] = []string{"set", name, "--smart-guard", "off"}
commands[8] = []string{"set", name, "--smart-guard", "off"}
ui.Say("Creating virtual machine...") ui.Say("Creating virtual machine...")
for _, command := range commands { for _, command := range commands {
......
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