Centos vbox Installation

Source: Internet
Author: User

# Cd/etc/yum. Repos. d/
Wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo
Yum install kernel-devel dkms. noarch
Yum install VirtualBox-4.1
Service vboxdrv start # after running, if the kernel is not supported, the kernel will be updated

Download: Oracle_VM_VirtualBox_Extension_Pack-4.1.34-95024.vbox-extpack
# Install the extension. Otherwise, the virtual machine to be installed is invisible to the command.
Vboxmanage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.1.34-95024.vbox-extpack

# View the currently started Virtual Machine
Vboxmanage list runningvms
# Display the Operating System ID, which is used below
Vboxmanage list ostypes
# Deleting a VM
Vboxmanage unregistervm-delete win08

# Install Win System

# Creating a hard disk
Vboxmanage createvdi -- filename/var/vbox/win08/win08.vdi -- size 20000
# Creating a virtual machine
Vboxmanage createvm -- name win08 -- ostype windows2008_64 -- register -- basefolder/var/vbox/win08/
# Modify configuration
Vboxmanage modifyvm win08 -- Memory 1024 -- accelerate3d off -- nic1 bridged -- bridgeadapter1 eth1
# Add ide
Vboxmanage storagectl win08 -- name ide -- add ide -- controller piix4 -- bootable on
# Add a hard disk
Vboxmanage storageattach win08 -- storagectl ide -- type HDD -- Port 0 -- device 0 -- medium/var/vbox/win08/win08.vdi
# Add an optical drive
Vboxmanage storageattach win08 -- storagectl ide -- Port 1 -- device 0 -- type dvddrive -- medium/root/CDROM/win2008-64.iso
# Hardware boot settings
Vboxmanage modifyvm win08 -- boot1 DVD
# After the system is done, set the boot from the hard disk
# Vboxmanage modifyvm win08 -- boot1 Disk
# Enable remote desktop
Vboxmanage modifyvm win08 -- vrde on -- vrdeport 9003
# Turn it off after the system completes the operation
# Vboxmanage modifyvm win08 -- vrde off
# Running in the background
Vboxmanage startvm win08 -- type headless
# Power off
Vboxmanage controlvm win08 poweroff

# Installing centos
# The following explanations are the same as above:
Vboxmanage createvdi -- filename/var/vbox/CEN/cen64.vdi -- size 10000
Vboxmanage createvm -- name cen64 -- ostype linux26_64 -- register -- basefolder/var/vbox/CEN/
Vboxmanage modifyvm cen64 -- Memory 512 -- accelerate3d off -- nic1 bridged -- bridgeadapter1 eth1
Vboxmanage storagectl cen64 -- name ide -- add ide -- controller piix4 -- bootable on
Vboxmanage storageattach cen64 -- storagectl ide -- Port 0 -- device 0 -- type HDD -- medium/var/vbox/CEN/cen64.vdi
Vboxmanage storageattach cen64 -- storagectl ide -- Port 1 -- device 0 -- type dvddrive -- medium/root/CDROM/centos-64.iso
# Hardware boot settings
Vboxmanage modifyvm cen64 -- boot1 DVD
# After the system is done, set the boot from the hard disk
# Vboxmanage modifyvm cen64 -- boot1 Disk
# Enable remote desktop
Vboxmanage modifyvm cen64 -- vrde on -- vrdeport 9002
# Turn it off after the system completes the operation
# Vboxmanage modifyvm cen64 -- vrde off
# Running in the background
Vboxmanage startvm cen64 -- type headless
# Power off
Vboxmanage controlvm cen64 poweroff

Centos vbox Installation

Related Article

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.