Trying to delete VM, getting a dependency error

Joined
Mar 5, 2022
Messages
224
I have a VM that I built some time ago that I am not using. I tried to delete it via the GUI but am getting the following error:
Code:
[EFAULT] Failed to delete dataset: cannot destroy 'pool/ubuntu-m7wwaj': volume has dependent clones use '-R' to destroy the following datasets: pool/ubuntu-m7wwaj_ubuntuworking

I tried deleting the snapshots from Storage -> Snapshots but I get the following error:
Code:
Batch Operation Results
Error when deleting 1 snapshots
Snapshot: pool/ubuntu-m7wwaj@ubuntuworking_clone1
Error: Cannot destroy pool/ubuntu-m7wwaj@ubuntuworking_clone1: snapshot has dependent clones

I did find some threads that (more or less) discussed this problem, but none seem to help my situation.
I am not exactly sure where my snapshots (or my VM's) reside on my pool.

I am confused about this:
1708361632384.png

iocage shows two ubuntu volumes (but not the other VM I actually want to keep.
Can I just delete them from iocage?
 
Joined
Mar 5, 2022
Messages
224
So, I haven't gotten anywhere with this and on another note, I would like to rename a virtual machine. I found this thread that discusses how to do this, but as I have no idea where the vm is stored, I am unable to do it. I ran this command:

Code:
zfs list -t volume
NAME                               USED  AVAIL     REFER  MOUNTPOINT
pool/datadir/webserver-8p7bme      535G  6.24T     12.2G  -
pool/ubuntu-m7wwaj                 131G  5.83T     7.95G  -
pool/ubuntu-m7wwaj_ubuntuworking   317M  5.73T     23.8G  -


but there is nothing in /mnt/pool/datadir?!?

Out of desperation, I ran this command:
Code:
sudo zfs destroy -r pool/ubuntu-m7wwaj
cannot destroy 'pool/ubuntu-m7wwaj': volume has dependent clones
use '-R' to destroy the following datasets:
pool/ubuntu-m7wwaj_ubuntuworking

sudo zfs destroy -R pool/ubuntu-m7wwaj


It still showed up in the vm list in the GUI, so I deleted it without selecting "delete virtual machine data" This seems to have done the trick for removing th VM, but I am still stuck on renaming a VM.
 
Last edited:
Top