macOS VM #2

Closed
opened 2024-03-24 16:18:36 +00:00 by chase · 0 comments
Owner

Can't fully get this working, sure I'm doing something wrong. Also don't really care enough since I'm not compiling anything for macOS anytime soon and if I am I can just use my MacBook.

docker run -i --name macOS \
    --device /dev/kvm \
    --restart unless-stopped \
    -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=off" \
    -e NOPICKER=true \
    sickcodes/docker-osx:latest
  • type change vnc password PASSWORD_HERE into the docker terminal and set a password
  • connect to IP:5999 using VNC (can use docker run below)
  • install the machine manually (go into disk utility, format biggest disk -> back out -> reinstall macos)
  • enable SSH in system settings after install (System Pref. -> Sharing -> Remote Login)
  • shutdown the machine
  • stop & rm container (docker stop macOS && docker rm macOS)
  • relaunch container with -d instead of -i and -e NOPICKER=true
docker run -d --name macOS-VNC -p 6080:6080 -e AUTOCONNECT=true -e VNC_PASSWORD=PASSWORD_HERE -e VNC_SE
RVER=172.17.0.1:5999 -e VIEW_ONLY=false --restart unless-stopped bonigarcia/novnc:1.1.0
  • reverse proxy :6080
  • can also SSH in via host:50922
  • Homebrew
Can't fully get this working, sure I'm doing something wrong. Also don't really care enough since I'm not compiling anything for macOS anytime soon and if I am I can just use my MacBook. ```bash docker run -i --name macOS \ --device /dev/kvm \ --restart unless-stopped \ -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=off" \ -e NOPICKER=true \ sickcodes/docker-osx:latest ``` * type `change vnc password PASSWORD_HERE` into the docker terminal and set a password * connect to IP:5999 using VNC (can use docker run below) * install the machine manually (go into disk utility, format biggest disk -> back out -> reinstall macos) * enable SSH in system settings after install (System Pref. -> Sharing -> Remote Login) * shutdown the machine * stop & rm container (`docker stop macOS && docker rm macOS`) * relaunch container with -d instead of -i and -e NOPICKER=true ```bash docker run -d --name macOS-VNC -p 6080:6080 -e AUTOCONNECT=true -e VNC_PASSWORD=PASSWORD_HERE -e VNC_SE RVER=172.17.0.1:5999 -e VIEW_ONLY=false --restart unless-stopped bonigarcia/novnc:1.1.0 ``` * reverse proxy :6080 * can also SSH in via host:50922 * [Homebrew](https://brew.sh)
chase added the
enhancement
label 2024-03-24 16:18:36 +00:00
chase closed this issue 2024-03-25 02:02:59 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: chase/infrastructure#2
No description provided.