macOS-Simple-KVM icon indicating copy to clipboard operation
macOS-Simple-KVM copied to clipboard

Cannot run it using virt-manager

Open chan-dev opened this issue 1 year ago • 4 comments

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?

chan-dev avatar Feb 02 '23 00:02 chan-dev

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

Masamune3210 avatar Feb 02 '23 05:02 Masamune3210

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

chan-dev avatar Feb 02 '23 23:02 chan-dev

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

Masamune3210 avatar Feb 03 '23 00:02 Masamune3210

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.

scyilk avatar Jun 29 '23 04:06 scyilk