# VirtualBox

Oracle VirtualBox是由德國InnoTek軟體公司出品的虛擬機器軟體，現在則由甲骨文公司進行開發，是甲骨文公司xVM虛擬化平臺技術的一部份。它提供使用者在32位元或64位元的Windows、Solaris及Linux 作業系統上虛擬其它x86的作業系統。  
  
官方首頁：https://www.virtualbox.org/

# Tips

##### 教學文章

- [How to Increase Disk Size of Your Existing Virtual Machines in VirtualBox](https://itsfoss.com/increase-disk-size-virtualbox/)

# Command Line

##### Tutorials

- [Controlling VirtualBox from the Command Line](https://www.oracle.com/technical-resources/articles/it-infrastructure/admin-manage-vbox-cli.html)

##### Basic Commands

```
vboxmanage list vms
vboxmanage list -l vms
```

##### Create VM

```bash
VBoxManage list ostypes
VBoxManage createvm --name OracleLinux6Test --ostype Oracle_64 --register
```

Setting UP a VM's Properties

```
VBoxManage showvminfo <vm-name>
VBoxManage modifyvm <vm-name> --cpus 2 --memory 2048 --vram 12
VBoxManage modifyvm <vm-name> --nic1 bridged --bridgeadapter1 eth0
```

##### Export Appliance

```bash
vboxmanage list vms
vboxmanage export UBUNTUSERVER164 -o ubuntu_server_new.ova
```