[SOLVED] unable to remove disk to vm

crc-error-79

Member
Apr 10, 2023
78
7
8
Italy
hello! I had an error during the import of a disk to a vm so I had to restart the process.

The problem now is that I have a partial disk imported to the vm.
By GUI I can't delete because it seems that this disk is attached to the vm. How can I solve?

This is the message from the GUI when I try to remove the disk from local-zfs

Cannot remove image, a guest with VMID '700' exists!
You can delete the image from the guest's hardware pane

But in machine config it doesnt' appear:

Code:
root@rea:~# qm config 700
agent: 1
balloon: 0
boot: order=ide0;ide2;net0
cores: 4
cpu: x86-64-v2-AES
description: # Windows 7 lavoro
ide0: local-zfs:vm-700-disk-1,discard=on,size=286169M,ssd=1
ide2: gaia:iso/virtio-win.iso,media=cdrom,size=363104K
memory: 8192
meta: creation-qemu=8.1.2,ctime=1705773902
name: pandora
net0: virtio=BC:24:11:00:01:71,bridge=vmbr0,firewall=1,tag=232
numa: 0
ostype: l26
scsihw: virtio-scsi-single
smbios1: uuid=ffbee002---
sockets: 1
tags: lavoro;232
vmgenid: 4f45325c-hidden-


The disk to remove is disk 0

Code:
root@rea:~# zfs list | grep 700
rpool/data/vm-700-disk-0                     3.46G   710G  3.46G  -
rpool/data/vm-700-disk-1                      105G   710G   105G  -