LibVirt fixes
This commit is contained in:
58
Vagrant/Vagrantfile
vendored
58
Vagrant/Vagrantfile
vendored
@@ -1,26 +1,13 @@
|
||||
libvirt_win10_box = "../Boxes/windows_10_libvirt.box"
|
||||
libvirt_win2016_box = "../Boxes/windows_2016_libvirt.box"
|
||||
|
||||
|
||||
Vagrant.configure("2") do |config|
|
||||
|
||||
config.vm.provider "libvirt" do |libvirt|
|
||||
# This is required for Vagrant to properly configure the network interfaces.
|
||||
# See libvirt's README section for more information
|
||||
|
||||
libvirt.management_network_name = "VagrantMgmt"
|
||||
libvirt.management_network_address = "192.168.123.0/24"
|
||||
libvirt.management_network_mode = "none"
|
||||
|
||||
libvirt.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'
|
||||
libvirt.storage_pool_name = 'default'
|
||||
end
|
||||
|
||||
config.vm.define "logger" do |cfg|
|
||||
cfg.vm.box = "generic/ubuntu1604"
|
||||
|
||||
cfg.vm.box = "bento/ubuntu-18.04"
|
||||
cfg.vm.hostname = "logger"
|
||||
cfg.vm.provision :shell, path: "bootstrap.sh"
|
||||
cfg.vm.network :private_network, ip: "192.168.38.105", gateway: "192.168.38.1", dns: "8.8.8.8"
|
||||
@@ -51,7 +38,16 @@ Vagrant.configure("2") do |config|
|
||||
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/ubuntu1604"
|
||||
override.vm.synced_folder './', '/vagrant', type: 'rsync'
|
||||
end
|
||||
end
|
||||
@@ -114,18 +110,12 @@ Vagrant.configure("2") do |config|
|
||||
lv.video_type = "qxl"
|
||||
lv.input :type => "tablet", :bus => "usb"
|
||||
|
||||
override.vm.box = libvirt_win2016_box
|
||||
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 dirty hack around :
|
||||
# This is NOT the right semantic for Vagrant synced folder. It's a workaround:
|
||||
# https://github.com/Cimpress-MCP/vagrant-winrm-syncedfolders/issues/11
|
||||
# If dest is /vagrant, it'll upload in C:\vagrant\Vagrant....
|
||||
# It's like 'cp /my/dir /my/dir2' vs 'cp /my/dir /my/dir2/'
|
||||
#
|
||||
# The Winrm synced folder plugin is also excruciatingly slow. Would gladly replace with something else
|
||||
# that works with linux host and windows guest...
|
||||
|
||||
override.vm.synced_folder '.', '/', type: 'winrm'
|
||||
end
|
||||
end
|
||||
@@ -185,18 +175,10 @@ Vagrant.configure("2") do |config|
|
||||
lv.graphics_type = "spice"
|
||||
lv.video_type = "qxl"
|
||||
lv.input :type => "tablet", :bus => "usb"
|
||||
override.vm.box = libvirt_win2016_box
|
||||
override.vm.box = "../Boxes/windows_2016_libvirt.box"
|
||||
lv.video_vram = 32768
|
||||
lv.memory = 2048
|
||||
lv.cpus = 2
|
||||
# This is NOT the right semantic for Vagrant synced folder. It's a dirty hack around :
|
||||
# https://github.com/Cimpress-MCP/vagrant-winrm-syncedfolders/issues/11
|
||||
# If dest is /vagrant, it'll upload in C:\vagrant\Vagrant....
|
||||
# It's like 'cp /my/dir /my/dir2' vs 'cp /my/dir /my/dir2/'
|
||||
#
|
||||
# The Winrm synced folder plugin is also excruciatingly slow. Would gladly replace with something else
|
||||
# that works with linux host and windows guest...
|
||||
|
||||
override.vm.synced_folder '.', '/', type: 'winrm'
|
||||
end
|
||||
end
|
||||
@@ -252,18 +234,10 @@ Vagrant.configure("2") do |config|
|
||||
lv.graphics_type = "spice"
|
||||
lv.video_type = "qxl"
|
||||
lv.input :type => "tablet", :bus => "usb"
|
||||
override.vm.box = libvirt_win10_box
|
||||
override.vm.box = "../Boxes/windows_10_libvirt.box"
|
||||
lv.video_vram = 32768
|
||||
lv.memory = 2048
|
||||
lv.cpus = 2
|
||||
# This is NOT the right semantic for Vagrant synced folder. It's a dirty hack around :
|
||||
# https://github.com/Cimpress-MCP/vagrant-winrm-syncedfolders/issues/11
|
||||
# If dest is /vagrant, it'll upload in C:\vagrant\Vagrant....
|
||||
# It's like 'cp /my/dir /my/dir2' vs 'cp /my/dir /my/dir2/'
|
||||
#
|
||||
# The Winrm synced folder plugin is also excruciatingly slow. Would gladly replace with something else
|
||||
# that works with linux host and windows guest...
|
||||
|
||||
override.vm.synced_folder '.', '/', type: 'winrm'
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user