Raw image selected but qcow2 created

sabueso

Active Member
Feb 27, 2017
4
0
41
43
Spain, Rubi
sabueso.org
Hi

I was trying to create a virtual machine with a raw disk image in Proxmox 4.4, so I tried to do that, selecting the option in the creation menu. Once created, i notice that resulting image is a qcow2, despite not having chosen this format.

If i look the config file, i found this:
Code:
root@home:/# cat /etc/pve/qemu-server/102.conf
bootdisk: scsi0
cores: 1
ide2: iso:iso/debian-8.7.1-amd64-netinst.iso,media=cdrom
memory: 512
name: debian-test
net0: virtio=5E:1D:CD:AF:EC:71,bridge=vmbr0
numa: 0
ostype: l26
scsi0: local:102/vm-102-disk-1.qcow2,size=10G
scsihw: virtio-scsi-pci
smbios1: uuid=0dde7d8e-787f-41c6-9388-1e9e18ff7b1d
sockets: 1


If i try to run the image, i get the following error:
Code:
Virtual Environment 4.4-13/7ea56165
Virtual Machine 102 ('debian-test' ) on node 'home'
Logs
()
kvm: -drive file=/var/lib/vz/images/102/vm-102-disk-1.qcow2,if=none,id=drive-scsi0,format=qcow2,cache=none,aio=native,detect-zeroes=on: file system may not support O_DIRECT
kvm: -drive file=/var/lib/vz/images/102/vm-102-disk-1.qcow2,if=none,id=drive-scsi0,format=qcow2,cache=none,aio=native,detect-zeroes=on: Could not open '/var/lib/vz/images/102/vm-102-disk-1.qcow2': Invalid argument
TASK ERROR: start failed: command '/usr/bin/kvm -id 102 -chardev 'socket,id=qmp,path=/var/run/qemu-server/102.qmp,server,nowait' -mon 'chardev=qmp,mode=control' -pidfile /var/run/qemu-server/102.pid -daemonize -smbios 'type=1,uuid=0dde7d8e-787f-41c6-9388-1e9e18ff7b1d' -name debian-test -smp '1,sockets=1,cores=1,maxcpus=1' -nodefaults -boot 'menu=on,strict=on,reboot-timeout=1000,splash=/usr/share/qemu-server/bootsplash.jpg' -vga cirrus -vnc unix:/var/run/qemu-server/102.vnc,x509,password -cpu kvm64,+lahf_lm,+sep,+kvm_pv_unhalt,+kvm_pv_eoi,enforce -m 512 -k es -device 'pci-bridge,id=pci.1,chassis_nr=1,bus=pci.0,addr=0x1e' -device 'pci-bridge,id=pci.2,chassis_nr=2,bus=pci.0,addr=0x1f' -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:978b5459595' -drive 'file=/isos/template/iso/debian-8.7.1-amd64-netinst.iso,if=none,id=drive-ide2,media=cdrom,aio=threads' -device 'ide-cd,bus=ide.1,unit=0,drive=drive-ide2,id=ide2,bootindex=200' -device 'virtio-scsi-pci,id=scsihw0,bus=pci.0,addr=0x5' -drive 'file=/var/lib/vz/images/102/vm-102-disk-1.qcow2,if=none,id=drive-scsi0,format=qcow2,cache=none,aio=native,detect-zeroes=on' -device 'scsi-hd,bus=scsihw0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0,id=scsi0,bootindex=100' -netdev 'type=tap,id=net0,ifname=tap102i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on' -device 'virtio-net-pci,mac=5E:1D:CD:AF:EC:71,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=300'' failed: exit code 1


¿Is there any know issue about this behaviuor?
Thanks!
 
Last edited:
Ok, roger that. I'm running ZFS and, alternatively, i created a directory to store virtual machines with no zfs-storage-format.

Thanks!

UPDATE: If i create new storage directory (as shown in picture) now i can create raw images correctly, so seems to be something related to the default "local" storage.
 

Attachments

  • Selección_049.png
    Selección_049.png
    15.5 KB · Views: 15
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!