Skip to main content

Posts

HPE VM Essential/Morpheus appliance manager root disk extend size of file systems

 Problem: My issue was always the HPE VM essentials/Morpheus Appliance manager will be by default 100GB space and it get filled very fast and UI crashes. Solution: From VME Manager, Go to the infrastructure->Compute->Virtual machine Find out the VME Manager appliance VM      -Right click->Actions      -Select reconfigure      -Change the Disk space to 200GB:                  -Login via SSH to VME appliance            -Check the disk space increased by command: lsblk            -Use growpart to extend the partition:    growpart  /dev/vda 2            - Increase file system using:  resize2fs /dev/vda2

Windows server unable to extend the C driver even with free space on the disk

 Issue: In my case i have 8GB of  space on my windows OS disk 0 But when i trued to extend the C driver from disk manager, the extend option is greyed out. Solution: 1.Open "Command manager" (run->cmd) 2.Type "diskpart" 3.Type "list disk" 4.Type: "select disk 0" -> if your disk is different change the # 5.Type: "List partition" 6. Note down the "Recovery partition #" having size of ~500MB 7.Type "Select partition 3" 8.Type " delete partition override" 9.Tyep "select partition 2"  ->partition # from step3, our Cdriver partition 10.Type "extend" Done

How to create an ESXi VM on HPE Morpheus VM essentials

 1.Upload esxi ISO image to VM Essentials UI-Library->>Virtual Images: 2.Create a VM instance selecting the OS:ESXI      Network adpater typer: E1000      Select 300GB disk size      Select 32GB RAM 3.Once VM created .Login to KVM host:     virsh edit <VMNAME>      update network type: e1000e     example: <interface type = 'network'> <mac address = '00:24:00:0f:12:7c'/> <source network = 'Management'/> <model type = 'e1000e'/> </interface>    virsh destroy <VMNAME"   virsh start <VMNAME" 4.Use SATA disk for all the storage

Ubuntu how to increase the / file system using growpart

 Issue: last time i faced a problem in my ubuntu to increase the / file system, even this is a part of LVM. When I tried lvextend and resizefs also the / file system not expanding. Solution: Using the growpart package 1.Install growpart:  apt install -y cloud-guest-utils 2.Run: growpart <disk name> <partition name>     example: growpart /dev/vda 3 3.Extend LV: lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv 4.Extend FS:  resize2fs /dev/ubuntu-vg/ubuntu-lv

KVM Ubuntu Network not pinging when added a new bridge to my existing bond network

 The problem I faced is that When I already a two NIC on my ubuntu server and i have an existing netplan like this:     bond1:       addresses:       - 192.168.0.7/16       interfaces:       - ens52       - ens53       nameservers:         addresses: []         search: []       parameters:         lacp-rate: fast         mode: 802.3ad         transmit-hash-policy: layer3+4 Later i have added a new bridge on top of this with name: #ovs-vsctl show    Bridge datantwk         Port bond1             Interface bond1         Port datantwk             Interface datantwk                 type: internal Then problem started as IPs in ...

How to create Storage array for iscsi disk on a linux machine

 Use Case: I have to create a KVM cluster using GFS Datastore. #Create a Ubuntu Linux to act as storage server array: # Make sure the system have enough resources(Storage,MEM&CPU) #Install TargetCLI tool:        apt install targetcli-fb -y #Create LUN:  mkdir -p /iscsi_disks  fallocate -l 600G /iscsi_disks/disk01.img  targetcli        /backstores/fileio create disk01 /iscsi_disks/disk01.img 600G        /iscsi create iqn.2025-01.com.example:storage1       /iscsi/iqn.2025-01.com.example:storage1/tpg1/luns create /backstores/fileio/disk01       /iscsi/iqn.2025-01.com.example:storage1/tpg1/acls create iqn.2025-01.com.example:client1       /iscsi/iqn.2025-01.com.example:storage1/tpg1/acls create iqn.2025-01.com.example:client2      /iscsi/iqn.2025-01.com.example:storage1/tpg1/acls create iqn.2025-01.com.example:client3 #Allow all network to acce...

morpheus hpe-vm-essential installations fails with port error

Error Error while installing hpe-vme using teh command: dpkg -i hpe-vm-essentials_8.0.8~rc1-1_amd64.deb  (Reading database ... 74587 files and directories currently installed.) Preparing to unpack hpe-vm-essentials_8.0.8~rc1-1_amd64.deb ... Unable to install Morpheus Appliance! Make sure that no ports are listening on any of the following ports: 3306, 8080, 80, 443, dpkg: error processing archive hpe-vm-essentials_8.0.8~rc1-1_amd64.deb (--install):  new hpe-vm-essentials package pre-installation script subprocess returned error exit status 1 Errors were encountered while processing:  hpe-vm-essentials_8.0.8~rc1-1_amd64.deb Solution: Check any ports using the command:  ### lsof -i :3306 -i :8080 -i :80 -i :443 if this output contains any container ,run below command:   ###3systemctl list-units |grep docker If this list anything: disable and stop those service using: systemctl disable <service> systemctl stop <service> Now check any snap servcie r...

Windows net use share gives error: Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or shared resource and try again"

Error  When you try to access a network share path you will see below error: Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or shared resource and try again Solution: Check what are the network shares disconnected with same name using: cmd>net use Now delete these sessions with command: cmd>net use Now connect again with below command: cmd>net use \\<network share>  /user:doamin\username <Password> /PERSISTENT:YES

