Commit c4e84f99 authored by Marvin's avatar Marvin

Update control.go

parent 567e8dfa
Pipeline #56674085 failed with stages
in 14 minutes and 30 seconds
......@@ -127,7 +127,7 @@ func Exist(vmName string) bool {
func CreateOsVM(vmName string, templateName string, templateSnapshot string) error {
args := []string{"clonevm", vmName, "--mode", "machine", "--name", templateName, "--register"}
if templateSnapshot != "" {
args = append(args, "--snapshot", templateSnapshot, "--options", "link", "keepallmacs")
args = append(args, "--snapshot", templateSnapshot, "--options", "link", "--options", "keepallmacs")
_, err := VBoxManage(args...)
return err
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