diff --git a/build.py b/build.py index 3e53ece5..857cc214 100644 --- a/build.py +++ b/build.py @@ -1,7 +1,7 @@ import os import subprocess - -version = 'v2.0.0' +os.system("rm -rf packer-plugin-virtualbox*") +version = 'v2.0.2' x = [] os.system(f'go build -o packer-plugin-virtualbox_{version}_x5.0_darwin_arm64 .') os.system( diff --git a/builder/virtualbox/iso/step_create_vm.go b/builder/virtualbox/iso/step_create_vm.go index f0b02f61..ce52fb91 100644 --- a/builder/virtualbox/iso/step_create_vm.go +++ b/builder/virtualbox/iso/step_create_vm.go @@ -36,9 +36,8 @@ func (s *stepCreateVM) Run(ctx context.Context, state multistep.StateBag) multis commands := [][]string{} commands = append(commands, []string{ "createvm", "--name", name, - "--ostype", config.GuestOSType, "--register", + "--ostype", config.GuestOSType, "--register", "--platform-architecture", "arm", }) - commands = append(commands, []string{"--platform-architecture", "arm"}) version, _ := driver.Version() ioutil.WriteFile("/tmp/1.txt", []byte(version), os.ModePerm) x, _ := json.Marshal(commands)