vSphere ESXi 8.0 Installation and Configuration

Hello everyone, today I am going to show you how can install and configure ESXi 8 , as you know this version was released some days ago. you can watch the video or continue to read this document.

vSphere ESXi 8.0 Installation and Configuration

Installation:

  1. Prepare Installation Media:
    • Download the ESXi 8.0 ISO image from the VMware website.
    • Create a bootable installation media, typically a USB flash drive, using a tool like Rufus (Windows) or dd (Linux).
  2. Boot and Start Installation:
    • Insert the bootable USB drive into the server.
    • Power on the server and access the BIOS/UEFI settings to boot from the USB drive.
    • When prompted, select the boot device (usually your USB drive) to start the ESXi installation.
  3. Welcome and EULA:
    • You’ll see a welcome screen. Press “Enter” to continue.
    • Accept the End User License Agreement (EULA) by pressing “F11.”
  4. Select Installation Disk:
    • Choose the storage device where ESXi will be installed.
    • If the disk contains existing data, you can choose to overwrite it or select another disk.
  5. Keyboard Layout:
    • Select the keyboard layout that matches your preferences.
  6. Set Root Password:
    • Create a strong root password for the ESXi host and confirm it.
  7. Installation Options:
    • ESXi offers various installation options. The default option is recommended for most installations. Press “Enter” to proceed.
  8. Begin Installation:
    • Press “F11” to start the installation. ESXi will copy files to the selected storage device.
  9. Installation Complete:
    • Once the installation is finished, remove the installation media (USB drive) and press “Enter” to reboot the server.

Configuration:

  1. Initial Configuration:
    • After rebooting, you’ll see the ESXi welcome screen.
    • Press “F2” to customize system settings.
    • Log in using the root username and password you set during installation.
  2. Configure Management Network:
    • In the configuration menu, navigate to “Configure Management Network.”
    • Set the network configuration, including IP address, subnet mask, gateway, and DNS servers.
  3. Time and Date Settings:
    • Configure time and date settings under “Configure Time and Date.”
  4. Security Configuration:
    • Review and adjust security settings, such as the root password policy, under “Security Profile.”
  5. Access Management Interface:
    • Press “ESC” to exit the configuration menu.
    • Save your changes by pressing “F12,” which will also reboot the server.

Accessing vSphere Client:

  1. Open a web browser on a computer connected to the same network as the ESXi server.
  2. Enter the IP address or hostname of your ESXi server in the browser’s address bar.
  3. Download and install the vSphere Client (or use the web-based vSphere HTML5 client if available).
  4. Log in to the vSphere Client using the root username and password.

Additional Configuration:

  1. Within the vSphere Client, you can perform various tasks, including:
    • Creating virtual machines (VMs).
    • Managing storage resources.
    • Configuring networking settings.
    • Setting up virtual switches and port groups.
    • Installing and managing ESXi updates and patches.
  2. Consider configuring advanced features like High Availability (HA), Distributed Resource Scheduler (DRS), and vMotion for improved virtual infrastructure management.

Remember that this is a general guide, and specific steps may vary depending on your environment and the exact version of VMware vSphere ESXi 8.0. Always refer to the official VMware documentation and release notes for the most accurate and up-to-date instructions. Additionally, ensure your hardware is on the VMware Hardware Compatibility List (HCL) for ESXi 8.0.

Create Red Hat Account and Activate the Subscription

Hello everyone, in this video, I am going to show you how you can create an account on redhat.com and activate your subscription, that’s free

Create Red Hat Account and Activate Subscription

Step 1: Access the Red Hat website

  • Open your web browser and navigate to the official Red Hat website, which is https://www.redhat.com/. Ensure that you are visiting the legitimate website to prevent any security risks.

Step 2: Sign Up for a Red Hat Account

  • Click on the “Sign In” or “Log In” button in the upper right-hand corner of the website. This will take you to the login page.
  • If you don’t have a Red Hat account, look for an option that allows you to create one. This is typically labeled as “Create Account” or “Sign Up.” Click on it to start the registration process.

