RE: Max memory on VM (debian bullseye)

2023-04-19 Thread Wilm Boerhout
Is there a Qemu/KVM live CD or such with the minimum 64-bit Debian set to 
support it?

-Original Message-
From: Peter Maydell  
Sent: Wednesday, April 19, 2023 6:30 PM
To: Wilm Boerhout 
Cc: Qemu-discuss ; Narcis Garcia 

Subject: Re: Max memory on VM (debian bullseye)

On Wed, 19 Apr 2023 at 17:27, Wilm Boerhout  wrote:
> (Bangs forehead to wall). I have been working too long with Raspberry 
> Pi's with 64 bit Debian. I never noticed that the laptop runs a 32-bit 
> version of Debian now.

Yeah, if your *host* is running a 32-bit kernel I would definitely suggest 
switching that to 64-bit if you can :-)

-- PMM




RE: Max memory on VM (debian bullseye)

2023-04-19 Thread Wilm Boerhout
(Bangs forehead to wall). I have been working too long with Raspberry Pi's with 
64 bit Debian. I never noticed that the laptop runs a 32-bit version of Debian 
now.

Back to the drawing board.

Thanks for the time you saved me!

Wilm

-Original Message-
From: Peter Maydell  
Sent: Wednesday, April 19, 2023 6:16 PM
To: Wilm Boerhout 
Cc: Qemu-discuss ; Narcis Garcia 

Subject: Re: Max memory on VM (debian bullseye)

On Wed, 19 Apr 2023 at 17:14, Wilm Boerhout  wrote:
> 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?



> 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

qemu-system-i386 is the binary for 32-bit QEMU x86 targets. There is always 
going to be a restriction on the amount of memory it can use, because it's 
32-bit. If you want as much as 12GB of RAM, don't you want qemu-system-x86_64 
(and probably also a 64-bit guest) ?

thanks
-- PMM




RE: Max memory on VM (debian bullseye)

2023-04-19 Thread Wilm Boerhout
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





Max memory on VM (debian bullseye)

2023-04-19 Thread Wilm Boerhout
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

/usr/share/OVMF/OVMF_CODE.fd

/var/lib/libvirt/qemu/nvram/VMSx86_VARS.fd



  

  









  

  

  







  

  destroy

  restart

  destroy

  





  

  

/usr/bin/qemu-system-i386