Conversation
Remove steps that are windows specific
Move builder into correctly named folder
Use the convention for default hdd size Tests added for builder
…s how other system like VeeWee do it. Add support for number of cpus to use for vm Add support for vm generation
Attempt to stop vm, before deleting it
Setup local http server Add compaction of hard drive GetHostAdapterIpAddress function added for hyperv renamed step step_start_vm to step_run to fall in ine with naming conventions of other builders
…reate a dvd drive for os if it does not exist. Allow secure boot mode to be configured from config.
…e WinRM ports as well as SSH ports.
Get VName out of state. This allows template replacement to be run on vmname
…hines to have at least 1 iso image attached
Don't want to be prompted for confirmation from powershell commandlets
Conflicts: helper/communicator/step_connect.go helper/communicator/step_connect_winrm.go
…ler location. This fixes the bug of first generation machines not being able to add more then 1 dvd drive.
Update documentation to include new key modifiers.
… -Name option. So avoid using it, as it will break on machines with different languages.
To enable nested virtualization, mac spoofing, no dynamic memory and at least 4gb of ram should be set for the vm. Set warning if this has not been done. Detected Virtualization Extensions are supported by the machine your are running on, as it only works for Windows 10 and Windows Server 2016 onwards.
… enable_virtualization_extensions
# Conflicts: # builder/qemu/builder.go # command/plugin.go
Enable VlanID
…eople to leave the switch in trunk mode and set a vlan for the vm.
|
Why not set a static ip via unattended.xml file calling a powershell file? Or call it as part of the provisioning phase if windows updates are not required. Surely setting a NAT up in hyperv switch with dhcp is preferable? I personally run pfsense in a vm for all my routing needs. Nice easy gui. https://4sysops.com/archives/native-nat-in-windows-10-hyper-v-using-a-nat-virtual-switch/ |
|
While this is an option I use in other scenarios, I prefer not having to rely on yet another component, for different reasons:
I'm sure there would be other reasons in the wild, but those are why I went through the effort of adding this little convenience to your work. |
|
I've been meaning to test this with Linux guests but I've got deadlines looming. I didn't want you to think I was ignoring you :-) |
Hi,
I added support for setting fixed IP address, subnet mask, Gateway, DNS server on the VM as per this article:
http://www.ravichaganti.com/blog/set-or-inject-guest-network-configuration-from-hyper-v-host-windows-server-2012/
It's also what the Hyper-V driver for Test-Kitchen leverages (https://github.com/gaelcolas/kitchen-hyperv/blob/master/support/hyperv.ps1).
This works on Windows 10 Build 14931 using a NAT switch.
I reused @mwrock's hyperv-2016.json templates, adding the settings likeso:
Feedback welcome! (this is my first
goat it)