ajouter un disque .qcow2


New Member
Aug 26, 2019

J'ai ajouter mon fichier .qcow2 dans "/var/lib/vz/images/100" (où 100 est par exemple le numéro de ma machine Proxmox)

Ensuite je vois mon disque sur proxmox dans l'interface graphique dans mon navigateur web dans "local (pve)" -> contenu.

Mais je ne sais pas comment faire pour l'ajouter dans ma machine virtuelle "100"

Pouvez vous m'aider svp
Please post your question in English so that everyone can understand it.
I add my .qcow2 file in "/ var / lib / vz / images / 100" (where 100 is for example the number of my Proxmox machine)

Then I see my disk on proxmox in the GUI in my web browser in "local (pve)" -> content.

But I do not know how to add it to my virtual machine "100"
hmm - if you named it correctly - `qm rescan --vmid 100` should do the trick

I hope this helps!
  • Like
Reactions: Dominic
the name is "vm-100-disk-1.qcow2" it appears in local but not in local-lvm

I do not know how to use it on my virtual machine (100)
please run: `qm rescan --vmid 100`
- check the output - and see if it gets added to the config of vm 100
- for this to work your storage.cfg needs to allow images content-type for the `local` storage

I hope this helps!
thank you

here is my configuration after `qm rescan --vmid 100` :


bootdisk: scsi0
cores: 2
ide2: none,media=cdrom
memory: 2000
name: openflixr
net0: virtio=22:8D:30:77:22:D2,bridge=vmbr0,firewall=1
numa: 0
ostype: l26
scsi0: local-lvm:vm-100-disk-0,size=100G
scsihw: virtio-scsi-pci
smbios1: uuid=af3a6a8f-0924-4cd4-9d7e-445bdc64b45c
sockets: 1
vmgenid: 6e4da45b-0d5d-4648-9b60-801f67f202de

I do not see any change


dir: local
path /var/lib/vz
content iso,vztmpl,backup

lvmthin: local-lvm
thinpool data
vgname pve
content rootdir,images

Last edited:
this can be done via GUI: 'Datacenter'->'Storage'->'local'->'Edit'-> select 'Disk Image' (in addition to 'Container template', 'VZDump Backup file')

I hope this helps!
Thank you!

after having done: this can be done via GUI: 'Datacenter'->'Storage'->'local'->'Edit'-> select 'Disk Image' (in addition to 'Container template', 'VZDump Backup file')

I can not change the disk image of my virtual machine :

do you have an idea ? Thank's
root@pve:~# qm rescan --vmid 100
rescan volumes...
VM 100: add unreferenced volume 'local:100/vm-100-disk-1.qcow2' as 'unused0' to config.

no it did not work
Glad you resolved your issue! :)

you can now move the disk to local-lvm if you like
use the GUI:
* select the guest
* go to Hardware
* select the disk
* click on 'Move Disk' (on the top


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!