Last active
August 14, 2019 07:10
-
-
Save masiuchi/151dca5cc1e0894622363f9e2452e5b1 to your computer and use it in GitHub Desktop.
Vagrantfile for Fedora 31.
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
# https://app.vagrantup.com/fedora/boxes/30-cloud-base | |
config.vm.box = 'fedora/30-cloud-base' | |
config.vm.provider "virtualbox" do |vb| | |
# 512 MB is too small to execute dnf command | |
vb.memory = "1024" | |
end | |
# https://fedoraproject.org/wiki/DNF_system_upgrade | |
# | |
# Execute 'vagrant ssh -c "sudo dnf system-upgrade reboot"' after provisioning. | |
# It will takes several minutes. | |
config.vm.provision "shell", inline: <<-SHELL | |
dnf upgrade --refresh -y | |
dnf install dnf-plugin-system-upgrade -y | |
dnf system-upgrade download --refresh --releasever=31 -y | |
SHELL | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment