
Step 7: Add a manual host entry to the /etc/hosts file (on the Red Hat Enterprise Linux host) for the
RHEV-M server to enable vdsm and other services to connect properly to the host (if not
using DNS services).
10.0.0.1 server1.example.com rhev-manager.server1.example.com
For example:
172.30.40.147 host2-1.lab.mtl.com rhev-manager.host2-1.lab.mtl.com
Step 8: Open firewall ports.
The following commands will remove existing firewall rules and add the required ports by
RHEV-M to the iptables rules.
[root@host3]# iptables --flush
[root@host3]# iptables --append INPUT -m state --state ESTABLISHED,RELATED
-j ACCEPT
[root@host3]# iptables --append INPUT -p icmp -j ACCEPT
[root@host3]# iptables --append INPUT -i lo -j ACCEPT
[root@host3]# iptables --append INPUT -p tcp --dport 22 -j ACCEPT
[root@host3]# iptables --append INPUT -p tcp --dport 16514 -j ACCEPT
[root@host3]# iptables --append INPUT -p tcp --dport 54321 -j ACCEPT
[root@host3]# iptables --append INPUT -p tcp -m multiport --dports 5634:6166
-j ACCEPT
[root@host3]# iptables --append INPUT -p tcp -m multiport --dports
49152:49216 -j ACCEPT
[root@host3]# iptables --append INPUT -j REJECT --reject-with icmp-host-
prohibited
[root@host3]# iptables --append FORWARD -m physdev ! --physdev-is-bridged -j
REJECT --reject-with icmp-host-prohibited
[root@host3]# /etc/init.d/iptables save
[root@host3]# chkconfig iptables on
[root@host3]# service iptables restart
Step 9: RHEV-M makes use of sudo to perform operations as root on the host. The default
configuration stored in /etc/sudoers contains values to allow this. To configure sudo access,
add the following entry to /etc/sudoers.
root ALL=(ALL) ALL
Step 10: Enable SSH access for root user. Add the following entry in /etc/ssh/sshd_config.
Comentários a estes Manuais