From 3aa0738388358f92d431d040c91257d3232a5daa Mon Sep 17 00:00:00 2001 From: Trinitor Date: Fri, 6 Aug 2021 10:02:28 +0200 Subject: [PATCH] removed VMware and libvirt --- Vagrant/Vagrantfile | 92 ++------------------------------------------- 1 file changed, 4 insertions(+), 88 deletions(-) diff --git a/Vagrant/Vagrantfile b/Vagrant/Vagrantfile index 8dedce5..53f248b 100644 --- a/Vagrant/Vagrantfile +++ b/Vagrant/Vagrantfile @@ -1,3 +1,7 @@ +unless Vagrant.has_plugin?("vagrant-reload") + raise 'vagrant-reload plugin is not installed! - run: vagrant plugin install vagrant-reload' +end + Vagrant.configure("2") do |config| config.vm.define "logger" do |cfg| @@ -6,13 +10,6 @@ Vagrant.configure("2") do |config| cfg.vm.provision :shell, path: "logger_bootstrap.sh" cfg.vm.network :private_network, ip: "192.168.38.105", gateway: "192.168.38.1", dns: "8.8.8.8" - cfg.vm.provider "vmware_desktop" do |v, override| - v.vmx["displayname"] = "logger" - v.memory = 4096 - v.cpus = 2 - v.gui = true - end - cfg.vm.provider "virtualbox" do |vb, override| vb.gui = true vb.name = "logger" @@ -24,26 +21,6 @@ Vagrant.configure("2") do |config| vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] vb.customize ["setextradata", "global", "GUI/SuppressMessages", "all" ] end - - cfg.vm.provider "libvirt" do |lv, override| - lv.graphics_type = "vnc" - lv.video_type = "vga" - lv.input :type => "tablet", :bus => "usb" - lv.video_vram = 32768 - lv.memory = 4096 - lv.cpus = 2 - # This is required for Vagrant to properly configure the network interfaces. - # See https://github.com/clong/DetectionLab/wiki/LibVirt-Support for more information - lv.management_network_name = "VagrantMgmt" - lv.management_network_address = "192.168.123.0/24" - lv.management_network_mode = "none" - lv.cpu_mode = "host-passthrough" - # Which storage pool path to use. Default to /var/lib/libvirt/images or ~/.local/share/libvirt/images depending on if you are running a system or user QEMU/KVM session. - #libvirt.storage_pool_path = '/media/storage_nvme/system_session_vm_pool' - lv.storage_pool_name = 'default' - override.vm.box = "generic/ubuntu1804" - override.vm.synced_folder './', '/vagrant', type: 'rsync' - end end config.vm.define "dc" do |cfg| @@ -80,14 +57,6 @@ Vagrant.configure("2") do |config| cfg.vm.provision "shell", inline: "Set-SmbServerConfiguration -AuditSmb1Access $true -Force", privileged: false cfg.vm.provision "shell", inline: "Write-Host 'DC Provisioning Complete!'", privileged: false - cfg.vm.provider "vmware_desktop" do |v, override| - v.vmx["displayname"] = "dc.windomain.local" - v.memory = 3072 - v.cpus = 2 - v.gui = true - v.enable_vmrun_ip_lookup = false - end - cfg.vm.provider "virtualbox" do |vb, override| vb.gui = true vb.name = "dc.windomain.local" @@ -99,20 +68,6 @@ Vagrant.configure("2") do |config| vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] vb.customize ["setextradata", "global", "GUI/SuppressMessages", "all" ] end - - cfg.vm.provider "libvirt" do |lv, override| - lv.graphics_type = "spice" - lv.video_type = "qxl" - lv.input :type => "tablet", :bus => "usb" - - override.vm.box = "../Boxes/windows_2016_libvirt.box" - lv.video_vram = 32768 - lv.memory = 3072 - lv.cpus = 2 - # This is NOT the right semantic for Vagrant synced folder. It's a workaround: - # https://github.com/Cimpress-MCP/vagrant-winrm-syncedfolders/issues/11 - override.vm.synced_folder '.', '/', type: 'winrm' - end end config.vm.define "wef" do |cfg| @@ -147,14 +102,6 @@ Vagrant.configure("2") do |config| cfg.vm.provision "shell", path: "scripts/install-microsoft-ata.ps1", privileged: false cfg.vm.provision "shell", inline: "Write-Host 'WEF Provisioning Complete!'", privileged: false - cfg.vm.provider "vmware_desktop" do |v, override| - v.vmx["displayname"] = "wef.windomain.local" - v.memory = 2048 - v.cpus = 2 - v.gui = true - v.enable_vmrun_ip_lookup = false - end - cfg.vm.provider "virtualbox" do |vb, override| vb.gui = true vb.name = "wef.windomain.local" @@ -166,17 +113,6 @@ Vagrant.configure("2") do |config| vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] vb.customize ["setextradata", "global", "GUI/SuppressMessages", "all" ] end - - cfg.vm.provider "libvirt" do |lv, override| - lv.graphics_type = "spice" - lv.video_type = "qxl" - lv.input :type => "tablet", :bus => "usb" - override.vm.box = "../Boxes/windows_2016_libvirt.box" - lv.video_vram = 32768 - lv.memory = 2048 - lv.cpus = 2 - override.vm.synced_folder '.', '/', type: 'winrm' - end end config.vm.define "win10" do |cfg| @@ -205,16 +141,6 @@ Vagrant.configure("2") do |config| cfg.vm.provision "shell", path: "scripts/install-autorunstowineventlog.ps1", privileged: false cfg.vm.provision "shell", inline: "Write-Host 'Win10 Provisioning Complete!'", privileged: false - cfg.vm.provider "vmware_desktop" do |v, override| - v.vmx["displayname"] = "win10.windomain.local" - v.vmx["gui.fullscreenatpoweron"] = "FALSE" - v.vmx["gui.viewModeAtPowerOn"] = "windowed" - v.memory = 2048 - v.cpus = 1 - v.gui = true - v.enable_vmrun_ip_lookup = false - end - cfg.vm.provider "virtualbox" do |vb, override| vb.gui = true vb.name = "win10.windomain.local" @@ -226,15 +152,5 @@ Vagrant.configure("2") do |config| vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] vb.customize ["setextradata", "global", "GUI/SuppressMessages", "all" ] end - cfg.vm.provider "libvirt" do |lv, override| - lv.graphics_type = "spice" - lv.video_type = "qxl" - lv.input :type => "tablet", :bus => "usb" - override.vm.box = "../Boxes/windows_10_libvirt.box" - lv.video_vram = 32768 - lv.memory = 2048 - lv.cpus = 2 - override.vm.synced_folder '.', '/', type: 'winrm' - end end end