I’ve recently gotten holdof a developer subscription of Red Hat Enterprise linux (RHEL) .The following are the steps I took to have a minimal RHEL installation asa Parallels Desktop virtual machine guest. My simple goal is to have a local, ready-to-use RHEL boxthat I can use to try stuff out. The items belowmay be well suited for new RHEL developerslike myself.

Installation Preparing the Virtual Machine

Firstthing to do is toprepare aParallels Desktop virtual machine. All configuration options for the virtual machineis up to you. As for me, I just made sure it fits with the minimum requirements for a RHEL install.

Tip: When Creating the Parallels Desktop Virtual Machine, it would be better to disable the Express Install option. This allows you to control everything performed during installation.

Next, once the virtual machine is ready, boot the installation in text mode. To do this, press tab on the boot screen and append linux text at the end of the boot command.


Getting started with Red Hat Enterprise Linux development on Parallels Desktop

Then, press enter and to bootto the installation configuration screen.

Installation Destination and Partitioning.

On the main install screen, choose option 5 (Installation Destination) . Since this is a virtual machine, you can opt to use the entire disk image. Also,it is easier togowith the default Partition Scheme which is 3 LVM .


Getting started with Red Hat Enterprise Linux development on Parallels Desktop
Getting started with Red Hat Enterprise Linux development on Parallels Desktop
Getting started with Red Hat Enterprise Linux development on Parallels Desktop

Next, set your super secretpassword. That is option 8 ( Root Password ) in the install screen.


Getting started with Red Hat Enterprise Linux development on Parallels Desktop

For the timezone, select option 2 ( Timezone settings ), set this to the appropriate value based on where you are located.


Getting started with Red Hat Enterprise Linux development on Parallels Desktop
Getting started with Red Hat Enterprise Linux development on Parallels Desktop

Lastly, select option 4 ( Software Selection ), just choose the default Minimal Install.


Getting started with Red Hat Enterprise Linux development on Parallels Desktop

That is enough to get an install going. Next,press b in the main Installation menu to begin installation.

Setup

On first boot, login as root .


Getting started with Red Hat Enterprise Linux development on Parallels Desktop
Configure the network interface

Now that we have a minimal install, the next thing toconfigure at this point is thenetwork. Check the network interface name detected on boot. To do this run ip addrshow . In my case, the network interface name is eth0 .


Getting started with Red Hat Enterprise Linux development on Parallels Desktop

The next step is to edit the config file for the interface. Since I already know the interface name,it follows that I need to edit /etc/sysconfig/network-scripts/ifconfig-eth0 . In the file, all settings were already correct except for ONBOOT=no .


Getting started with Red Hat Enterprise Linux development on Parallels Desktop
Getting started with Red Hat Enterprise Linux development on Parallels Desktop

I simply replaced that to yes , and saved the file.For the changes to take effect, I restartedthe network by running systemctl restart network.


Getting started with Red Hat Enterprise Linux development on Parallels Desktop

Once the network is up and running, the box needs to be registered. This is required to install and update packages on your box.

Configure RHEL subscription

To check the current status of the machine, you can issue the command subscription-manager status . At this time, the Overall Status would most likely be Unknown .


Getting started with Red Hat Enterprise Linux development on Parallels Desktop

To register, just issue the command subscription-manager register . This command will prompt for a validRedHatdeveloper credential.


Getting started with Red Hat Enterprise Linux development on Parallels Desktop

After running the register command, you need run subscription-manager attach. This links the current machine to the registered account.


Getting started with Red Hat Enterprise Linux development on Parallels Desktop

After this, you can verify the subscription by running subscription-manager status again. And, you can also see more information by running subscription-manager list .


Getting started with Red Hat Enterprise Linux development on Parallels Desktop

At this point, it already possible to update your repositories and install packages that you need for development.

Installing Parallels Tools

Parallels Tools has many useful features for managingyour virtual machine. Personally, I find the ability to automatically mount host folders to the guest virtual machine on boot very useful.

Parallels Tools needs to be installed on the guest machine. There are however some packages that needs to be installed first. The following areParallels Tools pre-requisites ( Parallels KB for this topic ):

gcc kernel headers checkpolicy selinux-policy-devel dkms Enable Extras and Optional repository

The pre-requisites require that additional repositories need to be enabled, namely: rehl-7-server-extras-rpms and rhel-7-server-optional-rpms . These repositories can be enabled using the subscription-manager .


Getting started with Red Hat Enterprise Linux development on Parallels Desktop
Development Tools

Make sure to have the Development Tools groupin your repository ( yum groupinstall ‘Development Tools’ ) marked as enabled. Then update the packages ( yum update).

Install dkms

From the pre-requisites enumerated above, only the dkms packageis not found in any existing RHEL maintained repository. Instead, it is found in a community maintained repository called the EPEL Repository .For more information about the EPEL Repository, read this .

Fortunately, it is possible to add third-party Repositories in RHEL. In the case of EPEL, we need to download the EPEL repository package available for download in their website. Then, install the package manually.

See series of commands on the screenshot below:


Getting started with Red Hat Enterprise Linux development on Parallels Desktop
Getting started with Red Hat Enterprise Linux development on Parallels Desktop
Getting started with Red Hat Enterprise Linux development on Parallels Desktop

Once the EPEL repository is in place, simply do an update and install the dkms package using yum like so: yum update && yum install dkms

Note: During installation of the dkms package, you will be asked to accept a newGPG key.

Parallels Tools installer On the Parallels menu, click on “Install Parallels Tools”. This will putthe Parallels Tools installer on the cdrom device (this will prompt a warning, just click Continue ). The next thing to do will be to mount the said device mount -o exec /dev/sr0

本文系统(linux)相关术语:linux系统 鸟哥的linux私房菜 linux命令大全 linux操作系统

主题: LinuxLV
分页:12
转载请注明
本文标题:Getting started with Red Hat Enterprise Linux development on Parallels Desktop
本站链接:http://www.codesec.net/view/482341.html
分享请点击:


1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
技术大类 技术大类 | 系统(linux) | 评论(0) | 阅读(21)