Error booting a VM

Zerqz

New Member
Mar 3, 2015
4
0
1
Code:
[COLOR=#000000][FONT=tahoma]kvm: -drive file=/var/lib/vz/images/100/vm-100-disk-1.vmdk,if=none,id=drive-ide0,format=vmdk,aio=native,cache=none,detect-zeroes=on: file system may not support O_DIRECT[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]kvm: -drive file=/var/lib/vz/images/100/vm-100-disk-1.vmdk,if=none,id=drive-ide0,format=vmdk,aio=native,cache=none,detect-zeroes=on: could not open disk image /var/lib/vz/images/100/vm-100-disk-1.vmdk: Could not open '/var/lib/vz/images/100/vm-100-disk-1.vmdk': Invalid argument[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]TASK ERROR: start failed: command '/usr/bin/kvm -id 100 -chardev 'socket,id=qmp,path=/var/run/qemu-server/100.qmp,server,nowait' -mon 'chardev=qmp,mode=control' -vnc unix:/var/run/qemu-server/100.vnc,x509,password -pidfile /var/run/qemu-server/100.pid -daemonize -smbios 'type=1,uuid=2160aeef-390c-41cc-8292-a3db1ea35686' -name nas-fs1 -smp '2,sockets=1,cores=2,maxcpus=2' -nodefaults -boot 'menu=on,strict=on,reboot-timeout=1000' -vga std -no-hpet -cpu 'kvm32,hv_spinlocks=0xffff,hv_relaxed,+x2apic,+sep' -m 2032 -k en-us -cpuunits 1000 -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:c0fd7e48e5f5' -drive 'file=/var/lib/vz/template/iso/Windows7Ultimate.iso,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/100/vm-100-disk-1.vmdk,if=none,id=drive-ide0,format=vmdk,aio=native,cache=none,detect-zeroes=on' -device 'ide-hd,bus=ide.0,unit=0,drive=drive-ide0,id=ide0,bootindex=100' -netdev 'type=user,id=net0,hostname=nas-fs1' -device 'e1000,mac=FA:D1:FB:1D:E4:9A,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[/FONT][/COLOR]

Is the error I get when trying to boot a created VM. I have tried using it without KVM and with it. KVM Is enabled. So I don't see why it doesn't work..
 
Your fie system (what do you use - samba? zfs?) does not support O_DIRECT, so you need to change the cache mode for the VM drive.
Try to change to writethrough or writeback instead of 'none'.
 
Your fie system (what do you use - samba? zfs?) does not support O_DIRECT, so you need to change the cache mode for the VM drive.
Try to change to writethrough or writeback instead of 'none'.

Didn't know you need to select the cache type, thanks!