foxlet / macOS-Simple-KVM

Tools to set up a quick macOS VM in QEMU, accelerated by KVM.
13.55k stars 1.14k forks source link

Cannot run it using virt-manager #597

Open chan-dev opened 1 year ago

chan-dev commented 1 year ago

I was able to complete the steps and run the vm. However, when i quit the VM, and tried to open it with virt-manager, it shows an error like the screenshot shown below.

image

I have a couple of questions.

  1. Why is it showing ESP.qcow2 even if the disk created by following the steps is named MyDisk.qcow2? qemu-img create -f qcow2 MyDisk.qcow2 64G

  2. How do i re-open the VM after quitting without using virt-manager?

Masamune3210 commented 1 year ago

Its saying ESP.qcow2 because that is the drive for the ESP, or EFI System Partition. As for how to relaunch the emulator without using virt-manager, its the same way you launched it the first time. Once the system is installed, all you should have to do to get it turned on again is just relaunch qemu with the right variables

chan-dev commented 1 year ago

@Masamune3210, got that. Thanks I've followed all steps specified. Why was that MyDisk.qcow2 not detected by virt-manager?

I'm not very familiar with virt-manager, does it mean that i simply add another storage for MyDisk.qcow2?

As a sidenote, if i have to clean up to start from the clean slate, do I simply delete the macOS-Simple-KVMdirectory?

Masamune3210 commented 1 year ago

Its saying PermissionDenied, so I'm assuming either your files are in a directory that is not world-accessible or that you missed a step somewhere in adding a user to a group. Either way, the fix is the same, figure out the permission issue and fix it

scyilk commented 1 year ago

Don't delete the directory, instead run chmod -R 777 /path/to/macOS-Simple-KVM where /path/to/macOS-Simple-KVM is the path to that directory. This will fix the permission issue.