Open okch-codes opened 1 week ago
It is normal for memory that you dedicate to a virtual machine to be locked, the alternative is a feature*.
* called "ballooning" in QEMU, but I am not sure if it is available in Vz yet? Either way, it is not the default.
Apparently it's available but it doesn't work.
Yes its a macOS bug. Even docker desktop has the same problem.
Somehow orbstack fixed it with a custom memory management https://orbstack.dev/blog/dynamic-memory
Lima does create a VZVirtioTraditionalMemoryBalloonDeviceConfiguration
, but I am not sure if it is used yet?
https://developer.apple.com/documentation/virtualization/vzvirtiotraditionalmemoryballoondevice
Discussed in https://github.com/lima-vm/lima/discussions/2720