-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unmount all volumes on device wipe, change device enumeration impl (#22)
- Loading branch information
1 parent
9d2ed75
commit 30b8b68
Showing
19 changed files
with
665 additions
and
380 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ | |
*.iml | ||
/.vagrant | ||
/testing/*.vdi | ||
*.log |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,16 @@ | ||
test_drive_path = './testing/test_drive.vdi' | ||
Vagrant.require_version ">= 2.2.8" | ||
ENV['VAGRANT_EXPERIMENTAL'] = 'disks' | ||
|
||
Vagrant.configure("2") do |config| | ||
config.vm.define "hashicorp" do |h| | ||
h.vm.box = "hashicorp/bionic64" | ||
h.vm.provider :virtualbox | ||
|
||
config.vm.provider "virtualbox" do |v| | ||
v.memory = 1024 | ||
v.cpus = 2 | ||
h.vm.disk :disk, size: "1GB", name: "extra_storage" | ||
|
||
v.customize ["modifyvm", :id, "--usb", "off"] | ||
v.customize ["modifyvm", :id, "--usbehci", "off"] | ||
v.customize ["modifyvm", :id, "--usbxhci", "off"] | ||
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] | ||
v.customize ["modifyvm", :id, "--natdnsproxy1", "on"] | ||
|
||
unless File.exist?(test_drive_path) | ||
v.customize ['createhd', '--filename', test_drive_path, '--size', 99] | ||
end | ||
v.customize ['storageattach', :id, '--storagectl', 'IDE Controller', '--port', 1, '--device', 0, '--type', 'hdd', '--medium', test_drive_path] | ||
|
||
end | ||
|
||
config.vm.define "linux" do |linux| | ||
linux.vm.box = "minimal/xenial64" | ||
|
||
linux.vm.provision "shell", inline: "echo Welcome to testing Lethe" | ||
linux.vm.provision "shell", inline: "apt-get update" | ||
linux.vm.provision "shell", inline: "apt-get -y install curl build-essential" | ||
linux.vm.provision "shell", inline: "curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal" | ||
h.vm.provision "shell", inline: "echo Welcome to testing Lethe" | ||
h.vm.provision "shell", inline: "apt-get update" | ||
h.vm.provision "shell", inline: "apt-get -y install curl build-essential" | ||
h.vm.provision "shell", inline: "curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal", privileged: false | ||
end | ||
|
||
end |
Oops, something went wrong.