sickcodes / Docker-OSX

Run macOS VM in a Docker! Run near native OSX-KVM in Docker! X11 Forwarding! CI/CD for OS X Security Research! Docker mac Containers.
https://hub.docker.com/r/sickcodes/docker-osx
GNU General Public License v3.0
40.28k stars 1.92k forks source link

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

Open alyssa16 opened 2 years ago

alyssa16 commented 2 years ago

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

chaos-zhu commented 1 year ago

+1