From 02f7ddf9aea61f6db00945efa438fd51a836e9fe Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Mon, 2 May 2022 14:46:06 +0200 Subject: [PATCH] Document VirtualBox discard option (#22592) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Joakim Sørensen --- source/_includes/installation/operating_system.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/source/_includes/installation/operating_system.md b/source/_includes/installation/operating_system.md index b85a021cfbc..20377b2447c 100644 --- a/source/_includes/installation/operating_system.md +++ b/source/_includes/installation/operating_system.md @@ -207,11 +207,20 @@ _All these can be extended if your usage calls for more resources._ - title: VirtualBox content: | 1. Create a new virtual machine - 2. Select Type “Linux” and Version “Other Linux (64-bit)” + 2. Select Type “Linux” and Version “Linux 2.6 / 3.x / 4.x (64-bit)” 3. Select “Use an existing virtual hard disk file”, select the unzipped VDI file from above 4. Edit the “Settings” of the VM and go “System” then “Motherboard” and select “Enable EFI” 5. Then go to “Network” “Adapter 1” choose “Bridged Adapter” and choose your Network adapter 6. Then go to “Audio” and choose “Intel HD Audio” as Audio Controller. +
+ + By default VirtualBox does not free up unused disk space. To automatically shrink the vdi disk image + the `discard` option must be enabled: + ```bash + VBoxManage storageattach --storagectl "SATA" --port 0 --device 0 --nonrotational on --discard on + ``` + +
- title: KVM content: |