Add 'VirtualBox.md'
This commit is contained in:
parent
4bd7e989bd
commit
583f9601a3
55
VirtualBox.md
Normal file
55
VirtualBox.md
Normal file
@ -0,0 +1,55 @@
|
||||
# VirtualBox
|
||||
|
||||
(https://www.virtualbox.org)
|
||||
|
||||
## Installation
|
||||
|
||||
```sh
|
||||
apt install virtualbox virtualbox-dkms virtualbox-ext-pack virtualbox-guest-additions-iso virtualbox-qt
|
||||
```
|
||||
|
||||
## Status
|
||||
|
||||
```sh
|
||||
VBoxManage list vms
|
||||
VBoxManage list runningvms
|
||||
```
|
||||
|
||||
## Start vms
|
||||
|
||||
```sh
|
||||
VBoxManage startvm "Rocky Linux" --type=headless
|
||||
```
|
||||
|
||||
|
||||
## Stop vm
|
||||
|
||||
```sh
|
||||
VBoxManage controlvm SlackDB poweroff soft
|
||||
```
|
||||
|
||||
## Export / Import
|
||||
|
||||
```sh
|
||||
VBoxManage export SlackDB --output SlackDB.ova # export
|
||||
VBoxManage import SlackDB.ova # import
|
||||
```
|
||||
|
||||
## Extend disk
|
||||
|
||||
```sh
|
||||
VBoxManage modifyhd slack.vdi --resize 102400 # MB
|
||||
# 16 GB = 16384 MB
|
||||
# 32 GB = 32768 MB
|
||||
# 48 GB = 49152 MB
|
||||
# 64 GB = 65536 MB
|
||||
# 80 GB = 81920 MB
|
||||
# 100 GB = 102400 MB
|
||||
```
|
||||
|
||||
## Convert to KVM
|
||||
|
||||
```sh
|
||||
VBoxManage clonehd --format RAW <vdisk-name>.vdi <vdisk-name>.img
|
||||
qemu-img convert -f raw <vdisk-name>.img -O qcow2 <vdisk-name>.qcow2
|
||||
```
|
||||
Loading…
x
Reference in New Issue
Block a user