Posts

Showing posts with the label vSphere

How to get llama 2 up and running , in a VM, with no GPU, and limited memory on Ubuntu

Image
OK I decided to write this up after unsuccessfully being able to find all the required info I needed in one place. In this setup we will be using Ubuntu Server 22.04.2 LTS as the OS. I have this running on a home lab ESXi server 8, on a HP Compaq Pro 6300 SFF CPU = Intel Core i7-3770 Installed Memory 16 GB I have some 10K SAS drives installed for the VM's If you have not already, navigate to  Get Ubuntu Server | Download | Ubuntu and download the 22.04.2 LTS ISO Next Lets create our VM that we are going to run this in. *Note Im using ESXi however you can probably do this in Workstation, Fusion, VirtualBox etc The main things to note on the VM creation. Set Ubuntu 64 bit as the guest OS Set your CPU relevant to the physicals CPU, I will be starting with 4 VCPU Set your Memory to as much as you can tolerate, I will be using 12 Disk Space - we are creating a 100G swap file, and the rest of the file can take up some room , so more is better if you can afford it Dont forget to add the U

Upgrade VMware tools to the latest version , automatically

Image
Wanted to put out a quick post about updating VMware tools to the latest version, in this case 12.0.5 on all VMs in an environment. For vSphere 7.x this is really easy. First download the " VMware Tools Offline VIB Bundle" . https://customerconnect.vmware.com/en/downloads/details?downloadGroup=VMTOOLS1205&productId=1259&rPId=88838 Upload this to your vSphere Lifecycle Manager by clicking on three bars on the left, then in the Lifecycle Manager page, click Actions > Import Updates Select the file and it will upload This should add it to the Non-Critical Patches (Predefined) baseline. If not you can create a new baseline and just add in the tools package Attach the redefined or custom baseline to your ESXi host and remediate the host , the tools update did not require a reboot. Once all the hosts are updated, you can set your VMs to automatically upgrade on next power on \ reboot https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere-lifecycle-manager.doc/G

vSphere 7.0 U3c released

Image
 vSphere U3c finally released. TL;DR https://docs.vmware.com/en/VMware-vSphere/7.0/rn/vsphere-vcenter-server-70u3c-release-notes.html Here is my lab process: ESXi Host I am not using vLCM as these hosts are unsupported. Well maybe not to night , Ill check again in a little while. Dates appear to be a bit off: Wow... alot of updates Here we go....... Well... That was un event full No option to update vCenter... guess ill check tomorrow. Hmm nothing this morning...  Nothing found in the logs 2022-01-28T13:07:47 PM UTC [2136]DEBUG:vmware.appliance.update.update_functions:runCommandAndCheckResult failed: '--2022-01-28 13:07:47--  https://vapp-updates.vmware.com/vai-catalog/valm/vmw/8d167796-34d5-4899- be0a-6daade4005a3/7.0.3.00200.latest/manifest/manifest-latest.xml\nResolving vapp-updates.vmware.com ... 69.192.208.24\nConnecting to vapp-updates.vmware.com|69.192.208.24|:443... connected.\nHTTP request sent, a waiting response... \n  HTTP/1.1 404 Not Found\ n  Accept-Ranges: bytes\n 

VMware vSphere vCenter and ESXi Home Lab shutdown script with PowerCLI

Some times you need to shut down your lab in as efficient way as possible. I do this quite often as I don't like leaving my home lab running during various events (thunderstorms, weekends , vacation etc). And I really dont like having to click , wait, click, wait, click.... wait some more to get every thing down. So I wrote this script to power down my lab, Ill walk you through what it does and the completed version will be at the end of this post. (I'm also including a start-up script I use as well) First we need to import our power CLI modules and tell the script to ignore any self-signed or Invalid certificates ( If you want more info on setting up powerCli see the beginning of this post for more info) ------------------------------------------------------------------- Import-Module VMware.PowerCLI Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false ------------------------------------------------------------------- Now we need to setup our credential

Formatting Annotations.WelcomeMessage for the ESXi host so its not one long line 7.0

Image
Lets say your company needs a security banner on your ESXi host, but  you need your text to go to the next line like the examples below: Edit the settings, and place a /n (linux escape char) in the line you want to start new: Now you have your text on a new line

vSphere 7 - Specify a vmkernel adapter to use for NFS datastores Step By Step \ Walkthrough on a DVS

Image
 Recently I needed to setup a NFS server but needed it to specifically be on a specific vmkernel adapter. I found this KB https://kb.vmware.com/s/article/50112854 however there were some things missing so I decided to write this walkthrough incase it helps any one else. First thing , remove all NFS mounted datastores if you haven't already. I ran through this on 7.0.2 however is probably the same for other versions. Step 1: This is going to be on a DVS, so we want to go ahead and create a port group to silo off our NFS traffic. To make life easy, we will just call it NFS Static binding and elastic port allocation were the defaults so I let these there. If you are VLAN'ing your traffic modify this info here, and complete the wizard. Next put your host into Maintenance Mode We are going to add a New TCP/IP stack to the host. First check that you have not already created one in the UI by opening a browser to the ESXi host, navigate to networking > TCP/IP Stacks SSH into your ES