1 person found this helpful
Definetely. It seems like he's using the native api's instead of the horrible and dirty workaround.
Actually I am a little curious about this tool and would like to hear about reports with vmware usage and how it behaves.
first test :
host 2008 R2
guest : Win7 PE on local USB disk - diskmanagement detects it as physical disk2
maybe 30 seconds after boot of the VM
with the tool and physical disk2 locked everything is fine
test win Win 7 64 coming next
Do you know if it's possible to lock individual partitions with it?
nope - the tools only asks for full disks and locks all partitions that exist on specified disk.
But if you then create a "partitionedDevice" vmdk it works as expected = partitions excluded from the vmdk can not be mounted from the guest
is it possible to dismount more than 1 drive with that tool? Because I simply can't
For Windows 7 you might just as well put the disk offline with diskpart. It really does the same thing, and has no limitation in number of drivers..
Diskpart offline does not work ony My Win Srv 2008 R2
I've been fighting this for the last 4 hours before I found your answer.
The previously mentioned LockDismount doesn't appear to do anything from the command line, run from the GUI it seems to work but attempting to install my VM still dies. Taking it offline with Diskpart did it.
Yet another workaround that I found: The full system disk encryption feature of TrueCrypt software.
I have found this by accident. I have found this thread some time ago and haven since been a happy LockDismount user. In the while I have used TrueCrypt on my guest which would still work fine both as a VM and native. Then some time later there was some fiddling with my hard disk drives which changed positions. I had to rebuild the virtual disk file for the guest but didn't pay attention to the batch file I have made to start Workstation along with LockDismount. Only some time later I have found that my LockDismount shortcut wasn't pointing to the right drive and not locking anything anymore with the VM still running well. Confirmed with totally disabling LockDismount.
I figure because the partitions on the guest hard drive become raw partitions as they get encrypted, Windows cannot mount them anymore and whatever mandatory locking that was necessary before becomes pointless...
At any rate, it works, even though TrueCrypt's security features get heavily compromised by running into a VM.
So what is the general concensus on the best way to acheive this with multiple drives? I have 20 drives that I need to be able to do this with. Running workstation 7.1.4 under windows 7 64bit. I should be getting able to get some time to test this week.
Thanks for any advice in advance!
try diskpart first
So what is the general concensus on the best way to acheive this with multiple drives?
I don't know that there is a general consensus on the best way however I've used both LockDismount and DISKPART and both have worked however I'd use neither and instead use Disk Management (diskmgmt.msc).,
Click the Start Orb.
Type diskmgmt.msc and press Enter.
Right-click the target Disk and select Change Drive Letter and Paths...
Click Remove button.
Click Yes button.
Open VMware Workstation and Power On the Virtual Machine.
This is the method that I've been using under Windows 7 when I need to run a Virtual Machine that is using a Physical Disk and is IMO much easier then using DISKPART and was more reliable then LockDismount. DISKPART works but is a Console application and requires a lot of typing or wrapping a script around it and LockDismount something requires running it two or more times to get it to preform its actions as it would just outright fail to do it the first time with constancy.