hyper-v虚拟机驱动
It’s extremely convenient to access a local hard drive (be it an internal drive or an external drive) that’s connected to your Windows computer from within a virtual machine running in Hyper-V. It’s not so convenient to figure out exactly how to accomplish that end though. Read on as we walk you through it.
从Hyper-V中运行的虚拟机中访问连接到Windows计算机的本地硬盘驱动器(内部驱动器或外部驱动器)极为方便。 不过,要弄清楚如何实现这一目标并不是很方便。 继续阅读时,请继续阅读。
我为什么要这样做? (Why Do I Want To Do This?)
There are dozens of scenarios where you would want to access a physical hard drive from inside your Hyper-V virtual machine ranging from accessing and importing data, dumping data from the virtual machine into the external drive, and importing or exporting disc images.
在数十种情况下,您需要从Hyper-V虚拟机内部访问物理硬盘驱动器,包括访问和导入数据,将数据从虚拟机转储到外部驱动器以及导入或导出磁盘映像。
Whatever reason you have for wanting to access an existing local hard drive in your Hyper-V machine it’s, unfortunately, a bit complicated giving the drives access to the virtual machine. Unlike other virtualization solutions there is no easy way to just share resources between the host machine and the Hyper-V virtual machine.
无论出于何种原因想要访问Hyper-V计算机中的现有本地硬盘驱动器,不幸的是,赋予驱动器访问虚拟机的权限有点复杂。 与其他虚拟化解决方案不同,没有简单的方法可以在主机和Hyper-V虚拟机之间共享资源。
To use a drive within a Hyper-V machine you need to take the drive, while physically attached and mounted to the host machine, offline and then reroute the offline-to-the-host disk into the virtual machine. Let’s take a look at how to do that now.
要在Hyper-V计算机中使用驱动器,需要将该驱动器物理连接并安装到主机后使其脱机,然后将脱机主机磁盘重新路由到虚拟机中。 让我们看一下现在如何做。
A quick note before we proceed: this trick only works with hard drives (magnetic ha