Step 3: Fill in Your Information

  • The registration form will ask for various pieces of information:
    • Personal Information: This includes your full name, job title, and company or organization name. Ensure accuracy, as this information may be used for verification purposes.
    • Contact Information: Provide a valid email address, phone number, and physical address. Red Hat may use this information for communication and to send important notifications.
    • Username and Password: Create a unique username that you will use to log in to your Red Hat account. The password should be strong, containing a mix of upper and lower-case letters, numbers, and special characters. Red Hat often has specific password requirements.
  • Pay careful attention to password requirements. They may vary based on Red Hat’s security policies.

Step 4: Agree to Terms and Conditions

  • Before proceeding, it’s crucial to review and accept Red Hat’s terms and conditions, privacy policy, and any other relevant agreements. These documents outline the rules and guidelines for using Red Hat’s services and products.

Step 5: Verify Your Email

  • After submitting your registration information, check your email inbox for a verification message from Red Hat. This email is sent to the address you provided during registration.
  • Open the verification email and click on the verification link inside to confirm your email address and activate your Red Hat account.

Step 6: Log In to Your Red Hat Account

  • Return to the Red Hat website after confirming your email address.
  • Click on “Sign In” or “Log In” again.
  • Enter the username and password you created during the registration process to log in to your newly created Red Hat account.

Step 7: Access Subscription Management

  • Once logged in, you will have access to the Red Hat Customer Portal, which provides various resources and tools for managing your Red Hat products and services.
  • Navigate to the “Subscription Management” section. This is where you can manage your subscriptions and access other resources related to Red Hat products.

Step 8: Activate Your Subscription

  • In the Subscription Management section, you’ll find options for managing your subscriptions.
  • To activate a subscription, you will need to enter a subscription or activation key. This key is typically provided by Red Hat when you purchase a subscription or may be given to you by your organization’s system administrator.
  • Enter the key in the appropriate field and follow the prompts provided on the screen. This process may include verifying your subscription details and confirming the activation.

Step 9: Confirm Activation

  • After successfully entering the activation key and completing any required steps, you should receive a confirmation message that your subscription has been activated.
  • This confirmation indicates that your Red Hat subscription is now active and ready for use.

By following these detailed steps, you should have created a Red Hat account and successfully activated your subscription. This will grant you access to Red Hat’s products and services, including Red Hat Enterprise Linux, along with support and updates for the duration of your subscription period. Remember to keep your subscription up to date and renew it when necessary to maintain access to Red Hat’s resources and support.

Install Oracle Database 19c on linux

Hello everyone today I am going to install oracle 19c on Linux RedHat 8.6. also in this video, I will talk about x11 forwarding and its problem, and install oracle 19c on the new version of RedHat

How to install Oracle 19c On Linux , X11 Forwarding problem

Prerequisites:

  1. Hardware and Software Requirements: Verify that your system meets the hardware and software requirements specified in Oracle’s documentation.
  2. Linux User and Groups:
  • Create a dba group:

bash

sudo groupadd dba

  • Create the oracle user and add them to the dba group:

bash

sudo useradd -g dba oracle

  • Set a password for the oracle user:

bash

sudo passwd oracle

3. Kernel Parameters and Resource Limits: Modify the kernel parameters and resource limits as recommended by Oracle. Edit the /etc/sysctl.conf file and add or update these lines:

fs.file-max = 6815744

kernel.sem = 250 32000 100 128

kernel.shmmni = 4096

kernel.shmall = 1073741824

kernel.shmmax = 4398046511104

kernel.panic_on_oops = 1

net.core.rmem_default = 262144

net.core.rmem_max = 4194304

net.core.wmem_default = 262144

net.core.wmem_max = 1048576

net.ipv4.conf.all.rp_filter = 2

net.ipv4.conf.default.rp_filter = 2

Then, apply the changes:

sudo sysctl -p

Edit the /etc/security/limits.conf file and add the following lines at the end of the file:

oracle soft nproc 2047

oracle hard nproc 16384

oracle soft nofile 1024

oracle hard nofile 65536

Installation:

  1. Download Oracle Database 19c: Visit Oracle’s website to download the Oracle Database 19c installation files for Linux.
  2. Extract Installation Files:
    • Unzip the downloaded files:

unzip oracle-database-19c-*.zip

Installation:

  1. Download Oracle Database 19c: Visit Oracle’s website to download the Oracle Database 19c installation files for Linux.
  2. Extract Installation Files:
    • Unzip the downloaded files:

codeunzip oracle-database-19c-*.zip

