Is someone deleting messages? I just got back on here and 3 messages were 
gone. Anyway, the windows vm is internet capable but the hyper-v ones 
aren't right out of the box. I usually have to do a service network restart 
and then they are. The onboot in the eth0 file is set to no by default 
apparently. I followed the instructions in that link as far as I can tell. 
They don't seem to have had an effect. I noticed that packer usually 
attempts to create a network switch when a build is ran. I played around 
and noticed that none of the switches other than Default Switch seem to be 
internet capable. Whenever I change switches to one other than default, the 
vm can't access the internet. Is there a way to specify in the json for the 
build to use Default Switch? Whenever I try to use switch_name to 
specify it, it doesn't seem to like that Default Switch is 2 words. Any 
ideas?

On Monday, February 25, 2019 at 11:09:27 AM UTC-5, Megan Marsh wrote:
>
> Can your HyperV vm reach the internet? When I've had frustrating boot 
> failures with KS files it's because the vm can't find the files that Packer 
> is serving. Check out this resource on configuring the network: 
> https://www.groovypost.com/howto/share-an-ethernet-or-wireless-network-connection-with-hyper-v-in-windows-10/
>  
> . tl;dr is that you need to go to the control panel's network and sharing 
> center and make sure that the eth0 adpater is sharing internet with your 
> hyper-v adapter.
>

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/12329e29-a83c-40e4-bfe9-c74fba6866eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to