You are not logged in.

#1 2021-05-29 19:22:24

4rno
Member
Registered: 2021-05-29
Posts: 1

Libvirt: using all my memory

Hello there,

I am trying to setup a virtual desktop machine on top of my computer as the host OS is used as a server for different services.

Following the wiki, I have successfully achieved a working VM.
But as soon as I start the domain, the host allocates 12GiB of memory to the VM (as I can see on htop on the host), regardless of the 'currentMemory' field; but the guest has only access to 2GiB (and is stuck at that amount).

<memory unit='KiB'>12582912</memory>
<currentMemory unit='KiB'>2097152</currentMemory>

To my understanding, the VM should start with 2GiB of memory and should dynamically get more if needed; thanks to memory ballooning. Is that incorrect ?
I tried to manually add the 'vfio_balloon' to the guest's kernel but it didn't change anything.

Am I missing something ? (probably as it doesn't work)

Offline

Board footer

Powered by FluxBB