My Oracle Support Banner

Live Migration of VM Fails with Error ' vbd could not be connected on the destination server. losetup /dev/loopx /OVS/Repositories/xxx/VirtualDisks/xxx.img failed' (Doc ID 2396113.1)

Last updated on SEPTEMBER 20, 2022

Applies to:

Oracle VM - Version 3.3.1 and later
Oracle Cloud Infrastructure - Version N/A and later
Linux x86-64


Upon Live Migration of VM, migration failed with error below and VMs finally restart on the destination server.

====var/log/xen/xend.log ========
[2018-04-14 19:44:39 13848] INFO (XendDomain:1127) Domain 0004fb000006000048a2b4186a2f8ff7 (0004fb00-0006-0000-48a2-b4186a2f8ff7) deleted.
[2018-04-14 19:44:39 13848] ERROR (XendCheckpoint:364) Device 51728 (vbd) could not be connected. losetup /dev/loop1 /OVS/Repositories/0004fb000003000016e3530d52b7c23c/VirtualDisks/0004fb00001200005bd01097f76a4073.img failed
Traceback (most recent call last):
File "/usr/lib64/python2.6/site-packages/xen/xend/", line 353, in restore
dominfo.waitForDevices() # Wait for backends to set up
File "/usr/lib64/python2.6/site-packages/xen/xend/", line 1290, in waitForDevices
File "/usr/lib64/python2.6/site-packages/xen/xend/server/", line 140, in waitForDevices
return map(self.waitForDevice, self.deviceIDs())
File "/usr/lib64/python2.6/site-packages/xen/xend/server/", line 165, in waitForDevice
"%s" % (devid, self.deviceClass, err))
VmError: Device 51728 (vbd) could not be connected. losetup /dev/loop1 /OVS/Repositories/0004fb000003000016e3530d52b7c23c/VirtualDisks/0004fb00001200005bd01097f76a4073.img failed
[2018-04-14 19:44:39 13848] ERROR (XendDomain:1195) Restore failed

We can see all the loop devices attached to virtual disk by running command "losetup -a ".
Upon running this command on destination server, we see I/O error on loop devices and hence, the vdisk could not be mounted on the first available loop device.


 This can happen in cases of un-clean way/unsuccessful deleting/dettaching virtual disks, leaving stale loop device behind.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.