Boom, Failure (Q-Emu fails when hdd is added)

xantios

New Member
Jul 7, 2011
2
0
1
Hi all,

Im using Proxmox for a while now, and it works like a charm... although, it did....

Currently im having some trouble considering KVM/Q-emu,
Im running: Linux kelso 2.6.18-6-pve #1 SMP Mon May 9 13:27:11 CEST 2011 x86_64 GNU/Linux

And OpenVZ works great, but when i want to start a KVM machine, the start button in the web interface gets disabled for a couple of seconds... and after a few seconds the machine stops.

in /var/log/syslog:
Code:
Jul  7 00:31:16 kelso proxwww[21305]: update ticket
Jul  7 00:31:19 kelso pvedaemon[21327]: starting VM 101 on node 0 (localhost)
Jul  7 00:31:19 kelso qm[21328]: VM 101 start
Jul  7 00:31:19 kelso pvedaemon[21327]: VM 101 start failed -
Jul  7 00:31:20 kelso pvedaemon[7039]: worker 7041 finished
Jul  7 00:31:20 kelso pvedaemon[7039]: starting 1 worker(s)
Jul  7 00:31:20 kelso pvedaemon[7039]: worker 21331 started

for one machine, and in some other situation i get:
Code:
Jul  7 00:32:56 kelso pvedaemon[21383]: starting VM 106 on node 0 (localhost)
Jul  7 00:32:57 kelso qm[21384]: VM 106 start
Jul  7 00:32:57 kelso kernel: device tap106i0 entered promiscuous mode
Jul  7 00:32:57 kelso kernel: type=1700 audit(1309991577.153:32): dev=tap106i0 prom=256 old_prom=0 auid=4294967295 ses=4294967295
Jul  7 00:32:57 kelso kernel: vmbr0: topology change detected, propagating
Jul  7 00:32:57 kelso kernel: vmbr0: port 10(tap106i0) entering forwarding state
Jul  7 00:32:57 kelso kernel: vmbr0: topology change detected, propagating
Jul  7 00:32:57 kelso kernel: vmbr0: port 10(tap106i0) entering forwarding state
Jul  7 00:32:57 kelso qm[21384]: VM 106 start failed: command '/usr/bin/kvm -monitor unix:/var/run/qemu-server/106.mon,server,nowait -vnc unix:/var/run/qemu-server/106.vnc,password -pidfile /var/run/qemu-server/106.pid -daemonize -usbdevice tablet -name JeMoeder10 -smp 1 -vga cirrus -tdf -localtime -rtc-td-hack -k en-us -drive file=/media/data/vps/images/Windows/images/106/vm-106-disk-1.raw,if=ide,index=1,cache=none -drive file=/media/data/ISO/Windows_XP_SP2_Eng.iso,if=ide,index=2,media=cdrom -m 256 -net tap,vlan=0,ifname=tap106i0,script=/var/lib/qemu-server/bridge-vlan -net nic,vlan=0,model=rtl8139,macaddr=42:F4:B2:FA:D8:8F -id 106 -cpuunits 1000' failed with exit code 1
Jul  7 00:32:57 kelso pvedaemon[21383]: VM 106 start failed -
Jul  7 00:32:57 kelso kernel: vmbr0: port 10(tap106i0) entering disabled state
Jul  7 00:32:57 kelso kernel: vmbr0: port 10(tap106i0) entering disabled state

when i try to manualy start it using:
Code:
qm start 106

i get:
Code:
root@kelso:/etc/qemu-server# qm start 106
qemu: could not open disk image /media/data/vps/images/Windows/images/106/vm-106-disk-1.raw
start failed: command '/usr/bin/kvm -monitor unix:/var/run/qemu-server/106.mon,server,nowait -vnc unix:/var/run/qemu-server/106.vnc,password -pidfile /var/run/qemu-server/106.pid -daemonize -usbdevice tablet -name JeMoeder10 -smp 1 -vga cirrus -tdf -localtime -rtc-td-hack -k en-us -drive file=/media/data/vps/images/Windows/images/106/vm-106-disk-1.raw,if=ide,index=1,cache=none -drive file=/media/data/ISO/Windows_XP_SP2_Eng.iso,if=ide,index=2,media=cdrom -m 256 -net tap,vlan=0,ifname=tap106i0,script=/var/lib/qemu-server/bridge-vlan -net nic,vlan=0,model=rtl8139,macaddr=42:F4:B2:FA:D8:8F -id 106 -cpuunits 1000' failed with exit code 1
root@kelso:/etc/qemu-server#

Weird bit is, when i delete the harddisk from a machine... and then start it, manualy or from the web interface... it just starts without a care in the world...

i really dont have any more ideas on how i can fix this...
so i could use some help here.

Any ideas?

Kind regards,
Xantios
 
Why is the file not available?

> qemu: could not open disk image /media/data/vps/images/Windows/images/106/vm-106-disk-1.raw

What kind of storage is that - nfs?
 
Whell, the file does exists.

Code:
root@kelso:~# ls /media/data/vps/images/Windows/images/106/vm-106-disk-1.raw   
 /media/data/vps/images/Windows/images/106/vm-106-disk-1.raw

root@kelso:~# du -h /media/data/vps/images/Windows/images/106/vm-106-disk-1.raw
0       /media/data/vps/images/Windows/images/106/vm-106-disk-1.raw
root@kelso:~#

and it's an ntfs disk, it's just in the server mounted in /media/data