Runs OSX within a KVM container - loaded with Catalina beta out of the box
3.7K
(Research project)
Run an OSX KVM virtual machine inside a Docker container.
This project permits to run an OSX virtual machine (KVM) inside a Docker container.
To execute the container, you need to pass the KVM device. A mac_hdd-backing.img is no longer required as it has been built into this image.
docker run --device /dev/kvm:/dev/kvm -p 2222:2222 -p 5900:5900 -p 5800:5800 cleafy/sxkdvm
To persist the changes export the snapshot storage somewhere with -v $PWD/snapshot:/snapshot.
This VM exposes an ssh connection at 2222 and a VNC server at 5900,5800 ports.
It is possible to access the VM with the following command:
ssh appleuser@localhost -p 2222
The environment uses automatic copy-on-write images to provide seamless integration with Docker layered file system. The mechanism mentioned above permits to obtain acceptable performance when running multiple VMs without hogging the storage.
Furthermore, this container uses hardware virtualization technologies, like VT-X or AMD-V, to achieve almost native performance.
Content type
Image
Digest
Size
1.1 GB
Last updated
about 7 years ago
docker pull rmp9x/osx-kvm-docker