Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't create VM with Proxmox 4.3+ZFS: create failed - unsupported format 'qcow2' #37

Open
t-ray opened this issue Nov 10, 2016 · 1 comment

Comments

@t-ray
Copy link

t-ray commented Nov 10, 2016

When attempting to create a VM against Proxmox 4.3 and Proxmox is configured with a ZFS filesystem the create operation fails with the message:

create failed - unsupported format 'qcow2'

Here is an excerpt from my Vagrantfile

config.vm.provider :proxmox do |proxmox|
        proxmox.endpoint = '<redacted>'
        proxmox.user_name = '<redacted>'
        proxmox.password = '<redacted>'
        proxmox.vm_id_range = 900..910
        proxmox.vm_type = :qemu
        proxmox.vm_name_prefix = 'vagrant_'
        proxmox.qemu_os = :l26
        proxmox.qemu_disk_size = '30G'
        proxmox.qemu_storage = 'local'
        proxmox.qemu_iso = '/var/lib/vz/template/iso/ubuntu-14.04.5-server-amd64.iso'
        proxmox.vm_name_prefix = 'vagrant_test_'
        proxmox.qemu_cores = 1
        proxmox.qemu_sockets = 1
        proxmox.qemu_nic_model = 'virtio'
        proxmox.qemu_bridge = 'vmbr0'
        proxmox.vm_memory = 512
    end

I believe the error due to the embedded 'format=qcow2' in the create_params_qemu function in create_vm.rb. I suggest making the format another argument, rather than hardcoding it. I would submit a pull request, but I'm not a ruby guy and I have no idea how to even setup an environment for development.

According to the proxmox api viewer at http://pve.proxmox.com/pve-docs/api-viewer/index.html, the "sata" parameter supports a subparameter named "format" of type , but the actual enumeration values are not listed. From reading other things online, I infer the preferred format in this case should be "raw".

denysvitali pushed a commit to denysvitali/vagrant-proxmox that referenced this issue Sep 11, 2017
@denysvitali
Copy link

You may want to check out my branch, specifically the version 0.12+.
I've fixed the issue, you may need to add proxmox.qemu_storage = 'raw' once you have installed the new gem with vagrant plugin install vagrant-proxmox-0.0.12.gem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants