[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-API] Constructors and Destructors on classes



Hi

Does a constructor on class VM just create an instance of the class in Xen's memory or does it actually provision a new VM and conversely, what does a destructor do, delete the VM class instance from memory or destroy a virtual machine?

Well 'create' creates the representation in xend, and then when you call 'start' it starts that domain. That should all be working. I think, after you have shutdown a domain, the destructor deletes its representation within xend.

The class "host" and "host_cpu" also have create and destroy methods on them and since you can't create and destroy a physical host or a physical cpu, I am guessing that the answer to my question above for VMs is that the create and destroy methods just instantiate and destroy a class instance and do not actually cause the provisioning and decommissioning of a virtual machine.

I don't see host create in the latest api spec, it you look in the repository. And host_cpu create is not implemented. Not sure it should be in there...

Cheers

Tom

Gurus, kindly explain..

Thanks,
Hetal

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api


_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.