Index: /trunk/src/VBox/Main/MediumImpl.cpp
===================================================================
--- /trunk/src/VBox/Main/MediumImpl.cpp	(revision 33912)
+++ /trunk/src/VBox/Main/MediumImpl.cpp	(revision 33913)
@@ -1657,4 +1657,13 @@
             if (aType == MediumType_Shareable)
             {
+                if (m->state == MediumState_Inaccessible)
+                {
+                    HRESULT rc = queryInfo(false /* fSetImageId */, false /* fSetParentId */);
+                    if (FAILED(rc))
+                        return setError(rc,
+                                        tr("Cannot change type for medium '%s' to 'Shareable' because the medium is inaccesible"),
+                                        m->strLocationFull.c_str());
+                }
+
                 MediumVariant_T variant = getVariant();
                 if (!(variant & MediumVariant_Fixed))
