文章标签 ‘VMware’
使用vSphere底层搭建XenDesktop时需要对vcenter server配置文件进行修改,具体修改内容如下:
配置XenDesktop 5通过HTTP方式连接vCenter方法:
1、使用管理员登录到Center服务器;
2、修改vCenter的proxy.xml文件,文件路径如下:
Server 2003:
C:/Documents and Settings/All Users/Application Data/VMware/VMware VirtualCenter/proxy.xml
Server 2008:
C:/Users/All Users/VMware/VMware VirtualCenter/proxy.xml
Server 2008 R2:
C:/ProgramData/VMware/VMware VirtualCenter/proxy.xml
3、修改proxy.xml文件中的"/"和"/sdk"两节的内容
注意:这里就是注意的内容,XenDesktop 5相对于XenDesktop 4会需要多修改“/”节点的内容
4、修改accessMode的内容为httpAndHttps(默认值为httpsWithRedirect)
1)、修改"/":
查找
1 | <serverNamespace>/</serverNamespace> |
在上方会有accessMode字段,修改内容为:
1 | <accessMode>httpAndHttps</accessMode> |
修改后如下图:

2)、修改"/sdk":
查找
1 | <serverNamespace>/sdk</serverNamespace> |
在上方会有accessMode字段,修改内容为:
1 | <accessMode>httpAndHttps</accessMode> |
修改后如下图:

5、修改完成后保存,并重启VMware VirtualCenter Server服务即可。
隐藏VMware虚拟机中“安全删除硬件”图标可以用下面两种方法:
1、To disable the HotPlug capability using vSphere Client:
Connect vSphere Client to ESX or vCenter Server.使用vSphere客户端连接ESX主机或者vCenter.
Power off the virtual machine.关闭要更改的虚拟机.
Right-click the virtual machine and click Edit Settings.鼠标右键选择虚拟机并点击“编辑设置”.
Click the Options tab.选择“选项”标签.
Click General > Configuration Parameters > Add Row.依次点击“常规” > “配置参数” > “添加行”.
Insert a new row with the name devices.hotplug and value false.在新行中名称输入“devices.hotplug”,值输入“false”确定.
Power on the virtual machine.重启虚拟机.
2、To disable the HotPlug capability by editing the .vmx file:
Power off the virtual machine.关闭虚拟机
Access the ESX service console using an SSH client.使用SSH客户端连接到ESX主机
Open the virtual machine configuration file (.vmx) in a text editor. The default location is /vmfs/volumes/
Add the line:添加一行
devices.hotplug = "false"
Note: This setting does not interfere with HotPlug CPU/memory.
Save the file.保存文件
Power on the virtual machine.启动虚拟机.

