OVM: Not Able to Attach the Same Virtual Disk to Its Old VM After It was Detached Successfully
(Doc ID 2772951.1)
Last updated on SEPTEMBER 03, 2024
Applies to:
Oracle VM - Version 3.4.1 and laterx86_64
Symptoms
After a virtual disk is detached from a running VM, when it is reattached again, below error is seen on OVM Manager BUI,
OVMAPI_4010E Attempt to send command: configure_vm to server <Hostname> failed OVMAPI _4004E Sync command failed on server: <IP address>. Command: configure_vm: Server error: org.apache.xmlrpmc.XmlRpcException:<type 'exceptioins.RuntimeError'>:disk:setup_error:Command:['xm','block-attach','<VM UUID>','<Path to image file>','xvdX','w'] failed(1): stderr: Error: The file '<Path to image file>' is already used stdout: Usage xm block-attach <Domain> <BackDev> <FrontDev> <Mode> [BackDomain] Create a new virtual block device [Time]
This issue can be steadily reproduced by below steps,
1. Attach one image file based virtual disk to a Linux 7 VM, successful.
2. No need to format or mount this virtual disk in VM guest OS and this new
virtual disk is visible.
3. Run dd if=/dev/zero of=/dev/vdf bs=1k count=1024000 to keep accessing this
virtual disk in guest OS
4. Try to detach the same virtual disk in OVMM BUI, failed as expected
5. Wait for the dd to complete or press CTRL+C to abort it.
6. Try to detach the same virtual disk in OVMM BUI, Successful
7. Try to attach the same virtula disk to the same VM, failed with below above error.
Changes
To reattach a virtual disk to the same VM.
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 |
Changes |
Cause |
Solution |
References |