Hi
As a disclaimer, I have tried to use Multipass in a way that it might not have been intended for, so apologies if I have missed the point.
I want to use the Multipass shell to test Terraform in Linux, as a complement to testing in macOS on my M1 laptop. To that end, I started the shell, and tried to install Terraform via apt. That didn’t work as the only supported architecture is amd64
, as explained here:
https://www.terraform.io/cli/install/apt
And:
$ dpkg --print-architecture
arm64
I then tried downloading the zip, but that didn’t work either, as illustrated below.
My question, then, is: can I use Terraform in the way I want here?
Thanks
Nathan
cd Home/git/terraform-sdwan/vmware/
ubuntu@primary:~/Home/git/terraform-sdwan/vmware$ sudo apt install unzip -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
unzip is already the newest version (6.0-25ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.
ubuntu@primary:~/Home/git/terraform-sdwan/vmware$ rm terraform
ubuntu@primary:~/Home/git/terraform-sdwan/vmware$ curl https://releases.hashicorp.com/terraform/1.1.9/terraform_1.1.9_darwin_amd64.zip --output terraform_1.1.9_darwin_amd64.zip
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 19.7M 100 19.7M 0 0 3900k 0 0:00:05 0:00:05 --:--:-- 4227k
ubuntu@primary:~/Home/git/terraform-sdwan/vmware$ unzip terraform_1.1.9_darwin_amd64.zip
Archive: terraform_1.1.9_darwin_amd64.zip
inflating: terraform
ubuntu@primary:~/Home/git/terraform-sdwan/vmware$ ./terraform
-bash: ./terraform: cannot execute binary file: Exec format error
ubuntu@primary:~/Home/git/terraform-sdwan/vmware$ rm terraform
ubuntu@primary:~/Home/git/terraform-sdwan/vmware$ curl https://releases.hashicorp.com/terraform/1.1.9/terraform_1.1.9_darwin_arm64.zip --output terraform_1.1.9_darwin_arm64.zip
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 18.9M 100 18.9M 0 0 4091k 0 0:00:04 0:00:04 --:--:-- 4300k
ubuntu@primary:~/Home/git/terraform-sdwan/vmware$ unzip terraform_1.1.9_darwin_arm64.zip
Archive: terraform_1.1.9_darwin_arm64.zip
inflating: terraform
ubuntu@primary:~/Home/git/terraform-sdwan/vmware$ ./terraform
-bash: ./terraform: cannot execute binary file: Exec format error
ubuntu@primary:~/Home/git/terraform-sdwan/vmware$ which ./terraform
./terraform
ubuntu@primary:~/Home/git/terraform-sdwan/vmware$ dpkg --print-architecture
arm64
ubuntu@primary:~/Home/git/terraform-sdwan/vmware$