-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #271 from akerouanton/ubuntu2304
Add ubuntu2304...
- Loading branch information
Showing
24 changed files
with
1,475 additions
and
2 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,50 @@ | ||
# -*- mode: ruby -*- | ||
# vi: set ft=ruby : | ||
|
||
Vagrant.configure(2) do |config| | ||
|
||
config.vm.box = "generic/ubuntu2304" | ||
|
||
config.ssh.forward_x11 = true | ||
config.ssh.forward_agent = true | ||
config.vm.network :private_network, :auto_config => false, :autostart => false, :libvirt__network_name => "vagrant-libvirt", :libvirt__always_destroy => false | ||
|
||
config.vm.provider :libvirt do |v, override| | ||
v.qemu_use_session = false | ||
v.video_vram = 256 | ||
v.memory = 2048 | ||
v.cpus = 2 | ||
v.management_network_name = "vagrant-libvirt" | ||
v.management_network_keep = true | ||
v.management_network_autostart = false | ||
end | ||
|
||
config.vm.provider :hyperv do |v, override| | ||
v.maxmemory = 2048 | ||
v.memory = 2048 | ||
v.cpus = 2 | ||
end | ||
|
||
config.vm.provider :virtualbox do |v, override| | ||
v.gui = false | ||
v.customize ["modifyvm", :id, "--memory", 2048] | ||
v.customize ["modifyvm", :id, "--cpus", 2] | ||
end | ||
|
||
["vmware_fusion", "vmware_workstation", "vmware_desktop"].each do |provider| | ||
config.vm.provider provider do |v, override| | ||
v.gui = false | ||
v.vmx["memsize"] = "2048" | ||
v.vmx["numvcpus"] = "2" | ||
v.vmx["cpuid.coresPerSocket"] = "1" | ||
end | ||
end | ||
|
||
config.vm.provision "shell", inline: <<-SHELL | ||
sudo sed -i 's/.*X11Forwarding.*/X11Forwarding yes/g' /etc/ssh/sshd_config | ||
sudo sed -i 's/.*X11UseLocalhost.*/X11UseLocalhost no/g' /etc/ssh/sshd_config | ||
sudo sed -i 's/.*X11DisplayOffset.*/X11DisplayOffset 10/g' /etc/ssh/sshd_config | ||
sudo systemctl reload ssh.service | ||
SHELL | ||
|
||
end |
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
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
Oops, something went wrong.