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.

Ubuntu 22.04 VM constantly crashing - unable to troubleshoot

Featured Replies

Hi everyone, I'm hoping for some help, as I can't seem to figure out why my Ubuntu VM constantly crashed. I'm speculating overheating of the NVMe drives but I can't really trace it down. I've got a VM that has 2 USB 3.0 PCIe cards passed through to it and a NVIDIA RTX gpu. All seemed to work until recently...

 

Will try to upgrade Unraid right now and see if that may help. The hardware I'm running is a HP Z840 Workstation with 512GB RAM.

 

Cheers!

super-diagnostics-20231216-1135.zip

Solved by theunraidhomeuser

  • Author

Hi, if anyone has idea… thanks!

  • Community Expert
1 hour ago, theunraidhomeuser said:

Hi, if anyone has idea… thanks!

If you are not using virtiofs I would remove memfd and shared  lines from the XML or update to 6.12.6 which has a newer QEMU version(7.2). There is an issue with VMs locking up normally Windows if this is enabled on QEMU 7.1

 

<memoryBacking>

<nosharepages/>

<source type="memfd"/>

<access mode="shared"/>

</memoryBacking>

  • Author
17 minutes ago, SimonF said:

If you are not using virtiofs I would remove memfd and shared  lines from the XML or update to 6.12.6 which has a newer QEMU version(7.2). There is an issue with VMs locking up normally Windows if this is enabled on QEMU 7.1

 

<memoryBacking>

<nosharepages/>

<source type="memfd"/>

<access mode="shared"/>

</memoryBacking>

 

Hi and thanks for your help. I just updated to 6.12.6 last night and changed the QEMU version to 7.2.

Worth mentioning, I never had this issue before, I was running UNRAID with an ubuntu VM for over 2 years, rock-solid. Recently, I changed the scope of the VM, adding to PCI-E USB 3.0 cards and a passthrough GPU. Since, then, I feel that I'm "overwhelming" the VM somehow, resulting in it to freeze. Log files don't really reveal what's going on  (or I can't see it).

 

Attached the latest diags.

I'm also getting a "Machine error" in the Fix Common Problems plugin all of a sudden, not sure where that is coming from and don't know where to find the mcelog output...

 

image.thumb.png.d31301b04c1eb922af9f091ad7a4aa1b.png

 

Appreciate your thoughts to trouble-shoot, am a bit lost TBH...

 

super-diagnostics-20231217-1237.zip

  • Author
32 minutes ago, SimonF said:

If you are not using virtiofs

 

oh yes, I am using it. Was using the unraid 9p thing but it's so damn slow to read-write that I switched to virtiofs which seems a lot quicker. Do you suspect this could be a cause? I always used the 9P mode in the past but had much less need for good throughput... I might try out 9p if you think that could be a reason but would love to understand why that would be the case (and in that case, maybe try and address the root cause).

  • Community Expert
55 minutes ago, theunraidhomeuser said:

 

oh yes, I am using it. Was using the unraid 9p thing but it's so damn slow to read-write that I switched to virtiofs which seems a lot quicker. Do you suspect this could be a cause? I always used the 9P mode in the past but had much less need for good throughput... I might try out 9p if you think that could be a reason but would love to understand why that would be the case (and in that case, maybe try and address the root cause).

There is a newer version of the virtiofsd which has to be used for QEMU 8 onwards so will be in the next release Unraid release.

 

You can download the rust version from here https://gitlab.com/virtio-fs/virtiofsd/-/releases/v1.8.0

 

and copy to here 

 

root@computenode:~# which virtiofsd
/usr/bin/virtiofsd
root@computenode:~# 

 

 

Note it will not survive a host reboot.

 

There are lots of btrfs errors on your system also. Are you overclocking cpu or memory?

  • Author
43 minutes ago, SimonF said:

There is a newer version of the virtiofsd which has to be used for QEMU 8 onwards so will be in the next release Unraid release.

 

You can download the rust version from here https://gitlab.com/virtio-fs/virtiofsd/-/releases/v1.8.0

 

and copy to here 

 

root@computenode:~# which virtiofsd
/usr/bin/virtiofsd
root@computenode:~# 

 

 

Note it will not survive a host reboot.

 

There are lots of btrfs errors on your system also. Are you overclocking cpu or memory?


thanks for the suggestion, I might try that. Regarding btrfs errors: no, but I think it’s linked to the drives I’m passing through virtiofs, as I created a pool in unraid to pass through, and it’s formatted with btrfs. I’m thinking of undoing that and passing through the 2 sata drives with UAD to the VM directly, and then potentially creating a raid0 as I want to leverage higher speed.

 

keep you posted! Thanks!

  • Author
  • Solution

I think I found the issue, created a separate thread for it so easier to find..

 

 

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.