Professional Documents
Culture Documents
RH 318
RH 318
RH 318
5 RH318
Rht-vmctl commands
View “physical console” to log in and work with wrolstation machine:rht-vmctl view
workstation
Reset workstation machine to its state and restart virtual machine.:rht-vmctl reset
workstation
sed ‘s/Language=//’)
export =LANG=$i
fi
Go around and make sure that all the second machines are turned off
f0$ rht-config-rhevnested
Virtualization on linux
Intel :VT-x
AMD:AMD-V
svm)' /proc/cpuinfo
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36
clflush
…vmx…
..nx..
Supported creatria:
vmx
svm
lm)' /proc/cpuinfo
Hosts:f
Interfaces:
Storage:
NFS,GlusterFS,iSCSI
Lab:page20
2.installing ,configuring,and testing RHEV manager
Red hat enterprise list entitlement provides red hat enterprise linux;
Red hat enterprise application platform provide the supported release of the
application platform.
Repos:
Rhel-6-server-rpms
Rhel-6-server-supplementary-rpms
Rhel-6-server-rhevm-3.5-rpms
Jb-eap-6-for-rhel-6-server-rpms
grep rhevisos
#engine-setup --generate-answer=/root/answers.txt
--config-append=file
#engine-setup –config-append=/root/answers.txt
#engine-upgrade-check
#engine-setup
Ptrctice :page37
Directory users
Demon:
#engine-manage-domains list
4,5,6,7,8,9,10,11 on page 49
Practice: page 52
Firewall configuration
#ntpdate classroom.example.com
#hwclock –w
#hwclock
#engine-config –s AdminPassword=interactive
Demonstration:
#grep server /etc/ntp.conf
#engine-config –s “UserDefinedVMproperties=macspoof=(true
flase)”
#engine-congfig-a
#engine-config –g “AuditLogCleanupTime”
Demonstration:
Page :59
Practice :page65
#engine-log-collector list
#engine-cleanup
#vim /etc/exports
Practice :page 65
3.installing and configuring rhev Hypervisor hosts
Practice :page 80
Practice:page80
3. place your hypervisor in maintance mode by selecting the host from the
hosts,right-clicking the host,and choosing maintenance ,press ok
#engine-config –s ServerRebootTimeout=90
Lab:page 94
4.creating RHEV data centers and clusters
Creating datacenters
Datacenter
Reinitializing a datacenter
Practice:page112
Creating clusters
Clusters
Optimizing clusters
VIRTUAL machines
data
export
iso
ISO domains:
Please provide the REST API password for the admin@internal oVirt Engine user
(CTRL+D to abort):
vitual disks
logical networks
port mirroring
#engine-config –l
grep –i mac
#engine-config -g MacPoolRanges
#engine-config –s MacPoolRanges=52:54:00:00:00:10-52:54:00:00:00:FF
Practice:page163
3.log into rhev administration portal as user rhevadmin and password redhat
Practice :page183
Paravirtualized drivers
#yum repolist
Look at the network interfaces tab in the lower pane of the virtual machine,then
the subtab of guest agent data to view the information about the interface.
Spice protocol
Lab :deploying rhev virtual machines page197
8.Manging VM snapshots and images
Cloning
Templating process
#virt-sysprep –list-operations
#chkconfig firstboot on
#touch /etc/reconfigsys
Creating a new redhat enterprise linux7 virtual server based on a template page228
Pools
Creating pools
Managing pools
1. ssh root@rhevm
6…
Cloud-init overview
Monitoring rhev
Demonstration:using tags
Practice :monitoring rhev with the search bar and tags page259
Generating reports
Report engine
The repository
https://rhevm.pod0.example.com/ovirt-engine-reports/login.html
1. Ssh root@rhevm
#engine-backup –mode=backup
#engine-backuo –mode=restore
1. from the desktop.exmple.com,open a shell ,and SSH into the rhev-m server:
#ssh root@rhevm.podX.example.com
4. the database are called engine and ovirt_engine_history for rhev-m ,and
rhevmreports for thev-m reports.
1. log onto eh manchine on which the red hat enterprise virulization manager is
installed.
2. Create empty database to which the database in the backup can be restored and
configure the postgresql service:
#chkconfig postgresql on
#su postgres
$psql
3. restore the backuo using the engine-backuo command tiwh the –change-db-
credentials parameter to pass th credentials of the new database:
engine-setup
5. engine databse and configuration file for the red hat enterprise vitualization
manager have been restored to the version in the backup;
rhev-m reinstallation
#engine-setup using the –config-append flag ,in order to user answer file,
#engine-setup –config-append=-/root/answers.txt
1. log onto the machine that red hat enterprise virtualization manager is installed
2. run the followindg command ,and the prompts to remove the configuration files
for and clean the databases associated with the manager:
4. engine-setup
6. reviewing configuration
7. creating hostedEngine-Vm
#wget http://classroom.example.com/materials/r
5. add an entry fir the rhev-m machine to /etc/host so the hypervisor can always
find the rhev-m machine
#ssh root@serverb.podX.example.com
#cd /usr/share/libvirt/
#wget http://classroom.example.com/materials/cpu_map.xml
9. once your new hypervisor has joined ,wait until the stauts has changed to up and
the SPM column has gone from contending to normal
13. migration VMs and congfiguring high availability
automating migration
automating migration
prerequisites for live migration apply;there must be at least one active host in
the cluster suite.
Demonstration :setting cluster policy and host maintenance mode page 319
Installation review
vmx
svm
lm)' /proc/cpuinfo
Firefox: http://classroom.example.com/materials/rhevm.repo
[RHEVMgr]
name=Red Hat Enterprise Virtualization Manager for RHEL 6
baseurl=http://content.example.com/rhev3.5/x86_64/dvd/rhel-6-server-rhevm-3.5-rpms/
enabled=1
gpgcheck=0
[RHEVHyp6]
baseurl=http://content.example.com/rhev3.5/x86_64/dvd/rhel-6-server-rhevh-rpms/
enabled=1
gpgcheck=0
[RHEVHyp7]
baseurl=http://content.example.com/rhev3.5/x86_64/dvd/rhel-7-server-rhevh-rpms/
enabled=1
gpgcheck=0
[RHELSupp]
baseurl=http://content.example.com/rhel6.6/x86_64/Supplementary
enabled=1
gpgcheck=0
[RHEVJBoss]
baseurl=http://content.example.com/rhev3.5/x86_64/dvd/jb-eap-6-for-rhel-6-server-
rpms/
enabled=1
Install rhev-M
[root@rhevm ~]# engine-setup --generate-answer=/root/answers.txt
Domain: example.com
https://rhevm.pod0.example.com/ovirt-engine/webadmin/?locale=en_US#login
7. Configure a datecenter
8. Configure a cluster
Management
Testing guesfish
Import the resulting image and test that the edit succeeded.
#rm -f /etc/udev/rules.d/*-persistent-*.rules
# rm -f /etc/ssh/moduli /etc/ssh/ssh_host_*
# rm -f /etc/sysconfig/rhn/ssytemid
6.create search bookmark named important events that displays events with a
serverity above normal sorted by time
https://rhevm.pod0.example.com/rhevm-reports
#Ssh root@rhevm