VMware

This Question is Answered

1 "correct" answer available (10 pts)
1 2 Previous Next 20 Replies Last post: Oct 13, 2007 4:13 PM by etung  

Putting a second disk on another drive posted: Sep 2, 2007 9:12 PM

Click to view neilford's profile Enthusiast 47 posts since
Sep 2, 2007
I tried to add another virtual drive, but I couldn't find out, as I was adding it, how to add it to
an external usb drive I have for this. can it be done? Is there docs on this? Thanks.

neilford

Re: Putting a second disk on another drive

1. Sep 2, 2007 9:37 PM in response to: neilford
Click to view RDPetruska's profile Guru User Moderators vExpert 15,911 posts since
Jan 11, 2005
While you are adding it, does it not ask you for the name and location of the virtual disk you are creating?

Re: Putting a second disk on another drive

2. Sep 3, 2007 8:33 AM in response to: neilford
Click to view KevinG's profile Guru VMware Employees User Moderators 16,980 posts since
Jan 8, 2004
You can not use the external usb drive as a physical/raw disk in a virtual machine configuration, but there is nothing stopping to from storing the .vmdk file(s) for the second virtual disk on the external usb drive

Re: Putting a second disk on another drive

5. Sep 4, 2007 8:17 AM in response to: neilford
Click to view etung's profile Guru VMware Employees 11,330 posts since
Oct 15, 2006
Yes, the UI will want to stick the new vmdk in the vmwarevm bundle to keep everything together. You can put the vmdk on your external drive by creating it with vmware-vdiskmanager (or use my GUI) or by moving the new vmdk to the external disk, then editing your vmx file to point at the external vmdk.

You could also go the shared folder route.

Re: Putting a second disk on another drive

7. Oct 11, 2007 12:15 PM in response to: neilford
Click to view etung's profile Guru VMware Employees 11,330 posts since
Oct 15, 2006
My GUI program only creates the virtual disk, it doesn't add it to the virtual machine (this would of course be a good thing to do, but I didn't have time to do it). You can manually add it to your VM by doing the following:
  1. Go to Settings for the VM, add a dummy hard disk of the appropriate type (ide/scsi). This generates the necessary entries in the vmx so you don't have to worry about getting the syntax right.
  2. Shut down the VM and edit the .vmx file (see A Beginner's Guide to VMware Fusion).
  3. Replace the dummy .vmdk filename with the full path to your real new .vmdk.
  4. Save the .vmx and optionally delete the dummy .vmdk (the default disk type is sparse so it doesn't take up much room, but I'd do it for cleanliness).

Re: Putting a second disk on another drive

9. Oct 11, 2007 9:06 PM in response to: neilford
Click to view etung's profile Guru VMware Employees 11,330 posts since
Oct 15, 2006
1) The virtual second disk did not mount to my XP os.

If it's a new blank virtual disk, you need to partition it before Windows will recognize it. See for example http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/dm_create_partitions.mspx

2) I could not mount it because the program told me that the " host " was using the
disk and I had to close all applications accessing the disk before I could use it.

This is a normal virtual disk, not a raw disk, right? How were you trying to mount it?

Re: Putting a second disk on another drive

11. Oct 12, 2007 10:12 AM in response to: neilford
Click to view etung's profile Guru VMware Employees 11,330 posts since
Oct 15, 2006
It did not come up
in " My Computer ", so I don't think it was mounted in XP, I think.

This also happens if the drive isn't partitioned.

Also, that is when I noticed that my USB drive
disappeared from my Mac's desktop. Is it not possible to have both drives mounted?

That's very strange, and should not happen. Did the USB drive somehow get connected to the guest?

Do I need to partition the drive
into a windows and a mac drive?

No, this should not be necessary (and won't help for a normal virtual disk, which is what I think you have).

When I tried to put a Shared Folder on the drive, a similar thing happened. The drive disappeared off my Mac's desktop.

Again, very strange and should not happen. Post your .vmx?

Re: Putting a second disk on another drive

14. Oct 13, 2007 6:43 AM in response to: neilford
Click to view etung's profile Guru VMware Employees 11,330 posts since
Oct 15, 2006
neilford wrote:
When I boot up my VM with the Shared Folder I created on the USB drive added to the VM, the drive disappears from the desktop and the Shared Folder cannot be loaded. If I disconnect the drive from the VM, the Shared Folder I created on it, does show up and I can access it. Does this make sense in how the Fusion works? Or is this an anomaly?

Ah, you didn't mention the drive was connected to the VM. This does make sense - if it's connected to the VM, OS X doesn't get to use it (since otherwise the drive would get confused with two controllers). This also explains why the second virtual disk didn't work. As you've found, disconnecting the USB drive from the VM will allow both the virtual disk and the shared folder to work.

VMware Beta Programs

Want to be Considered for Future Beta Programs?

Learn More

VMware Developer

Download SDKs, APIs, videos,
training, and more in the Developer community.

Learn More

Developer
Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld
Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

Only VMware ... Delivers Nexus 1000V

Ensure consistent, policy-based network capabilities to virtual machines across your data center.

Learn More

Communities