VMware Communities > VMTN > VMware Infrastructure™ > VI: ESXi 3.5 > Discussions

This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
4 Replies Last post: Jan 15, 2009 11:12 PM by Dave.Mishchenko
Reply

how to enable VM autostart using RCLI command?

Jan 14, 2009 5:50 PM

Click to view QucickSand's profile Novice QucickSand 14 posts since
Apr 5, 2006

Hi,

I manage my VMs on ESX3i u3 hosts exclusively using RCLI commands. When I create a new VM, it won't autostart when esxi host is rebooted. I need to find out what RCLI command(s) to use to enable AUTOSTART for newly created VM.

Thanks!

Reply Re: how to enable VM autostart using RCLI command? Jan 14, 2009 9:42 PM
Click to view Dave.Mishchenko's profile Guru Dave.Mishchenko 8,863 posts since
Nov 15, 2005
Moderator
I haven't seen that you could do that with the RCLI but you might want to look at this vi-toolkit script - http://communities.vmware.com/message/827789#827789 or this perl sample - http://communities.vmware.com/docs/DOC-1003
Reply Re: how to enable VM autostart using RCLI command? Jan 14, 2009 9:44 PM
Click to view Dave.Mishchenko's profile Guru Dave.Mishchenko 8,863 posts since
Nov 15, 2005
Moderator
I manage my VMs on ESX3i u3 hosts exclusively using RCLI commands.

PS - Just curious as to why you're doing that.
Reply Re: how to enable VM autostart using RCLI command? Jan 15, 2009 10:34 AM
in response to: Dave.Mishchenko
Click to view QucickSand's profile Novice QucickSand 14 posts since
Apr 5, 2006

Thanks for the pointers, but we are using redhat servers, so PowerShell scripts are no use to me :(, while that perl script only prints out current autostart settings, not how to modify it.

I am evaluating ESXi server to work with a third party management tool, which will manage creation/register/unregister/deletion and start/stop of VMs using RCLI commands. When new VM gets created, its autostart parameters are in MANUAL START catagory by default, so I need a comand to move new VMs into AUTOSTART catagory.

Reply Re: how to enable VM autostart using RCLI command? Jan 15, 2009 11:12 PM
in response to: QucickSand
Click to view Dave.Mishchenko's profile Guru Dave.Mishchenko 8,863 posts since
Nov 15, 2005
Moderator
It may not fit into your plans, but VMware has an appliance that includes the VI Perl Toolkit. The file you would look at editing is /etc/vmware/hostd/vmAutoStart.xml.

http://www.vmware.com/support/developer/vima/

Message was edited by: Dave.Mishchenko - added link
Actions