3. Run Oracle Universal Installer (OUI):

  • Navigate to the database directory where you extracted the files.
  • Run the Oracle Universal Installer as the oracle user:

bash

./runInstaller

4. Oracle Installation Steps:

  • Follow the graphical prompts in the Oracle Universal Installer:
    • Choose “Install database software only.”
    • Specify the Oracle Base and Software Location.
    • Select the edition and options you want to install.
    • Provide the Oracle Inventory Directory (usually /u01/app/oraInventory).
    • Follow the rest of the installation wizard, including setting the Oracle Home user password.

5. Execute Root Scripts:

  • After the installation is complete, the installer will prompt you to run root scripts. Open a new terminal as the root user and execute the scripts as instructed.

6. Create and Configure a Database:

  • You can use the Database Configuration Assistant (DBCA) or command-line tools like SQL*Plus to create and configure an Oracle Database instance.

7. Start and Stop the Database:

  • Start the Oracle Database with SQL*Plus or by using the provided scripts like dbstart:

sqlplus / as sysdba
SQL> startup

  • Stop the database with SQL*Plus or dbshut.

8. Testing:

  • Verify that the Oracle Database is running correctly by connecting to it, creating tables, and executing queries.

Remember that this is a simplified overview, and you should always refer to Oracle’s official documentation and installation guides for the most accurate and up-to-date instructions. Oracle installations can be complex, and it’s important to ensure that your system meets all prerequisites and requirements. Consider involving an experienced Oracle DBA if you are unfamiliar with the process.

vSphere 8 , ESXi 8.0 Installation and Configuration , Install VMware ESXi 8.0

1. Prepare for Installation:

  • Download the VMware ESXi 8.0 ISO from the VMware website.
  • Create a bootable USB drive using software like Rufus (for Windows) or Etcher (for macOS and Linux).
  • Insert the USB drive into the server where you want to install ESXi.

2. Boot from the Installation Media:

  • Power on the server and access the BIOS or UEFI firmware settings.
  • Configure the boot order to boot from the USB drive first.
  • Save the changes and exit the BIOS/UEFI settings.

3. Install VMware ESXi:

  • The ESXi installer should load. Press Enter to begin the installation process.
  • Read and accept the End User License Agreement (EULA) by pressing F11.
  • Select the disk or storage device where you want to install ESXi and press Enter.
  • Select the keyboard layout and press Enter.
  • Enter a root password for the ESXi host and press Enter.
  • Press F11 to confirm the installation.
  • Wait for the installation to complete. Once done, remove the installation media and reboot the server.

4. Configure Networking:

  • After rebooting, the ESXi host will boot up, and you’ll be prompted to configure networking.
  • Use the arrow keys to navigate to “Configure Management Network” and press Enter.
  • Set the IP address, subnet mask, default gateway, and DNS servers for the ESXi host.

5. Access ESXi Host via Web Client:

  • Open a web browser on a computer connected to the same network as the ESXi host.
  • Enter the IP address of the ESXi host in the address bar.
  • Log in using the username “root” and the password you set during installation.

6. (Optional) Configure Additional Settings:

  • In the vSphere Client, you can configure additional settings such as adding a license key, configuring storage, creating virtual machines, and managing networking.

7. Install VMware Tools (Optional):

  • In the vSphere Client, right-click on the virtual machine and select “Guest OS” > “Install VMware Tools” to install the VMware Tools package on the virtual machine for better performance and management.

By following these steps, you can install and configure VMware ESXi 8.0 on a server and start using it to host virtual machines.

Reset Vcenter SSO administrator@vsphere.local Password

1. Access the vSphere Authentication Proxy:

  • Log in to the vCenter Server using the vSphere Client with an account that has administrative privileges.
  • Navigate to the “Administration” section in the vSphere Client.
  • Under “Single Sign-On,” click on “Configuration.”

2. Reset the Password:

  • In the “Configuration” tab, click on “System Configuration.”
  • Click on the “Nodes” tab and select the vCenter Server node.
  • Click on the “Manage” tab and select “Settings.”
  • Under “Settings,” click on “Reset Password” next to “Single Sign-On Administrator Password.”
  • Enter and confirm the new password for the administrator@vsphere.local account.
  • Click “OK” to reset the password.

3. Verify the Password Reset:

  • Log out of the vSphere Client and log back in using the administrator@vsphere.local account and the new password to verify that the password reset was successful.

