大网数据广告活动
服务器运维问答

VMware customization not working when creating Ubuntu VM from template

· 52CE 我爱测

I'm trying to create VMs from templates on vSphere 5.5 update 3 using the vSphere Web Client. The guest OS is Ubuntu 14.04.4 LTS. I created a VM and ensured that the following packages are installed: open-vm-tools net-tools perl …

问题原文

原帖链接 · Anonymouslemming · CC BY-SA 3.0

I'm trying to create VMs from templates on vSphere 5.5 update 3 using the vSphere Web Client. The guest OS is Ubuntu 14.04.4 LTS.

I created a VM and ensured that the following packages are installed:

  • open-vm-tools
  • net-tools
  • perl (5.18)

When cloning the machine, I am specifying 'Customize the Operating System' and selecting a customization specificat on the next screen. This customization spec Computer Name tab has 'Use the virtual machine name' radio button selected, and the name I'm using is definitely less than 63 characters (clonetest).

After cloning the machine, the name is the same as the template, and things like SSH keys have not been refreshed.

There is no /var/log/vmware-imc directory and no logs to shed any light on this, but the packages that were installed on the template are still there:

# dpkg -l | grep 'net-tools\|open-vm-tools\|ii  perl'
ii  net-tools                          1.60-25ubuntu2.1                 amd64        The NET-3 networking toolkit
ii  open-vm-tools                      2:9.4.0-1280544-5ubuntu6.2       amd64        Open VMware Tools for virtual machines hosted on VMware (CLI)
ii  perl                               5.18.2-2ubuntu1.1                amd64        Larry Wall's Practical Extraction and Report Language

Does anyone know what else is needed to enable vSphere to successfully clone Ubuntu guests and make this customization ?

The issue looks similar to Issues customizing a RHEL7 VM deployed from a template on VMware, but simply installing Perl solved their problem, and I already have perl installed

Thanks in advance,

已采纳解答

原帖链接 · Anonymouslemming · CC BY-SA 3.0

It turns out that versions of open-vm-tools lower than 9.10 do not contain the functionality to customize hosts. On an Ubuntu 15.10 installation, this works as expected. The open-vm-tools version is as follows:

ii  open-vm-tools                      2:9.10.2-2822639-1ubuntu3       amd64        Open VMware Tools for virtual machines hosted on VMware (CLI)

On older versions of Ubuntu and other distributions, you need the open-vm-tools-deployPkg package instead.

Instructions for installing the package on Ubuntu and Centos are at https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2075048

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-03-10)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。