VMware

This Question is Possibly Answered

1 "correct" answer available (10 pts) 1 "helpful" answer available (6 pts)
2 Replies Last post: Jun 23, 2009 8:29 AM by AWo  

Cloning VM / Hostname of guest posted: Jun 18, 2009 2:27 AM

Click to view repllccax's profile Enthusiast 31 posts since
Mar 9, 2009

Hi all !

atm. I'm cloning VM's (guest: winxp). I'm running the guest in a DHCP mode, VMware - NAT. The host is a RHEL.

Of course, after the cloning process the IP's of the guest are generated by VMware, but the hostname remains the same.

In the /etc/vmware/vmnet*/dhcp/dhcpd.conf file you are able to define the IP-range, subnetmask etc.

Is there an comparable file for hostnames? I would like to define the hostname in my Linux and to hand it over to the guest??

All suggestions are welcomed! Thanks.

Re: Cloning VM / Hostname of guest

2. Jun 23, 2009 8:29 AM in response to: repllccax
Click to view AWo's profile Champion vExpert 4,162 posts since
Nov 27, 2003
There's an DHCP option which you can use to set the hostname: option host-name.
But I don't think you can set the Windows host name to what DHCP may offer. From this link: http://technet.microsoft.com/en-us/library/cc782411.aspx#w2k3tr_dhcp_tools_uzoj

"Host Name

This option specifies a host name for the client. In some cases, this name can also be fully qualified by appending the name value provided here with the DNS domain name, as specified in DHCP option 15. For Windows clients, this option is not supported for use when configuring the client’s host name, which is set for computers running Windows XP or Windows Server 2003 on the Computer Name tab in the System Properties dialog box on the client computer."


If you like to try it for other OS's you should enter this line in your dhcp.conf under the VMnetx section:

option host name = "name"


AWo
VCP / vEXPERT 2009

VMware Beta Programs

Want to be Considered for Future Beta Programs?

Learn More

VMware Developer

Download SDKs, APIs, videos,
training, and more in the Developer community.

Learn More

Developer
Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld
Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

Only VMware ... Delivers Nexus 1000V

Ensure consistent, policy-based network capabilities to virtual machines across your data center.

Learn More

Communities