如何使用.NET访问VMWare文件系统 [英] How to access VMWare filesystem with .NET means

查看:125
本文介绍了如何使用.NET访问VMWare文件系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的C#3.5程序中,我想从VMWare虚拟机访问NTFS/FAT驱动器.我有带Windows 7的vmdk文件.

In my C# 3.5 program I would like to access a NTFS/FAT drives from VMWare virtual machine. I have vmdk file with Windows 7 inside.

是否有任何编程方式从vmdk文件挂载此类驱动器,并使用常规的.NET API(如File.ReadAllText,Directory.GetDirectories等)来访问它们?

Is there any programmatic way to mount such drives from vmdk file and access them with the regular .NET API like File.ReadAllText, Directory.GetDirectories and so on?

推荐答案

我认为您应该能够使用VMWARE Disk MOunt实用程序挂载虚拟机磁盘映像(.vmdk)-然后,您应该能够像访问任何虚拟机一样访问它其他驱动器-有关磁盘快照的一些警告-找到了更多信息此处

I think you should be able to mount the virtual machine disk image (.vmdk) using VMWARE Disk MOunt utility - then you should be able to access it like any other drive - there are some caveats regarding disk snapshots - found some more info here

该实用程序具有命令行界面,因此应该可以使用Process.Start()执行安装操作

The utility has a command line interface so it should be possible to use Process.Start() to execute the mount operation

这篇关于如何使用.NET访问VMWare文件系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