Update '0.virtualbox.md'
This commit is contained in:
parent
7fc8a4560a
commit
1f982292d6
@ -28,6 +28,17 @@ VBoxManage startvm "Rocky Linux" --type=headless
|
|||||||
VBoxManage controlvm SlackDB poweroff soft
|
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
|
## Export / Import
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user