-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vagrant: switch from VirtualBox to KVM + increase HW resources
* Switch from VirtualBox to KVM because GCE (used in Travis) doesn't officially support VirtualBox: https://cloud.google.com/compute/docs/instances/enable-nested-virtualization-vm-instances * Increase HW resources: 512MB -> 2GB, 1 vCPU -> 2 vCPUs * Cache /home/travis/.vagrant.d/boxes Signed-off-by: Akihiro Suda <[email protected]>
- Loading branch information
1 parent
9ec5b03
commit b8eed86
Showing
2 changed files
with
28 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# -*- mode: ruby -*- | ||
# vi: set ft=ruby : | ||
|
||
Vagrant.configure("2") do |config| | ||
# Fedora 31 box is used for testing cgroup v2 support | ||
config.vm.box = "fedora/31-cloud-base" | ||
config.vm.provider :virtualbox do |v| | ||
v.memory = 2048 | ||
v.cpus = 2 | ||
end | ||
config.vm.provider :libvirt do |v| | ||
v.memory = 2048 | ||
v.cpus = 2 | ||
end | ||
config.vm.provision "shell", inline: <<-SHELL | ||
dnf install -y podman | ||
SHELL | ||
end |