Thank you Narcis for your attention. Pc.ram is in the error message. And the
difference between GB and GiB is not the issue.
I tried binging memory down from 12 GB, and only when it was 1 GB, it would
start the VM. Is there a restriction somewhere that I am not aware of?
Wilm
Error msg:
Fout bij starten van domein: internal error: qemu unexpectedly closed the
monitor: 2023-04-19T16:11:28.206086Z qemu-system-i386: -object
memory-backend-ram,id=pc.ram,size=12884901888: cannot set up guest memory
'pc.ram': Invalid argument
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 65, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 101, in tmpcb
callback(*args, **kwargs)
File "/usr/share/virt-manager/virtManager/object/libvirtobject.py", line 57,
in newfn
ret = fn(self, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/object/domain.py", line 1329, in
startup
self._backend.create()
File "/usr/lib/python3/dist-packages/libvirt.py", line 1353, in create
raise libvirtError('virDomainCreate() failed')
libvirt.libvirtError: internal error: qemu unexpectedly closed the monitor:
2023-04-19T16:11:28.206086Z qemu-system-i386: -object
memory-backend-ram,id=pc.ram,size=12884901888: cannot set up guest memory
'pc.ram': Invalid argument
-Original Message-
From: qemu-discuss-bounces+wboerhout=gmail@nongnu.org
On Behalf Of Narcis Garcia
Sent: Wednesday, April 19, 2023 6:07 PM
To: Qemu-discuss
Subject: Re: Max memory on VM (debian bullseye)
I don't see "pc.ram" in your XML.
I see two tags: and to specify 12 GiB (not 12GB)
El 19/4/23 a les 16:18, Wilm Boerhout ha escrit:
> I installed and configured KVM on a HP Zbook 15 laptop with 2x4 CPUs
> and 24GB of memory
>
> OS is Debian bullseye
>
> No matter what I try, any VM with > 1GB virtual memory gives an error
> message on start:
>
> Cannot set up guest memory,’pc.ram’: invalid argument.
>
> In the target XML file, the amount of memory (I need 12GB for my VM)
> is expressed in KiB and appears correct.
>
> Any suggestions?
>
> /Wilm
>
>
>
>
>
>VMSx86
>
> adb2de34-d2b9-4c23-96dc-f2ee9ab2977a
>
> 12582912
>
>12582912
>
>2
>
>
>
> hvm
>
> type='pflash'>/usr/share/OVMF/OVMF_CODE.fd
>
> /var/lib/libvirt/qemu/nvram/VMSx86_VARS.fd
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>destroy
>
>restart
>
>destroy
>
>
>
>
>
>
>
>
>
>
>
> /usr/bin/qemu-system-i386
>
>
>
>
>
>
>
>
>
>
>
> unit='0'/>
>
>
>
>
>
>
>
>
>
>
>
> unit='1'/>
>
>
>
>
>
>
>
>
>
>
>
> unit='2'/>
>
>
>
>
>
>
>
>
>
>
>
> unit='3'/>
>
>
>
>
>
> function='0x7'/>
>
>
>
>
>
>
>
> function='0x0' multifunction='on'/>
>
>
>
>
>
>
>
> function='0x1'/>
>
>
>
>
>
>
>
> function='0x2'/>
>
>
>
>
>
> function='0x2'/>
>
>
>
>
>
>
>
>
>
>
>
> function='0x0' multifunction='on'/>
>
>
>
>
>
>
>
> function='0x0'/>
>
>
>
>
>
>
>
>
>
> function='0x1'/>
>
>
>
>
>
>
>
>
>
> function='0x2'/>
>
>
>
>
>
>
>
>
>
> function='0x3'/>
>
>
>
>
>
> function='0x0'/>
>
>
>
>
>
>
>
>
>
>
>
> function='0x0'/>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> function='0x0'/>
>
>
>
>
>
> heads='1' primary='yes'/>
>
> function='0x0'/>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> function='0x0'/>
>
>
>
>
>
>
>
--
Narcis Garcia