After logging into my host, I have been trying to create a new VM using the defaults for RAM, OS, NIC ect. Any reference to the -dsikpath command for the exsisting hard drive fails.
Example:
get-vc -server 10.4.33.232 -user joe -password changeme
new--vc -name testserver
These 2 commands result in a new VM on my iscsi san, the same place that new copied fresh install hard drives are located. No combination of paths entered using the -diskpath entry to point to the exsisting hard drives will work. Failure can't find the path
INFO:
get-datacenter = ha datacenter
get datastore = datastore1
Path to drives = /raw_disks/front_end1.vmhd
Would someone be able to help me issue the "magic words"?
I think I just need to do this to do get what I want:
new-vm -name exchangefe -diskpath <need to know how to enter the path to my exsisting hard drives>
Thanks!
I think this post gives you what you need. You can add disks based on knowing the datastore name and path within the datastore.
I recommend looking at the attachment since your browser may not render the code in a copy-and-pasteable way.
Also, if that sounds like too much hassle, I believe the correct format would be something like
-diskpath "[datastorename] pathto/vmdkfile.vmdk"
I haven't tried this though, it's just a guess.
Welcome to the VMware Community forums. Your post has been moved to the VI Toolkit forum.
Dave Mishchenko
VMware Communities User Moderator