VMware

This Question is Answered

1 2 Previous Next 20 Replies Last post: Mar 2, 2006 8:38 AM by pwm  

anybody running VMs from portable (USB) drives? posted: Dec 12, 2005 5:51 PM

Click to view magi's profile Master 2,096 posts since
Aug 8, 2003
Just curious, I'd like to poll our users (that means you!) to see who's tried running a VM from a removable drive (USB hard drive, flash memory or "USB key", etc.)?

If you have tried this, how was the performance?

One performance note I found when trying this is that portable hard drives tend to be a bit slower than typical desktop hard drives, and flash memory drives (even the best ones) tend to be a lot slower. And Windows by default disables write caching on removable drives (good for safety if you like yanking cables without doing "safely remove hardware", but bad for performance). The upshot is our optimization for fast suspends ends up doing badly on slow uncached drives, and your VM may run slower than it should. One workaround for this is to set "mainMem.useNamedFile=FALSE" in your .vmx file for any VMs you plan to use on portable/slow drives. Or, you can turn on write caching for that drive (but only if you know what this means, and then be very careful about telling Windows before unplugging the drive!).

Re: anybody running VMs from portable (USB) drives?

1. Dec 13, 2005 12:17 PM in response to: magi
Click to view continuum's profile Guru 12,616 posts since
Dec 18, 2003
Hi magi

I am running from VMs from USB/Firewire-traveldisks and I would say the performance is good - of course its slightly slower than with fixed disks but it is more than acceptable. All the time I use
"mainMem.useNamedFile=FALSE"

I also run VMs from USB/Firewire-traveldisks with a Windows-LiveCD which runs in RAM and in this case the performance is I guess 95% of the case mentioned above. In this case I can work without touching any fixed local-disk though it is advisable to create a pagefile on a fixed disk in situations like this.

Ulli

Re: anybody running VMs from portable (USB) drives?

2. Dec 13, 2005 3:08 PM in response to: magi
Click to view ATS's profile Novice 5 posts since
Sep 21, 2005
Where might we find the setup for the Windows live CD with VMWare on it? I assume you mean BartPE

Re: anybody running VMs from portable (USB) drives?

3. Dec 13, 2005 4:00 PM in response to: ATS
Click to view devzero's profile Master 2,749 posts since
Dec 27, 2004
If you have tried this, how was the performance?

i run VMs on my FSC Notebook from an external USB 2.0 drive and this works very well!

regards
roland

Re: anybody running VMs from portable (USB) drives?

4. Dec 14, 2005 5:51 AM in response to: magi
Click to view jjonesjr's profile Enthusiast 35 posts since
Mar 31, 2005
Diane Greene did it at vmworld... on her nano. Ask her how it works... or the lucky guy who she gave it to... I'd love to be able to take my vm with me, but it is too large to fit on my jump drive and anything else is too big to fit in my pocket.

Re: anybody running VMs from portable (USB) drives?

5. Dec 14, 2005 1:11 PM in response to: magi
Click to view Astupoli's profile Novice 5 posts since
Dec 14, 2005
I use VMWare WS 3.2 and recently moved my VM images to a USB drive. I haven't noticed any differences in performance yet, so I guess it just works fine.

I didn't know about the useNamedFile option you mention. Is this something available on WM WS 5.x only? Just curious.

Cheers

UPDATE: I just realized that this question is for VMware Player product. What I said above applies only to WS 3.2 running on a Windows XP laptop. I hope the info about the USB drives helps anyway.

Message was edited by:
Astupoli

Re: anybody running VMs from portable (USB) drives?

6. Dec 14, 2005 3:00 PM in response to: Astupoli
Click to view JMills's profile Master 2,621 posts since
Jun 18, 2004
useNamedFile alters how we provide backing-store for the virtual machine's RAM, either by using a file named with a hash, or by anonymous Host OS provided backing.

Re: anybody running VMs from portable (USB) drives?

7. Dec 14, 2005 5:04 PM in response to: magi
Click to view pfwd's profile Novice 2 posts since
Nov 9, 2005
We run all our VM almost exclusively on external USB drives. (Our end users are Consultants and need this flexibility for laptop use).

In fact we ran performance tests against both external USB and internal drives and found that the VMs actually perform BETTER on and external USB/Firewire drive. We used IOMeter and generated a number a stats.... VM Spec was... (Win2KSP4, Oracle9i w/three running database instances, IIS web app, LDAP, and Cognos ReportNet).

Re: anybody running VMs from portable (USB) drives?

8. Dec 15, 2005 3:37 AM in response to: magi
Click to view Cave-in's profile Novice 4 posts since
Dec 14, 2005
I've run a DOS VM from a 1Gig OCZ Flash drive. Works fine.
Click to view devlindj's profile Novice 27 posts since
Oct 29, 2004
So does anyone know how Diane Greene's Nano was setup? I'd like to try that out on my iPod (won it at VMWorld).

Thanks

Re: anybody running VMs from portable (USB) drives?

11. Dec 20, 2005 11:40 AM in response to: magi
Click to view Nicke's profile Master 1,169 posts since
Nov 1, 2004
I'm using a maxtor USB 2.0 harddrive to run some Virtual Machines from with good performance (but of course that's compared to the slow harddrive on my laptop)

How cool would it be to have the browser appliance VM on a USB key? (if the player wasn't required to be installed on the local host that is)

/Nicke

Re: anybody running VMs from portable (USB) drives?

12. Dec 20, 2005 12:13 PM in response to: Nicke
Click to view RDPetruska's profile Guru 15,875 posts since
Jan 11, 2005
Nicke,
Browse through some earlier posts (a few months back) about this subject. Apparently USB keys have a lifecycle of several thousand write/erase cycles. And a running operating system writes/changes memory addresses several hundred cycles all the time. The thought is you'd basically wear out your USB key extremely quickly.

Re: anybody running VMs from portable (USB) drives?

13. Dec 20, 2005 12:25 PM in response to: Nicke
Click to view devzero's profile Master 2,749 posts since
Dec 27, 2004
How cool would it be to have the browser appliance VM on a USB key?

yes - it would be cool - but i`d like to acknowledge what robert said:

every type of flash based media isn`t meant for being constantly read/written "live". It`s primary design is for being a storage media taking data, which doesn`t change very often.

from http://www.cyberguard.info/snapgear/tb20020917.html:

Writing of data is actually a process of either flipping a bit to "0" or leaving it as a "1". So although you can essentially write a value to any address you cannot flip a bit that is "0" back to a "1" without an erase cycle.

Thus generally when you want to change the contents of the Flash you need to do an erase cycle followed by a write cycle. This has some interesting implications, as we see when we look at read/write filesystems for Flash.

The life span of Flash memory is generally measured in terms of the number of erase cycles that can be done. The exact number varies from device to device, but typical ranges are from 10,000 to 1,000,000 erase cycles. As a rule of thumb you do need to be careful about how often you erase/write a Flash memory segment. This is particularly true when using a read/write filesystem on top of your Flash.


regards
roland

Re: anybody running VMs from portable (USB) drives?

14. Dec 20, 2005 12:59 PM in response to: magi
Click to view JMills's profile Master 2,621 posts since
Jun 18, 2004
Portions of the Browser Appliance virtual machine development was done using USB 2.0 connected drives, including:

4GB HD @ 3600RPM w/ 2MB cache
80GB HD @ 7200RPM w/ 2MB cache

VMware Developer

SDKs, APIs, Videos, Learn and much 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

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities