简体   繁体   English

如何从主机访问存储在虚拟机中的文件

[英]How to access files stored in Virtual Machine from Host

I have a Mac OS X (10.11) virtual machine. 我有一台Mac OS X(10.11)虚拟机。 But it has stopped working. 但是它已经停止工作了。 It just about finishes loading the virtual machine and then just freezes on a black screen. 它几乎完成了虚拟机的加载,然后冻结在黑屏上。 Anyway, I wanna know if there is a way for me to recover the files on that virtual machine (Specifically Xcode files). 无论如何,我想知道我是否有办法恢复该虚拟机上的文件(特别是Xcode文件)。 They were not part of the shared folders so I'm not sure how to access them from the host (which is a windows 10). 它们不是共享文件夹的一部分,因此我不确定如何从主机(Windows 10)访问它们。

One way to do this is to do the following: 一种方法是执行以下操作:

  1. Create another virtual machine with Ubuntu 使用Ubuntu创建另一个虚拟机
  2. Attached the virtual disk image (.vdi) or whichever format you chose to store the OSX image as a second HDD to the Ubuntu VM. 将虚拟磁盘映像(.vdi)或您选择用来将OSX映像作为第二个HDD存储到Ubuntu VM的任何格式附加。
  3. Follow these instructions to enable HFS+ read write in the Ubuntu virual image. 请按照以下说明在Ubuntu虚拟映像中启用HFS +读写。

Another way to do it would be to use something like Arsenal Image mounter which supports direct mounting of a bunch of virtual image formats including VDI, VHD etc. 另一种方法是使用类似Arsenal Image mounter的工具 ,该工具支持直接挂载包括VDI,VHD等在内的一系列虚拟图像格式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM