Closed ficofer closed 3 years ago
You are missing a display from the issue template output:
echo "${DISPLAY}"
https://github.com/sickcodes/Docker-OSX#building-a-headless-osx-container
If you're running on a remote server with command line only, remove the X11 and DISPLAY lines from your command and use :naked
Alternatively,
apt install xvfb
nohup xvfb &
Yes I was actually shooting to get this done https://github.com/sickcodes/Docker-OSX#building-a-headless-container-which-allows-insecure-vnc-on-localhost-for-local-use-only where I would be able to VNC in to install xcode and register the machine before just using it for ssh only access.
docker run -i \
--device /dev/kvm \
-p 50922:10022 \
-p 5999:5999 \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-e "DISPLAY=${DISPLAY:-:0.0}" \
-e EXTRA="-display none -vnc 0.0.0.0:99,password" \
sickcodes/docker-osx:big-sur
This was working good from this same remote server (VM) before we needed to add:
> -e GENERATE_UNIQUE=true \
> -e MASTER_PLIST_URL=https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist \
I wonder if there is any workaround
This worked for me but GitHub is going very slowly, and without -t
it will not show you output.
I can also use qemu command line with both -it
Try this:
docker run -it \
--device /dev/kvm \
-p 50922:10022 \
-p 5999:5999 \
-v /tmp/.vnc-sock:/tmp/.vnc-sock \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-e "DISPLAY=${DISPLAY:-:0.0}" \
-e EXTRA="-display none -vnc 0.0.0.0:99,password=on" \
-e GENERATE_UNIQUE=true \
-e MASTER_PLIST_URL=https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist \
sickcodes/docker-osx:latest
Also, to change the QEMU password, it seems you also need to specify a username (anything) now.
This looks like a new feature in QEMU 6?
(qemu) change vnc password fghnrtisdfklz`
Password: ********
(qemu)
Added some QEMU 6 documentation changes https://github.com/sickcodes/Docker-OSX/commit/64ed979a65c35fcb7a895919ce3fabe63f42eddc
@sickcodes Amazing! that solved my issue it was the -it
with only -i
all worked as before and I was able to create the image!
hahaha, @ficofer your comment fix my problem in the issue https://github.com/sickcodes/Docker-OSX/issues/421
Thanks,
i remove t
for docker run -it , and change to docker run -i
"Failed to parse ACL : Invalid argument. Ignoring" and "mdadm: No arrays found in config file or automatically " and "lvmetad: command not found " is not corrected by not using "t", and all the thing about using headless or creating a virtual screen does not concern my problem as I try to use it with my actual screen
I am not able to start basi big-sur image to install it and configure it, I used to be able to do this before latest change to OpenCore.qcow2 image.
This is the stack trace I am dealing with, but it might be some known thing that I am hitting ?
Virtualization was working correctly before this OpenCore.qcow2 image update.