Added pointer to use host terminal when enabling shrink for VBox VM (#28555)

This commit is contained in:
Danny Tsang 2023-08-14 11:43:47 +01:00 committed by GitHub
parent a721427493
commit 6ca9c6eff7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -267,10 +267,11 @@ _All these can be extended if your usage calls for more resources._
<div class="note info"> <div class="note info">
By default, VirtualBox does not free up unused disk space. To automatically shrink the vdi disk image By default, VirtualBox does not free up unused disk space. To automatically shrink the vdi disk image
the `discard` option must be enabled: the `discard` option must be enabled using your host machine's terminal:
```bash ```bash
VBoxManage storageattach <VM name> --storagectl "SATA" --port 0 --device 0 --nonrotational on --discard on VBoxManage storageattach <VM name> --storagectl "SATA" --port 0 --device 0 --nonrotational on --discard on
``` ```
More details can be found about the command can be found [here](https://www.virtualbox.org/manual/ch08.html#vboxmanage-storageattach).
</div> </div>
{% unless page.installation_type == 'macos' %} {% unless page.installation_type == 'macos' %}