Enabling/Unlocking the root locked account

 To Enabling/Unlocking the root locked account, follow below steps: 1.ssh with non root user 2.Check the root user is locked:      root@Ubuntu:/home/test# passwd -S root     root  L  11/12/2024 0 99999 7 -1         >> here L means its locked. 3.Manually enable the root account    A)verify the /etc/shadow password (the second field ! Or * means its locked)    B)Create a password in hash format:        openssl passwd -6         >>give new password       >>Copy the new hash password    C)Edit /etc/shadow and update in the second field:               D)Verify /etc/ssh/sshd_config have "PermitRootLogin=yes, PasswordAuthentification=yes" and restart ssh service already done.

Ubuntu apt installation error as : E: Unable to correct problems, you have held broken packages.

  Error: E: Unable to correct problems, you have held broken packages. Solution: 1) Find the broken packages using: apt-mark showhold    root@test:~# apt-mark showhold     libcephfs2     libsqlite3-mod-ceph 2) Unhold the locked packages using :  apt-mark unhold <pkg name>    root@test:~# apt-mark unhold libcephfs2 libsqlite3-mod-ceph

Enable MOB for vCenter version 9.0

MOB in vCenter 9.x is not enabled by default. Please follow below steps to enable: ****************************************************************** A) Connect to your VCSA via SSH      Backup the VPXD Configuration file      # cp /etc/vmware-vpx/vpxd.cfg /var/core/vpxd.cfg_backup B) Edit the Configuration File: Open the vpxd.cfg file using a text editor (e.g., vi)      # vi /etc/vmware-vpx/vpxd.cfg      Identify the flag "enableDebugBrowse".If it's set to false or missing, change it or add it to true as      shown below    <vpxd>    ...      <enableDebugBrowse>true</enableDebugBrowse>       ...    </vpxd>      Save and close the file C) Restart the vCenter Server Service (vpxd)      # service-control --stop vpxd      # service-control --start vpxd

Steps to Setup a vLCM with offline image on vCenter server

Steps to Set Up vLCM Using an Offline Image Step 1: Download Required Offline Files      ESXi Offline Bundle ZIP      Example: VMware-ESXi-8.0U3-xxxxxx-depot.zip      Vendor Add-ons (optional but recommended for Dell, HPE, Lenovo, etc.)      Example: HPE-Custom-AddOn_802.0.0.10.2-1OEM.802.0.0.24938291_231208.zip Sources:      VMware Patch Portal      (Search under ESXi (Embedded and Installable) → Select your version → Download the Offline           Bundle)      HPE: https://www.hpe.com/info/esxi      Dell: https://www.dell.com/support/home/product-support/vmware-esxi      Lenovo: https://datacentersupport.lenovo.com/      Download the relevant files and transfer them to your vCenter environment, ideally to a machine that      can access the vCenter UI. Step 2: Upload Offline Bundle to vLCM ...

ESXi Host client unable to access because root login locked

  Issue: ESXi server is unable to access due to locked root user Solution: Option 1:  Access the ESXi console from the remote console of the physical server: Press F2 to log in with root user (here it will allow when locked from UI also) Press "Alt+F1"    This will take you to the shell.      check the root login details: pam_tally2 --user root     reset the lock:  pam_tally2 --user root --reset Option 2: Wait for the 15-minute lock period to get unlocked.

In windows installing Debain from Microsoft Store fails with: The error "0x8007019e The Windows Subsystem for Linux has not been enabled"

Error: The error "0x8007019e The Windows Subsystem for Linux has not been enabled"  Solution: Enable Windows Subsystem for Linux: Open "Turn Windows features on or off" by searching for it in the Start Menu.  Locate "Windows Subsystem for Linux" in the list.  Enable this option.

How to check internet speed of a linux server

 To measure the internet speed of linux servers: 1.Install the speedtest-cli tool sudo apt install speedtest-cli 2.Run the speedtest-cli Server1:~$ speedtest-cli Retrieving speedtest.net configuration... Testing from Cellcom (192.1.1.1)... Retrieving speedtest.net server list... Selecting best server based on ping... Hosted by Partner Communications (abc) [13.62 km]: 3.437 ms Testing download speed................................................................................ Download: 671.98 Mbit/s Testing upload speed...................................................................................................... Upload: 689.19 Mbit/s server1:~$

Unable to type anything on VMware VM console using keyboard

  Issue: Unable to type anything on VMware VM console using keyboard Solution: Make sure your keyboard's "Scroll Lock" is enabled Now try typing in the console.

IOFilter storage policy profiles are not listing due to IOfilter offline

 Error: In the vCenter while checking the Storage policy profiles not showing any IOfilter profiles of third party. Solution: Verify the Storage provider status from vCenter->Config ->Security ->Storage Providers      here the third party installed Providers should list. if not listing:  Click " Synchronize Storage Providers " If it's offline: Open PowerCLI and connect the vCenter Server: # Connect-VIServer --server <vCenter-FQDN> Remove offline IOfilters: # Get-VasaProvider | Where-Object {$_.Namespace -eq 'IOFILTERS' -and $_.Status -like 'offline'} | Remove-VasaProvider In vSphere Client, go to vCenter > Configure > Storage Providers. Click on “Synchronize Storage Providers”.

Enable root permission and sudo for debain

 Error When you try sudo for the root permission you will get below error: This account is currently not available Solution 1.Remove nologin from the /etc/passwd file     sudo nano /etc/passwd     Change the "/usr/sbin/nologin" to /bin/bash 2.edit /etc/ssh/sshd_config      PermitRootLogin yes 3. Restart SSH service     systemctl restart ssh

VMFS datastore creating one same LUN not listing in all the shared ESXi hosts

  Issue: Create a Storage LUN/Volume. Share or export this to multiple ESXi hosts. Create Datastore from one of the ESXi host. When you rescan the storage from other ESXi hosts, the existing VMFS datastore is not listed. Solution: Log in to the ESXi host and list the volumes:  >>esxcfg-volume -l Mount the volume in the ESXi host: >>esxcfg-volume -m "DatastoreName"