Skip navigation
VMware

This Question is Answered (go to answer)

2 "helpful" answers available (6 pts)
143 Views 8 Replies Last post: Feb 24, 2012 9:01 AM by nielse RSS
markdjones82 Enthusiast 85 posts since
Nov 19, 2006
Currently Being Moderated

Feb 23, 2012 11:35 AM

Specify DRS cluster in new-vm

Is there a way to specify only a DRS cluster and have it place a VM isntead of having to specify a host?

LucD Guru User Moderators vExpert 9,015 posts since
Oct 31, 2005
Currently Being Moderated
1. Feb 23, 2012 11:42 AM in response to: markdjones82
Re: Specify DRS cluster in new-vm

Yes, by using the ResourcePool parameter on the New-VM cmdlet.

Blog: http://lucd.info | Twitter: @LucD22 | Book co-author: http://powerclibook.com
Zsoldier Hot Shot vExpert 241 posts since
Sep 22, 2006
Currently Being Moderated
3. Feb 23, 2012 1:43 PM in response to: markdjones82
Re: Specify DRS cluster in new-vm

Just to make sure you have the command correct, it should look like this:

 

new-vm -name nameofvm -resourcepool (get-cluster nameofDRSenabledcluster)

Chris Nakagaki (中垣浩一) Blog: http://tech.zsoldier.com Twitter: @zsoldier
LucD Guru User Moderators vExpert 9,015 posts since
Oct 31, 2005
Currently Being Moderated
5. Feb 24, 2012 6:20 AM in response to: markdjones82
Re: Specify DRS cluster in new-vm

Which version are your running ?

Get-PowerCLIVersion

Go for the latest 5.0.1

Blog: http://lucd.info | Twitter: @LucD22 | Book co-author: http://powerclibook.com
nielse Hot Shot vExpert 284 posts since
Mar 29, 2011
Currently Being Moderated
8. Feb 24, 2012 9:01 AM in response to: markdjones82
Re: Specify DRS cluster in new-vm

Is your FQDN correct? Seeing FullyQualifiedErrorId errors

@nielsengelen - http://foonet.be - VCP4/5

Bookmarked By (0)

Share This Page

Communities