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

Disk Utility reports wrong disk size #595

Closed IzKuipers closed 1 year ago

IzKuipers commented 1 year ago

Hi all,

I decided to finally try out this project as the concept behind it seemed like a really good idea. And it is! I even got it running under WSL2. I do however have one major issue that prevents me from using it entirely.

On the main README.md file in the root of this project, the command listed to create the virtual harddisk,

qemu-img create -f qcow2 MyDisk.qcow2 64G

creates a 64GB drive, sure, even according to Qemu itself. But, macOS shows a disk size of 163.9MB: MacOS shows 163.9MB while qemu-img info MyDisk.qcow2 shows the correct 64GB of capacity: image

I haven't found any solution to this problem.

It happens on every system I try it on, from Linux Mint 21 Cinnamon to WSL 2 on Windows 11 22621.1105.

Does anyone know how to fix this issue?

digitalkram commented 1 year ago

Actually this is the second partition of disk 0 (as indicated by the trailing 2).

First use DiskUtility to format/initialize the first partition and afterwards it is selectable in the installer.

IzKuipers commented 1 year ago

It appears I put the the arguments for assigning the disk to the KVM in the wrong place, I added it to the end of the basic.sh commandline instead of in the basic.sh, my bad.

Maybe someone could update the instructions a bit to make it just a tad clearer.