how to unlink a NIC from a esxi vSwitch

 


List the vSwitches from ESXI using CLI:

        esxcli network vswitch standard list


 output example:

vSwitch0

   Name: vSwitch0

   Class: cswitch

   Num Ports: 1234

   Used Ports: 7

   Configured Ports: 128

   MTU: 1500

   CDP Status: listen

   Beacon Enabled: false

   Beacon Interval: 1

   Beacon Threshold: 3

   Beacon Required By:

   Uplinks: vmnic2, vmnic0

   Portgroups: VM Network,


Now remove the wrong NIC from the switch0:

esxcli network vswitch standard uplink remove --uplink-name=vmnic2 --vswitch-name=vSwitch0


To add the remove network NIC to vSwitch1:

esxcli  network vswitch standard uplink add --uplink-name=vmnic2 --vswitch-name=vSwitch1



ubuntu E: Unable to correct problems, you have held broken packages

 Error on ubuntu:

 E: Unable to correct problems, you have held broken packages

Solution:

# dpkg --configure -a

# apt clean

# apt update

#rm /var/lib/apt/lists/lock

#rm /var/cache/apt/archives/lock



Selenium firefox driver session fails with : Could not start a new session. Response code 500. Message: Expected browser binary location, but unable to find binary in default location,

 Error:

With Firefox driver /gecko driver
Could not start a new session. Response code 500. Message: Expected browser binary location, but unable to find binary in default location,


Solution:

This is due to if you are using set property with:

"System.setProperty("webdriver.gecko.driver", "geckodriver.exe");" 


change to:

System.setProperty("webdriver.driver.gecko", "C:\\geckodriver.exe" ); 

How to increase ESXi webclient login user application timeout

 To increase the default 15min timeout to 2hr


Login to the esxi webclient


on the right top corner ->Click the User login tab


Select "Settings"


Select the "Application Timeout"


Click "2hrs" instead of the initial 15mins




Linux how to make iscsi session automatic

 Enable:


Edit parameters in /etc/iscsi/iscsid.conf: 

       Edit node startup from 'manual' to 'automatic' 


so that logins to the iSCSI LUNs are automatic after a system reboot: node.startup = automatic 

curl: (60) SSL certificate problem: self-signed certificate

 Error:

while running curl with https url getting below error:

curl: (60) SSL certificate problem: self-signed certificate


Solution:

add -k or --insecure in your curl command


example:

curl -k --request POST <>

How to present a iscsi lun to a linux machine for creating file system

 

On the linux machine :

1)Find out the iscsi name of the host:

cat /etc/iscsi/initiatorname.iscsi

note:in RHEL install "yum install iscsi-initiator-utils" if initiatorname.iscsi not found

2)discover the target storage array using iscsi target IP:

iscsiadm -m discovery -t st -p <target IP>

this output will be having iqn number about the storage target


3)make an iscsi I-T session on the host:

iscsiadm -m node -T <IQN of target>  -p <target IP> --login


4)verify the IT connection session by:

iscsiadm -m session


5)present a LUN from array and export to the host using IQN of the host


6)After LUN presented do a rescan of iscsi device by:

rescan-scsi-bus.sh

7)Create a new file sytstem on the new device and mount

mkfs /dev/sdb 

mkdir /mount1

mount /dev/sdb /mount1



Error Validating Storage Provider: mount failure, server: 1.1.1.1, export: /nfs1, nfs version: 3, returned state: 13

 NFS share mount on client failed:

Error Validating Storage Provider: mount failure, server: 1.1.1.1, export: /nfs1, nfs version: 3, returned state: 13



Solution:

On the NFS server:

vi /etc/exports nclude insecure option as 

/nfs1 *(rw,sync,insecure,no_subtree_check,no_root_squash)


then run: exportfs -a

morpheus UI loading hangs

 

Error:

After morpheus UI hangs saying loading.


Solution :

edit /etc/morpheus/morpheus.rb file and mark below paramter as "false"

ui['morpheus_hub_enabled'] = false

 

Then run:
morpheus-ctl stop morpheus-ui
morpheus-ctl reconfigure

morpheus-ctl start morpheus-ui

ubuntu set hostname permananantly

 


Run below command:


hostnamectl set-hostname <new hostname>


To verify check the file "/etc/hostname"

how to unlink a NIC from a esxi vSwitch

  List the vSwitches from ESXI using CLI:          esxcli network vswitch standard list  output example: vSwitch0    Name: vSwitch0    Class...