CentOS 7
Sponsored Link

VirtualBox : Create Virtual Machine#12016/01/23

 
Install GuestOS and create a Virtual Machine. This example shows to install CentOS 7.
[1] Create a Virtual Machine.
# create a directory for VM

[root@dlp ~]#
mkdir /var/vbox
# create a VM

[root@dlp ~]#
VBoxManage createvm \
--name CentOS_7 \
--ostype RedHat_64 \
--register \
--basefolder /var/vbox

Virtual machine 'CentOS_7' is created and registered.
UUID: bdceab21-504f-47c2-9107-17ec778dbcf3
Settings file: '/var/vbox/CentOS_7/CentOS_7.vbox'
# modify VM

[root@dlp ~]#
VBoxManage modifyvm CentOS_7 \
--cpus 4 \
--memory 4096 \
--nic1 bridged \
--bridgeadapter1 eth0 \
--boot1 dvd \
--vrde on \
--vrdeport 5001
# configure storage for VM

[root@dlp ~]#
VBoxManage storagectl CentOS_7 --name "CentOS_7_SATA" --add sata

[root@dlp ~]#
VBoxManage createhd \
--filename /var/vbox/CentOS_7/CentOS_7.vdi \
--size 20480 \
--format VDI \
--variant Standard

0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Medium created. UUID: dc515d33-fa38-4c70-92c7-6f2f17a39487
[root@dlp ~]#
VBoxManage storageattach CentOS_7 \
--storagectl CentOS_7_SATA \
--port 1 \
--type hdd \
--medium /var/vbox/CentOS_7/CentOS_7.vdi
# configure DVD drive for VM (the example specifies an ISO file)

[root@dlp ~]#
VBoxManage storageattach CentOS_7 \
--storagectl CentOS_7_SATA \
--port 0 \
--type dvddrive \
--medium /tmp/CentOS-7-x86_64-DVD-1511.iso
# confirm settings for VM

[root@dlp ~]#
VBoxManage showvminfo CentOS_7

Name:            CentOS_7
Groups:          /
Guest OS:        Red Hat (64-bit)
UUID:            bdceab21-504f-47c2-9107-17ec778dbcf3
Config file:     /var/vbox/CentOS_7/CentOS_7.vbox
Snapshot folder: /var/vbox/CentOS_7/Snapshots
Log folder:      /var/vbox/CentOS_7/Logs
Hardware UUID:   bdceab21-504f-47c2-9107-17ec778dbcf3
Memory size:     4096MB
Page Fusion:     off
VRAM size:       8MB
CPU exec cap:    100%
HPET:            off
Chipset:         piix3
Firmware:        BIOS
Number of CPUs:  4
PAE:             on
Long Mode:       on
CPUID Portability Level: 0
.....
.....
[2] Start Virtual Machine.
[root@dlp ~]#
VBoxManage startvm CentOS_7 --type headless

Waiting for VM "CentOS_7" to power on...
VM "CentOS_7" has been successfully started.
[3] On enabling VRDP, it's possible to connect with RDP. The example below is from Windows 10.
[4] Connect to (VirtualBox Server's Hostname or IP address):(vrdeport set for the VM).
[5] Just connected.
[6] Installation has finished and Virtual Machine is running.
Matched Content