Update '0.virtualbox.md'

This commit is contained in:
Ste Vaidis 2023-07-24 15:38:58 +03:00
parent 7fc8a4560a
commit 1f982292d6

View File

@ -28,6 +28,17 @@ VBoxManage startvm "Rocky Linux" --type=headless
VBoxManage controlvm SlackDB poweroff soft
```
## Shrink VM disk
```sh
# on host
dd if=/dev/zero of=/var/tmp/bigemptyfile bs=4096k ; rm /var/tmp/bigemptyfile
shutdown
# on server
VBoxManage modifymedium --compact /path/to/thedisk.vdi
```
## Export / Import
```sh