VMware

This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
1 2 Previous Next 16 Replies Last post: Nov 6, 2009 10:10 AM by cgdii  

Vmotion: Failed to open the swap file posted: Jan 28, 2008 11:35 PM

Click to view t07mm's profile Novice 19 posts since
Dec 5, 2007
Hi All,

I have just upgraded to VI2.5 and ESX 3.5 and applied the critical patches and now my Vmotion stop at 90% with 'A general system error occurred: Failed to open the swap file'.

Now this used to work, my VM currently sit on an NFS mount whilst I wait for my SAN to be installed? But this all worked in VI2 & ESX 3.02

Any ideas welcome

Cheers

Chris

Re: Vmotion: Failed to open the swap file

1. Jan 28, 2008 11:45 PM in response to: t07mm
Click to view sonofploppy's profile Enthusiast 42 posts since
Feb 22, 2007

Hi Chris,

Have you seen this forum, may find usefull......

Good luck, Paul

http://communities.vmware.com/thread/122229

Re: Vmotion: Failed to open the swap file

3. Feb 1, 2008 11:30 AM in response to: t07mm
Click to view t8bloom's profile Lurker 4 posts since
Nov 14, 2003

I'm having the same problem -- some of my VMs migrate fine, others fail with the same swap file message. On further investigation it looks like the VMs with this issue still show "Virtual Machine Version: 3". My current guess is that I need to shut them down and do a manual update to the VM Hardware to solve this. I'll repost once I can see if this works.

Re: Vmotion: Failed to open the swap file

5. Feb 4, 2008 9:20 AM in response to: t07mm
Click to view t8bloom's profile Lurker 4 posts since
Nov 14, 2003

Yep, that did it! Once your virtual machines are shut down, you can right-click on the machine from the left pane of the VirtualCenter client, and choose "upgrade Virtual Hardware". This will update the hardware spec from 3 to 4 and should solve your problem. However, while you have them down you may also want to make sure you don't have any hardware explicitly called out in your VMs, too. Ie, remove /dev/floppy and replace with "client device", remove any USB ports, etc. as these seem to get in the way of VMotion for me.

I think this should solve it for you!

Re: Vmotion: Failed to open the swap file

6. Mar 20, 2008 1:53 PM in response to: t8bloom
Click to view dkusic's profile Novice 12 posts since
Apr 24, 2007
Hi, what is this "upgrade virtual hardware" function? I do not seem to have this in my Virtual Center. I'm having the same problem where VMotion fails at 90% because of a failure to open the swap file. I've tried commenting out the swap file location in the .vmx file, and naively changing the permissions on the .vswp file, all to no avail.

Re: Vmotion: Failed to open the swap file

8. Nov 11, 2008 9:15 AM in response to: t07mm
Click to view drewinator's profile Enthusiast 31 posts since
Feb 28, 2007

Remove the NFS storage and re-add? What if mine was installed using the IP address rather then FQDN?


Re: Vmotion: Failed to open the swap file

9. Dec 1, 2008 8:30 AM in response to: drewinator
Click to view mlm@mmc's profile Lurker 2 posts since
Oct 22, 2007

I found that removing and re-adding the NFS storage, either via IP or FQDN works.

However, you should make sure that all hosts use either FQDN or IP and not a mixture of both across hosts inside a cluster.

Cheers

Mark

Re: Vmotion: Failed to open the swap file

10. Jan 20, 2009 7:27 PM in response to: t8bloom
Click to view alasorsa's profile Novice 13 posts since
Jul 30, 2008
Yes, I would love to know where I can find these options for upgrading the Virtual Hardware within Virtual Center.

As for removing storage and readding it...that is somewhat of a problem if you're trying to migrate active VMs from one host to another...as the VMs on that host are using that storage. I don't think they'd take too kindly to having the rug pulled out from under them. My storage is IP based...and its consistent throughout the cluster.


I've tried the Mem.VMOverheadGrowth setting to 5 but that didn't change anything. Setting resource pool settings to normal didn't really do much except mess up the settings within one of my resource pools. I decided to stop before I really messed something up. Hmmm...still stumped.

Re: Vmotion: Failed to open the swap file

11. Mar 23, 2009 1:07 AM in response to: mlm@mmc
Click to view nhwuxiaojun's profile Lurker 2 posts since
Mar 22, 2009
I'm puzzled in this .could somebody tell me the way to resolve vmotion issue

Thanks all

Re: Vmotion: Failed to open the swap file

12. Mar 23, 2009 5:59 AM in response to: nhwuxiaojun
Click to view alasorsa's profile Novice 13 posts since
Jul 30, 2008
I found that updating to a newer version of VC did the trick. We went to update 3 and of course, update 4 came out a couple weeks later.

But all seems to be normal now.

Re: Vmotion: Failed to open the swap file

13. Mar 31, 2009 12:19 AM in response to: nhwuxiaojun
Click to view davidjerwood's profile Hot Shot 125 posts since
Nov 1, 2007

Did anyone manage to find a solution to this issue?

Would really like to know, have started to get the same issue this morning.

Re: Vmotion: Failed to open the swap file

14. Mar 31, 2009 1:00 AM in response to: davidjerwood
Click to view mlm@mmc's profile Lurker 2 posts since
Oct 22, 2007
cid:109033108503202001@service10.mimecast.com<http://service10.mimecast.com/mimecast/click?account=C4A47&code=e57c37c541f942f4da8f10ac5fbf8004>
To remove images in emails from us to you click here.<http://service10.mimecast.com/mimecast/click?account=C4A47&code=644f4f2159572d1a895162bf2f5de6c0>


Please see the confidentiality notice at the bottom of this e-mail.

Attachments:

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