Friday, August 29, 2014

This operation can not be performed because the specified virtual disk could not be found [XenServer error]

Working on a long term project I encountered the above error. Research online stated that all you needed to do was empty the "DVD" drive and the error would go away. All well and good ... unless it's happening when you are trying to install a VM, then not so good.

The funny thing is that I didn't see anyone posting the real solution to this so ...

In the case of most of us we mount all kinds of things as SRs including a few CIFS stores since the ISOs that we need are out on Windows shares. Ah but what credentials did you use to connect? Like me you probably used your "admin" account and that's fine but in many cases (especially in enterprise environments) we have to rotate passwords every so often (YMMV). XenServer of course doesn't know this and blindly uses the old password. Guess what, there is no way to change the username/password information used for the CIFS library easily.

To fix the actual issue do the following:
  1. Open/Start XenCenter.
  2. Highlight the host that is reporting the issue.
  3. Go to the Storage tab.
  4. Get the properties of the ISO library that is causing the issue.
  5. Detach the ISO library.
  6. Go to the left window where the old SR is still listed, right click and select "Forget."
  7. Back under the Storage tab, click on "New SR" button and create a new SR like the previous one.
  8. Verify that the error no longer appears when trying to mount the ISO.
There you go, good for the next 90 days (or so). :D

One last tip: to prevent this a dedicated service account is recommended. One that (as allowed) is not required to have it's password changed regularly. Depending on security policies where you are this might be a simple thing to get or more complicated. Good luck.

No comments:

Post a Comment