My Oracle Support Banner

[Oracle PCA / OVM ] Unable To Add Virtual Disks to a Virtual Machine (Doc ID 2733217.1)

Last updated on SEPTEMBER 27, 2021

Applies to:

Oracle VM - Version 3.4.1 and later
Linux x86-64

Symptoms

Created a new virtual disk in a repository.

When adding it to the virtual machine the "create VmDiskMapping" operation failed with error:
OVMAPI_4010E Attempt to send command: configure_vm to server: <hostname> failed. OVMAPI_4004E Sync command failed on server: n.n.n.n. Command: configure_vm, Server error: org.apache.xmlrpc.XmlRpcException: <type 'exceptions.RuntimeError'>:disk:setup_error:Command: ['xm', 'block-attach', '0004fb0000060000cf7c8f48e2921c14', 'file:/OVS/Repositories/0004fb0000030000770179f566c396fe/VirtualDisks/0004fb0000120000f52eef0bf3ef053b.img', 'xvdaz', 'w'] failed (1): stderr: Error: The file "/OVS/Repositories/0004fb0000030000770179f566c396fe/VirtualDisks/0004fb0000120000f52eef0bf3ef053b.img" is already used stdout: Usage: xm block-attach [BackDomain] Create a new virtual block device. [Thu Nov 26 06:27:13 UTC 2020]

 

It was observed that the Compute Node (also known as "ovm server", "ovs", "dom0") command "xm list -l <id>" had no reference to "xvdaz", but the virtual machine did - i.e. there was device "/dev/xvdaz" present, albeit not accessible.

Attempted to use a different empty "slot" for the vmdiskmapping, but this failed with a different symptom:
OVMAPI_4010E Attempt to send command: configure_vm to server: <hostname> failed. OVMAPI_4004E Sync command failed on server: n.n.n.n. Command: configure_vm, Server error: org.apache.xmlrpc.XmlRpcException: <type 'exceptions.RuntimeError'>:disk:setup_error:Command: ['xm', 'block-attach', '0004fb0000060000cf7c8f48e2921c14', 'file:/OVS/Repositories/0004fb0000030000770179f566c396fe/VirtualDisks/0004fb0000120000f52eef0bf3ef053b.img', 'xvdbf', 'w'] failed (1): stderr: Error: Device 268450048 (vbd) could not be connected. Path closed or removed during hotplug add: backend/vbd/8/268450048 state: 5 stdout: Usage: xm block-attach <Domain> <BackDev> <FrontDev> <Mode> [BackDomain] Create a new virtual block device. [Thu Nov 26 14:23:24 UTC 2020]

 

 

Cause

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
Symptoms
Cause
Solution
References


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