vCenter

 View Only
Expand all | Collapse all

Vmotion: Failed to open the swap file

  • 1.  Vmotion: Failed to open the swap file

    Posted Jan 29, 2008 07:36 AM

    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



  • 2.  RE: Vmotion: Failed to open the swap file

    Posted Jan 29, 2008 07:46 AM

    Hi Chris,

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

    Good luck, Paul

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



  • 3.  RE: Vmotion: Failed to open the swap file

    Posted Jan 30, 2008 07:29 AM

    Hi Paul,

    Thanks for the link, it doesn't really help.

    Strange thing was that I created a new clustered and moved two of my ESX hosts that had no VMs on. Then move a VM over, which was off.

    Started the VM, then I could Migrate!!! :smileyhappy:

    So moved all my other VMs (had to shut them down). And last night was working fine.

    However, this morning I now have the same problem :smileysad:

    Most annoying as under VC 2 and ESX 3.0.2 it worked flawlessly. Luckily I'm still in a pre-production stage.

    Regards

    Chris



  • 4.  RE: Vmotion: Failed to open the swap file

    Posted Feb 01, 2008 07:30 PM

    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.



  • 5.  RE: Vmotion: Failed to open the swap file

    Posted Feb 04, 2008 06:36 AM

    Hi t8bloom,

    If that fixes the that would be excellent! I have already shutdown all my VMs, but how do you do a hardware refresh on the VM and where do you check the VM version?

    Thanks

    Chris



  • 6.  RE: Vmotion: Failed to open the swap file

    Posted Feb 04, 2008 05:20 PM

    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!



  • 7.  RE: Vmotion: Failed to open the swap file

    Posted Mar 20, 2008 08:54 PM

    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.



  • 8.  RE: Vmotion: Failed to open the swap file

    Posted Mar 25, 2008 07:05 AM

    In the end, I found that it was only one of the servers that I could not Vmotionj from and too.

    After lots of logs being exchanged with HPs VM support, they said it was the Storage! Even though I had rebuilt the server using esx3.5 from scratch.

    So in the end, all I had to do was remove the storage and re-add it using the FQDN and then it all worked fine.

    Regards

    Chris



  • 9.  RE: Vmotion: Failed to open the swap file

    Posted Nov 11, 2008 05:16 PM

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



  • 10.  RE: Vmotion: Failed to open the swap file

    Posted Dec 01, 2008 04:30 PM

    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



  • 11.  RE: Vmotion: Failed to open the swap file

    Posted Mar 23, 2009 08:05 AM

    I'm puzzled in this .could somebody tell me the way to resolve vmotion issue

    Thanks all



  • 12.  RE: Vmotion: Failed to open the swap file

    Posted Mar 23, 2009 01:00 PM

    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.



  • 13.  RE: Vmotion: Failed to open the swap file

    Posted Mar 31, 2009 07:20 AM

    Did anyone manage to find a solution to this issue?

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



  • 14.  RE: Vmotion: Failed to open the swap file

    Posted Mar 31, 2009 08:01 AM

    <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.



  • 15.  RE: Vmotion: Failed to open the swap file

    Posted Jan 21, 2009 03:26 AM

    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.



  • 16.  RE: Vmotion: Failed to open the swap file

    Posted Oct 29, 2009 03:40 PM

    The option to upgrade the hardware is only available when the virtual is powered off and then again only if the machine is at a lower hardware level than the host..



  • 17.  RE: Vmotion: Failed to open the swap file

    Posted Nov 06, 2009 06:10 PM

    I just had this issue and am using Fiber Attached storage for SAN. I am migrating VMs to a newly built cluster using ESX 3.5 Update 4 Hosts and VC 2.5 Update 5. When vMotioning some VMs I am getting this error but none of the suggestions in this thread worked to resolve it. I did see any options to upgrade Virtual Hardware, so I must have already been at the most current levels. However while editing the settings of the VM, I noticied that if I powered off the VM, opened the settings for it, and then clicked ok it took longer than usual to save the config. After powering the VM back on, I was able to vMotion it with no issues. Hope this helps.