VMware Communities
samansalehi
Enthusiast
Enthusiast

How to set VM in startup with windows server 2008? VM of VMware Workstation 7.1

I have a VM and i want to it starts automathically when the Host(win server 2008) restarte, How can i do it?

0 Kudos
5 Replies
a_p_
Leadership
Leadership

You could try to achieve this by using vmrun in either a start script or a scheduled task.

e.g. vmrun -T ws start "c:\my VMs\myVM.vmx"

type vmrun /? for details.

I'd also suggest you add msg.autoAnswer = "TRUE" to the VM's vmx file to make sure the VM does not start due to a prompt and waiting for an answer.

see http://sanbarrow.com/vmx/vmx-advanced.html

André

0 Kudos
samansalehi
Enthusiast
Enthusiast

I try what you said, but it does not work.

i check this link too, but there is no way without hacking the server.

is there anybody has a better solution?

0 Kudos
a_p_
Leadership
Leadership

How exactly did you try it?

Did the vmrun command execute at all? Anything in the event logs or vmware logs?

In case of a scheduled task, you may need to provide the full path to the executable and run the task under a user account with sufficient privileges.

André

0 Kudos
samansalehi
Enthusiast
Enthusiast

I think i can do it, but i did not create any task, how can i create a task in windows 2008?

0 Kudos
a_p_
Leadership
Leadership

You can create scheduled tasks in the GUI or using the schtasks command on the command line.

see http://technet.microsoft.com/en-us/library/cc748993.aspx

André

0 Kudos