2009年10月13日 星期二

VMWare Server 2 For Linux 安裝筆記



在Linux安裝VMWare Server,

系統需要先安裝: (先切換到su,會比較沒有麻煩)
1.Linux kernel-devel 和 xintd
# yum install kernel-devel xinetd

如果在Ubuntu可以用: # sudo apt-get install linux-headers-'uname -r'
build-essential

2.gcc
# yum groupinstall "Development Libraries" "Development Tools"

# yum install gcc


切換到su
安裝VMServer的RPM檔 ( xxxx是版本 )
# rpm -Uhv VMware-server-xxxx.rpm

最後 要做設定
Run the configuration script:
# ./vmware-config.pl


裝好之後要注意Linux的防火牆設定!
要在iptables中將VM的http和https的port開啟!
1.可以使用CentOS中的setup指令,自訂接受的port。
2.到/etc/sysconfig/iptables這個檔案中去新增規則。
  規則如下:
  -A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 8222 -j
ACCEPT
  -A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 8333 -j
ACCEPT


=============================================
VIClient要登入時,
位址的部分,要從https的port去登入。
=============================================
關閉web服務,只用viclient。增加效能。

關閉WebAccess:
# service vmware-mgmt stop

寫入檔案:
# vi /etc/init.d/vmware
將檔案中的#vmware_start_webAccess這一行屏蔽掉(在最後一個段落)。(用井字號# )  (
修改/etc/init.d/vmware, 屏蔽: line 1202:)

If you want to turn off HTTP/HTTPS access completely (strangely, I didn't see
any reduction in memory usage when I did this), comment out the _entire_

<proxysvc> section in the file /etc/vmware/hostd/proxy.xml and restart hostd.

# service vmware-mgmt stop && service vmware-mgmt start

參考網址:
1.VMware Server 2 for Linux: HOW-TO Disable VMware Virtual Infrastructure Web
Access:

http://blog.netnerds.net/2009/01/vmware-server-2-for-linux-how-to-disable-vmware-virtual-infrastructure-web-access/
2.HOWTO: VMWare Server 2, Disable Web Server Interface:

http://www.linux.com/community/blogs/howto-vmware-server-2-disable-web-server-interface.html




1 則留言:

  1. Harrah's Cherokee Casino opens - JRH Hub
    Harrah's 대구광역 출장안마 Cherokee Casino Resort 광명 출장마사지 in Cherokee, N.C. is set to open later this year. It is the first casino-resort in the U.S. to 안성 출장마사지 offer 안양 출장샵 live 진주 출장샵

    回覆刪除