Open cyruscook opened 2 years ago
Very similar here I get
qemu-system-x86_64: -drive id=OpenCoreBoot,if=none,snapshot=on,format=qcow2,file=/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore-nopicker.qcow2: Could not open '/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore-nopicker.qcow2': No such file or directory
You need to enable remote login in macOS to use port 10022 and connect to the container ip address. You should be able use the docker port forward with localhost.
ssh -p 10022 macuser@172.17.0.2
ssh -p 50933 macuser@localhost
you can connect to the container too
ssh arch@172.17.0.2
If something got messed up and the container password wasn't set, you can just attach a shell and fix things.
sudo docker container ls
sudo docker container exec -it xxxxconainterid /bin/bash
[arch@xxxxconainterid OSX-KVM]$ sudo su
``
@jpmorrison Thank You for the advice.
ssh -p 10022 macuser@172.17.0.2 ssh -p 50933 macuser@localhost
These do not connect (ssh: connect to host 172.17.0.2/localhost port 10022/50933: Connection refused
).
ssh arch@172.17.0.2
This connects but requires a password, I can't find a password for the user "arch" anywhere in the repo?
sudo docker container ls sudo docker container exec -it xxxxconainterid /bin/bash [arch@xxxxconainterid OSX-KVM]$ sudo su
This does work, but I am not sure how I can fix this? I would really appreciate it if you can give me some steps I can run through from here. Thanks
For ssh to work to the macOS guest you need to finish installing, go into settings and enable remote login.
The arch default password is alpine
. You can change it in the container:
sudo docker container exec -it xxxxconainterid /bin/bash
[arch@xxxxconainterid OSX-KVM]$ sudo su
[arch@xxxxconainterid OSX-KVM]# passwd arch
@jpmorrison
Thank You, I am now able to login with ssh arch@172.17.0.2
, however I am not sure what to do from here.
I am still unable to boot macOS, docker still does not start because of the original error:
Disk is being copied between layers. Repeating until able to copy SSH key into OSX...
/usr/sbin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/arch/.ssh/id_docker_osx.pub"
ssh: connect to host 127.0.0.1 port 10022: Connection refused
Do you have any ideas?
@cyruscook what worked for me was to use sudo su
before running the docker container, using the Monterey image and the Catalina one.
@MaxPowerReforged sorry, could you clarify? Did you run sudo su
in the host computer or the docker container? I am already running docker with sudo
. I also have now attempted running docker within sudo su
on host, but that did not change the result.
@cyruscook Yes, exactly. I run sudo su
in the host computer. For some reason in my case it produced different results thant running the command with sudo. But you are using a different image than I am so there could be other problems sadly, I am sorry I cannot provide more clarification
Thank You for your help, that's fine! I was trying to run catalina but I ran into problems with the install process freezing which is why I am trying to use the pre-installed image. Perhaps I should just try again with catalina.
@jpmorrison
Thank You, I am now able to login with
ssh arch@172.17.0.2
, however I am not sure what to do from here.I am still unable to boot macOS, docker still does not start because of the original error:
Disk is being copied between layers. Repeating until able to copy SSH key into OSX... /usr/sbin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/arch/.ssh/id_docker_osx.pub" ssh: connect to host 127.0.0.1 port 10022: Connection refused
Do you have any ideas?
If you can ssh or attach the container then it's running. ps aux
should show qemu running.
I had issues with Catalina freezing, but I think it's a qemu bug using X displays. Could look at suggestions in https://github.com/sickcodes/Docker-OSX/issues/191 https://github.com/sickcodes/Docker-OSX/issues/218
Eventually I got Catalina installed with SSH/VNC enabled and I could confirm macOS was running. I gave up on X and used the spice config. Also virt-viewer/remote-viewer in Ubuntu is too old and doesn't work - mouse won't move. Installed version 10 for Windows and remote viewer works fine https://virt-manager.org/download/sources/virt-viewer/virt-viewer-10.0.tar.xz
Hello,
I am running into an issue attempting to run
docker-osx:auto
:Do you have any ideas what would be causing this? I have left this running for quite a long time and it just continues.
The readme suggests using
-p 50922:10022
which I believe means that port50922
will map to port10022
on OSX, however it seems that ssh is trying to connect to port10022
but on the host?