Вы находитесь на странице: 1из 5

Installing Red Hat Enterprise Virtualization Offline

(RHEV 3.0)
Author Name, Chris Negus
Technical Review: Rob Washburn, James Rankin
Editors: Allison Pranger
!!"#
EXECUTIVE U!!"R#
$nstalling a Red %at Enter&rise 'irtuali(ation environment )or R%E' *+" re,uires access to Red %at Network
so)tware re&ositories+ $) -ou are tr-ing to install -our Red %at Enter&rise 'irtuali(ation .anager /R%E'0.1 or
h-&ervisors on a &rivate network or behind a )irewall /with no satellite server available1 -ou ma- not have
direct access to Red %at Network+
2- downloading the &ackages -ou need in advance and con)iguring a local -um re&ositor-, -ou can install a
R%E' environment without direct access to Red %at Network+ This Tech 2rie) describes how to do that+
I$T"%%I$& RHEV O''%I$E 'RO! " %"(TO(
There are a )ew wa-s to gather the so)tware &ackages -ou need to install a R%E' environment o))line /not
connected to the $nternet1+
3ne wa- is to download all necessar- so)tware channels and set u& an install server /4TP or %TTP1 that
can be trans&orted to the network containing -our R%E' s-stems+ Another is to download and co&- the
so)tware channels to removable media and install each s-stem )rom that medium+
This &rocedure describes the la&to& a&&roach+ 5ater, $ describe how to do it with removable media+
#+ Install RHE%. $nstall a Red %at Enter&rise 5inu6 7 8erver s-stem /this can be done as a virtual
machine on a la&to&1 on a com&uter that has access to Red %at Network+ This s-stem will be used
as an 4TP install server to install all s-stems -ou need )or -our R%E' environment+
$OTE: .ake sure there is &lent- o) disk s&ace available on the disk image or other storage device
-ou use when -ou install this s-stem+ When $ ran this &rocedure, it re,uired about #*92 o) disk
s&ace to install the the re,uire channels+ 5eave e6tra s&ace )or )uture growth as well+
+ Register RHE%. Register the s-stem with Red %at Network+ 4or e6am&le:
# rhnreg_ks --activationkey="your_activation_key"
*+ Ena)le *+annels fro, RH$. 4or this s-stem, -ou can go to Red %at Network and enable the
channels -ou need to later install -our R%E'0. and h-&ervisor s-stems+ Check the Red %at
Enter&rise 'irtuali(ation *+" $nstallation 9uide /htt&:!!docs+redhat+com!docs!en0
:8!Red;%at;Enter&rise;'irtuali(ation!*+"!html0single!$nstallation;9uide!inde6+html1 )or the
channels needed )or both R%E'0. and h-&ervisor s-stems+
2e-ond those channels, -ou need to get channels that will be re,uired later to install virtual
machines on -our h-&ervisors+ %ere are some o) the channels to consider )or R%E' *+", in addition
to the regular R%E5 7 8erver channel /rhel06<7;7=0server071:
Installing RHEV Offline | Chris Negus 1
RHEV-! C+annels
Red Hat Enterprise Virtualization Manager (v.3 x86_64)
rhel-x86_64-server-6-rhevm-3
JBoss Application Platform (v 5 in rpm)
jbappplatform-5-x86_64-server-6-rpm
RHEL Server Supplementary (v. 6 6!"it #$6%6)
rhel-x86_64-server-supplementary-6
H.per/isor C+annels
Red Hat Enterprise Virt Manageent !gent (v.6 "or x86_64)
rhel-x86_64-rhev-mgmt-agent-6
RHE% &uests
There are >Red %at Enter&rise 'irtuali(ation Agent> channels available that include &ackages
to &rovide the in0guest agent )or R%E5 ? and R%E5 7 virtual machines+ 4eatures in these
&ackages &rovide the means )or monitoring those s-stems )rom the R%E'0.+ The )eatures include
heartbeating, $P addresses, user re&orting, a&&lication re&orting and single sign0on /the latter )or
R%E5 7 onl-1+ $) -ou onl- install R%E5 guests )or 6<7;7= server &lat)orm, @ust enable this channel:
Red Hat Enterprise Virt !gent (v.6 "or x86_64)
rhel-x86_64-rhev-agent-6-server
4or an- o) these channels, tied to di))erent architectures /such as *0bit1 or s-stem t-&es /client or
workstation1, -ou can download &ackages se&aratel- )rom R%N and co&- them to the install server:
Red Hat Enterprise Virt !gent (v.6 #erver "or 3$%&it x86)
Red Hat Enterprise Virt !gent (v.6 #erver 64%&it !M'64()ntel64)
Red Hat Enterprise Virt !gent (v.* #erver "or 3$%&it x86)
Red Hat Enterprise Virt !gent (v.* #erver "or 64%&it !M'64()ntel64)
Red Hat Enterprise Virt !gent (v.* +lient "or 3$%&it x86)
Red Hat Enterprise Virt !gent (v.* +lient "or 64%&it !M'64()ntel64)
Red Hat Enterprise Virt !gent (v.6 ,or-station "or 64%&it !M'64()ntel64
Red Hat Enterprise Virt !gent (v.6 +lient "or 3$%&it x86)
Red Hat Enterprise Virt !gent (v.6 +lient "or 64%&it !M'64()ntel64)
=+ "dd *+annels on .our install ser/er. 4or each channel, run the r+n-*+annel command to add
the channel to the R%E5 s-stem running on -our la&to&+ 4or e6am&le:
# rhn-channel --add --channel=rhel-x86_64-server-6-rhevm-3
# rhn-channel --add --channel=rhel-x86_64-server-supplementary-6
# rhn-channel --add --channel=rhel-x86_64-rhev-mgmt-agent-6
# rhn-channel --add --channel=rhel-x86_64-rhev-agent-6-server
# rhn-channel --add --channel=jbappplatorm-!-x86_64-server-6-rpm
?+ et up 'T( ser/er. To be able to share the re&ositor-, -ou could install and start u& an 4TP server
on the la&to&+ The channels selected need at least #*92 o) disk s&ace available in 0/ar0ftp0pu):
# yum install vstpd
# chkconig vstpd on
# service vstpd start
# mkdir "var"tp"pub"rhevrepo
Installing RHEV Offline | Chris Negus 2
7+ 1o2nload pa*3ages. To download all the &ackages )rom -our available channels, change to the
director- -ou want to use to hold the re&ositor- and t-&e the )ollowing /this ma- take a )ew hours to
com&lete, de&ending on the s&eed o) -our network1:
# cd "var"tp"pub"rhevrepo
# reposync -l #
A+ Create repositories+ Run the *reaterepo command on each o) the subdirectories where -ou
downloaded the &ackages /0/ar0ftp0pu)0r+e/repo041+ /Run .u, install *reaterepo i) the command
is not -et installed on -our s-stem+1 %ere are a cou&le o) e6am&les:
# createrepo "var"tp"pub"rhevrepo"rhel-x86_64-server-6
# createrepo "var"tp"pub"rhevrepo"rhel-x86_64-server-rhevm-3
# createrepo "var"tp"pub"rhevrepo"rhel-x86_64-server-supplementary-6
###
<+ Create .u, .repo files. Ne6t create a -um re&o )ile that client s-stems /the ones where -ou will
install -our R%E'0. and h-&ervisor s-stems1 can use to &oint to -our re&ositor-+ At this &oint,
connect -our la&to& to the network on which -our R%E' s-stems are located+ Then determine -our
la&to&Bs host name or $P address+ The )ollowing )ile illustrates a +re&o )ile with -our la&to& located at
the $P address #C+#7<+"+CC+ /Dou can call the )ile something like r+e/.repo+1
.r/el60
nae1Red Hat Enterprise 2inux 6
&aseurl1"tp3((45$.468.6.55(pu&(r/evrepo(r/el%x86_64%server%6
ena&led14
gpg7/e7-16
.r/ev0
nae1Red Hat Enterprise Virtualization Manager
&aseurl1"tp3((45$.468.6.55(pu&(r/evrepo(r/el%x86_64%server%6%r/ev%3
ena&led14
gpg7/e7-16
.8&ossapp0
nae19:oss !ppli7ation ;lat"or (v * in rp)
&aseurl1"tp3((45$.468.6.55(pu&(r/evrepo(8&appplat"or%*%x86_64%server%6%rp
ena&led14
gpg7/e7-16
.r/elsupp0
nae1Red Hat Enterprise 2inux #erver #uppleentar<
&aseurl1"tp3((45$.468.6.55(pu&(r/evrepo(r/el%x86_64%server%suppleentar<%6
ena&led14
gpg7/e7-16
.r/evagent0
nae1Red Hat Enterprise Virt Manageent !gent
&aseurl1"tp3((45$.468.6.55(pu&(r/evrepo(r/el%x86_64%r/ev%gt%agent%6
ena&led14
gpg7/e7-16
$OTE: When -ou are read- to install guest s-stems on the h-&ervisors, create a +re&o )ile that
&oints to the >Red %at Enter&rise 'irtuali(ation Agent> channels as well+ :se that +re&o )ile to get
the &ackages that allow guests to be monitored b- the R%E'0.+ %ereBs an e6am&le:
Installing RHEV Offline | Chris Negus 3
222.red+at.*o,
Co&-right E "# Red %at, $nc+ FRed %at,G Red %at 5inu6, the Red %at F8hadowmanG logo, and the &roducts
listed are trademarks o) Red %at, $nc+, registered in the :+8+ and other countries+ 5inu6H is the registered
trademark o) 5inus Torvalds in the :+8+ and other countries+
.r/ev7lient0
nae1Red Hat Enterprise Virt !gent
&aseurl1"tp3((45$.468.6.55(pu&(r/evrepo(r/el%x86_64%r/ev%agent%6%server
ena&led14
gpg7/e7-16
C+ 5egin installing .our RHEV-!+ $n this ste&, -ou start b- installing a R%E5 7+6 I<7;7= s-stem that
will contain the R%E'0.+ Dou need some R%E5 7+# installation medium to start the installation+ $
ac,uired the R%E5 7+# J'J /rhel0server07+#06<7;7=0dvd+iso1 and did a basic server install /$ also
added a 9N3.E deskto&, although that is not re,uired1+
#"+ "dd .repo file to .our RHEV-!+ Co&- the +re&o )ile -ou created two ste&s earlier to the
0et*0.u,.repos.d0 director- on the R%E'0. s-stem+
##+ Update pa*3ages on .our RHEV-!+ With the re&ositor- )ile in &lace, t-&e the )ollowing to get the
latest versions o) each &ackage installed on -our s-stem:
K .u, update
#+ Install t+e r+e/,-setup pa*3age on .our RHEV-!+ At this &oint, run .u, install r+e/,-setup
on the R%E'0. s-stem+ $) the re&ositories are set u& &ro&erl- and available, the necessar-
&ackages are installed+ Dou can then continue with the R%E'0. con)iguration described in the Red
%at Enter&rise 'irtuali(ation *+" $nstallation 9uide+ $) -ou have &roblems, check out the
Troubleshooting Red %at Enter&rise 'irtuali(ation .anager $nstallation /R%E' *+"1 tech brie)+
#*+ 5egin installing .our H.per/isors+ 4or a R%E5 7+# host, in general, )ollow the descri&tion )or
installing a R%E5 h-&ervisor )rom the Red %at Enter&rise 'irtuali(ation *+" $nstallation 9uide, with
the e6ce&tion that once the base s-stem is installed, -ou can add the +re&o )ile -ou created earlier
to the 0et*0.u,.repos.d0 director- be)ore u&dating -our s-stem /.u, update1 and activating it to
the R%E'0.+
4or a R%E'0% host, likewise do an installation based on descri&tions in the installation guide, but
be sure to get the R%E'0% $83 image to install )rom+
#=+ 5egin installing .our V!s+ 2egin &lanning and installing the virtual guests -ou want to run on
-our h-&ervisors, as described in the Red %at 'irtuali(ation *+" Administration 9uide+ A)ter a guest
is installed, -ou can co&- the +re&o )ile that identi)ies the >Red %at Enter&rise 'irtuali(ation Agent>
channel so)tware needed to allow the R%E'0. to communicate with the guest+
I$T"%%I$& RHEV O''%I$E 'RO! RE!OV"5%E !E1I"
$nstead o) using a la&to& as an install server, -ou can gather all the &ackages -ou need to a :82 drive or
other removable media and use that to install -our R%E'0. and R%E' h-&ervisor s-stems+ 4ollow the
same &rocedure as -ou did )or setting u& a R%E5 s-stem running on a la&to& /or virtual machine on a
la&to&1 to the &oint where the &ackages are downloaded and -ou have created re&ositories+
A)ter that, co&- the director- structure /in this case, starting at 0/ar0ftp0pu)0r+e/repo1 to a :82 drive or
other removable media that can hold the &ackages )rom all the channels+ Connect that drive to the R%E'0.
or h-&ervisor a)ter the base install is done+ Then use the same +re&o )ile, but change the
ftp600789.7:;.0.880pu)0r+e/repo )or each entr- to the location o) the )ile s-stem on the removable media /such as
file6000,edia0dis30r+e/repo0, de&ending on where it is mounted1+
$) -ou donBt have a J'J drive available )or ever- install, -ou can sim&l- co&- the contents o) the J'J on to a Web
Installing RHEV Offline | Chris Negus 4
server or 4TP server /as shown &reviousl-1+ Then make that server accessible to the installer when -ou begin
installing Red %at Enter&rise 5inu6+
U(1"TI$& #OUR RHEV #TE!
As u&dated RP. &ackages become available, -ou will &robabl- want to bring those &ackages across )rom
Red %at Network to use with -our R%E' s-stems+ To do that, sim&l- re&eat the &rocedure )or s-ncing and
sharing the channels /add the 0n o&tion to re&os-nc to onl- get new &ackages: repos.n* -l -n . 1+ Ne6t,
make sure the channels containing the u&dated &ackages are co&ied to the la&to& or server thatBs serving
those &ackages+ And )inall-, run .u, update )rom each '. and h-&ervisor s-stem+
U!!"R#
To install R%E' s-stems /R%E'0. and h-&ervisors1 that are disconnected )rom the $nternet or otherwise
unable to access Red %at Network, -ou need a wa- o) getting the necessar- r&m &ackages to those
disconnected s-stems+ This document describes how to do that b- setting u& an install server on a la&to& or
b- gathering and co&-ing the &ackages to removable media+
Installing RHEV Offline | Chris Negus 5

Вам также может понравиться