Solved

Clone vmware vm on Infrastructure client using command line

Posted on 2009-05-18
6
2,039 Views
Last Modified: 2012-06-27
Hi,

We have VMWare infrastructure client installed on Windows 2003. Within we have two VM storages which are two other machines.

Is there a way to clone a machine from one storage to the other storage?
Without turning off the source VM?
Able to overwrite or pre-delete the target VM?
Done via command line or something similar? (my background is .net programmer). I don't know perl or unix.

This is for disaster recovery.

I am not an expert on the setup but if you have any questions, i will answer or ask someone else that may know.

thank you.
0
Comment
Question by:Valimai
6 Comments
 
LVL 6

Assisted Solution

by:MikeGGG
MikeGGG earned 165 total points
ID: 24420725
0
 
LVL 13

Accepted Solution

by:
3nerds earned 170 total points
ID: 24422184
Valimai,

What MikeGGG gave you is a very good starting place if you truely need command line.

You can install the infrastructure client on other machines making GUI administration possible even if the 2003 server would fail. Also if you look at the scheduled tasks area of the VI client you will see that you can do a lot of what you are looking for with out having to touch the command line.

Just trowing out there a second option from someone administering a similar setup.

Good Luck,

3nerds
0
 
LVL 6

Expert Comment

by:MikeGGG
ID: 24422256
3nerds
very nice idea! I am only not sure if he will be able to do it regarding to which licensed options he has and if these options are depending from license....
0
Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

 
LVL 13

Expert Comment

by:3nerds
ID: 24422341
Very True Mike! Licensing is always a kill joy =)

Worst case he could connect directly to the vm hosts with the vi client if the vcms server died but then again he may want true command line scripts for some of the DR tasks. Some like the gui others more comfortable with Linux like the console. Although I hear the console is being taken from us in version 4... that should make it interesting.

Good Luck,

3Nerds
0
 
LVL 11

Assisted Solution

by:jfields71
jfields71 earned 165 total points
ID: 24422537
The VMware VI Toolkit is pretty powerful and is how scripting is evolving in this arena:
http://blogs.vmware.com/vipowershell/. It uses Windows Powershell scripting.  

Discussion on live cloning through vCenter and scripting:
http://communities.vmware.com/thread/177867
0
 
LVL 1

Author Comment

by:Valimai
ID: 24428471
hello and thank you all for your comments, most excellent posts and discussion while i was alseep in Aussie land.

I used the scheduled task method and it worked except that it does not ovewrite if the VM already exists. I did not see a way to do the delete.

During the above testing, the network team decided not to go the way of the clone! So sorry I could not verify if any of your comments are the solution. I will add this post to my knowledge base if the requirement comes up again.

So I have decided to award points equally.

cheers,
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
This article outlines why you need to choose a backup solution that protects your entire environment – including your VMware ESXi and Microsoft Hyper-V virtualization hosts – not just your virtual machines.
Teach the user how to convert virtaul disk file formats and how to rename virtual machine files on datastores. Open vSphere Web Client: Review VM disk settings: Migrate VM to new datastore with a thick provisioned (lazy zeroed) disk format: Rename a…
Teach the user how to configure vSphere Replication and how to protect and recover VMs Open vSphere Web Client: Verify vsphere Replication is enabled: Enable vSphere Replication for a virtual machine: Verify replicated VM is created: Recover replica…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question