aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2021-08-18 17:54:33 +0000
committerterminaldweller <thabogre@gmail.com>2021-08-18 17:54:33 +0000
commit8e627e13b5d2fefa9a9534dc163f0225dbf4fbc8 (patch)
tree13105b49ec6eb5ff7d84913c35215f5a4a31d19f
parenti2p (diff)
downloadvagrantboxes-8e627e13b5d2fefa9a9534dc163f0225dbf4fbc8.tar.gz
vagrantboxes-8e627e13b5d2fefa9a9534dc163f0225dbf4fbc8.zip
update
-rw-r--r--i2p/Vagrantfile102
1 files changed, 56 insertions, 46 deletions
diff --git a/i2p/Vagrantfile b/i2p/Vagrantfile
index 06b8806..8e7bc81 100644
--- a/i2p/Vagrantfile
+++ b/i2p/Vagrantfile
@@ -1,46 +1,56 @@
-# -*- mode: ruby -*-
-# vi: set ft=ruby :
-
-Vagrant.require_version ">= 2.2.6"
-Vagrant.configure("2") do |config|
- config.vm.box = "bento/debian-10"
- config.vm.box_version = "= 202105.25.0"
- config.vm.box_check_update = false
- config.vm.hostname = "i2pvm"
-
- # ssh
- config.ssh.insert_key = true
- config.ssh.keep_alive = true
- config.ssh.keys_only = true
-
- # timeouts
- config.vm.boot_timeout = 300
- config.vm.graceful_halt_timeout = 60
- config.ssh.connect_timeout = 15
-
- config.vagrant.plugins = ["vagrant-vbguest"]
- config.vbguest.no_install = true
-
- # network
- config.vm.network "forwarded_port", guest: 4444, host: 4445, id: "i2ptun", protocol: "tcp"
- config.vm.network "forwarded_port", guest: 4444, host: 4445, id: "i2ptun", protocol: "udp"
-
- config.vm.provider "virtualbox" do |vb|
- vb.gui = false
- vb.memory = "768"
- vb.cpus = 1
- end
-
- config.vm.provision "shell", inline: <<-SHELL
- sudo apt update && sudo apt upgrade -y
- sudo apt install -y apt-transport-https curl lynx w3m vim tmux
- maindeb https://deb.i2p2.de/ buster
- deb-src https://deb.i2p2.de/ buster main
- curl -o i2p-debian-repo.key.asc https://geti2p.net/_static/i2p-debian-repo.key.asc
- gpg -n --import --import-options import-show i2p-debian-repo.key.asc
- sudo apt-key add i2p-debian-repo.key.asc
- sudo apt update
- sudo apt install -y i2p
- # sudo dpkg-reconfigure i2p
- SHELL
-end
+# frozen_string_literal: true
+
+# -*- mode: ruby -*-
+# vi: set ft=ruby :
+ENV['VAGRANT_DEFAULT_PROVIDER'] = 'libvirt'
+Vagrant.require_version '>= 2.2.6'
+Vagrant.configure('2') do |config|
+ config.vm.box = 'bento/debian-10'
+ config.vm.box_version = '= 202105.25.0'
+ config.vm.box_check_update = false
+ config.vm.hostname = 'i2pvm'
+
+ # ssh
+ config.ssh.insert_key = true
+ config.ssh.keep_alive = true
+ config.ssh.keys_only = true
+
+ # timeouts
+ config.vm.boot_timeout = 300
+ config.vm.graceful_halt_timeout = 60
+ config.ssh.connect_timeout = 15
+
+ # network
+ config.vm.network 'forwarded_port', guest: 4444, host: 4445, id: 'i2ptun', protocol: 'tcp'
+ config.vm.network 'forwarded_port', guest: 4444, host: 4445, id: 'i2ptun', protocol: 'udp'
+
+ config.vm.provider 'libvirt' do |libvirt|
+ libvirt.driver = 'kvm'
+ libvirt.machine_type = 'pc-q35-3.1'
+ libvirt.qemuargs value: '-device'
+ libvirt.qemuargs value: 'virtio-rng-pci,rng=rng0'
+ libvirt.qemuargs value: '-object'
+ libvirt.qemuargs value: 'rng-random,id=rng0,filename=/dev/urandom'
+ libvirt.qemuargs value: '-nographic'
+ libvirt.qemuargs value: '-nodefaults'
+ libvirt.qemuargs value: '-no-user-config'
+ libvirt.qemuargs value: '-cpu'
+ libvirt.qemuargs value: 'host'
+ libvirt.qemuargs value: '-enable-kvm'
+ libvirt.memory = '4096'
+ libvirt.cpus = '8'
+ end
+
+ config.vm.provision 'shell', inline: <<-SHELL
+ sudo apt update && sudo apt upgrade -y
+ sudo apt install -y apt-transport-https curl lynx w3m vim tmux
+ maindeb https://deb.i2p2.de/ buster
+ deb-src https://deb.i2p2.de/ buster main
+ curl -o i2p-debian-repo.key.asc https://geti2p.net/_static/i2p-debian-repo.key.asc
+ gpg -n --import --import-options import-show i2p-debian-repo.key.asc
+ sudo apt-key add i2p-debian-repo.key.asc
+ sudo apt update
+ sudo apt install -y i2p
+ # sudo dpkg-reconfigure i2p
+ SHELL
+end