[[email protected] ~]# mkdir /mnt/cdrom
[[email protected] ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
11G 2.7G 7.7G 26% /
tmpfs 2.0G 260K 2.0G 1% /dev/shm
/dev/sda1 485M 55M 405M 12% /boot
/dev/sr0 3.5G 3.5G 0 100% /media/OL6.3 x86_64 Disc 1 20120626
[[email protected] ~]# mount /dev/cdrom /mnt/cdrom/
mount: block device /dev/sr0 is write-protected, mounting read-only
[[email protected] ~]# cd /etc/yum.repos.d/
[[email protected] ~]# mv public-yum-ol6.repo public-yum-ol6.repo.bak
[[email protected] ~]# vi public-yum-ol6.repo
[rhel-media]
name=Red Hat Enterprise Linux 6.3
baseurl=file:///mnt/cdrom
enabled=1
gpgcheck=0
gpgkey=file:///mnt/cdrom/RPM-GPG-KEY
--虚拟机桌面的安装
yum grouplist
yum groupinstall "X Window System"
yum groupinstall "Desktop"
vi /etc/inittab
startx
Tar -zxvf VmwareTools-9.2XXXXX
Cd VmwareToolXXX
./vmware-install.pl