aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--i2p/Vagrantfile50
-rw-r--r--openbsd/Vagrantfile2
-rw-r--r--tiny/Vagrantfile4
-rw-r--r--ubuntu1604/Vagrantfile48
4 files changed, 76 insertions, 28 deletions
diff --git a/i2p/Vagrantfile b/i2p/Vagrantfile
index d163925..4ce5064 100644
--- a/i2p/Vagrantfile
+++ b/i2p/Vagrantfile
@@ -39,40 +39,40 @@ Vagrant.configure('2') do |config|
config.vm.provider 'libvirt' do |libvirt|
libvirt.default_prefix = 'i2ptun-'
libvirt.driver = 'kvm'
- libvirt.memory = '1024'
- libvirt.cpus = 1
+ libvirt.memory = '3076'
+ libvirt.cpus = 2
libvirt.sound_type = nil
- libvirt.qemuargs value: '-nographic'
+ # libvirt.qemuargs value: '-nographic'
libvirt.qemuargs value: '-nodefaults'
libvirt.qemuargs value: '-no-user-config'
libvirt.random model: 'random'
end
- config.vm.provision 'i2p-install', type: 'shell', name: 'i2p-install', 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
- # i2prouter install && i2prouter start
- SHELL
+ # config.vm.provision 'i2p-install', type: 'shell', name: 'i2p-install', 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
+ # # i2prouter install && i2prouter start
+ # SHELL
- config.vm.provision 'i2p-config-copy', after: 'i2p-install', type: 'shell', privileged: false,
- name: 'i2p-config-copy', reboot: false, inline: <<-SHELL
- sudo cp /vagrant/clients.config /var/lib/i2p/i2p-config/clients.config
- sudo cp /vagrant/wrapper.config /etc/i2p/wrapper.config
- sudo systemctl enable i2p
- sudo systemctl start i2p
- i2prouter restart
- SHELL
+ # config.vm.provision 'i2p-config-copy', after: 'i2p-install', type: 'shell', privileged: false,
+ # name: 'i2p-config-copy', reboot: false, inline: <<-SHELL
+ # sudo cp /vagrant/clients.config /var/lib/i2p/i2p-config/clients.config
+ # sudo cp /vagrant/wrapper.config /etc/i2p/wrapper.config
+ # sudo systemctl enable i2p
+ # sudo systemctl start i2p
+ # i2prouter restart
+ # SHELL
config.vm.provision 'firefox', after: 'i2p-config-copy', type: 'shell', privileged: false, name: 'firefox',
reboot: false, inline: <<-SHELL
- sudo apt-get install -y firefox-esr
+ sudo apt-get install -y firefox-esr xauth xorg i2pd
SHELL
end
diff --git a/openbsd/Vagrantfile b/openbsd/Vagrantfile
index 970bff9..086c176 100644
--- a/openbsd/Vagrantfile
+++ b/openbsd/Vagrantfile
@@ -4,7 +4,7 @@
ENV['VAGRANT_DEFAULT_PROVIDER'] = 'libvirt'
MOUNT_POINT = '/home/vagrant/ff'
CPU_COUNT = 1
-MEMORY = 512
+MEMORY = 128
Vagrant.require_version '>= 2.2.6'
Vagrant.configure('2') do |config|
diff --git a/tiny/Vagrantfile b/tiny/Vagrantfile
index c5215df..c3e1168 100644
--- a/tiny/Vagrantfile
+++ b/tiny/Vagrantfile
@@ -26,14 +26,14 @@ Vagrant.configure('2') do |config|
config.ssh.connect_timeout = 15
# shares
- config.vm.synced_folder '.', '/vagrant', type: 'nfs', nfs_version: 4, nfs_udp: false
+ # config.vm.synced_folder '.', '/vagrant', type: 'nfs', nfs_version: 4, nfs_udp: false
config.vagrant.plugins = ['vagrant-reload', { 'vagrant-libvirt' => { 'version' => '^0.6.2' } }]
config.vm.provider 'libvirt' do |libvirt|
libvirt.default_prefix = 'tiny-'
libvirt.driver = 'kvm'
- libvirt.memory = '512'
+ libvirt.memory = '128'
libvirt.cpus = 1
libvirt.sound_type = nil
libvirt.qemuargs value: '-nographic'
diff --git a/ubuntu1604/Vagrantfile b/ubuntu1604/Vagrantfile
new file mode 100644
index 0000000..76bef43
--- /dev/null
+++ b/ubuntu1604/Vagrantfile
@@ -0,0 +1,48 @@
+# vi: set ft=ruby :
+# frozen_string_literal: true
+
+ENV['VAGRANT_DEFAULT_PROVIDER'] = 'libvirt'
+Vagrant.require_version '>= 2.2.6'
+Vagrant.configure('2') do |config|
+ config.vm.box = 'generic/ubuntu1604'
+ config.vm.box_version = '4.0.2'
+ config.vm.box_check_update = false
+ config.vm.hostname = 'virt-ubuntu16'
+
+ # 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
+
+ # shares
+ # config.vm.synced_folder '.', '/vagrant', type: 'nfs', nfs_version: 3, nfs_udp: false
+
+ config.vagrant.plugins = ['vagrant-reload', { 'vagrant-libvirt' => { 'version' => '^0.6.2' } }]
+
+ config.vm.provider 'libvirt' do |libvirt|
+ libvirt.default_prefix = 'ubuntu16-'
+ libvirt.driver = 'kvm'
+ libvirt.memory = '512'
+ libvirt.cpus = 1
+ libvirt.sound_type = nil
+ libvirt.qemuargs value: '-nographic'
+ libvirt.qemuargs value: '-nodefaults'
+ libvirt.qemuargs value: '-no-user-config'
+ # libvirt.qemuargs value: '-chardev'
+ # libvirt.qemuargs value: 'serial,path=/dev/ttyS0,id=hostusbserial'
+ # libvirt.qemuargs value: '-chardev'
+ # libvirt.qemuargs value: 'pci-serial,chardev=hostusbserial'
+ # libvirt.qemuargs value: '-serial'
+ # libvirt.qemuargs value: 'telnet::4332,server,nowait'
+ libvirt.random model: 'random'
+ end
+
+ # config.vm.provision 'i2p-install', type: 'shell', name: 'i2p-install', inline: <<-SHELL
+ # sudo apt update && sudo apt upgrade -y
+ # SHELL
+end