OSX-KVM: Difference between revisions
imported>Zeorin m Add dependency for OpenCore image regeneration script |
|||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[https://github.com/kholia/OSX-KVM OSX-KVM] allows to run macOS on Linux machines. | [https://github.com/kholia/OSX-KVM OSX-KVM] allows to run macOS on Linux machines. | ||
== Installation == | |||
Enable virtualisation support in your system configuration by adding following lines | |||
<syntaxHighlight lang=nix> | <syntaxHighlight lang=nix> | ||
{ | { | ||
virtualisation.libvirtd.enable = true; | virtualisation.libvirtd.enable = true; | ||
users.extraUsers.youruser.extraGroups = [ "libvirtd" ]; | |||
users.extraUsers. | |||
boot.extraModprobeConfig = '' | boot.extraModprobeConfig = '' | ||
options kvm_intel nested=1 | options kvm_intel nested=1 | ||
Line 34: | Line 18: | ||
</syntaxHighlight> | </syntaxHighlight> | ||
Replace <code>youruser</code> with the user name of your running system. After applying the configuration, reboot your system so the changes to the kernel modules can take effect. | |||
to | |||
== Usage == | |||
{{Note|This instruction uses a custom fork of OSX-KVM with Nix Flake support. Hopefully these changes will soon be merged to the upstream repository.}} | |||
< | Git clone the project repository and run <code>nix run</code> to prepare and run your MacOS system | ||
</ | |||
<syntaxHighlight lang=bash> | |||
git clone -b flake https://github.com/onny/OSX-KVM.git | |||
<syntaxHighlight lang= | cd OSX-KVM | ||
nix run | |||
</syntaxHighlight> | </syntaxHighlight> | ||
Line 69: | Line 37: | ||
On the next boot you will a new boot entry containing the actual installation. | On the next boot you will a new boot entry containing the actual installation. | ||
== See also == | |||
* [https://github.com/ngi-nix/OSX-KVM ngi-nix/OSX-KVM]: This implementation is based on [https://github.com/foxlet/macOS-Simple-KVM macOS-Simple-KVM], and may not be as complete or polished as [https://github.com/kholia/OSX-KVM kholia/OSX-KVM]. Usage instructions are available in the repository README. | |||
[[Category:Virtualization]] |