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.

Highlights

  • 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.
  • 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.
  •  So, we need to enable the firewall rules from the commandline to be able to copy over a file to the Hyper-V host.

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 has over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, Brandon 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.

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.