有没有人成功地使用 EL(RHEL 或 CentOS)7.2 来宾运行来宾自定义?
该系统是 VMware vCloud Director 5.6.5 和 VMware ESXi 5.5。
v7.2 附带 open-vm-tools 9.10.2,它应该包括所有必要的 VMware Tools 等效项。
我尝试将 /etc/redhat-release 设置为 7.0 字符串。我已经安装了perl。我没有尝试降级到较旧的 open-vm-tools + vmware-deployPkg,因为我想坚持使用 7.2 软件包。
这是一些输出...
[root@localhost ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.0 (Maipo)
[root@localhost ~]# which perl
/usr/bin/perl
[root@localhost ~]# vmware-toolbox-cmd -v
9.10.2.48224 (build-2822639)
[root@localhost ~]# cat /var/log/vmware-imc/toolsDeployPkg.log
## Starting deploy pkg operation
Deploying /tmp/vmware-root/709d2d0c/cust93117962197543457.cab
Initializing deployment module.
Cleaning old state file from tmp directory.
EXIT STATE INPROGRESS
Setting deploy error: Error removing lock /tmp/.vmware-deploy.INPROGRESS (No such file or directory)
EXIT STATE Done
Setting deploy error: Error removing lock /tmp/.vmware-deploy.Done (No such file or directory)
EXIT STATE ERRORED
Setting deploy error: Error removing lock /tmp/.vmware-deploy.ERRORED (No such file or directory)
Setting deploy error: Success.
Deploying cabinet file /tmp/vmware-root/709d2d0c/cust93117962197543457.cab.
Transitioning from state (null) to state INPROGRESS.
ENTER STATE INPROGRESS
Reading cabinet file /tmp/vmware-root/709d2d0c/cust93117962197543457.cab.
Creating directory /tmp
Creating directory /tmp/.vmware
Creating directory /tmp/.vmware/linux
Creating directory /tmp/.vmware/linux/deploy
Extracting package files.
Launching deployment /usr/bin/perl -I/tmp/.vmware/linux/deploy/scripts /tmp/.vmware/linux/deploy/scripts/Customize.pl /tmp/.vmware/linux/deploy/cust.cfg.
Command to exec : /usr/bin/perl
sizeof ProcessInternal is 56
## Starting deploy pkg operation
Deploying /tmp/vmware-root/709d2d0c/cust93117962197543457.cab
Initializing deployment module.
Cleaning old state file from tmp directory.
EXIT STATE INPROGRESS
Setting deploy error: Error removing lock /tmp/.vmware-deploy.INPROGRESS (No such file or directory)
EXIT STATE Done
Setting deploy error: Error removing lock /tmp/.vmware-deploy.Done (No such file or directory)
EXIT STATE ERRORED
Setting deploy error: Error removing lock /tmp/.vmware-deploy.ERRORED (No such file or directory)
Setting deploy error: Success.
Deploying cabinet file /tmp/vmware-root/709d2d0c/cust93117962197543457.cab.
Transitioning from state (null) to state INPROGRESS.
ENTER STATE INPROGRESS
Reading cabinet file /tmp/vmware-root/709d2d0c/cust93117962197543457.cab.
Creating directory /tmp
Creating directory /tmp/.vmware
Creating directory /tmp/.vmware/linux
Creating directory /tmp/.vmware/linux/deploy
Extracting package files.
Launching deployment /usr/bin/perl -I/tmp/.vmware/linux/deploy/scripts /tmp/.vmware/linux/deploy/scripts/Customize.pl /tmp/.vmware/linux/deploy/cust.cfg.
Command to exec : /usr/bin/perl
sizeof ProcessInternal is 56
Returning, pending output from stdout
Returning, pending output from stderr
Process exited normally after 0 seconds, returned 127
No more output from stdout
No more output from stderr
Customization command output:
Customization process returned with error.
Deployment result = 127
Setting generic error status in vmx.
Transitioning from state INPROGRESS to state ERRORED.
ENTER STATE ERRORED
EXIT STATE INPROGRESS
Setting deploy error: Deployment failed. The forked off process returned error code.
Deployment failed. The forked off process returned error code.
No nics to enable.
Launching cleanup.
Command to exec : /bin/rm
sizeof ProcessInternal is 56
Returning, pending output from stdout
Returning, pending output from stderr
Process exited normally after 0 seconds, returned 0
No more output from stdout
No more output from stderr
Customization command output:
Deploy error: Deployment failed. The forked off process returned error code.
Package deploy failed in DeployPkg_DeployPackageFromFile
## Closing log
[root@localhost ~]#
我又戳了一下图像,发现 perl 可执行文件都是 0 kb。我不知道这是怎么发生的,但我愿意责怪我的几次失败的测试和重新启动。
以供将来参考,以及希望从 ISO 完全控制包的人,这应该可以让您启动并运行。这也将创建一个不需要 Internet (yum) 访问的工作模板...