virtualbox - How to install Virtual Box and CentOS in that Virtual Box in my Ubuntu 14.04 environement - Ask Ubuntu


this question has answer here:

how install virtual box , centos in virtual box in ubuntu 14.04 environement using terminal?

also, suggest useful tutorials follow same!

installation virtualbox

add following line /etc/apt/sources.list:

deb http://download.virtualbox.org/virtualbox/debian trusty contrib 

download , add apt-secure-key:

wget https://www.virtualbox.org/download/oracle_vbox.asc sudo apt-key add oracle_vbox.asc 

to install virtualbox, do:

sudo apt-get update sudo apt-get install virtualbox-5.1 sudo apt-get install dkms 

installing virtualbox extension pack (need rdp access)

wget http://download.virtualbox.org/virtualbox/5.1.8/oracle_vm_virtualbox_extension_pack-5.1.8-111374.vbox-extpack vboxmanage extpack install --replace 'oracle_vm_virtualbox_extension_pack-5.1.8-111374.vbox-extpack' 

create , configure vm

creating vm:

vboxmanage createvm --ostype redhat_64 --register --name centos-test vboxmanage modifyvm "centos-test" --memory 512 --acpi on --boot1 dvd vboxmanage modifyvm "centos-test" --vrde on 

replace "bridgeadapter" argument device name:

vboxmanage modifyvm "centos-test" --nic1 bridged --bridgeadapter1 eth0 

creating , attaching hdd , dvd(iso):

vboxmanage createhd --filename ./centos-test.vdi --size 8192 vboxmanage storagectl "centos-test" --name "ide controller" --add ide vboxmanage storageattach "centos-test" --storagectl "ide controller" --port 0 --device 0 --type hdd --medium ./centos-test.vdi vboxmanage storageattach "centos-test" --storagectl "ide controller" --port 1 --device 0 --type dvddrive --medium /path/to/iso/centos-7-x86_64-minimal-1511.iso 

for starting vm use:

vboxheadless --startvm "centos-test" & 

after starting can connect host rdp-client, , continue installation.

you can find full documentation here: https://www.virtualbox.org/manual/usermanual.html


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User