corrupted vm

ds(ds)

Active Member
Sep 11, 2011
60
0
26
i have proxmox 3.1, and 6 vm - they all work, but were stopped
one image is very large, backup with him -error (in this image 255GB, freespace about 2GB) and free space on proxmox disk 150gb from 1Tb
try to download the image& config file to another proxmox 3.4, and restore but have error (file is corrupted)

qcow2: Marking image as corrupt: L2 table offset 0x7423498bc54c00 unaligned (L1 index: 0); further corruption events will be suppressed
kvm: -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0,id=ide0,bootindex=100: Device needs media, but drive is empty
kvm: -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0,id=ide0,bootindex=100: Device initialization failed.
kvm: -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0,id=ide0,bootindex=100: Device 'ide-hd' could not be initialized
TASK ERROR: start failed: command '/usr/bin/kvm -id 103 -chardev 'socket,id=qmp,path=/var/run/qemu-server/103.qmp,server,nowait' -mon 'chardev=qmp,mode=control' -vnc unix:/var/run/qemu-server/103.vnc,x509,password -pidfile /var/run/qemu-server/103.pid -daemonize -name wsus -smp '2,sockets=1,cores=2,maxcpus=2' -nodefaults -boot 'menu=on,strict=on,reboot-timeout=1000' -vga std -no-hpet -cpu 'kvm64,hv_spinlocks=0xffff,hv_relaxed,+lahf_lm,+x2apic,+sep' -m 2048 -k en-us -device 'piix3-usb-uhci,id=uhci,bus=pci.0,addr=0x1.0x2' -device 'usb-tablet,id=tablet,bus=uhci.0,port=1' -device 'virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3' -iscsi 'initiator-name=iqn.1993-08.org.debian:01:375170c866b4' -drive 'if=none,id=drive-ide2,media=cdrom,aio=native' -device 'ide-cd,bus=ide.1,unit=0,drive=drive-ide2,id=ide2,bootindex=200' -drive 'file=/var/lib/vz/images/103/vm-103-disk-1.qcow2,if=none,id=drive-ide0,format=qcow2,aio=native,cache=none,detect-zeroes=on' -device 'ide-hd,bus=ide.0,unit=0,drive=drive-ide0,id=ide0,bootindex=100' -netdev 'type=tap,id=net0,ifname=tap103i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on' -device 'virtio-net-pci,mac=6A:22:67:FC:77:9D,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=300' -rtc 'driftfix=slew,base=localtime' -global 'kvm-pit.lost_tick_policy=discard'' failed: exit code 1


my working vm image is corrupted???


 
i have proxmox 3.1, and 6 vm - they all work, but were stopped
one image is very large, backup with him -error (in this image 255GB, freespace about 2GB) and free space on proxmox disk 150gb from 1Tb
try to download the image& config file to another proxmox 3.4, and restore but have error (file is corrupted)

qcow2: Marking image as corrupt: L2 table offset 0x7423498bc54c00 unaligned (L1 index: 0); further corruption events will be suppressed
kvm: -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0,id=ide0,bootindex=100: Device needs media, but drive is empty
kvm: -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0,id=ide0,bootindex=100: Device initialization failed.
kvm: -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0,id=ide0,bootindex=100: Device 'ide-hd' could not be initialized
TASK ERROR: start failed: command '/usr/bin/kvm -id 103 -chardev 'socket,id=qmp,path=/var/run/qemu-server/103.qmp,server,nowait' -mon 'chardev=qmp,mode=control' -vnc unix:/var/run/qemu-server/103.vnc,x509,password -pidfile /var/run/qemu-server/103.pid -daemonize -name wsus -smp '2,sockets=1,cores=2,maxcpus=2' -nodefaults -boot 'menu=on,strict=on,reboot-timeout=1000' -vga std -no-hpet -cpu 'kvm64,hv_spinlocks=0xffff,hv_relaxed,+lahf_lm,+x2apic,+sep' -m 2048 -k en-us -device 'piix3-usb-uhci,id=uhci,bus=pci.0,addr=0x1.0x2' -device 'usb-tablet,id=tablet,bus=uhci.0,port=1' -device 'virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3' -iscsi 'initiator-name=iqn.1993-08.org.debian:01:375170c866b4' -drive 'if=none,id=drive-ide2,media=cdrom,aio=native' -device 'ide-cd,bus=ide.1,unit=0,drive=drive-ide2,id=ide2,bootindex=200' -drive 'file=/var/lib/vz/images/103/vm-103-disk-1.qcow2,if=none,id=drive-ide0,format=qcow2,aio=native,cache=none,detect-zeroes=on' -device 'ide-hd,bus=ide.0,unit=0,drive=drive-ide0,id=ide0,bootindex=100' -netdev 'type=tap,id=net0,ifname=tap103i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on' -device 'virtio-net-pci,mac=6A:22:67:FC:77:9D,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=300' -rtc 'driftfix=slew,base=localtime' -global 'kvm-pit.lost_tick_policy=discard'' failed: exit code 1