4. (Optional) Change the Password Using the CLI:

  • If you have SSH access to the vCenter Server, you can also use the vdcadmintool command-line utility to reset the password.
  • SSH into the vCenter Server and run the following command to access the utility:

/usr/lib/vmware-vmdir/bin/vdcadmintool

  • Select option 3 for “Reset account password” and follow the prompts to reset the password for the administrator@vsphere.local account.

By following these steps, you can reset the VMware vCenter Single Sign-On (SSO) administrator@vsphere.local password using the vSphere Client or the vdcadmintool command-line utility.

Unlock and Reset Vcenter root Password

1. Unlock the root Account:

  • Open a web browser and navigate to the VAMI interface of your vCenter Server Appliance. The URL is usually https://<vCenter_IP>:5480.
  • Log in with your root credentials.
  • Go to the “Access” tab and click on “Edit” next to “User Accounts.”
  • Select the “root” account and click on “Unlock Account.”

2. Reset the root Password:

  • In the same “User Accounts” section of the “Access” tab, click on “Edit.”
  • Select the “root” account and enter a new password in the “New Password” and “Confirm Password” fields.
  • Click on “Save Settings” to apply the new password.

3. Verify the Changes:

  • Log out of the VAMI interface and log back in with the new root password to ensure it’s working correctly.
  • You can also log in to the vSphere Client using the root account to verify access.

4. (Optional) Reset Password Using vSphere Client:

  • If you have access to the vSphere Client and vCenter Server is connected, you can reset the root password from the vSphere Client.
  • Log in to the vSphere Client with administrator credentials.
  • Navigate to the vCenter Server in the inventory.
  • Go to the “Configure” tab and select “Settings” under “Access.”
  • Click on “Edit” next to “Authentication” and then “Edit” next to “Password.”
  • Enter the new root password and click “OK” to save the changes.

5. Restart vCenter Services (if needed):

  • If you encounter any issues after changing the root password, you may need to restart the vCenter services.
  • You can do this from the VAMI interface by going to the “Services” tab and clicking on “Restart.”

After completing these steps, the root password for your vCenter Server should be successfully reset, and you should be able to log in with the new password.

Install Red Hat Linux and Subscription Manager

1. Install Red Hat Enterprise Linux:

  • Obtain the RHEL installation ISO from the Red Hat Customer Portal.
  • Create a bootable USB drive or DVD from the ISO.
  • Boot the system from the USB drive or DVD.
  • Follow the on-screen instructions to install RHEL, including configuring disk partitions, selecting software packages, and setting up user accounts.

2. Register and Enable Red Hat Subscription:

  • After installing RHEL, you need to register your system with Red Hat to enable access to software updates and support.
  • Open a terminal and run the following command to register your system:

subscription-manager register

  • Enter your Red Hat account credentials when prompted.

3. Attach a Subscription:

  • After registering, attach a subscription to your system. You can view available subscriptions with:

subscription-manager list –available

  • Attach a subscription with:

subscription-manager attach –pool=POOL_ID

  • Replace POOL_ID with the ID of the subscription you want to attach.

4. Enable Repositories:

  • Enable the necessary repositories for software updates and packages:

subscription-manager repos –enable=rhel-8-for-x86_64-baseos-rpms –enable=rhel-8-for-x86_64-appstream-rpms

  • Adjust the repository names according to your RHEL version and architecture.

5. Check Subscription Status:

  • Verify the subscription status of your system:

subscription-manager status

  • Ensure that the status is “Current” to indicate that the system is subscribed and can receive updates.

6. Update Your System:

  • Update the system to install any available updates:

yum update

7. Configure Automatic Updates (Optional):

  • You can configure Subscription Manager to automatically apply updates:

subscription-manager config –rhsm.auto_enable_yum_plugins=1

8. Verify Installation:

  • Verify that your system is registered and receiving updates:

yum repolist

  • This command will show the repositories enabled and the packages available for installation.

By following these steps, you can install Red Hat Enterprise Linux and configure Subscription Manager to manage software updates and subscriptions for your system.

Deploy BgInfo by Group Policy

1. Download and Install BgInfo:

  • Download BgInfo from the official Microsoft Sysinternals website.
  • Extract the downloaded ZIP file and copy the BgInfo.exe and BgInfo64.exe files to a network share that is accessible to all client machines.

