service.support
UID 14
精華
0
積分 0
帖子 523
閱讀權限 200
註冊 2006-10-2
狀態 離線
|
VMware Tool在桓基產品上安裝的問題
1. 因為我們的產品不使用本機的圖形介面和滑鼠操作
vmware tool 在產品光碟平台是可以不用安裝也可以正常使用的
因此一般客戶不建議安裝 VMware tool
2. 如果需要安裝 vmware tool 可參考以下說明:
a.安裝 vmware tool 的注意事項:
目前測試過的版本為 ESXi 4.1.0 + CCMAIL 5u5 + 內建 VMware-Tools , vmware workstation 7.1.3 build-324285 + CCMAIL 5u3 + 5u5VMware Tools 8.4.5 build-324285, 更舊的產品版本可能不能支援
由於 vmware tool 的安裝程序預設的 perl 路徑與產品不同,因此直接執行會不能執行
因此手冊中的安裝, 設定, 和解除安裝指令需要修正為以下指令才能執行:
1.安裝指令:
原指令
./vmware-install.pl
須改為
/usr/local/bin/perl ./vmware-install.pl
2. 設定指令:
原指令
/usr/bin/vmware-config-tools.pl
須改為
/usr/local/bin/perl /usr/bin/vmware-install.pl
3. 解除安裝指令:
原指令
/usr/bin/vmware-uninstall-tools.pl
須改為
/usr/local/bin/perl /usr/bin/vmware-uninstall-tools.pl
安裝, 設定和解除安裝的完整輸出畫面如下(以下畫面是使用 VMware Tools 8.4.5 build-324285 抓取,各版本會稍微不同):
1.安裝:
#/usr/local/bin/perl vmware-install.pl
Creating a new VMware Tools installer database using the tar4 format.
Installing VMware Tools.
In which directory do you want to install the binary files?
[/usr/bin]
What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc/rc.d]
What is the directory that contains the init scripts?
[/etc/rc.d/init.d]
In which directory do you want to install the daemon files?
[/usr/sbin]
In which directory do you want to install the library files?
[/usr/lib/vmware-tools]
In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools]
The path "/usr/share/doc/vmware-tools" does not exist currently. This program
is going to create it, including needed parent directories. Is this what you
want? [yes]
The installation of VMware Tools 8.4.5 build-324285 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".
Before running VMware Tools for the first time, you need to configure it by
invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want
this program to invoke the command for you now? [yes] no
Enjoy,
--the VMware team
2.設定
#/usr/local/bin/perl /usr/bin/vmware-config-tools.pl
Initializing...
Making sure services for VMware Tools are stopped.
Stopping VMware Tools services in the virtual machine:
Guest operating system daemon: [ OK ]
Virtual Printing daemon: [ OK ]
Unmounting HGFS shares: [ OK ]
Guest filesystem driver: [ OK ]
Found a compatible pre-built module for vmmemctl. Installing it...
Found a compatible pre-built module for vmhgfs. Installing it...
Found a compatible pre-built module for vmxnet. Installing it...
Found a compatible pre-built module for vmblock. Installing it...
Found a compatible pre-built module for vmci. Installing it...
Found a compatible pre-built module for vsock. Installing it...
Found a compatible pre-built module for vmxnet3. Installing it...
The VMware pvscsi module is only supported on kernel version 2.6.18 and newer.
No X install found.
Creating a new initrd boot image for the kernel.
check /lib/modules/kernel/modules.dep
module=[scsi_mod] premodule=[]
check /lib/modules/kernel/modules.dep
module=[sd_mod] premodule=[/lib/modules/2.6.9-55.ELsmp/kernel/drivers/scsi/scsi_mod]
scan sd_mod:/lib/modules/2.6.9-55.ELsmp/kernel/drivers/scsi/scsi_mod
skip scsi_mod
check /lib/modules/kernel/modules.dep
module=[libata] premodule=[/lib/modules/2.6.9-55.ELsmp/kernel/drivers/scsi/scsi_mod]
scan libata:/lib/modules/2.6.9-55.ELsmp/kernel/drivers/scsi/scsi_mod
skip scsi_mod
check /lib/modules/kernel/modules.dep
module=[jbd] premodule=[]
check /lib/modules/kernel/modules.dep
module=[ext3] premodule=[/lib/modules/2.6.9-55.ELsmp/kernel/fs/jbd/jbd]
scan ext3:/lib/modules/2.6.9-55.ELsmp/kernel/fs/jbd/jbd
skip jbd
check /lib/modules/kernel/modules.dep
module=[unknown] premodule=[]
check /lib/modules/kernel/modules.dep
module=[ehci-hcd] premodule=[]
check /lib/modules/kernel/modules.dep
module=[ohci-hcd] premodule=[]
check /lib/modules/kernel/modules.dep
module=[uhci-hcd] premodule=[]
check /lib/modules/kernel/modules.dep
module=[usb-storage] premodule=[/lib/modules/2.6.9-55.ELsmp/kernel/drivers/scsi/scsi_mod]
scan usb-storage:/lib/modules/2.6.9-55.ELsmp/kernel/drivers/scsi/scsi_mod
skip scsi_mod
check /lib/modules/kernel/modules.dep
module=[mptbase] premodule=[]
check /lib/modules/kernel/modules.dep
module=[mptscsi] premodule=[/lib/modules/2.6.9-55.ELsmp/kernel/drivers/message/fusion/mptbase /lib/modules/2.6.9-55.ELsmp/kernel/drivers/scsi/scsi_mod]
scan mptscsi:/lib/modules/2.6.9-55.ELsmp/kernel/drivers/message/fusion/mptbase
skip mptbase
scan mptscsi:/lib/modules/2.6.9-55.ELsmp/kernel/drivers/scsi/scsi_mod
skip scsi_mod
check /lib/modules/kernel/modules.dep
module=[mptfc] premodule=[/lib/modules/2.6.9-55.ELsmp/kernel/drivers/message/fusion/mptscsi /lib/modules/2.6.9-55.ELsmp/kernel/drivers/message/fusion/mptbase /lib/modules/2.6.9-55.ELsmp/kernel/drivers/scsi/scsi_mod]
scan mptfc:/lib/modules/2.6.9-55.ELsmp/kernel/drivers/message/fusion/mptscsi
skip mptscsi
scan mptfc:/lib/modules/2.6.9-55.ELsmp/kernel/drivers/message/fusion/mptbase
skip mptbase
scan mptfc:/lib/modules/2.6.9-55.ELsmp/kernel/drivers/scsi/scsi_mod
skip scsi_mod
check /lib/modules/kernel/modules.dep
module=[mptspi] premodule=[/lib/modules/2.6.9-55.ELsmp/kernel/drivers/message/fusion/mptscsi /lib/modules/2.6.9-55.ELsmp/kernel/drivers/message/fusion/mptbase /lib/modules/2.6.9-55.ELsmp/kernel/drivers/scsi/scsi_mod]
scan mptspi:/lib/modules/2.6.9-55.ELsmp/kernel/drivers/message/fusion/mptscsi
skip mptscsi
scan mptspi:/lib/modules/2.6.9-55.ELsmp/kernel/drivers/message/fusion/mptbase
skip mptbase
scan mptspi:/lib/modules/2.6.9-55.ELsmp/kernel/drivers/scsi/scsi_mod
skip scsi_mod
check /lib/modules/kernel/modules.dep
module=[mptsas] premodule=[/lib/modules/2.6.9-55.ELsmp/kernel/drivers/message/fusion/mptscsi /lib/modules/2.6.9-55.ELsmp/kernel/drivers/message/fusion/mptbase /lib/modules/2.6.9-55.ELsmp/kernel/drivers/scsi/scsi_mod]
scan mptsas:/lib/modules/2.6.9-55.ELsmp/kernel/drivers/message/fusion/mptscsi
skip mptscsi
scan mptsas:/lib/modules/2.6.9-55.ELsmp/kernel/drivers/message/fusion/mptbase
skip mptbase
scan mptsas:/lib/modules/2.6.9-55.ELsmp/kernel/drivers/scsi/scsi_mod
skip scsi_mod
check /lib/modules/kernel/modules.dep
module=[mptscsih] premodule=[/lib/modules/2.6.9-55.ELsmp/kernel/drivers/message/fusion/mptspi /lib/modules/2.6.9-55.ELsmp/kernel/drivers/message/fusion/mptsas /lib/modules/2.6.9-55.ELsmp/kernel/drivers/message/fusion/mptscsi /lib/modules/2.6.9-55.ELsmp/kernel/drivers/message/fusion/mptbase /lib/modules/2.6.9-55.ELsmp/kernel/drivers/scsi/scsi_mod]
scan mptscsih:/lib/modules/2.6.9-55.ELsmp/kernel/drivers/message/fusion/mptspi
skip mptspi
scan mptscsih:/lib/modules/2.6.9-55.ELsmp/kernel/drivers/message/fusion/mptsas
skip mptsas
scan mptscsih:/lib/modules/2.6.9-55.ELsmp/kernel/drivers/message/fusion/mptscsi
skip mptscsi
scan mptscsih:/lib/modules/2.6.9-55.ELsmp/kernel/drivers/message/fusion/mptbase
skip mptbase
scan mptscsih:/lib/modules/2.6.9-55.ELsmp/kernel/drivers/scsi/scsi_mod
skip scsi_mod
insert scsi module [mptspi] from proc prereq
check /lib/modules/kernel/modules.dep
module=[scsi_mod] premodule=[]
check /lib/modules/kernel/modules.dep
module=[sd_mod] premodule=[/lib/modules/2.6.9-55.ELsmp/kernel/drivers/scsi/scsi_mod]
scan sd_mod:/lib/modules/2.6.9-55.ELsmp/kernel/drivers/scsi/scsi_mod
skip scsi_mod
check /lib/modules/kernel/modules.dep
module=[libata] premodule=[/lib/modules/2.6.9-55.ELsmp/kernel/drivers/scsi/scsi_mod]
scan libata:/lib/modules/2.6.9-55.ELsmp/kernel/drivers/scsi/scsi_mod
skip scsi_mod
check /lib/modules/kernel/modules.dep
module=[jbd] premodule=[]
check /lib/modules/kernel/modules.dep
module=[ext3] premodule=[/lib/modules/2.6.9-55.ELsmp/kernel/fs/jbd/jbd]
scan ext3:/lib/modules/2.6.9-55.ELsmp/kernel/fs/jbd/jbd
skip jbd
check /lib/modules/kernel/modules.dep
module=[unknown] premodule=[]
insert scsi module [mptspi] from proc post
check /lib/modules/kernel/modules.dep
module=[mptspi] premodule=[/lib/modules/2.6.9-55.ELsmp/kernel/drivers/message/fusion/mptscsi /lib/modules/2.6.9-55.ELsmp/kernel/drivers/message/fusion/mptbase /lib/modules/2.6.9-55.ELsmp/kernel/drivers/scsi/scsi_mod]
scan mptspi:/lib/modules/2.6.9-55.ELsmp/kernel/drivers/message/fusion/mptscsi
skip mptscsi
scan mptspi:/lib/modules/2.6.9-55.ELsmp/kernel/drivers/message/fusion/mptbase
skip mptbase
scan mptspi:/lib/modules/2.6.9-55.ELsmp/kernel/drivers/scsi/scsi_mod
skip scsi_mod
check /lib/modules/kernel/modules.dep
module=[ehci-hcd] premodule=[]
check /lib/modules/kernel/modules.dep
module=[jbd] premodule=[]
check /lib/modules/kernel/modules.dep
module=[ext3] premodule=[/lib/modules/2.6.9-55.ELsmp/kernel/fs/jbd/jbd]
scan ext3:/lib/modules/2.6.9-55.ELsmp/kernel/fs/jbd/jbd
skip jbd
check /lib/modules/kernel/modules.dep
module=[loop] premodule=[]
check /lib/modules/kernel/modules.dep
module=[ide-disk] premodule=[]
check /lib/modules/kernel/modules.dep
module=[ext3] premodule=[/lib/modules/2.6.9-55.ELsmp/kernel/fs/jbd/jbd]
scan ext3:/lib/modules/2.6.9-55.ELsmp/kernel/fs/jbd/jbd
skip jbd
check /lib/modules/kernel/modules.dep
module=[vmxnet] premodule=[]
check /lib/modules/kernel/modules.dep
module=[vmxnet3] premodule=[]
ehci-hcd
ohci-hcd
uhci-hcd
Starting VMware Tools services in the virtual machine:
Switching to guest configuration: [ OK ]
Guest filesystem driver: [ OK ]
Mounting HGFS shares: [FAILED]
Guest memory manager: [ OK ]
VM communication interface: [ OK ]
VM communication interface socket family: [ OK ]
Blocking file system: [ OK ]
Guest operating system daemon: [ OK ]
Virtual Printing daemon: [ OK ]
The configuration of VMware Tools 8.4.5 build-324285 for Linux for this running
kernel completed successfully.
You must restart your X session before any mouse or graphics changes take
effect.
You can now run VMware Tools by invoking "/usr/bin/vmware-toolbox-cmd" from the
command line or by invoking "/usr/bin/vmware-toolbox" from the command line
during an X server session.
To enable advanced X features (e.g., guest resolution fit, drag and drop, and
file and text copy/paste), you will need to do one (or more) of the following:
1. Manually start /usr/bin/vmware-user
2. Log out and log back into your desktop session; and,
3. Restart your X session.
Enjoy,
--the VMware team
3.解除安裝
/usr/local/bin/perl ./vmware-uninstall-tools.pl
Uninstalling the tar installation of VMware Tools.
Stopping services for VMware Tools
Skipping VMware Tools services shutdown on the host: [ OK ]
File /usr/lib/vmware-tools/lib32/libconf/etc/pango/pangorc is backed up to
/usr/lib/vmware-tools/lib32/libconf/etc/pango/pangorc.old.0.
This program previously created the file
/usr/lib/vmware-tools/libconf/etc/gtk-2.0/gtk.immodules, and was about to
remove it. Somebody else apparently did it already.
File /usr/lib/vmware-tools/lib32/libconf/etc/pango/pangox.aliases is backed up
to /usr/lib/vmware-tools/lib32/libconf/etc/pango/pangox.aliases.old.0.
File /usr/lib/vmware-tools/lib32/libconf/etc/gtk-2.0/gdk-pixbuf.loaders is
backed up to
/usr/lib/vmware-tools/lib32/libconf/etc/gtk-2.0/gdk-pixbuf.loaders.old.0.
This program previously created the file
/usr/lib/vmware-tools/libconf/etc/pango/pangorc, and was about to remove it.
Somebody else apparently did it already.
File /etc/vmware-tools/vmware-user.desktop is backed up to
/etc/vmware-tools/vmware-user.desktop.old.0.
This program previously created the file
/usr/lib/vmware-tools/libconf/etc/pango/pangox.aliases, and was about to remove
it. Somebody else apparently did it already.
This program previously created the file
/usr/lib/vmware-tools/lib32/libconf/etc/pango/pango.modules, and was about to
remove it. Somebody else apparently did it already.
This program previously created the file
/usr/lib/vmware-tools/libconf/etc/gtk-2.0/gdk-pixbuf.loaders, and was about to
remove it. Somebody else apparently did it already.
File /usr/lib/vmware-tools/lib32/libconf/etc/gtk-2.0/gtk.immodules is backed up
to /usr/lib/vmware-tools/lib32/libconf/etc/gtk-2.0/gtk.immodules.old.0.
This program previously created the directory
/usr/lib/vmware-tools/lib32/libconf/etc/gtk-2.0, and was about to remove it.
Since there are files in that directory that this program did not create, it
will not be removed.
This program previously created the directory
/usr/lib/vmware-tools/lib32/libconf/etc/pango, and was about to remove it.
Since there are files in that directory that this program did not create, it
will not be removed.
This program previously created the directory
/usr/lib/vmware-tools/lib32/libconf/etc, and was about to remove it. Since
there are files in that directory that this program did not create, it will not
be removed.
This program previously created the directory
/usr/lib/vmware-tools/lib32/libconf, and was about to remove it. Since there
are files in that directory that this program did not create, it will not be
removed.
This program previously created the directory /usr/lib/vmware-tools/lib32, and
was about to remove it. Since there are files in that directory that this
program did not create, it will not be removed.
This program previously created the directory /usr/lib/vmware-tools, and was
about to remove it. Since there are files in that directory that this program
did not create, it will not be removed.
The removal of VMware Tools 8.4.5 build-324285 for Linux completed
successfully. Thank you for having tried this software.
其他:
1. 安裝後 vmware tool 會將預設的網卡驅動換為vmxnet , 這個設定變更是用來增加 VM 內的機器對其他VM網路資料傳輸效能
2. 安裝後會載入 pvscsi 驅動程式 ,這個趨動程式用來抓取 pvscsi 格式的虛擬磁碟, 這種資料磁碟比預設的虛擬磁碟高30%的磁碟傳輸效率
在伺服器上建立pvscsi 控制器和 pvscsi 虛擬磁碟的方法, 可參考官方文件
http://kb.vmware.com/selfservice ... ;externalId=1010398
根據上面的官網資料, 預設 vmware-tool 安裝的 pvscsi 在RHEL5 是不支援開機磁碟使用 pvscsi 磁碟
只能在系統裝好後另外分割 PVSCSI 資料磁碟給 VM 使用
因此如果要在系統安裝好後, 將開機磁區改為使用 PVSCSI 驅動的方法如下:
1. 安裝好作業系統和 vmware-tool
2. 修改 /etc/modprobe.conf
將
alias scsi_hostadapter3 mptspi
改為
alias scsi_hostadapter3 mptspi
alias scsi_hostadapter4 pvscsi
3. 執行mkinitrd -f /boot/initrd-2.6.18-194.el5-2.img 2.6.18-194.el5 (以上是用 5u5 為例,其他版本請將 2.6.18-194 換為目前執行的kernel 的版本)
4. 修改 /etc/lilo.conf 將
default=linux
initrd=/boot/initrd-2.6.18-194.el5.img
改為
default=linux-up
initrd=/boot/initrd-2.6.18-194.el5-2.img
5. 執行 lilo
6. 重新開機
7. 將 VM關機, 編輯 VM 設定
8. 將開機磁碟掛載在 SCSI Controller 1 : type paravirtual 下, 且確認該磁碟的 SCSI ID 值為該 VM 中所有磁碟中最小的, 如果該 VM 下沒有其他 SCSI Controller 的 type 為 paravirtual , 直接將 SCSI Controller 1 的 type 改為 paravirtual
9. 重新開機 VM確認系統使用 PVSCSI 方式可以開機
|
|