My Oracle Support Banner

OLVM: Importing VM From OVM to OLVM Using OVA Fails With Error "qemu-img: error while writing sector: No space left on device" (Doc ID 2628260.1)

Last updated on SEPTEMBER 08, 2023

Applies to:

Linux OS - Version Oracle Linux 7.6 with Unbreakable Enterprise Kernel [4.14.35] and later
Oracle VM - Version 3.4.6 and later
Linux x86-64

Symptoms

 Importing VM via OVA Fails With the below Error:

#/var/log/vdsm/import/import-XXXX.log
qemu-img 'convert' '-p' '-n' '-f' 'qcow2' '-O' 'qcow2' '/var/tmp/v2vovl019806.qcow2' 
 '/rhev/data-center/mnt/blockSD/bf221de0-80b4-47d6-a1cf-a7dc7059d159/images/929fda43-aa54-48ca-913f-b5997c527f45/ac583abd-d604-4890-b6f2-52e28a531d09'
(0.00/100%)^M (1.00/100%)^M (2.00/100%)^M (3.00/100%)^M (4.00/100%)^M (5.00/100%)^M (6.00/100%)^M (7.01/100%)^M (8.05/100%)^M (9.05/100%)^M (10.05/100%)^M (11.05/100%)^M (12.05/100%)^M (13.05/100%)^M 
(14.05/100%)^M (15.05/100%)^M (16.05/100%)^M (17.05/100%)^M (18.05/100%)^M (19.05/100%)^M (20.05/100%)^M (21.06/100%)^M (22.06/100%)^M (23.06/100%)^M (24.06/100%)^M (25.06/100%)^M (26.06/100%)^M 
(27.06/100%)^M (28.06/100%)^M (29.06/100%)^M (30.06/100%)^M (31.06/100%)^M (32.06/100%)^M (33.17/100%)^M (34.18/100%)^M (35.18/100%)^M (36.18/100%)^M (37.18/100%)^M (38.18/100%)^M (39.18/100%)^M 
(40.18/100%)^M (41.18/100%)^M (42.18/100%)^M (43.18/100%)^M (44.18/100%)^M (45.18/100%)^M (46.18/100%)^M (47.19/100%)^M (48.19/100%)^M (49.19/100%)^M (50.19/100%)^M (51.19/100%)^M (52.19/100%)^M 
(53.19/100%)^M (54.19/100%)^M (55.19/100%)^M (56.19/100%)^M (57.21/100%)^M (58.21/100%)^M (59.21/100%)^M (60.22/100%)^M (61.22/100%)^M (62.22/100%)^M (63.22/100%)^M (64.22/100%)^M (65.22/100%)^M 
(66.22/100%)^M (67.22/100%)^M (68.24/100%)^M (69.24/100%)^M (70.24/100%)^M (71.24/100%)^M (72.24/100%)^M (73.24/100%)^M (74.25/100%)^M (75.25/100%)^M
qemu-img: error while writing sector 4849664: No space left on device 
virt-v2v: error: qemu-img command failed, see earlier errors
rm -rf '/var/tmp/ova.H1WU54'
rm -rf '/var/tmp/null.PQGBlb'
libguestfs: trace: vdsm_disk_create: close
libguestfs: closing guestfs handle 0x5577af340790 (state 0)
libguestfs: trace: close
libguestfs: closing guestfs handle 0x5577af340430 (state 0)

(OR)

Fails with the below:

qemu-img: output file is smaller than input file

Ex:
libguestfs: trace: vdsm_disk_create: disk_create "/rhev/data-center/mnt/blockSD/xxx/images/" "raw" 26843545600 "preallocation:full"
libguestfs: disk_create: /rhev/data-center/mnt/blockSD/cc7b8d9d-2f80-40fa-8c51-dc49e3302489/images//: BLKDISCARD failed on this device: Success
libguestfs: trace: vdsm_disk_create: disk_create = 0
qemu-img 'convert' '-p' '-n' '-f' 'qcow2' '-O' 'raw' '-S' '64k' '/var/tmp/v2vovle2de88.qcow2' '/rhev/data-center/mnt/blockSD//images/
(0.00/100%)^Mqemu-img: output file is smaller than input file

Changes

 No changes

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

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