2. Create a Configuration File:

  • Launch BgInfo on a test machine and configure the desired settings, such as the information to display and the background color.
  • Save the configuration as a .bgi file to the same network share where you copied the BgInfo executables.

3. Create a Group Policy Object (GPO):

  • Open the Group Policy Management Console (GPMC) on a domain controller or a machine with the Remote Server Administration Tools (RSAT) installed.
  • Right-click on the desired Organizational Unit (OU) or the domain name and select “Create a GPO in this domain, and Link it here.”
  • Give the GPO a descriptive name, such as “Deploy BgInfo.”

4. Edit the Group Policy Object:

  • Right-click on the newly created GPO and select “Edit.”
  • Navigate to “Computer Configuration” > “Policies” > “Windows Settings” > “Scripts (Startup/Shutdown).”
  • Double-click on “Startup” in the right pane.

5. Add a Startup Script to Run BgInfo:

  • Click on the “Add” button in the “Startup Properties” window.
  • In the “Script Name” field, enter the UNC path to the BgInfo executable (e.g., \\server\share\BgInfo.exe).
  • In the “Script Parameters” field, enter the path to the configuration file (e.g., \\server\share\config.bgi).
  • Click “OK” to save the script.

6. Copy BgInfo Files to Client Machines:

  • Ensure that the BgInfo executable (BgInfo.exe or BgInfo64.exe) and the configuration file (config.bgi) are accessible from the network share specified in the startup script.

7. Apply the Group Policy:

  • Close the Group Policy Management Editor and link the GPO to the desired OU or domain.
  • Run gpupdate /force on client machines or wait for Group Policy to apply automatically.

8. Verify Deployment:

  • Restart a client machine (or run gpupdate /force) to apply the Group Policy.
  • The system information specified in the BgInfo configuration file should be displayed on the desktop background.

By following these steps, you can deploy BgInfo using Group Policy to automatically display system information on the desktop background of Windows machines in your domain.

Capture Customized Windows Image by WDS

Step 1: Prepare the Reference Computer
Install Windows on a reference computer.
Customize the Windows installation as needed (install applications, configure settings, etc.).
Step 2: Sysprep the Reference Computer
Open a command prompt with administrative privileges.
Navigate to the Sysprep folder (usually located at C:\Windows\System32\Sysprep).
Run the Sysprep tool with the following options:
bash
sysprep.exe /generalize /oobe /shutdown /unattend:unattend.xml
  • /generalize: Prepares the Windows installation to be imaged.
  • /oobe: Configures the computer to boot to Windows Welcome upon the next restart.
  • /shutdown: Shuts down the computer after Sysprep completes.
  • /unattend:unattend.xml: Specifies an unattend.xml file to automate the Sysprep process. This file is optional but recommended for consistency.

Step 3: Boot the Reference Computer into Windows PE

  • Insert a bootable media (USB drive or DVD) containing Windows PE.
  • Boot the reference computer from the bootable media.

Step 4: Capture the Image

  • In Windows PE, open a command prompt.
  • Use the WDSUTIL command to capture the image. For example:

mathematica
WDSUTIL /Verbose /Progress /Capture-Image /Image:”CustomImage” /Name:”Custom Image” /Description:”Customized Windows Image” /CaptureDir:”D:\Captures”

  • /Image:"CustomImage": Specifies the name for the captured image.
  • /Name:"Custom Image": Specifies a friendly name for the captured image.
  • /Description:"Customized Windows Image": Provides a description for the captured image.
  • /CaptureDir:"D:\Captures": Specifies the directory to store the captured image.

Step 5: Upload the Captured Image to WDS Server

  • After capturing the image, navigate to the WDS server.
  • Use the WDS MMC snap-in or the WDSUTIL command to upload the captured image to the server.

Step 6: Create an Install Image

  • In the WDS MMC snap-in, right-click on “Install Images” and select “Add Install Image.”
  • Specify the location of the captured image file and follow the wizard to create the install image.

Step 7: Deploy the Image

  • Boot a client computer from the network using PXE boot.
  • Select the customized image from the WDS server for deployment.
  • Follow the on-screen instructions to deploy the image to the client computer.

Make sure to test the deployment thoroughly before deploying to production environments.