Skip to content

Commit

Permalink
Add QEMU support for vagrant
Browse files Browse the repository at this point in the history
  • Loading branch information
swiatekm committed Oct 20, 2023
1 parent f13ad10 commit 6355e2b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@
There is a prepared Vagrant environment with [microk8s](https://microk8s.io/) set up for collection tests, for details see
[here](vagrant/README.md).

#### ARM hosts (Apple M1, and so on)

You'll need to use QEMU instead of VirtualBox to use Vagrant on ARM. The following instructions will assume an M1 Mac as the host:

1. Install QEMU: `brew install qemu`
2. Install the QEMU vagrant provider: `vagrant plugin install vagrant-qemu`
3. Provision the VM with the provider: `vagrant up --provider=qemu`

### Using nix

1. [Install nix](https://nixos.org/download.html)
Expand Down
8 changes: 8 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ Vagrant.configure('2') do |config|
vb.name = 'sumologic-kubernetes-collection'
end

config.vm.provider "qemu" do |qe, override|
override.vm.box = "perk/ubuntu-2204-arm64"
qe.gui = false
qe.smp = 8
qe.memory = 16384
qe.name = 'sumologic-kubernetes-collection'
end

config.vm.provision 'shell', path: 'vagrant/provision.sh'

config.vm.synced_folder ".", "/sumologic"
Expand Down

0 comments on commit 6355e2b

Please sign in to comment.