Remote Desktop Service - The VMHostAgent service timed out while waiting ...

Ming Cheung 20 Reputation points
2024-07-04T04:49:44.1733333+00:00

I have deployed Virtualization Host without error.

and has ready a golden win 10 syspreped vm, gen 1 and gen 2 both tried

but when creating collection pooled, auto create & Manage, it errors

"Failed: The VMHostAgent service timed out while waiting for the newly provisioned cirtual desktop to start"..

hyper v see a VM is created, domain joined, computer object is in AD

Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,368 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Mansoob e Zahra 155 Reputation points
    2024-07-06T08:32:15.64+00:00

    It looks like you're setting up a pooled collection of virtual desktops using a Virtualization Host and encountering issues with the newly provisioned virtual desktops starting. Here are some steps you can take to troubleshoot and resolve this issue:

    Check VMHostAgent Service

    1. Service Status: Ensure the VMHostAgent service is running on the virtualization host.
    2. Logs: Check the event logs for any errors related to the VMHostAgent service.

    Hyper-V Configuration

    1. Integration Services: Verify that the Hyper-V Integration Services are properly installed and updated on the golden image.
    2. Network Configuration: Ensure the virtual network is correctly configured and the VMs can communicate with the necessary network resources, including the domain controller.

    VM Configuration

    1. Generation Compatibility: Ensure that the settings in your pooled collection configuration match the generation of the golden image VM (Gen 1 or Gen 2).
    2. Sysprep State: Verify that the golden image has been sysprepped correctly. Sometimes sysprep issues can lead to problems during VM provisioning.

    Domain Join Issues

    1. AD Computer Objects: Verify that the computer objects in Active Directory are properly created and there are no conflicts or issues with duplicate names.
    2. DNS Configuration: Ensure that DNS settings are correctly configured and the VMs can resolve domain names properly.

    Remote Desktop Services Configuration

    1. RD Connection Broker: Ensure that the RD Connection Broker is properly configured and able to communicate with the virtualization host.
    2. Licensing: Verify that you have the appropriate RDS licensing in place and there are no issues related to licensing that might prevent the VMs from starting.

    Logs and Diagnostics

    1. Event Viewer: Check the Event Viewer on both the virtualization host and the newly created VMs for any relevant error messages.
    2. RDS Deployment Logs: Review the RDS deployment logs for any clues about why the VM fails to start.

    General Troubleshooting Steps

    1. Manual VM Start: Try to manually start one of the VMs that failed to provision and see if it starts up correctly.
    2. Permissions: Ensure that the account used for provisioning VMs has the necessary permissions on the virtualization host and in Active Directory.

    Here’s a more detailed process to check some of these areas:

    Step-by-Step Process

    Check VMHostAgent Service:

    • On the virtualization host, open Services (services.msc) and ensure the VMHostAgent service is running.
      • Check the service's status and logs for any errors or warnings.
      Verify Network Configuration:
      - Open **Hyper-V Manager** and check the virtual switch settings.
      
         - Ensure that the VMs have network connectivity and can communicate with the domain controller.
      
         **Review Hyper-V Logs**:
      
            - Open **Event Viewer** on the Hyper-V host and navigate to **Applications and Services Logs** > **Microsoft** > **Windows** > **Hyper-V-VMMS**.
      
               - Look for any errors or warnings that might indicate why the VM is not starting correctly.
      
               **Check AD and DNS**:
      
                  - Open **Active Directory Users and Computers** and verify the computer objects for the new VMs.
      
                     - Check DNS entries to ensure the VMs have the correct DNS records.
      
                     **Manual VM Start**:
      
                        - Open **Hyper-V Manager**, select one of the newly created VMs, and attempt to start it manually.
      
                           - Observe any errors or issues that occur during the startup process.
      
                           **Review RDS Deployment Logs**:
      
                              - Open **Server Manager** and navigate to **Remote Desktop Services**.
      
                                 - Review the deployment logs for any errors related to the VM provisioning process.
      
    1. Permissions and Licensing:
    • Ensure the account used for RDS deployment has the necessary permissions in both Hyper-V and Active Directory.
      • Verify that your RDS licensing is configured correctly and there are no issues with license availability.It looks like you're setting up a pooled collection of virtual desktops using a Virtualization Host and encountering issues with the newly provisioned virtual desktops starting. Here are some steps you can take to troubleshoot and resolve this issue: Check VMHostAgent Service
        1. Service Status: Ensure the VMHostAgent service is running on the virtualization host.
        2. Logs: Check the event logs for any errors related to the VMHostAgent service.
        Hyper-V Configuration
        1. Integration Services: Verify that the Hyper-V Integration Services are properly installed and updated on the golden image.
        2. Network Configuration: Ensure the virtual network is correctly configured and the VMs can communicate with the necessary network resources, including the domain controller.
        VM Configuration
        1. Generation Compatibility: Ensure that the settings in your pooled collection configuration match the generation of the golden image VM (Gen 1 or Gen 2).
        2. Sysprep State: Verify that the golden image has been sysprepped correctly. Sometimes sysprep issues can lead to problems during VM provisioning.
        Domain Join Issues
        1. AD Computer Objects: Verify that the computer objects in Active Directory are properly created and there are no conflicts or issues with duplicate names.
        2. DNS Configuration: Ensure that DNS settings are correctly configured and the VMs can resolve domain names properly.
        Remote Desktop Services Configuration
        1. RD Connection Broker: Ensure that the RD Connection Broker is properly configured and able to communicate with the virtualization host.
        2. Licensing: Verify that you have the appropriate RDS licensing in place and there are no issues related to licensing that might prevent the VMs from starting.
        Logs and Diagnostics
        1. Event Viewer: Check the Event Viewer on both the virtualization host and the newly created VMs for any relevant error messages.
        2. RDS Deployment Logs: Review the RDS deployment logs for any clues about why the VM fails to start.
        General Troubleshooting Steps
        1. Manual VM Start: Try to manually start one of the VMs that failed to provision and see if it starts up correctly.
        2. Permissions: Ensure that the account used for provisioning VMs has the necessary permissions on the virtualization host and in Active Directory.
        Here’s a more detailed process to check some of these areas: Step-by-Step Process
        1. Check VMHostAgent Service:
          • On the virtualization host, open Services (services.msc) and ensure the VMHostAgent service is running.
          • Check the service's status and logs for any errors or warnings.
        2. Verify Network Configuration:
          • Open Hyper-V Manager and check the virtual switch settings.
          • Ensure that the VMs have network connectivity and can communicate with the domain controller.
        3. Review Hyper-V Logs:
          • Open Event Viewer on the Hyper-V host and navigate to Applications and Services Logs > Microsoft > Windows > Hyper-V-VMMS.
          • Look for any errors or warnings that might indicate why the VM is not starting correctly.
        4. Check AD and DNS:
          • Open Active Directory Users and Computers and verify the computer objects for the new VMs.
          • Check DNS entries to ensure the VMs have the correct DNS records.
        5. Manual VM Start:
          • Open Hyper-V Manager, select one of the newly created VMs, and attempt to start it manually.
          • Observe any errors or issues that occur during the startup process.
        6. Review RDS Deployment Logs:
          • Open Server Manager and navigate to Remote Desktop Services.
          • Review the deployment logs for any errors related to the VM provisioning process.
        7. Permissions and Licensing:
          • Ensure the account used for RDS deployment has the necessary permissions in both Hyper-V and Active Directory.
          • Verify that your RDS licensing is configured correctly and there are no issues with license availability.
    0 comments No comments