Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

macOS - vDisk can write inside and outside the hard disk and disk will run full at some point

Featured Replies

The installation of macOS went smoothly. As storage space for the VM I chose 500 GB m2. But this was not passed through. I inserted the vDisk there and chose almost 500 GB. Normally the VM can only read and write to this file, right? But every time I work with the VM, install something or e.g. render a video, the disk space inside the VM decreases, BUT the hard disk is full. Now it gets completely crazy: when I delete a file inside the VM, the space is made available again, but the hard disk itself remains at the storage level, meaning: sooner or later it will run full. Do you have any idea what I am doing wrong? Is this a mistake? By the way, the same thing happens when the hard disk is scanned. It is not clear to me how this can happen. The VM would be allowed to write from the file beyond its right side, which is nonsense.

Thanks a lot!

Vdisks are sparse files, which means they can show the full capacity as available to the VM, but only use the actual amount of space on the host drive. Deleting a file normally inside the VM doesn't clear out the data, it just shows it as available, so the amount of space used by the vdisk file doesn't ever decrease, it just keeps growing until it hits the full allocated size.

 

There are settings you can use for a windows VM to allow the space to be reclaimed, but I don't know if it can be done with a hackintosh VM.

7 hours ago, Rorschach said:

Do you have any idea what I am doing wrong? Is this a mistake?

Yes it can be done, with the following settings:

1- settings for the disk (this is an example, important is sata and to add cache='none' io='native' discard='unmap' :

    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='none' io='native' discard='unmap'/>
      <source file='/mnt/user/domains/BigSur/vdisk3.img'/>
      <target dev='hdd' bus='sata'/>
      <address type='drive' controller='0' bus='0' target='0' unit='3'/>
    </disk>

2- add qemu custom arg:

  <qemu:commandline>
    <qemu:arg value='-set'/>
    <qemu:arg value='device.sata0-0-3.rotation_rate=1'/>
  </qemu:commandline>

Note the sata0-0-3 matches unit='3'

 

3- force trim on mac os vm (in mac os terminal):

sudo forcetrim enable

Now when you delete a file in the mac os vm the host will sync.

Edited by ghost82

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.