Very recently, one of our clients raised a concern saying that their application is failing to install with the error “Fatal glibc error: CPU does not support x86-64-v2”. Upon investigation, we found out that this is related to the CPU features. Since we are using VMWare vSphere as the hypervisor, we had only one option. That affected VM is a part of our vSphere Cluster. So, finally, we ended up raising the VMware EVC level to a much higher level (Haswell). Will look at how we can carry out the change.
Recently we had to extend the disk of an Ubuntu instance on vSphere ESXi 7. The task was not that easy and involved several steps. So, I thought of sharing the steps with you. Will look at the steps in brief.
NOTE: Make sure to take a full backup of the system before attempting these steps.
First of all, access the VM properties and extend the disk as necessary.
Make sure the “parted” package has been installed. You could install the package using sudo apt-get install parted
SSH into the ESXi host and then access the relevant datastore which the VM is stored.
List the files using ls -l
Then, use the vmkfstools command to extend the disk. In this example, vmkfstools -X 300G UbuntuVM.vmdk (300G is the extended size and never use the flat.vmdk for his operation)
After that login to the Ubuntu instance and extend the partition using sudo parted and then type P to print the partition table
You will be presented with the partition numbers (pick the second partition [which is X])
Enter the command resizepart X to resize the partition. After that type Qto quit the partition utility.
Finally, grow the file system using the command sudo resize2fs /dev/sdaX (X denotes the disk number)
You could verify the disk size using the command df -h
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
The cookie is used by cdn services like CloudFare to identify individual clients behind a shared IP address and apply security settings on a per-client basis. It does not correspond to any user ID in the web application and does not store any personally identifiable information.
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
1 year 24 days
Used by Google DoubleClick and stores information about how the user uses the website and any other advertisement before visiting the website. This is used to present users with ads that are relevant to them according to the user profile.
This cookie is set by doubleclick.net. The purpose of the cookie is to determine if the user's browser supports cookies.
5 months 27 days
This cookie is set by Youtube. Used to track the information of the embedded YouTube videos on a website.