Create VM using pre-baked qcow2

FaZ

New Member
Jun 2, 2017
2
0
1
35
I am trying to create a VM on Proxmox 4 using one of the qcow2 images from cloud.centos.org/centos/7/images/

Is there a recommended way to do it? It's not possible from the Proxmox web GUI.
 
Create a dummy qcow2 disk in the GUI attached to the VM. Then remove from the VM. In the CLI, 'mv' the qcow2 image you want to use on top of the dummy one. In the GUI, re-attach the 'unused' qcow2 disk to the VM. I've done something like this...
 
PVE 5.0 will include a tool to import external disk images to an existing VM.
So you will be able to do

qm create 501
qm importdisk 501 my_qcow2 my_storage_id

the disk will appear then as "unused disk" in the gui, and you then attach the disk to a virtio blk, sata or scsi controller
 
  • Like
Reactions: pixel