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.

"Cannot set up guest memory" error

Featured Replies

Hi,

 

I'm new to unRAID but I've successfully migrated 4TB of data to my new system and got a few dockers running merrily.

 

I wanted to create an Ubuntu VM but when creating the VM I get an error message:

 

Error creating VM: internal error: process exited while connecting to monitor: 2015-06-23T12:22:02.619982Z qemu-system-x86_64: cannot set up guest memory 'pc.ram': Cannot allocate memory

 

I'm running an HP Microserver G8 with 2GB RAM. I allocated 512MB to the VM. Stats is showing approx 1GB allocated, the rest is cached/free.

 

A quick Google doesn't come up with any answers. Can anyone help?

Hi,

 

I'm new to unRAID but I've successfully migrated 4TB of data to my new system and got a few dockers running merrily.

 

I wanted to create an Ubuntu VM but when creating the VM I get an error message:

 

Error creating VM: internal error: process exited while connecting to monitor: 2015-06-23T12:22:02.619982Z qemu-system-x86_64: cannot set up guest memory 'pc.ram': Cannot allocate memory

 

I'm running an HP Microserver G8 with 2GB RAM. I allocated 512MB to the VM. Stats is showing approx 1GB allocated, the rest is cached/free.

 

A quick Google doesn't come up with any answers. Can anyone help?

The last time a similar question came up the problem disappeared when more RAM was added to the machine.  My suspicion is that as well as the RAM allocated to the VM there is additional RAM being used to run KVM itself, and the combination has taken you over your systems capabilities.  2GB of RAM is certainly very low in any modern system, especially if you want to get into virtualisation.

Correct. Cannot allocate memory means you do not have enough RAM.  There is a bit of overhead in RAM for each VM you create for emulation.

 

Have you added any containers or plugins?

  • Author

Thanks for the replies.

 

I've added a couple of plugins - just the stats and community applications plugins. I've got 5 Docker applications running too.

 

I've got a spare 2GB DIMM which I'll stick in there and see if that sorts it. I'll report back with results.

 

As an aside - the error message could be more helpful!

Refining error messages is something we want to do. Right now we are simply rendering the message that qemu/libvirt gives us. This particular message is actually far less obtuse than others I've seen.

 

You definitely do not have enough RAM to create a VM if you have all that other stuff running. I admire your attempt to squeeze every ounce of horsepower out of that machine, but 2GB is just not sufficient.

 

Report back after adding more memory and let us know if that solves your problem (it should).

 

Thanks for the replies.

 

I've added a couple of plugins - just the stats and community applications plugins. I've got 5 Docker applications running too.

 

I've got a spare 2GB DIMM which I'll stick in there and see if that sorts it. I'll report back with results.

 

As an aside - the error message could be more helpful!

That sounds like a reasonably impressive list of things to be running on 2GB even without trying to run a VM  :)

  • Author

Adding another 2GB did the trick! VM has started successfully.

 

Thanks for your help.

Archived

This topic is now archived and is closed to further replies.

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.