my working vm image is corrupted???



Hi,
you can try to convert the qcow2-file in an raw-file with qemu-img.
(this was the first was I would try).

Or, if you have an copy, try to repair with "qemu-img check -r"

See also "man qemu-img"

Udo

edit: How do you copy the image-file?
 
on proxmox 3.4 (copy from proxmox3.1, copy with help: scp)

root@wsusproxmox:/var/lib/vz/images/103# qemu-img convert -f qcow2 -O raw vm-103-disk-1.qcow2 103.raw
qcow2: Image is corrupt: L2 table offset 0x7423498bc54c00 unaligned (L1 index: 0); further non-fatal corruption events will be suppressed
qemu-img: error while reading block status of sector 0: Input/output error

root@wsusproxmox:/var/lib/vz/images/103# qemu-img check -f qcow2 vm-103-disk-1.qcow2
qemu-img: Check failed: Cannot allocate memory
 
Hi,
looks that you don't have enough memory?

But I'm not an qcow2-expert (I use only raw format).

Perhaps someone with more qcow2-troubleshoot-experiences can say anything.


If you mean, that your qcow2-file is different on your old system, you can do an rsync on this file - with the flag "--inplace" you directly update the file on the receiver side.

Udo
 
hm... i have problem with original file vm-103-disk-1.qcow2 on proxmox 3.1

because

root@proxmox:/var/lib/vz/images/103# qemu-img check -f qcow2 vm-103-disk-1.qcow2
No errors were found on the image.

root@proxmox:/var/lib/vz/images/103# qemu-img check -f qcow2 -r all vm-103-disk-1.qcow2
No errors were found on the image.

try from proxmox put on ftp №1
root@proxmox:/var/lib/vz/images/103# ftp 192.168.0.126
.........
ftp> put vm-103-disk-1.qcow2
local: vm-103-disk-1.qcow2 remote: vm-103-disk-1.qcow2
200 Port command successful
150 Opening data channel for file transfer.
local: vm-103-disk-1.qcow2: Input/output error
226 Transfer OK
2914663172 bytes sent in 89.19 secs (31912.2 kB/s)

try from proxmox put on ftp №2
root@proxmox:/var/lib/vz/images/103# ftp 192.168.0.6
......
200 Port command successful
150 Opening data channel for file transfer.
local: vm-103-disk-1.qcow2: Input/output error
226 Transfer OK
2914663172 bytes sent in 83.64 secs (34031.3 kB/s)

where is problem???
 
Try using rsync instead of ftp. If you absolutely must use ftp then ensure that the file transfer is using binary mode. Default mode for ftp is ascii mode. Maybe this is were you problems are?
 
ftp server....filezilla 0.9.41 beta (pc№1)
ftp> binary
200 Type set to I
ftp> put vm-103-disk-1.qcow2
local: vm-103-disk-1.qcow2 remote: vm-103-disk-1.qcow2
200 Port command successful
150 Opening data channel for file transfer.
local: vm-103-disk-1.qcow2: Input/output error
226 Transfer OK
2895507456 bytes sent in 66.03 secs (42821.7 kB/s)

ftp server....filezilla 0.9.50 beta (pc№2)
ftp> open 192.168.0.126
Connected to 192.168.0.126.
220-FileZilla Server version 0.9.50 beta
ftp> binary
200 Type set to I
ftp> put vm-103-disk-1.qcow2
local: vm-103-disk-1.qcow2 remote: vm-103-disk-1.qcow2
200 Port command successful
150 Opening data channel for file upload to server of "/vm-103-disk-1.qcow2"
local: vm-103-disk-1.qcow2: Input/output error
226 Successfully transferred "/vm-103-disk-1.qcow2"
2895507456 bytes sent in 61.18 secs (46218.3 kB/s)

tommorow: rsync - last hope?
 
local: vm-103-disk-1.qcow2: Input/output error
Hi,
if your file isn't blocked due an running process (fuser vm-103-disk-1.qcow2) you local filesystem is corrupt!!

Do you have backups? Is the filesystem protected by an raid-level?
Any bad symtoms if you checked the smart-status of the disks?
Any hint in the syslog?

Try an fsck!

Udo
 
do smartctl --test=long ... weit result...
close it... hdd has problem
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!