You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 1, 2021. It is now read-only.
Using a fresh install of vsphere v5, i can browse with rvc and see my data store:
~ $ rvc 10.2.0.12
Install the "ffi" gem for better tab completion.
No VMRC available for OS darwin11.0
Using default username "root".
password:
VMRC is not installed. You will be unable to view virtual machine consoles. Use the vmrc.install command to install it.
/10.2.0.12/ha-datacenter/vm> cd ..
/10.2.0.12/ha-datacenter> ls
0 datastores [datastore]/
1 computers [host]/
2 networks [network]/
3 vms [vm]/
/10.2.0.12/ha-datacenter> cd datastore
/10.2.0.12/ha-datacenter/datastore> ls
0 datastore1: 994.82GB 0.1%
/10.2.0.12/ha-datacenter/datastore>
However using the ruby gem rbvmomi with the following code does not work:
vim = RbVmomi::VIM.connect(:host => HOST, :user => USER, :password => PASS, :insecure => true )
dc = vim.serviceInstance.find_datacenter(nil) or fail "datacenter not found"
puts dc.pretty_path
dataStore = dc.find_datastore("/")
puts dataStore
Output is always nil no matter what I pass to dc.find_datastore, dc.find_compute_resource(...) works as expected as does dc.find_vm(...).
Why do I need to explicitly know the exact name of the datastore beforehand? Isn't "find" a search for something? I've been un able to find a way to walk a path to derive a name...
The text was updated successfully, but these errors were encountered:
@jiqiren I just started maintaining this library and noticed this issue is 4+ years old. Is this still something you're having trouble with or can I close this?
Using a fresh install of vsphere v5, i can browse with rvc and see my data store:
However using the ruby gem rbvmomi with the following code does not work:
Output is always nil no matter what I pass to dc.find_datastore, dc.find_compute_resource(...) works as expected as does dc.find_vm(...).
Why do I need to explicitly know the exact name of the datastore beforehand? Isn't "find" a search for something? I've been un able to find a way to walk a path to derive a name...
The text was updated successfully, but these errors were encountered: