Sakthi's Blogs

Tag: linux

  • Microsoft RDS Configuration and Operations Guide

    ๐Ÿ”ง 1. Introduction to RDS

    Remote Desktop Services (RDS) allows users to connect to centralized desktops and applications from remote locations. It enables:

    • Centralized management of desktops and apps
    • Improved security and compliance
    • Reduced hardware costs using thin clients

    ๐Ÿ“‹ 2. RDS Deployment Overview

    Key RDS Roles:

    RoleDescription
    RD Session Host (RDSH)Hosts Windows-based programs or the full desktop
    RD LicensingManages RDS Client Access Licenses (CALs)
    RD Connection BrokerManages user sessions and load balancing
    RD Web AccessProvides a web portal for users to access RemoteApps and desktops
    RD GatewayProvides secure access via HTTPS over the Internet

    โš™๏ธ 3. Prerequisites

    • Windows Server (2016, 2019, or 2022)
    • Domain-joined servers (Active Directory environment)
    • Proper RDS CALs
    • Static IP and hostname for each RDS role server
    • Certificates (public or internal CA) for secure access

    ๐Ÿงฑ 4. Installing RDS Roles

    Via Server Manager:

    1. Open Server Manager > Add Roles and Features
    2. Choose Role-based or feature-based installation
    3. Select your server
    4. In the Roles list, choose Remote Desktop Services
    5. Select one or more:
      • RD Connection Broker
      • RD Web Access
      • RD Session Host
    6. Install and reboot if required

    ๐Ÿ’ก In production, install roles on separate servers for scalability and security.


    ๐Ÿ”‘ 5. Configuring RD Licensing

    1. Go to Server Manager > Remote Desktop Services > Overview
    2. Click on RD Licensing
    3. Right-click the licensing server โ†’ Activate Server
    4. Follow the wizard to activate via Internet or phone
    5. Install CALs (Per User or Per Device)
    6. On each Session Host:
      • Run gpedit.msc
      • Navigate to:
        Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > RD Session Host > Licensing
      • Set the licensing mode and specify the license server

    ๐Ÿ’ผ 6. Creating a Session Collection

    1. In Server Manager > Remote Desktop Services
    2. Click Collections > Tasks > Create Session Collection
    3. Provide:
      • Name & description
      • Session Host servers
      • User groups
      • Profile disk config (optional)
    4. Finish wizard to deploy

    ๐Ÿ“ฆ 7. Publishing RemoteApps

    1. Inside the created collection:
      • Click Tasks > Publish RemoteApp Programs
    2. Choose programs to publish
    3. Confirm and finish
    4. Applications will be available via:
      • RD Web Access portal
      • RDP shortcut (.rdp file)
      • RemoteApp and Desktop Connections

    ๐ŸŒ 8. Configuring RD Gateway (Optional)

    1. Add RD Gateway role via Add Roles and Features
    2. Configure HTTPS certificate
    3. In RD Gateway Manager:
      • Create a Connection Authorization Policy
      • Create a Resource Authorization Policy
    4. Update DNS to resolve externally (e.g., rds.yourcompany.com)

    ๐Ÿ–ฅ 9. Accessing RDS as a User

    • Open a browser: https://<your-RDWeb-server>/RDWeb
    • Or use Remote Desktop Connection (mstsc):
      • Enter rds.yourdomain.com
      • Authenticate with domain credentials

    ๐Ÿ“Š 10. Monitoring and Operations

    Tools:

    • Server Manager > Remote Desktop Services Dashboard
    • Event Viewer for RDS-related logs
    • Performance Monitor (perfmon.msc)
    • Task Manager > Users (on Session Hosts)

    Common Tasks:

    TaskTool
    Add/remove usersActive Directory
    Reboot sessionsServer Manager or taskkill
    Add programsInstall on Session Host, republish if needed
    License checkRD Licensing Diagnoser

    ๐Ÿ”„ 11. Backup and Recovery

    • Use Windows Server Backup or third-party tools
    • Backup:
      • RD Connection Broker DB
      • RD Licensing data
      • User profile disks (if enabled)
    • Document server settings and collections for disaster recovery

    โœ… 12. Best Practices

    • Use SSL certificates from a trusted CA
    • Limit access via security groups
    • Regularly patch servers and clients
    • Monitor licensing usage and compliance
    • Use User Profile Disks (UPD) for user data consistency
    • Scale out Session Hosts with Connection Broker load balancing
  • VMware Operations

    Sure! Here’s a step-by-step procedure document for basic VMware operations, which can serve as a reference for common tasks in a vSphere/VMware environment.


    ๐Ÿ“˜ VMware Operations Procedure Document

    ๐Ÿ”ง Prerequisites:

    • Access to VMware vSphere Client or vCenter Server
    • Admin privileges or appropriate roles assigned
    • Network access to the ESXi host or vCenter

    1. Logging into VMware vSphere Client

    Steps:

    1. Open a web browser.
    2. Navigate to: https://<vcenter-server-IP-or-Hostname>/ui
    3. Enter your username and password.
    4. Click Login.

    2. Creating a New Virtual Machine (VM)

    Steps:

    1. In vSphere Client, go to Hosts and Clusters.
    2. Right-click on the host or cluster โ†’ select New Virtual Machine.
    3. Choose Create a new virtual machine โ†’ Click Next.
    4. Enter a name for the VM.
    5. Select a compute resource (host or cluster).
    6. Choose a datastore.
    7. Select a compatibility level (ESXi version).
    8. Choose a guest OS (e.g., Windows/Linux).
    9. Customize hardware settings (CPU, RAM, HDD, NIC).
    10. Click Finish.

    3. Powering On/Off a VM

    Steps:

    1. Navigate to the desired VM in the inventory.
    2. Right-click the VM โ†’ Choose Power > Power On or Power Off.

    4. Taking a Snapshot of a VM

    Steps:

    1. Right-click the VM โ†’ Select Snapshots > Take Snapshot.
    2. Provide:
    • Snapshot Name
    • Description (optional)
    • Decide whether to include memory and quiesce the file system.
    1. Click OK.

    5. Reverting to a Snapshot

    Steps:

    1. Right-click the VM โ†’ Select Snapshots > Manage Snapshots.
    2. Choose the snapshot to revert to.
    3. Click Revert To โ†’ Confirm action.

    6. Migrating a VM (vMotion)

    Ensure vMotion is configured.

    Steps:

    1. Right-click the VM โ†’ Select Migrate.
    2. Choose:
    • Change compute resource only OR
    • Change storage only OR
    • Change both compute and storage
    1. Select destination host/datastore.
    2. Review and click Finish.

    7. Cloning a VM

    Steps:

    1. Right-click the VM โ†’ Select Clone > Clone to Virtual Machine.
    2. Name the clone.
    3. Choose the target folder, host/cluster, and datastore.
    4. Customize the hardware (optional).
    5. Click Finish.

    8. Creating a VM Template

    Steps:

    1. Right-click the VM โ†’ Select Template > Convert to Template.
    2. Template will now appear in the VMs and Templates view.

    9. Deploying VM from a Template

    Steps:

    1. Right-click the template โ†’ Select New VM from This Template.
    2. Enter a name and select destination.
    3. Choose compute resource and datastore.
    4. Customize as needed.
    5. Click Finish.

    10. Monitoring VM Performance

    Steps:

    1. Select the VM.
    2. Go to the Monitor tab.
    3. Choose Performance > Overview.
    4. View metrics such as CPU, memory, disk, and network usage.

    11. VMware Tools Installation

    Steps:

    1. Select the VM.
    2. Go to Actions > Guest OS > Install VMware Tools.
    3. Follow prompts inside the VM to install.

    12. Accessing VM Console

    Steps:

    1. Select the VM.
    2. Click Launch Web Console or Launch Remote Console.

    13. Shutting Down or Restarting Guest OS

    Steps:

    1. Right-click the VM โ†’ Select Guest OS > Shutdown / Restart.
    2. VMware Tools must be installed for this to work gracefully.

    14. Deleting a VM

    Steps:

    1. Right-click the VM โ†’ Select Delete from Disk.
    2. Confirm deletion.

    โš ๏ธ This removes the VM and its data permanently.


    โœ… Best Practices

    • Always take a snapshot before major changes.
    • Monitor resource utilization regularly.
    • Keep VMware Tools up to date.
    • Use templates for consistent VM deployments.
    • Maintain proper tagging and naming conventions.