website icon indicating copy to clipboard operation
website copied to clipboard

macos-on-linux/

Open utterances-bot opened this issue 3 years ago • 15 comments

Macos on Linux

Having Fun with Technology

https://christitus.com/macos-on-linux/

utterances-bot avatar Oct 03 '22 14:10 utterances-bot

Hi Titus,

Are you going to cover folder sharing aspect in further chapters? Guides like https://wiki.archlinux.org/title/QEMU#Host_file_sharing_with_virtiofsd are pretty much forcing you to think twice if you really want to follow that road :)

Thank you in advance!

bassstorm avatar Oct 04 '22 19:10 bassstorm

Hi ! Thanks for this article.

I have a problem, and I don't see the answer in the web. When I finished all the steps with no mistakes. I write : "./basic.sh" And the error is : "Unable to init server: Could not connect : Connection refused gtk initalization failed"

I did some search, and the reason is I don't have the graphical interface. But when I install this, the virtual machine doesn't work well because I have only one graphic card.

Have you any ideas to solve my problem ?

Thanks

Aupire avatar Dec 03 '22 13:12 Aupire

Hi Chris,

I followed your guide. Everything works, however my mouse is very laggy. I came across a github pae where someone mentions adding the usb tablet as an input device to fix the mouse lag. That did not work for me. Any suggestions?

Benub avatar Jan 04 '23 22:01 Benub

Hi Chris, I got it to work. I didn't delete the usb mouse when I added the EVO USB tablet in virt manager as an input.

Benub avatar Jan 04 '23 22:01 Benub

I keep getting permission denied when trying to run the VM. I have two entries in VM Manager - QEMU/KVM and QEMU/KVM User Session. Fedora Windows 10 VM in the User Session one launches. Think I may have missed a step or something. How can I completely uninstall everything and start over? Or is there a fix to a step that I have missed?

rvasquez151 avatar Jan 28 '23 22:01 rvasquez151

Nice tutorial. What about a USB passthrough, what do you do to get that to work?

aindriu80 avatar May 05 '23 16:05 aindriu80

Trying to follow the tutorial on Debian 12 and getting this error:

➜  macOS-Simple-KVM (master) ./jumpstart.sh --catalina

error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.

    If you wish to install a non-Debian-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
    sure you have python3-full installed.

    If you wish to install a non-Debian packaged Python application,
    it may be easiest to use pipx install xyz, which will manage a
    virtual environment for you. Make sure you have pipx installed.

    See /usr/share/doc/python3.11/README.venv for more information.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
Traceback (most recent call last):
  File "/home/steven/macOS-Simple-KVM/tools/FetchMacOS/fetch-macos.py", line 9, in <module>
    import click
ModuleNotFoundError: No module named 'click'

Looks like it's coming from Python? Will keep investigating.

schaefsteven avatar Aug 22 '23 19:08 schaefsteven

No module named 'click' on ARCH:

sudo pacman -S python-pipenv

No access to ESP.qcow2:

  • Make sure you have virtualization enabled in BIOS (CPU advanced menu)

sudo vim /etc/libvirt/libvirtd.conf

  • Uncomment these lines:
  1. unix_sock_group = "libvirt"
  2. unix_sock_rw_perms = "0770"

sudo usermod -a -G libvirt $(whoami) newgrp libvirt

sudo vim /etc/libvirt/qemu.conf

  • Uncomment and edit these lines:
  1. user = "root" to user = "your username"
  2. group = "root" to group = "libvirt"

Korysovec avatar Sep 19 '23 16:09 Korysovec

Hi Chris,

I stumbled upon your video after I had already installed MacOS via sosumi. It does just the same as you recommend and it works quite well. Now I'd like to upgrade my Catalina system to Sonoma. So, I started the upgrade process and everything went well until the last reboot which brought me right to the beginning. It's still Catalina telling me there's an upgrade available. Any suggestions? Thanks Uwe

GandalfSturmkraehe avatar Feb 09 '24 14:02 GandalfSturmkraehe

Hi!

Were you guys able to update to a later version of MacOS than Catalina? I wanted to update to Sonoma (which was recommended by the system) but i get stuck in a boot screen during the installation process. For me it does not necessarily have to be Sonoma, any later version than Catalina would be great. However, I don't know how I would install a specific version (and not the recommended/latest one).

Thanks for any help! Jon

jonjampen avatar Mar 03 '24 09:03 jonjampen

@jonjampen Yes, there's an option to install Monterey/Ventrua via quickemu:

quickget macos monterey
quickemu --vm macos-monterey.conf

Edit macos-monterey.conf with whatever settings you want (RAM/Core Count) otherwise the same apply as said by Chris.

Korysovec avatar Mar 03 '24 09:03 Korysovec

@korysovec Thank you for your answer! I just tried it but I didn't get it to work. I ran quickemu --vm macos-ventura.conf (I also tried it with monterey) and then went into the disk utilities, erased the Apple... disk, and installed the os onto that disk (as described by Chris). The installation process seemed to work, it restarted and I had to choose between Base System, Installer, UEFI, and something else, I think it was a terminal. So I chose the Installer, and after some time it went back to the Recovery screen (like at first, with the options to restore, reinstall, safari, and disk utilities).

Do you know what i did wrong?

jonjampen avatar Mar 03 '24 13:03 jonjampen

@jonjampen In disk utility, erase the Apple virtIO disk then rename it to for example "macos". Then close the window and select Reinstall. Choose your new disk and proceed with the installation. It took me around 30 minutes, then rebooted automatically, it wasn't finished though so I booted back into the MacOS Base System where the installation finished, then rebooted automatically again.

I didn't really do much else with the system as it's really slow without a GPU.

Korysovec avatar Mar 03 '24 13:03 Korysovec

@Korysovec Thank you so much! I finally got it to work!

jonjampen avatar Mar 05 '24 12:03 jonjampen

Can anyone help with the following error?

[adam@ADAM-PC macOS-Simple-KVM]$ sudo ./make.sh --add template.xml has been generated in /home/adam/macOS-Simple-KVM error: Failed to define domain from template.xml error: unsupported configuration: domain configuration does not support video model 'qxl'

spikeyxx avatar Jul 22 '24 20:07 spikeyxx