[Install the Operating System] install Redhat 5 and vmwareredhat in VMware.

Source: Internet
Author: User

[Install the Operating System] install Redhat 5 and vmwareredhat in VMware.

  • Introduction

There is already a Windows XP Home machine, and the installation of a Linux virtual machine will lead to a detour accidentally. Therefore, this article provides some entry-level experience to help you avoid going astray.

 

  • Preparations

Download VMware and http://www.cnblogs.com/lovickie/p/4364032.html from the rhel-server-5.5-i386-dvd.iso.

Install VMware-workstation-full-10.0.4-2249910.exe.

 

  • Install RHEL 5.5 Virtual Machine

Create a VM. Select "Install the operating system later ". If you select "installation program CD image file (iso)", an English version of the operating system will be installed very quickly, so you have to worry about solving Chinese Garbled text problems-kindly remind me, most of the methods on the Internet to solve Garbled text are both tossing and difficult.

For example, after setting CD/DVD for a virtual machine, start the virtual machine. It doesn't matter if the hard disk is larger. If you do not select to allocate so many hard disks beforehand, you can. I only store the hard drive of this virtual machine 60 GB.

Skip the check during installation can save time. Don't be afraid of things, and there is nothing to worry about in the virtual environment. One step in the middle is to install the software package. If the installation package is missing, the next step will tell you how to remedy it.

After dozens of minutes (depending on the number of packages selected), restart the system for the first time and restart the system for the second time. After shutdown, change the CD/DVD settings back.

 

  • Add a software package in the CD image to Redhat.

Open the terminal and run system-config-packages. A graphical interface tool (this tool appeared during Redhat system installation) appears, but only the currently installed rpm is listed, to add a software package, follow these steps.

Decompress the Server directory in the rhel-server-5.5-i386-dvd.iso with Winrar and copy it to a directory in the Redhat virtual machine, such as/root/software/rhel-server-5.5-i386-dvd/Server. In this step, you can also use the virtual Optical Drive Tool (or the system originally installed with a CD) and mount it to a directory, such as mount/dev/cdrom/mnt.

Vi/usr/lib/python2.4/site-packages/yum/yumRepo. py

Search for remote and add remote = url + '/' + relative

Change to remote = '/root/software/rhel-server-5.5-i386-dvd/Server' +'/'+ relative

Cd/etc/yum. repos. d/

Vi update. repo

The Edit content is as follows:

[update]name=updatebaseurl=file:///root/software/rhel-server-5.5-i386-dvd/Servergpgcheck=0enabled=1

Yum clean all

System-config-packages

In this case, you can see the installed and uninstalled software packages, and do not worry about dependencies during installation. Do not end the check once. We recommend that you Apply.

Note that the Optional packages button is displayed in the lower right corner of the selected software package. Click it to select the specific software. There is a bug here. Sometimes the software package check button is still grayed out. The solution is to restart system-config-packages.

The Server directory is not copied to the Redhat Virtual Machine system, but is mounted. When you detach the disc and then run system-config-packages, an error "Unable to retrieve software information" is displayed, the solution is to click Repository Manager in the lower-right corner of the dialog box and deselect update. The solution in Redhat 5.1 is invalid. You can only manually change enabled = 1 in/etc/yum. repos. d/update. repo to enabled = 0.

 

  • Conclusion

None.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.