VMware Communities
incin
Contributor
Contributor

make vm start only if another is shut down

Hi

i'm wondering if there is any way to set up a vm so that it cant start if another vm is offline?

exs:

vm1 has usb 1 and 2 connected and has some software that is dependent on usb1 to work

vm2 has some software that is dependent on usb 1

make vm2 not start untill vm1 is shut down

is this possible?

Ray

0 Kudos
4 Replies
louyo
Virtuoso
Virtuoso

Well, you don't describe your environment but vmrun (in a script) should do the job:

>>vmrun -T ws list

will list the running VM's. If VM1 is not running,

>>vmrun -T ws start <path to .vmx file for VM2>

Lou

incin
Contributor
Contributor

thanks for the answer, had hoped that there was some hidden setting somewhere tho. but i can use a script if that is the only way to do it

to explain a bit more about my setup.

i have 2 vm's that both need a printer that is connected using a usb to seriel cable.

since i cant have the printer connected to both vms at the same time i need a way to only start vm2 if vm1 is shut down so that the printer automaticaly gets added to vm2.

i will try making a script for this and see if that solves my problem.

ray

0 Kudos
louyo
Virtuoso
Virtuoso

Why not just share the printer from the host or both VM's?

Lou

0 Kudos
incin
Contributor
Contributor

problem is that the printer needs to be set up to a com port on the vm's so that a software running on the vm's can connect to it.

the reason ive only got 1 printer connected is to save space around the host.

0 Kudos