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

Red Hat 8 as Instant Clone for Horizon View 7.11 Step By Step - Prepare the Master Template

Prepare the Master Template


In this part we are going to prepare the Master Template for deployment as a Instant Clone.
If you have not already , see my post about Creating the Master Template.


Now that the Master Template is created, and activated go ahead and power it back on (if not already) and either login to the VM or open an SSH session (I will be using an SSH session as it is much easier to copy and paste all the commands that we will be running)


Once you have your Shell session open, make yourself root:

#sudo su




For SSO to work with RHEL8 you have to use Gnome Classic (VMware Documentation)

Run the following command on one line:
# cd /usr/share/xsessions && mkdir backup && mv *.desktop backup && mv backup/gnome-classic.desktop ./





(Optional but recommended)
Gnome by default shows the last logged in user on the landing screen, you can some times see the last user when you connect to an Instant Clone VM. To just disable this all together run the following:


# echo [org/gnome/login-screen] > /etc/dconf/db/local.d/00-login-screen
# echo disable-user-list=true >> /etc/dconf/db/local.d/00-login-screen
# dconf update
# systemctl restart gdm


Now when you console or connect in, it should look like this:





(Optional but recommended) 
Gnome has a initial login screen, I dont feed this is useful in an instant clone environment so lets disable it:


# echo X-GNOME-Autostart-enabled=false >> /etc/xdg/autostart/gnome-initial-setup-first-login.desktop




Check that the entry was added to the file:
# cat /etc/xdg/autostart/gnome-initial-setup-first-login.desktop





Now we need to disable the virtd  adapter so we don't have multiple IP's. This requires you to install packages to simply remove it:

# yum install libvirt -y









Now disable and remove the adapter, and check that you only have one nic and a loopback:


# virsh net-destroy default 
# virsh net-undefine default
# service libvirtd restart




Next we need to install the packages that will be used to join the VM and Instant clones to the domain, and allow users to have home directories.

# yum install samba samba-client  samba-winbind samba-winbind-clients oddjob-mkhomedir tdb-tools -y







Once the packages are installed, we need to set the FQDN t name in the /etc/hosts file, this is a requirement of the View agent. Since my domain is home.lab and the VM is rhel80 I will use the following:

# echo 127.0.0.1 rhel80.home.lab rhel8 >> /etc/hosts





Now you can proceed with either setting up USB redirection (coming soon) or jumping right into installing the horizon agent:


Configure USB redirection (coming soon)




Comments

  1. How to play at a roulette wheel without a pay table
    The casino doesn't charge 속초 출장마사지 a penny to play a 구미 출장샵 particular game. 안동 출장샵 Instead, you just make 강릉 출장안마 a bet with the 오산 출장안마 dealer to pick one for your lucky number.

    ReplyDelete

Post a Comment

Popular posts from this blog

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

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

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