ChrisTitusTech / website

My HUGO Website that I use for Videos, Blogs, and Redirects
74 stars 44 forks source link

macos-on-linux/ #49

Open utterances-bot opened 1 year ago

utterances-bot commented 1 year ago

Macos on Linux

Having Fun with Technology

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

bassstorm commented 1 year ago

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!

Aupire commented 1 year ago

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

Benub commented 1 year ago

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 commented 1 year ago

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.

rvasquez151 commented 1 year ago

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?

aindriu80 commented 1 year ago

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

schaefsteven commented 9 months ago

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.

Korysovec commented 9 months ago

No module named 'click' on ARCH:

sudo pacman -S python-pipenv

No access to ESP.qcow2:

sudo vim /etc/libvirt/libvirtd.conf

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

sudo vim /etc/libvirt/qemu.conf

GandalfSturmkraehe commented 4 months ago

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

jonjampen commented 3 months ago

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

Korysovec commented 3 months ago

@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.

jonjampen commented 3 months ago

@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?

Korysovec commented 3 months ago

@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.

jonjampen commented 3 months ago

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