Skip navigation
VMware

This Question is Answered (go to answer)

2,263 Views 6 Replies Last post: Apr 3, 2007 9:33 AM by jgamble RSS
NetJunkie Novice 3 posts since
Oct 27, 2005
Currently Being Moderated

Apr 2, 2007 9:39 AM

Creating templates without VirtualCenter Server?

We have a single installation of ESX v3.  We want to create template servers.  Can we do that manually without VirtualCenter Server?  We don't have the budget to add a $4500 license for that just for a single server.

mbrkic Hot Shot 170 posts since
Sep 15, 2005
Currently Being Moderated
1. Apr 2, 2007 5:47 PM in response to: NetJunkie
Re: Creating templates without VirtualCenter Server?

What do you mean by 'template servers'? Even with VCenter templates are vms that have the config file renamed to .vmtx (instead of .vmx) and are not registered, so they cannot be started up. You can create a VM to your specs, unregister it and call it a template...

 

Deploying templates with VCenter integrates sysprep (if you are running Windows VMs) into the deployment process, which is convenient, but you can put sysprep on your template as well so it runs mini setup, or whatever it is called when it boots for the first time.

 

What functionality are you looking to get?

ilatimer Hot Shot 194 posts since
Dec 18, 2004
Currently Being Moderated
2. Apr 2, 2007 6:55 PM in response to: NetJunkie
Re: Creating templates without VirtualCenter Server?

Basically you create a VM and load the OS, related patches and VMware tools. You then load sysprep on the VM and generate your answer file. When you are done run sysprep in the VM and have it shutdown the VM. You can now use this VM's vmdk file as a template for other VMs by exporting this vmdk file to a folder such as a templates folder on the local ESX VMFS volume. To use the template just do the following:

 

\- Create new VM and then delete the vmdk file

\- Import the vmdk file from the templates folder to the new VMs folder (same name as the one you deleted)

\- Power on the New VM and let sysprep run the mini setup

\- You should now have a new VM pre-configured and ready to go

MR-T Champion 4,144 posts since
Apr 19, 2005
Currently Being Moderated
4. Apr 3, 2007 7:22 AM in response to: NetJunkie
Re: Creating templates without VirtualCenter Server?

You don't have the same file management capabilities in the VI client as you did with the ESX 2.5 MUI.

 

The type of thing you're taking about needs to take place from the CLI or through a third party product.

ilatimer Hot Shot 194 posts since
Dec 18, 2004
Currently Being Moderated
5. Apr 3, 2007 7:22 AM in response to: NetJunkie
Re: Creating templates without VirtualCenter Server?

There is no way to do it from the VI Client without VirtualCenter, so you would need to do it from the command line of the ESX host.

jgamble Lurker 1 posts since
Jan 8, 2007
Currently Being Moderated
6. Apr 3, 2007 9:33 AM in response to: NetJunkie
Re: Creating templates without VirtualCenter Server?

You are basically in the same boat as I am.  We have one ESX server and no budget for VC. 

 

You can use the VMware converter (http://www.vmware.com/download/converter/) to clone an existing VM that's on the ESX server.  If fact I just wrote instructions for our staff on how to do it. Here's an abbrieviated version:

 

1. Start VM Converter program.

2. Choose to Import Machine. The converter wizard will start.

3. Source is an "ESX server or VC Virtual Machine"

4. Login w/ your VIC username and password

5. Choose to import the virtual machine. This is the VM you wish to clone and it needs to be powered off. 

6. Select the maintain disk size for standard builds or resize the disk for custom applications (add-on disk can be created later)

7. Destination is an ESX Server VM

8. Login w/ your VIC username and password

9. Name the VM host something descriptive including the OS and type of Application installed (this is a descriptive name in the VI client or virtual center, not the computer name)

10. Choose a location (or resource pool) for the VM (this can be changed later)

11. Choose a datastore for the location of the new VM's files

12. Initially choose to NOT connect the NIC at Power On

13. Choose to install VMWare Tools & Customize the identity

14. Name the Computer (Network Name) according to IT standard naming conventions. 

Check - Generate New SID.  You'll also need the sysprep files from Microsoft (if it's a Windows box).

15. Leave product ID blank. Check - Include Server License Info.  Choose your license mode.

16. Choose your Timezone

17. Typically our servers are given static IPs. Customize the IP Address to the prescribed IP address by the IT Department.  Currently VM's are given static IPs. Consult the Network Admin to allocate an IP address.

18. Initially add the Server to WORKGROUP. Once it is on-line and fully configured we will move it to the corporate domain

19. Uncheck Power On VM after creation

20. Click finish

21. Creating the new machine takes approximately 25-35 minutes.

22. The VM will show up in the inventory of the VI Client (VIC)

23. In VIC, open a console to the new VM and power it On

24. Let it run for about five minutes while the sysprep takes place, don't attempt to login until the sysprep process is complete.

25. The server will then restart. 

26. The server is now provisioned and only needs to be moved into the corporate domain when it is ready to be deployed.

 

Hope this was able to help.  It's been my routine since we deployed our ESX server last month.

 

~jeff

Bookmarked By (0)

Share This Page

Communities