Skip to content

Instantly share code, notes, and snippets.

@StefanScherer
Created May 5, 2016 08:36
Show Gist options
  • Save StefanScherer/a2d2c7d9e9ae95fe37171e63b8e0b609 to your computer and use it in GitHub Desktop.
Save StefanScherer/a2d2c7d9e9ae95fe37171e63b8e0b609 to your computer and use it in GitHub Desktop.
Mediathek
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "windows_10"
config.vm.network :forwarded_port, guest: 5985, host: 5985, id: "winrm", auto_correct: true
config.vm.network :forwarded_port, guest: 3389, host: 3389, id: "rdp", auto_correct: true
config.vm.communicator = "winrm"
config.winrm.username = "vagrant"
config.winrm.password = "vagrant"
config.vm.guest = :windows
config.windows.halt_timeout = 15
config.vm.provision "shell", inline: <<-SHELL
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
choco install -y javaruntime -PackageParameters "/exclude:32"
choco install -y vlc
choco install -y mediathekview
choco install -y wget
choco install -y anyvideoconverter
SHELL
["vmware_fusion", "vmware_workstation"].each do |provider|
config.vm.provider provider do |v, override|
v.gui = true
end
end
config.vm.provider "vmware_fusion" do |v|
v.vmx["gui.fitguestusingnativedisplayresolution"] = "FALSE"
v.vmx["mks.enable3d"] = "TRUE"
v.vmx["mks.forceDiscreteGPU"] = "TRUE"
v.vmx["gui.fullscreenatpoweron"] = "TRUE"
v.vmx["gui.viewmodeatpoweron"] = "fullscreen"
v.vmx["gui.lastPoweredViewMode"] = "fullscreen"
v.vmx["sound.startconnected"] = "TRUE"
v.vmx["sound.present"] = "TRUE"
v.vmx["sound.autodetect"] = "TRUE"
v.enable_vmrun_ip_lookup = false
v.vmx["memsize"] = "2048"
v.vmx["numvcpus"] = "2"
v.vmx["vhv.enable"] = "FALSE"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment