(qemu) qemu-system-x86_64: cannot set up guest memory 'pc.ram': Cannot allocate memory #394

Open
opened 2025-12-29 00:26:18 +01:00 by adam · 1 comment
Owner

Originally created by @alyssa16 on GitHub (Aug 21, 2022).

NAME="Ubuntu"
PRETTY_NAME="Ubuntu 20.04 LTS"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
Filesystem Size Used Avail Use% Mounted on
drvfs 119G 105G 14G 89% /mnt/c
QEMU emulator version 4.2.1 (Debian 1:4.2-3ubuntu6.23)
Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers
libvirtd (libvirt) 6.0.0
total used free shared buff/cache available
Mem: 1.6Gi 725Mi 69Mi 50Mi 827Mi 701Mi
Swap: 1.0Gi 73Mi 950Mi
2
2
crw-rw-rw- 1 root kvm 10, 232 Aug 21 11:20 /dev/kvm
total 8.0K
drwxrwxrwt 2 root root 4.0K Aug 21 10:23 .
drwxrwxrwt 8 root root 4.0K Aug 21 11:05 ..
alyssa 1243 1.0 0.0 8164 732 pts/1 S+ 11:22 0:00 grep --color=auto dockerd
kvm:x:108:alyssa
docker:x:1001:alyssa
libvirt:x:120:alyssa
libvirt-qemu:x:64055:libvirt-qemu
libvirt-dnsmasq:x:121:

i get this error when executing this command: docker run -i
--device /dev/kvm
-p 50922:10022
-v /tmp/.X11-unix:/tmp/.X11-unix
-e "DISPLAY=${DISPLAY:-:0.0}"
sickcodes/docker-osx:big-sur

error: (qemu) qemu-system-x86_64: cannot set up guest memory 'pc.ram': Cannot allocate memory

Originally created by @alyssa16 on GitHub (Aug 21, 2022). NAME="Ubuntu" PRETTY_NAME="Ubuntu 20.04 LTS" VERSION_CODENAME=focal UBUNTU_CODENAME=focal Filesystem Size Used Avail Use% Mounted on drvfs 119G 105G 14G 89% /mnt/c QEMU emulator version 4.2.1 (Debian 1:4.2-3ubuntu6.23) Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers libvirtd (libvirt) 6.0.0 total used free shared buff/cache available Mem: 1.6Gi 725Mi 69Mi 50Mi 827Mi 701Mi Swap: 1.0Gi 73Mi 950Mi 2 2 crw-rw-rw- 1 root kvm 10, 232 Aug 21 11:20 /dev/kvm total 8.0K drwxrwxrwt 2 root root 4.0K Aug 21 10:23 . drwxrwxrwt 8 root root 4.0K Aug 21 11:05 .. alyssa 1243 1.0 0.0 8164 732 pts/1 S+ 11:22 0:00 grep --color=auto dockerd kvm:x:108:alyssa docker:x:1001:alyssa libvirt:x:120:alyssa libvirt-qemu:x:64055:libvirt-qemu libvirt-dnsmasq:x:121: i get this error when executing this command: docker run -i \ --device /dev/kvm \ -p 50922:10022 \ -v /tmp/.X11-unix:/tmp/.X11-unix \ -e "DISPLAY=${DISPLAY:-:0.0}" \ sickcodes/docker-osx:big-sur error: (qemu) qemu-system-x86_64: cannot set up guest memory 'pc.ram': Cannot allocate memory
Author
Owner

@chaos-zhu commented on GitHub (Oct 26, 2022):

+1

@chaos-zhu commented on GitHub (Oct 26, 2022): +1
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#394