• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

UnixArena

  • Home
  • kubernetes
  • DevOps
    • Terraform
    • Jenkins
    • Docker
    • Openshift
      • OKD
    • Ansible engine
    • Ansible Tower
      • AWX
    • Puppet
  • Cloud
    • Azure
    • AWS
    • Openstack
    • Docker
  • VMware
    • vCloud Director
    • VMware-Guests
    • Vcenter Appliance 5.5
    • vC OPS
    • VMware SDDC
    • VMware vSphere 5.x
      • vSphere Network
      • vSphere DS
      • vShield Suite
    • VMware vSphere 6.0
    • VSAN
    • VMware Free Tools
  • Backup
    • Vembu BDR
    • Veeam
    • Nakivo
    • Azure Backup
    • Altaro VMBackup
    • Spinbackup
  • Tutorials
    • Openstack Tutorial
    • Openstack Beginner’s Guide
    • VXVM-Training
    • ZFS-Tutorials
    • NetApp cDot
    • LVM
    • Cisco UCS
    • LDOM
    • Oracle VM for x86
  • Linux
    • How to Articles
    • Q&A
    • Networking
    • RHEL7
  • DevOps Instructor-led Training
  • Contact

Host cannot prepare – vCloud Director agent installation

July 18, 2014 By Cloud_Devops 1 Comment

This article is going to demonstrate how we can resolve  VMware vCloud agent installation issue on ESXi 5.5 servers. When you add an clustered  ESXi hosts to vCloud Director , you have to prepare the host before a provider vDC can use its resources. During the preparation, vCloud director tries to install vCloud agent on ESXi hosts but sometimes it fails with error saying that “host cannot prepare”  . In this kind of situation , please follow the below steps to get it resolved.

1. The below snapshot shows that unable to prepare the host for vDC and failed due to time out.

Error host cannot prepare vcloud director 1
Error host cannot prepare vcloud director 1

2. Login to vSphere client. Right click the ESXi host and select “Enter maintenance mode” .

Put the ESXi in Maintenance Mode.
Put the ESXi in Maintenance Mode.

3.Confirm the Maintenance mode.

Confirm the maintenance mode 3
Confirm the maintenance mode 3

4.Click on the recent tasks to see whether the host has been put in maintenance mode or not.

Verify from recent tasks
Verify from recent tasks

5. Login to the vCloud director . Click the Manage & Monitor tab and click hosts. Right-click the host name and select Prepare Host.

Try to prepare the host from vcloud director
Try to prepare the host from vCloud director

6.You have to authenticate the ESXi host to install the vCloud agent on it.

Enter the root credntials of  ESXi Host
Enter the root credentials of ESXi Host

7.Check in the recent tasks to see the vCloud agent installation status.

vCloud director is installing vCloud agent on ESXi
vCloud director is installing vCloud agent on ESXi

8.Once the agent has been installed,you will get host status like below. System was not ready because we have put the host in maintenance mode.

Cloud agent installed but host is not ready
Cloud agent installed but host is not ready

9.Go back to vSphere client  and remove the maintenance flag for that ESXi host.

Exit maintenance mode
Exit maintenance mode

10.Go back to vCloud Director portal and check the host status. Host must be available and ready for cloud provisioning .

Final status
Final status

We are back !!!  vCloud agent installation fails when ESXI host was buys and unable to make itself in maintenance mode. (Probably due to running VM’s). In that case, you manually migrate the running VM’s to another ESXi host and tried to install. If that also fails, then you try to install using the above method .

Hope this article is informative to you .

Share it ! Comment it !! Be Sociable !!!

Filed Under: vCloud Director Tagged With: vcloud

Reader Interactions

Comments

  1. amine fennane says

    December 13, 2021 at 9:58 pm

    thanks a lot, it was very helpfull article,

    i create a home lab using your methode , and this article save me a day of troubleshooting 😀

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Follow UnixArena

  • Facebook
  • LinkedIn
  • Twitter

Copyright © 2025 · UnixArena ·

Go to mobile version