From 2fc28445e7c01004c183e82acc08db14a250761d Mon Sep 17 00:00:00 2001 From: Filippo Giunchedi Date: Tue, 28 Nov 2023 12:31:27 +0100 Subject: [PATCH] Add libvirt provider parameters to Vagrant I'm using libvirt locally to run Vagrant, I thought the parameters will come handy for other folks also running libvirt. Even though Ubuntu Vagrant boxes don't support libvirt officially, getting the images to run is as simple as: vagrant migrate ubuntu/focal64 libvirt The vagrant-migrate plugin can be found at https://github.com/sciurus/vagrant-mutate --- Vagrantfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Vagrantfile b/Vagrantfile index e2c66a476ed..8246c81d5ab 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -147,6 +147,12 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| vb.customize ["modifyvm", :id, "--nictype2", "virtio"] end + config.vm.provider :libvirt do |libvirt| + libvirt.cpus = 3 + libvirt.memory = 8192 + end + + # This uses the vagrant-hostsupdater plugin, and lets you # access the development site at http://mastodon.local. # If you change it, also change it in .env.vagrant before provisioning