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...

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

 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 ESXi host and run the following command to add a new netstack called nfs

localcli network ip netstack add --netstack=nfs












Run the next command to verify the new netstack exists and reboot (it does not show up in the UI untill a reboot has been done)
esxcli network ip netstack get --netstack=nfs













After the reboot you can check the UI and verify you now see the new TCP/IP stack













The next set of commands will stop and start services (if not already stopped) and bind NFS traffic to our newly created TCP\IP stack 'nfs'. reboot after running

/etc/init.d/nfsgssd stop
vmkload_mod -u nfs41client
vmkload_mod -u nfsclient
vmkload_mod -u sunrpc
localcli system module parameters set -m sunrpc -p netstackName=nfs
localcli system module load -m sunrpc
localcli system module load -m nfsclient
localcli system module load -m nfs41client
/etc/init.d/nfsgssd start













Once the host comes back up you can now use vCenter to add in a new vmkernel adapter









Choose VMkernel NEtwork Adapter









Select the DVS port group we created at the begining










Now change the drop down to the new stack we just created











Complete the setup


Once it is created you can now mount your NFS share with the vmkernel IP you specified and have the NFS traffic go through that vmk.






Comments

Popular posts from this blog

Horizon View 2-factor Authentication for Free! with Google Authenticator or others

VMware View 2-factor authentication with Google Authenticator - Part Four