Closed barn closed 13 years ago
You need to specify a path to the resource pool, not just its name. For example:
/soko.puppetlabs.lan/ha-datacenter> vm.create --pool vm/sol-10-u9-ga-x86/resourcePool --datastore ~/datastore/datastore1 vm/newvm
Note that the path you create the new VM at needs to be in a VM folder.
Creating a VM is pretty complicated in RVC right now since there are so many options required for vm.create. I've been thinking about adding a wizard-like interface to make this easier.
Its not working for me either, im specifying full paths and still get errors:
/192.168.5.20> vm.create -p bravo/host/drpepper/resourcePool/pools/dev/ -d bravo/datastore/datastore1 moshe Expected Folder but got RbVmomi::VIM at "."
Excerpts from narkisr's message of 2011-05-18 07:36:33 -0400:
/192.168.5.20> vm.create -p bravo/host/drpepper/resourcePool/pools/dev/ -d bravo/datastore/datastore1 moshe Expected Folder but got RbVmomi::VIM at "."
You've given a relative path "moshe" to the VM to be created. That path needs to be under a VM folder. "bravo/vm/moshe" will work.
Perfect, got it. (as you're probably aware).
Thanks!
It cannot seem to find our resourcePools. If I look at an existing one. It has entitled 'foo'
''' /soko.puppetlabs.lan/ha-datacenter> ls vm/sol-10-u9-ga-x86/ 0 host soko.puppetlabs.lan: cpu 2_12_2.67 GHz, memory 25.00 GB 1 resourcePool [foo]: cpu 0.00/-0.00/normal, mem 0.00/-0.00/normal ''''
However, when I try and use said pool, I get an error:
''' /soko.puppetlabs.lan/ha-datacenter> vm.create --pool foo newvm Not found: "foo" '''
Either I'm not using it right, or it doesn't like my VMware system. ''' [ben@natty:~]% /var/lib/gems/1.8/bin/rvc --version Install the "ffi" gem for better tab completion. 1.3.6 [ben@natty:~]% uname -a Linux natty 2.6.38-8-server #42-Ubuntu SMP Mon Apr 11 03:49:04 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux [ben@natty:~]% gem env RubyGems Environment: