Update '0.virtualbox.md'

This commit is contained in:
Ste Vaidis 2023-07-24 15:34:02 +03:00
parent 0cadd4e214
commit 68b823571a

View File

@ -53,3 +53,13 @@ VBoxManage modifyhd slack.vdi --resize 102400 # MB
VBoxManage clonehd --format RAW <vdisk-name>.vdi <vdisk-name>.img
qemu-img convert -f raw <vdisk-name>.img -O qcow2 <vdisk-name>.qcow2
```
## Bash alias
```sh
alias vm='VBoxManage list vms && echo -e '\n' && VBoxManage list runningvms'
alias vmstart='VBoxManage startvm "Rocky Linux" --type=headless'
alias vmstop='VBoxManage controlvm SlackDB poweroff soft'
```
`source ~/.bashrc`