VirtualBox

VirtualBox

VirtualBox is a powerful x86 and AMD64/Intel64 virtualization product for enterprise as well as home use. Not only is VirtualBox an extremely feature rich, high performance product for enterprise customers, it is also the only professional solution that is freely available as Open Source Software under the terms of the GNU General Public License (GPL) version 2. Homepage

  • Virtual Machine

    • Create

    • Register

  • Set hardware settings

    • Memory

    • Network

  • Storage

    • Create “dynamic” disk

    • Create SATA controller

    • Attach “dynamic” disk to SATA controller

  • ISO

    • Create IDE controller

    • Attach ISO image to IDE controller

  • Virtual Machine

    • Run

    • Detach

VirtualBox :: Installation

VirtualBox :: Image Repository

VirtualBox :: Virtual Machine

VBoxManage modifyvm "$vm" --ostype Linux_64 --cpus "$cpus" --pae on --longmode on --x2apic on --largepages off

Create and register.

VirtualBox :: Hardware Settings :: Memory

VBoxManage modifyvm "$vm" --memory "$mem"

Set memory.

VirtualBox :: Hardware Settings :: Network

VBoxManage modifyvm "$vm" --cableconnected1 on --nic1 hostonly --nictype1 82540EM --hostonlyadapter1 vboxnet0 VBoxManage modifyvm "$vm" --cableconnected2 on --nic2 intnet --nictype2 82540EM --intnet2 intnet-management --nicpromisc2 allow-all --nicbootprio2 1 VBoxManage modifyvm "$vm" --cableconnected3 on --nic3 intnet --nictype3 virtio --intnet3 intnet-data1 --nicpromisc3 allow-all VBoxManage modifyvm "$vm" --cableconnected4 on --nic4 intnet --nictype4 virtio --intnet4 intnet-data2 --nicpromisc4 allow-all

Set network.

VirtualBox :: Hardware Settings :: Others

Display

VBoxManage modifyvm "$vm" --vram 16

Audio

VBoxManage modifyvm "$vm" --audio none

Boot Order

VBoxManage modifyvm "$vm" --boot1 dvd --boot2 disk --boot3 net --boot4 none

Other

VBoxManage modifyvm "$vm" --ioapic on --rtcuseutc on

VM Specific Serial

VBoxManage modifyvm "$vm" --uart1 0x3F8 4 --uartmode1 server "/tmp/serial_$vm" set_vrde "$vm"

Set others.

VirtualBox :: Storage

VBoxManage createmedium disk --filename "${machine_folder}/${vm}/${vm}-disk1.vdi" --size $CONTROLLER_DISK1 --format VDI VBoxManage createmedium disk --filename "${machine_folder}/${vm}/${vm}-disk2.vdi" --size $CONTROLLER_DISK2 --format VDI VBoxManage storagectl "$vm" --name SATA --add sata --controller IntelAhci --portcount 3 --hostiocache on --bootable on VBoxManage storageattach "$vm" --storagectl SATA --port 0 --device 0 --type hdd --medium "${machine_folder}/${vm}/${vm}-disk1.vdi" VBoxManage storageattach "$vm" --storagectl SATA --port 1 --device 0 --type hdd --medium "${machine_folder}/${vm}/${vm}-disk2.vdi" VBoxManage storageattach "$vm" --storagectl SATA --port 2 --device 0 --type dvddrive --medium emptydrive

Create “dynamic” disk.

Create SATA controller.

Attach “dynamic” disk to SATA controller.

VirtualBox :: ISO

Create IDE controller.

Attach ISO image to IDE controller.

VirtualBox :: Virtual Machine

VBoxManage startvm "$1" --type headless rdesktop-vrdp -a 16 -N "127.0.0.1:$rdeport" &

Run.

Last updated