Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hyper-V support for CentOS 7.3 #822

Closed
wants to merge 2 commits into from
Closed

Conversation

wickedviking
Copy link
Contributor

Due to the way Hyper-V handles virtual switches the name of the virtual switch must be passed as an environment variable.

Can be obtained via: Get-VMSwitch in PowerShell.

Example packer build command

packer build --only=hyperv-iso -var 'hyperv_switch="Your vSwitch Name"' .\centos-7.3-x86_
64.json

Several changes were required for the ks.cfg

  • network --bootproto=dhcp --onboot=on --device=eth0 forces the network to be available for %post
  • reboot --eject forces ejection of the install media after first reboot, otherwise you end up in the installer again

@wickedviking
Copy link
Contributor Author

bah
Branches!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant