VirtualBox command line usage

Source: Internet
Author: User
The command line usage of VirtualBox-Linux general technology-Linux technology and application information. The following is a detailed description. As a powerful open-source Virtual Machine Software, VirtualBox provides a graphical user interface and a command line interface. The command line interface program of VirtualBox is VBoxManage, which allows you to create virtual machines from the command line, modify Virtual Machine option settings, and control virtual machines. If you are on the Headless Server, you will find that the VirtualBox command line interface is very useful.

Run the VBoxManage -- help Command to obtain the complete usage of VBoxManage. This article does not explain every option, but only provides the necessary steps to create a virtual machine. If you are interested, you may wish to explore other VBoxManage usage in person.

To create a VM from the command line, perform the following three steps:

1. Create a new virtual machine. The name of the virtual machine is specified using the -- name option:

VBoxManage createvm -- name "Ubuntu 9.10" -- register

2. Create the virtual hard disk used by the VM. Use -- filename to specify the name of the virtual hard disk and the -- size Option to specify the size of the virtual hard disk. In this example, the value is 5 GB:

VBoxManage createhd -- filename "Ubuntu910.vdi" -- size 5000 -- remember

3. Modify the Virtual Machine option settings:

VBoxManage modifyvm "Ubuntu 9.10" -- memory "512 MB" -- hda "Ubuntu910.vdi" -- dvd/home/linuxtoy/karmic-desktop-i386.iso -- acpi on -- accelerate3d on -- boot1 dvd -- nic1 nat

Where,

* -- Memory size specified by memory
* -- The virtual hard disk used by hda
* -- Specifies the ISO image used by the dvd.
* -- Enable acpi on
* -- Accelerate3d on enables 3D Acceleration
* -- Boot1 boot sequence
* -- Nic1 network settings

If you want to, you can now start the virtual machine through VBoxManage startvm "Ubuntu 9.10.

Source: solidot

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.