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
47.87k stars 2.64k forks source link

Cannot change VNC password #789

Open shwuhk opened 3 months ago

shwuhk commented 3 months ago
docker run -i
--device /dev/kvm
-p 50922:10022
-p 5999:5999
-v /mnt/wslg/.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 CPU='Haswell-noTSX'
-e CPUID_FLAGS='kvm=on,vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on'
-e MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom-sonoma.plist'
sickcodes/docker-osx:sonoma

Using the following command to run, when I type change vnc password username, it didn't prompt for a password. And also, whenever I type enter, two lines of (qemu) comes out, is that normal?

(qemu) change vnc password userd
change vnc password userd
(qemu)
(qemu)
SimonBard commented 3 months ago

You changed the password to "userd" You do not specify a user.

SimonBard commented 3 months ago

This happens if you really cannot set a password, its just happening to me:

(qemu) change vnc password justanexample
Error: Could not set password

And please format the text next time for readability

shwuhk commented 3 months ago

This happens if you really cannot set a password, its just happening to me:

(qemu) change vnc password justanexample
Error: Could not set password

And please format the text next time for readability

Thanks for your help. Question is updated for readbility.

I can login now with "userd".

I saw from the others that this placement should be the username and password is prompt next, is it changed or it was always behave like this?