Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Way to manually remove or delete VMs?

Featured Replies

I had been fooling around with several test Windows VMs, messing with the XML, etc., and now have managed to screw things up enough that I cannot delete the VMs to start over.

 

That means I can't reuse my UUID that I need for my licensed copy of Windows, because it is currently reserved by one of these busted VMs.

 

If I try to delete any of these VMs (which are currently stopped), I get an error that:

 

Requested operation is not valid: cannot delete inactive domain with nvram

 

Is there a way to remove these manually? A config file or something on the flash drive? I located the actual VM disc image but deleting that will not remove the entry from the Unraid GUI.

 

The big problem is freeing up my UUID because it is tied to a paid version of W10, which right now is stuck on a useless VM.

Run from a shell (SSH, etc):

 

virsh undefine --nvram "name of VM"

You can also go to /etc/libvirt/qemu/ through the command line or mc and delete the vm's xml. Then restart rc.libvirt, the array or the server.

  • Author

Run from a shell (SSH, etc):

 

virsh undefine --nvram "name of VM"

 

Tried that and got the same error... I assume the GUI is just running this exact command behind the scenes

 

Edit: the --nvram flag changes things, let me try again

  • 3 years later...
On 10/16/2016 at 8:59 PM, kode54 said:

Run from a shell (SSH, etc):


virsh undefine --nvram "name of VM"

Thank you, works great. I had to delete the vdisk from the cache after I ran the code, and voila... as if it never happened.

  • 2 months later...

This helped me get rid of it as well, Thanks!! 

  • 3 weeks later...

Had this exact error and then figured since the nvme drive is enabled and checked within the vm template to just go back to that busted or bad VM template and then uncheck NVME drive in the other pci devices section or just uncheck any usb or pci express devices and hit apply. Now you should be able to simply delete the vm without any error message.

 

Unraid is so logical that if you try to 'Windows' it, it won't forgive you for being stupid and it will just tell you off, but if you think like spock unraid just works.

 

 

  • 4 months later...

Thank you kode54, this was the solution for me as well:

On 10/17/2016 at 5:59 AM, kode54 said:

Run from a shell (SSH, etc):


virsh undefine --nvram "name of VM"
 

 

Edited by hitcsu
formatting

On 6/2/2020 at 9:54 AM, HectorG said:

Had this exact error and then figured since the nvme drive is enabled and checked within the vm template to just go back to that busted or bad VM template and then uncheck NVME drive in the other pci devices section or just uncheck any usb or pci express devices and hit apply. Now you should be able to simply delete the vm without any error message.

Thanks for this. I checked the button for my Logitech wireless mouse, updated the template, then was able to delete it without error.

  • 5 months later...
  • 1 month later...

Just do not omit the double quote " 

Thaks guys !

 

  • 1 year later...
On 10/16/2016 at 8:59 PM, kode54 said:

Run from a shell (SSH, etc):

 

 

virsh undefine --nvram "name of VM"
 

 

virsh undefine --nvram "Macinabox BigSur of VM" error: failed to get domain 'Macinabox BigSur of VM' cant get past this ?????? Help Thanks 

On 7/25/2022 at 2:40 AM, dlfz.Network said:

"Macinabox BigSur of VM"

 

I bet your vm name is not "Macinabox BigSur of VM", but maybe "Macinabox BigSur"

  • 2 weeks later...

it was my first time I did this wrong. I removed the VM files but the VM still shows in the VM list an I cant remove it. Any thoughts Thanks dlfz

 

Error Message  

 

Requested operation is not valid: cannot undefine domain with nvram ! Not valid!

On 8/10/2022 at 4:50 PM, dlfz.Network said:

Requested operation is not valid: cannot undefine domain with nvram ! Not valid!

Type this in unraid terminal:

virsh undefine --nvram "Macinabox BigSur"

 

OMG Thank you it worked right off the Bat !!!!!!!!!!!!!!!!

  • 9 months later...
On 10/18/2016 at 4:04 AM, dmacias said:

You can also go to /etc/libvirt/qemu/ through the command line or mc and delete the vm's xml. Then restart rc.libvirt, the array or the server.

How do I go about restarting rc.libvirt?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.