Jump to content

[6.4.0] Orphaned VM vdisk file under certain conditions

1 post in this topic Last Reply

Recommended Posts



I tried to search if this bug was already reported, but I could not find it.

I admit that i did not browse through the dozens of result pages :) so if this is duplicate, please feel free to remove my post.


This looks like a small issue and with W/A... still, maybe it's worth sharing it.




Users will end up with orphaned VM vdisk file, if following a failed attempt to initially start the VM (enabled "Start VM after creation"), the user decides to cancel the VM definition.



How to reproduce:

1) create VM with enabled checkbox "Start VM after creation" and allocate to VM more RAM than you have free in the system at that moment (this is easy to follow, so that VM will fail on first initialization, but for sure there are other ways to fail it)

2) Save

3) VM will fail to start due to not enough ram with an error like:

VM creation error

internal error: process exited while connecting to monitor: 2018-02-22T21:30:35.398973Z qemu-system-x86_64: -chardev pty,id=charserial0: char device redirected to /dev/pts/2 (label charserial0)
2018-02-22T21:30:35.401988Z qemu-system-x86_64: cannot set up guest memory 'pc.ram': Cannot allocate memory


4) vdisk file is created

5) After dismissing the popup with the RAM allocation error, if user is pressing Cancel (instead of unchecking the "Start VM after creation" and pressing Done), then VM definition is lost, but vdisk is not deleted.


Expected results:

VM definition is saved, even if user is pressing Cancel after failure - since the user already pressed Create


Actual results:

VM definition is lost, VM does not appear in the list


Other information:

W/A - user needs to login to the terminal of the unraid (/mnt/user/domains/), identify the orphaned vdisk file and reclaim the space by manually removing it.

I am not aware if other entities are left orphaned, besides the vdisk file.

Edited by alexciurea

Share this post

Link to post

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.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.