2009/10/28 Daniel P. Berrange <berrange(a)redhat.com>:
On Wed, Oct 28, 2009 at 09:08:56PM +0100, Matthias Bolte wrote:
> In order to register a new virtual machine the ESX driver needs to upload
> a VMX file to a datastore. Try to put this file beside the main VMDK file
> of the virtual machine. Change the disk selection for datastore detection
> to choose the first file-based harddisk instead of just the first disk.
> The first disk may be a CDROM disk and ISO images are normaly not located
> in the virtual machine's directory.
Is there anything you can do in the case of a VM without any disks
besides reporting the error ? It might be needed if someone creates
a disk-less VM - eg so they can use iSCSI or NFS based root filesystem
The current domain XML format has no place to specify where to put the
VMX file, so I try to deduce the path from the disk file paths. Yes
this doesn't work for disk-less VM's. One could add a new element to
the domain XML that specifies the datastore path for the VMX file.
Matthias