Matthew Barr
2013-03-18 22:50:09 UTC
I'm attempting to make heads & tails of the docs, and it's.. not easy as a newer person to Ruby.
I'm attempting to clone a template into a VM in Vsphere as a first step, and retrieve it's mac address.
I've found a few pointers to such actions online, from different source & era's, and they conflict.
The best I can see is that something like this should clone the machine, and then I can get it's data without issue.
I'm not sure how to define which cluster/ host / datastore will receive the new VM, which I'm guessing is part of the problem.
----
f=Fog::Compute.new(:provider => "Vsphere" )
instance_list = f.servers.all
instance_list.table([:name, :uuid]) #optional
new_vm=f.vm_clone( 'name' => 'NEWVM_NAME', 'datacenter' => 'DCName', 'template_path => '/Datacenter/Name/dir name')
----
Trying to read the rdoc's are leading me in circles. It might be the collections which I haven't yet wrapped my head around, but I just don't see a list of functions that each object would have anywhere :(
(I'm hoping to add these to the Fog documentation for how to do specific activities in different providers, once I get it working :)
Thanks!
Matthew Barr
E: mbarr-q2pkGsKyZe6Kf2Id4j40wVaTQe2KTcn/@public.gmane.org
AIM: matthewbarr1
c: (646) 727-0535
I'm attempting to clone a template into a VM in Vsphere as a first step, and retrieve it's mac address.
I've found a few pointers to such actions online, from different source & era's, and they conflict.
The best I can see is that something like this should clone the machine, and then I can get it's data without issue.
I'm not sure how to define which cluster/ host / datastore will receive the new VM, which I'm guessing is part of the problem.
----
f=Fog::Compute.new(:provider => "Vsphere" )
instance_list = f.servers.all
instance_list.table([:name, :uuid]) #optional
new_vm=f.vm_clone( 'name' => 'NEWVM_NAME', 'datacenter' => 'DCName', 'template_path => '/Datacenter/Name/dir name')
----
Trying to read the rdoc's are leading me in circles. It might be the collections which I haven't yet wrapped my head around, but I just don't see a list of functions that each object would have anywhere :(
(I'm hoping to add these to the Fog documentation for how to do specific activities in different providers, once I get it working :)
Thanks!
Matthew Barr
E: mbarr-q2pkGsKyZe6Kf2Id4j40wVaTQe2KTcn/@public.gmane.org
AIM: matthewbarr1
c: (646) 727-0535
--
You received this message because you are subscribed to the Google Groups "ruby-fog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-fog+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "ruby-fog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-fog+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.