Last active
January 1, 2023 17:01
-
-
Save nnzv/2b080ca03467387995e3c5810e7e1bf4 to your computer and use it in GitHub Desktop.
Vagrant libvirt example
This file contains hidden or 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
all: env ssh | |
init: | |
-vagrant validate | |
clear: | |
vagrant destroy --force | |
env: init | |
vagrant up | |
ssh: | |
vagrant ssh default |
This file contains hidden or 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
Vagrant.configure("2") do |c| | |
c.vagrant.plugins = { | |
"vagrant-libvirt" => { "version" => "0.10.0"}, | |
} | |
c.vm.box = "centos/7" | |
c.vm.synced_folder ".", "/vagrant", | |
type: "nfs", mount_options: ["vers=3,tcp"] | |
c.ssh.extra_args = ["-t", "cd /vagrant; bash --login"] | |
c.vm.provider :libvirt do |l| | |
l.driver = "kvm" | |
l.memory = 3500 | |
l.cpus = 8 | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment