Tuesday, June 2, 2015

Install RHEV-M using VMware workstation for RHCVA Exam EX318


- Sources 
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.5/html/Installation_Guide/index.html
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.5/html/Administration_Guide/index.html
https://www.youtube.com/watch?v=HzrILWMGKxw&index=2&list=PLOeEp3fYj7rrsyQ7HIFP5IlZu9mdCrK2X (Arabic)



OS
Red Hat Enterprise Linux Server release 6.6 (64 bit)
RHEV
Red Hat Enterprise Virtualization 3.5 (64 bit)
CPU
1x2
RAM
4GB
RHEV-M Server
rhevm1.example.com
eth0 > vmnet8 (nat)
1.0.8.11
eth1 > vmnet1 (host-only)
1.0.3.11

- create red hat account using business email or any other not to be public email like gmail or yahoo or hotmail .. etc
https://www.redhat.com/wapps/ugc


- confirm your red hat account from your email inbox within a message sent from red hat.

- go to redhat downloads page and click "Start Evaluation" to subscribe to RHEL & RHEV https://access.redhat.com/downloads


Red Hat Enterprise Linux > Start Evaluation
Red Hat Enterprise Virtualization > Start Evaluation


- downloads software files 

  • RHEL > rhel-server-6.6-x86_64-dvd.iso
  • RHEV > rhev-hypervisor6-6.6-20150512.0.iso

- logout from your red hat account and sign in again, accept red hat terms and click continue your RHEL & RHEV eval copy is ready


- install rhel 6.6 desktop installation to use as RHEV-M server
http://www.tecmint.com/red-hat-enterprise-linux-rhel-6-installation-guide-with-screenshots/


- if you clone the virtual machine you can fix for the udev eth1 issue, take back your eth0 before cloning
rm -rf /etc/udev/rules.d/70-persistent-net.rules

- Edit vmware workstation settings > Processors 

  • Virtualize Intel VT-x/EPT
  • Virtualize CPU performance counters

- Edit vmware workstation .vmx
vcpu.hotadd = 'FALSE'
apic.xapic.enable = 'FALSE'

- enter your red hat subscribe from terminal
 # subscription-manager register --username $redhat-account-username$ --auto-attach
 password: 

 # subscription-manager repos --list

 # subscription-manager list --available
  .........

 Pool ID:       ######################### (RHEL Eval for 30 days)

 Pool ID: ######################### (RHEL Eval for 60 days)
 
 # subscription-manager attach --pool=######################### (RHEL Eval for 60 days)

 # subscription-manager repos --enable=rhel-6-server-rpms 
 # subscription-manager repos --enable=rhel-6-server-supplementary-rpms
 # subscription-manager repos --enable=rhel-6-server-rhevm-3.5-rpms
 # subscription-manager repos --enable=jb-eap-6-for-rhel-6-server-rpms
 # yum clean all
 # yum makecache 
 # yum update -y
 # reboot
 #  yum install -y rhevm (you can install RHEV-M without DNS & NTP server just use /etc/hosts file)
 

############### configure DNS Server (optional) ###############

- install DNS packages and Edit file named.conf
 # yum install -y bind bind-libs bind-utils 
 # vim /etc/named.conf 

 options {
        listen-on port 53 { any; };
        directory       "/var/named";
        allow-query     { any; };
 };

 zone "." in {
 type hint;
 file "/dev/null";
 };

 zone "example.com" IN {
        type master;
        file "example.fwd";
        allow-update { none; };
 allow-transfer { any; };
 };

 zone "3.0.1.in-addr.arpa" IN {
        type master;
        file "example.rev";
        allow-update { none; };
 allow-transfer { any; };
 };

- Create "example.fwd" for forward zone
 # vim /var/named/example.fwd

$TTL    86400
@               IN SOA  rhevm1.example.com. root.rhevm1.example.com. (
                                 2015060501      ; serial (d. adams)
                                 3H              ; refresh
                                 15M             ; retry
                                 1W              ; expiry
                                 1D )            ; minimum
@          IN NS   rhevm1.example.com.
@               IN A    1.0.3.5
@               IN A    1.0.3.6
@               IN A    1.0.3.7
@               IN A    1.0.3.8
@               IN A    1.0.3.9
@               IN A    1.0.3.11
@               IN A    1.0.3.12
@               IN A    1.0.3.13
@               IN A    1.0.3.14
@               IN A    1.0.3.15
rhevh1          IN A    1.0.3.5
rhevh2          IN A    1.0.3.6
rhevh3          IN A    1.0.3.7
rhevh4          IN A    1.0.3.8
rhevh5          IN A    1.0.3.9
rhevm1          IN A    1.0.3.11
rhevm2          IN A    1.0.3.12
rhevm3          IN A    1.0.3.13
rhevm4          IN A    1.0.3.14
rhevm5          IN A    1.0.3.15


- Create file "example.rev" for reverse zone:
 # vim /var/named/example.rev

$TTL    86400
@       IN      SOA     rhevm1.example.com. root.rhevm1.example.com.  (
                               2015060501 ; Serial
                               28800      ; Refresh
                               14400      ; Retry
                               3600000    ; Expire
                               86400 )    ; Minimum
@               IN NS   rhevm1.example.com.
rhevh1          IN A    1.0.3.5
rhevh2          IN A    1.0.3.6
rhevh3          IN A    1.0.3.7
rhevh4          IN A    1.0.3.8
rhevh5          IN A    1.0.3.9
rhevm1          IN A    1.0.3.11
rhevm2          IN A    1.0.3.12
rhevm3          IN A    1.0.3.13
rhevm4          IN A    1.0.3.14
rhevm5          IN A    1.0.3.15
5               IN PTR  rhevh1.example.com.
6               IN PTR  rhevh2.example.com.
7               IN PTR  rhevh3.example.com.
8               IN PTR  rhevh4.example.com.
9               IN PTR  rhevh5.example.com.
11              IN PTR  rhevm1.example.com.
12              IN PTR  rhevm2.example.com.
13              IN PTR  rhevm3.example.com.
14              IN PTR  rhevm4.example.com.
15              IN PTR  rhevm5.example.com.

- Change chroot permission to "named" group
 # chgrp named /etc/named.conf
 # chgrp named /var/named/example.fwd
 # chgrp named /var/named/example.rev
 

- Test DNS configuration and zone files for any syntax errors
 
 # named-checkconf  /etc/named.conf 
 # named-checkzone example.com /var/named/example.fwd
 # named-checkzone example.com /var/named/example.rev

 # vim /etc/resolv.conf
 search example.com
 nameserver 1.0.3.11
 nameserver 1.0.8.2
 nameserver 8.8.8.8

 # /etc/init.d/named restart
 # nslookup rhevh1

############### install NTP server ###################
 # chkconfig ntpd on
 # vim /etc/ntp.conf  
 restrict 1.0.3.0 mask 255.255.255.0 nomodify notrap  
 server  1.0.3.11
 fudge   1.0.3.11 stratum 10  
 driftfile /var/lib/ntp/drift  
 keys /etc/ntp/keys  

 # vim /etc/sysconfig/ntpd  
 OPTIONS="-x -u ntp:ntp -p /var/run/ntpd.pid -g"  
 SYNC_HWCLOCK=no 

 # /etc/init.d/ntpd restart
 # ntpq -p

############### install RHEV-M ##################
 # yum install -y rhevm
 # rhevm-setup




- Login to RHEV-M
https://rhevm1.example.com/ovirt-engine/webadmin/?locale=en_US

- Shutdown and start RHEV-M just flow steps in this video
https://www.youtube.com/watch?v=mPLy6z5PyQQ&list=PLOeEp3fYj7rrsyQ7HIFP5IlZu9mdCrK2X&index=17 (arabic)
 # service ovirt-engine stop
 # service ovirt-engine start

 

No comments:

Post a Comment