VMware Cloud Community
nguyenhungsonui
Contributor
Contributor
Jump to solution

Auto Deploy vSphere ESXi 5.1

Dear all,

When I create an image profile and assign it to Auto Deploy. I add a network based software depot instead for adding "offline depot" from Vmware.

I use cmdlet: Add-EsxSoftwareDepot https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml

I built a base image : New-DeployRule –Name “Test” –Item “ESXi-5.0.0-799733-standard” –Pattern “model=VMware Virtual Platform”

Then active the depot rule: Add-DeployRule -DeployRule Test

http://www.tinyuploads.com/images/GXy4zb.jpg

But when I boot ESXi host, the host display "there are no ESXi image associated with this host

http://www.tinyuploads.com/images/Cjb4Mu.jpg

I don't know this problem. Please give me some suggestion to resolve that.

Many thanks.

0 Kudos
1 Solution

Accepted Solutions
Gleed
VMware Employee
VMware Employee
Jump to solution

Yes, it's the name of the host you want to boot using Auto Deploy.  Yes, the software packages (VIBs) you see getting uploaded to the Auto Deploy server when you run the "new-depoyrule" cmdlet is the same as the ISO.  Here's what I would suggest you do:

Deactivate your existing rule:

PowerCLI C:\> Remove-DeployRule Test

Import the software depot (with the default image profiles):

PowerCLI C:\> Add-EsxSoftwareDepot https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml

Create a new deploy rule that will apply to all hosts:

PowerCLI C:\> New-DeployRule –Name “Default-Image” –Item “ESXi-5.0.0-799733-standard” –AllHosts

Add the new rule to the active ruleset:

PowerCLI C:\> Add-DeployRule Default-Image


Update the Auto Deploy cache for any existing hosts:

PowerCLI C:\> foreach ($esx in Get-VMHost) {$esx | test-deployrulesetcompliance | Repair-DeployRuleSetCompliance}

Then try to reboot the host.

View solution in original post

0 Kudos
8 Replies
jdptechnc
Expert
Expert
Jump to solution

nguyenhungsonuit wrote:

Dear all,

When I create an image profile and assign it to Auto Deploy. I add a network based software depot instead for adding "offline depot" from Vmware.

I use cmdlet: Add-EsxSoftwareDepot https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml

I built a base image : New-DeployRule –Name “Test” –Item “ESXi-5.0.0-799733-standard” –Pattern “model=VMware Virtual Platform”

Then active the depot rule: Add-DeployRule -DeployRule Test

http://www.tinyuploads.com/images/GXy4zb.jpg

But when I boot ESXi host, the host display "there are no ESXi image associated with this host

http://www.tinyuploads.com/images/Cjb4Mu.jpg

I don't know this problem. Please give me some suggestion to resolve that.

Many thanks.

I believe you are missing a step.  Once you add the ESXSoftwareDepot, you should then extract the image profile from the depot to a new Image Profile object, and add a Deploy Rule for the Image Profile.


For Example:

Add-EsxSoftwareDepot https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml

New-ESXImageProfile -CloneProfile "ESXi-5.0.0-799733-standard" -name "MyImage"

new-deployrule -name "MyImageRule" -item "MyImage"  -allhosts

add-deployrule -deployrule "MyImageRule"

You can add deploy rules to assign hosts to a specific cluster, or use patterns to match certain hosts, as you probably know already.

Please consider marking as "helpful", if you find this post useful. Thanks!... IT Guy since 12/2000... Virtual since 10/2006... VCAP-DCA #2222
Gleed
VMware Employee
VMware Employee
Jump to solution

There's no need/requirement to create a new image profile, you can use the default image profiles provided in the depot.

nguyenhungsonui
Contributor
Contributor
Jump to solution

Hi Greed,

What's about <name of host>, is it the name of host we want to boot using Auto Deploy? And how can we use the default image profiles? When I run the command: New-DeployRule –Name “Test” –Item “ESXi-5.0.0-799733-standard” –Pattern “model=VMware Virtual Platform”, I see it download many files, do they similar to iso file that used to install ESXi host?

Many thanks

0 Kudos
nguyenhungsonui
Contributor
Contributor
Jump to solution

Hi jdptechnc,

I've followed your instruction, but I still can't boot the ESXi host with same error " no image profile is associated with it".

Many thanks for your suggestion

0 Kudos
Gleed
VMware Employee
VMware Employee
Jump to solution

Yes, it's the name of the host you want to boot using Auto Deploy.  Yes, the software packages (VIBs) you see getting uploaded to the Auto Deploy server when you run the "new-depoyrule" cmdlet is the same as the ISO.  Here's what I would suggest you do:

Deactivate your existing rule:

PowerCLI C:\> Remove-DeployRule Test

Import the software depot (with the default image profiles):

PowerCLI C:\> Add-EsxSoftwareDepot https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml

Create a new deploy rule that will apply to all hosts:

PowerCLI C:\> New-DeployRule –Name “Default-Image” –Item “ESXi-5.0.0-799733-standard” –AllHosts

Add the new rule to the active ruleset:

PowerCLI C:\> Add-DeployRule Default-Image


Update the Auto Deploy cache for any existing hosts:

PowerCLI C:\> foreach ($esx in Get-VMHost) {$esx | test-deployrulesetcompliance | Repair-DeployRuleSetCompliance}

Then try to reboot the host.

0 Kudos
nguyenhungsonui
Contributor
Contributor
Jump to solution

Many thanks to Greed

The real problems is I haven't really absorbed about vSphere CLI. I have just began searching out CLI so I have many problems. Thank you for your all helpful knowledge.

0 Kudos
SantoshBarve
Contributor
Contributor
Jump to solution

Dear Friend

Please help me on following error..

error.JPG

0 Kudos
nguyenhungsonui
Contributor
Contributor
Jump to solution

Hi SantoshBarve,

Can you  give more information about your problems. Then we will discuss together

0 Kudos