Solved

Clone vmware vm on Infrastructure client using command line

Posted on 2009-05-18
6
2,011 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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

When we have a dead host and we lose all connections to the ESXi, and we need to find a way to move all VMs from that dead ESXi host.
In this article, I will show you HOW TO: Suppress Configuration Issues and Warnings Alert displayed in Summary status for ESXi 6.5 after enabling SSH or ESXi Shell.
This video shows you how to use a vSphere client to connect to your ESX host as the root user. Demonstrates the basic connection of bypassing certification set up. Demonstrates how to access the traditional view to begin managing your virtual mac…
In this video tutorial I show you the main steps to install and configure  a VMware ESXi6.0 server. The video has my comments as text on the screen and you can pause anytime when needed. Hope this will be helpful. Verify that your hardware and BIO…

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now