# 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
```