Hyper-V

Copy ISO file to Windows Server 2016 Hyper-V

In this post we will take a look at how to copy ISO file to Windows Server 2016 Hyper-V host. It involves adding a firewall rule and then the file copy.

For those coming from the VMware world of doing things and wanting to get their feet wet with Hyper-V, one of the nagging little things that you might run into when first trying to deploy a VM with Hyper-V is – how do you copy ISO file to Windows Server 2016 Hyper-V? ย Let’s take a look with a standalone Windows Server 2016 Hyper-V host how to copy our ISO to the server for using in VM deployment.

Copy ISO file to Windows Server 2016 Hyper-V

Even with remote monitoring enabled in Hyper-V there is often many firewall rules that need to be enabled to do certain things connecting back to the Hyper-V server. ย When you install the Hyper-V 2016 server which is free, it is basically Server Core with the Hyper-V role already installed. ย Also, when you install Windows Server 2016 Server without the GUI, this is also Server Core. ย So, we need to enable the firewall rules from the commandline to be able to copy over a file to the Hyper-V host. ย The command below adds the exception in the advanced firewall rules for the Hyper-V host.

netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=Yes

Below is the process I used to create a simple folder on an attached storage volume, then enabled the firewall rule.

Now, we can use a management workstation to copy an ISO file over to theย D:ISOs folder we just created by simply mapping a drive to theย D$ admin share.

If you want to then disable the firewall rule, the process is the same – change theย yes toย no on the enable rule.

netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=No

When we create our Hyper-V VM guest, we can select the ISO image from the Hyper-V host local folder we created and uploaded the ISO image file to.

hyperviso02

Thoughts

The process toย Copy ISO file to Windows Server 2016 Hyper-V server is a little more involved than in VMware ESXi server when you are copying the ISO to a standalone Hyper-V host. ย However, with the firewall exception and a management workstation, this task is easily accomplished.

Subscribe to VirtualizationHowto via Email ๐Ÿ””

Enter your email address to subscribe to this blog and receive notifications of new posts by email.



Brandon Lee

Brandon Lee is the Senior Writer, Engineer and owner at Virtualizationhowto.com, and a 7-time VMware vExpert, with over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, He has extensive experience in various IT segments and is a strong advocate for open source technologies. Brandon holds many industry certifications, loves the outdoors and spending time with family. Also, he goes through the effort of testing and troubleshooting issues, so you don't have to.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.