Ask the Community
Groups
Xen: Attaching the disk failed - Connect IT Community | Kaseya
<main> <article class="userContent"> <h2 data-id="summary"><strong>SUMMARY</strong></h2> <p>This article addresses the failiure message "Attaching the disk to vm failed" with internal error DISK_VBD_MUST_BE_READWRITE_FOR_HVM.</p> <h2 data-id="issue"><strong>ISSUE</strong></h2> <p></p> <p>Xen backups fail with the following backup message:</p> <pre class="code codeBlock" spellcheck="false" tabindex="0"> ----- XProtect Messages ---- attaching the disk to vm failed ----- End XProtect Messages ---- </pre> <p>The internal Xen API error message is:</p> <pre class="code codeBlock" spellcheck="false" tabindex="0"> 2017-12-19 15:06:05.361 -0600 : E DISK_VBD_MUST_BE_READWRITE_FOR_HVM 2017-12-19 15:06:05.361 -0600 : E OpaqueRef:9ca6e6c9-6330-e760-d3dd-da41df0d97e8 2017-12-19 15:06:05.361 -0600 : E failed to vbd_plug </pre> <h2 data-id="resolution"><strong>RESOLUTION</strong></h2> <p>This error occurs as a result of the UB being deployed in XenServer in HVM (Hardware Virtualized Mode). This hands off direct access of many devices directly to the VM but prevents the guest OS from being aware of certain restrictions set by the Xen host, including read-only restrictions on disks. In order to attach a read-only disk during the backup the UB must be in PV (ParaVirtualized) or PV-HVM (PV disks/network, HVM CPU/RAM).</p> <h2 data-id="tasks"><strong>TASKS</strong></h2> <p></p> <ul><li>Power off the UB</li> <li>Identify the UBs VM UUID. From the XenServer host console run:</li> </ul><pre class="code codeBlock" spellcheck="false" tabindex="0"> [root@xenserver72-237-122 ~]# xe vm-list uuid ( RO) : f9296c97-46bb-537e-b1f8-04d197e6fa27 name-label ( RW): UB-1000-130 power-state ( RO): halted</pre> <ul><li>Using the VM UUID set the VM Parameters to start PV mode:</li></ul><pre class="code codeBlock" spellcheck="false" tabindex="0"> [root@xenserver72-237-122 ~]# xe vm-param-set uuid=f9296c97-46bb-537e-b1f8-04d197e6fa27 HVM-boot-policy="" PV-bootloader="pygrub" PV-args="utf8 console=tty1" </pre> <ul><li>Restart the UB</li></ul> </article> </main>