VMware {code} Community
musicalDuck
Contributor
Contributor
Jump to solution

Adding a vmx to a datastore on VMWare Server 2 through VIX C API

Is what is stated in the title possible?

Alternatively is it possible to add a datastore through the VIX C API?

0 Kudos
1 Solution

Accepted Solutions
admin
Immortal
Immortal
Jump to solution

No, you must first move the virtual machine to a directory within the datastore before you can register it. VIX does not provide a way to move a virtual machine, but it shouldn't be too hard to move a directory in the OS of your choosing.

View solution in original post

0 Kudos
3 Replies
lemke
VMware Employee
VMware Employee
Jump to solution

VixHost_RegisterVM() adds a VM to a datastore. It currently doesn't allow you to specify the datastore; it uses the first one it finds.

There's no way in Vix to create a new datastore.

musicalDuck
Contributor
Contributor
Jump to solution

Is it possible to add a vmx file outside a datastore to a datastore?

0 Kudos
admin
Immortal
Immortal
Jump to solution

No, you must first move the virtual machine to a directory within the datastore before you can register it. VIX does not provide a way to move a virtual machine, but it shouldn't be too hard to move a directory in the OS of your choosing.

0 Kudos