As you have installed CentOS in VirtualBox, and as I understand, while installing you haven't choose X window system, so you are getting black screen with white cursor blinking.
Now what you can do is, install X Window System. If you have internet access in VirtualBox then you can try
yum groupinstall "X Window System"
This will use your internet connection to download the packages and install on system.
If you don't have internet access in VirtualBox then I will suggest you to mount the CD ROM in a virtual machine and install using that.
First of all you need to create a mount point and mount the Installation Media
mkdir -p /media/cdr
mount /dev/cdrom /media/cdr
Now you have to create a local repository in /etc/yum.repo.d/
cd /etc/yum.repos.d/
vi local.repo
In this file write
[installtion Media]
Name="Centos Local Installation"
baseurl="file:///media/cdr"
enabled=1
gpgcheck=0
Now you can install the X Window system using
yum groupinstall "X Window System"
Let me know if you still have any problem.
Best Answer
Let us assume the ISO is already burnt into a DVD, or the ISO is present as a file on your file system. First, we need to mount it. The preferred mount point to mount it is
/media/CentOS
, becauseyum
is configured to look for repositories from this location by default while installing packages from DVD. The steps below describe how to mount the ISO (whether present as a file or burnt into DVD) and install packages from the ISO.Check if the DVD has been mounted automatically. To do this execute the following command:
If this command returns an output, it means the DVD has been mounted. For example, the following example output shows that the DVD has been mounted to
/media/CentOS_6.4_Final
automatically.If the CD has been mounted automatically, then ignore this step. Otherwise, mount it manually.
If the ISO is present on the file system, mount it to
/media/CentOS
using themount
command with-o loop
option.Execute:
cat /etc/yum.repos.d/CentOS-Media.repo
and read the information provided as comments in this file. See the repo name within square brackets. It isc6-media
by default. Also, see the locations specified forbaseurl
property. These URLs point to local directories/media/CentOS
,/media/cdrom
and/media/cdrecorder/
by default.If the DVD is mounted to a mount point specified in the
baseurl
property, then ignore this step. Otherwise, create a symbolic link at a location specified in thebaseurl
property with the mount point as its target. An example follows.In the shell, execute the
yum
command while disabling all repos except the repo specified in/etc/yum.repos.d/CentOS-Media.repo
: