How can an existing .qcow2 image be attached to a VM without modifying it ?

shodan

Active Member
Sep 1, 2022
181
56
33
Hi,

I am trying to figure out, how to attach an existing .qcow2 image file to a VM, but without using "qm importdisk"

What is the syntax ?

Suppose the qcow2 file is /tmp/temp.qcow2

Is there a syntax to attach it where it is ?

qm set 101 --sata0 /tmp/temp.qcow2
or
qm set 101 --sata0 local:images/temp.qcow2

Are these valid ? Or something close to that would be ?

In this case "local" storage is a "dir" storage at /var/lib/vz

thanks
 
  • Like
Reactions: UdoB