Инсталляция VirtualBox на Centos 6.X Server без графического интерфейса (GUI)
# yum repolist
# yum update -y
# yum install -y \
wget \
make \
gcc \
kernel-devel \
perl
# wget -P /etc/yum.repos.d http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo
# yum list VirtualBox*
# wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | rpm --import -
# yum install -y VirtualBox
# cd /tmp/
# wget http://download.virtualbox.org/virtualbox/4.3.4/Oracle_VM_VirtualBox_Extension_Pack-4.3.4.vbox-extpack
# VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.3.4.vbox-extpack
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Successfully installed "Oracle VM VirtualBox Extension Pack".
# VBoxManage list extpacks
Extension Packs: 1
Pack no. 0: Oracle VM VirtualBox Extension Pack
Version: 4.3.4
Revision: 91027
Edition:
Description: USB 2.0 Host Controller, Host Webcam, VirtualBox RDP, PXE ROM with E1000 support.
VRDE Module: VBoxVRDP
Usable: true
Why unusable:
# useradd -m vmadm
# passwd vmadm
# usermod -G vboxusers vmadm
===================================
Запрет входа root по SSH
# cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bkp
# vi /etc/ssh/sshd_config
#PermitRootLogin yes
меняем на
PermitRootLogin no
# service sshd restart
===================================
# su - vmadm
$ vi ~/.bash_profile
Добавляю:
# User specific environment and startup programs
############################################
#### VirtualBox Parameters
export VM_HOME=$HOME/machines
export VM_BACKUPS=$HOME/backups
export VM_ISO=$HOME/iso
############################################
Применить новые параметры:
$ source ~/.bash_profile
$ mkdir -p ${VM_HOME}
$ mkdir -p ${VM_BACKUPS}
$ mkdir -p ${VM_ISO}
Далее создаем виртуальную машину:
https://docs.google.com/document/d/1ZU6Hk5DYitFYwlRFqN2qmJr6maPpvgsVc6ZTiZ1kYVA/edit#