攢一台電腦
以virtualbox為例:
插入光盤並設置為從光盤啟動
以virtualbox為例:
安裝RHEL5
只選擇base組件,其它什麼都不要選擇:
虛擬機的網絡模式
橋接:虛擬機與物理平行地接入局域網(同網段)
Host-only:僅僅物理與虛擬機之間可以互相通信(一根網線直接把兩台電腦連接起來)
NAT:你的物理機是路由器,虛擬機通過物理機對外上網
RHEL5網絡配置
編輯網卡配置文件:
:q! 不保存退出
重啟網絡服務:
在物理機上測試與虛擬機的連通性:
使用xmanager管理服務器
為虛擬機創建快照
關閉SELINUX
[code]# vi /etc/sysconfig/selinux # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - SELinux is fully disabled. SELINUX=disabled # SELINUXTYPE= type of policy in use. Possible values are: # targeted - Only targeted network daemons are protected. # strict - Full SELinux protection. SELINUXTYPE=targeted關閉防火牆
[code][root@ocp ~]# service iptables stop [root@ocp ~]# chkconfig iptables off修改/etc/hosts文件
[code]# vi /etc/hosts # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6 192.168.10.244 ocp.example.com配置yum源