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

Adobe Blue screen's when 2 PDF's are opened at the same time

well here is a new one, when you open 2 pdf's at the same time in acrobat reader 9, and you have 2d acceleration enabled (default) windows pukes.

found this article that explains it just the same senario except we are using ATI, however disabeling the 2d does fix the problem.

Topic

Acrobat Reader 9 Crashes PC When Opening 2 Documents Simultaneously (2D Graphics Acceleration Relate

shaungupta - 09:31pm Dec 16, 2008 Pacific

Hey all,

Weird issue. I noticed my Adobe Acrobat Reader 9 crashes when opening two PDF's simultaneously. The first one opens just fine. The second one, a new window opens, but there's only black inside the 2nd Reader window. It finally (after way too long) begins to show the document, and then I get a blue screen of death with a fault in nvlddmkm.sys, the nVidia display driver for my video card. It says it was unable to reset the display drivers, dumps the memory, and reboots. One interesting note is that if I close the "black" window before it blue screens, I can continue using the computer with no crash. It's only if I give it time to try to display.

I already found the temporary fix for this, which is disabling 2D Graphics Acceleration in the Acrobat Reader (Edit -> Preferences -> Page Setup). Fortunately I'm on a fast computer, so this doesn't affect performance much, but it still obviously isn't ideal, and I'd like to see the problem resolved.

I don't experience this problem with any other programs at the moment, so I'm thinking it's an issue with Adobe's product or possibly the nVidia drivers, but thought I should mention it and see if anyone has any other possible fixes where 2D Graphics Acceleration can remain enabled.

Thanks all!




However that is still the problem. The setting is user specific.
the setting
HKU\{some SID}\Software\Adobe\Acrobat Reader\9.0\AVDisplay\bUse2DGPUf: 0x00000001

has to be changed to
HKU\{some SID}\Software\Adobe\Acrobat Reader\9.0\AVDisplay\bUse2DGPUf: 0x00000000
and has to be changed by the currently logged in user. this poses a problem when you have to change this for 1000's of workstations.
this may be able to be put in a logon script, will let you know here in a bit.




----UPDATE---
here is a vbscript you can put in your login to change the setting

strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")



Set wshNetwork = CreateObject("WScript.Network")
strUser = wshNetwork.Username

'Wscript.Echo strUser



Set objAccount = objWMIService.Get("Win32_UserAccount.Name='" & strUser & "',Domain='domainname'")
strSID = objAccount.SID
'Wscript.Echo strSID


Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\default:StdRegProv")


Const HKU = &H80000003 'HKEY_USERS

strKeyPath = "" & strSid &"\Software\Adobe\Acrobat Reader\9.0\AVDisplay"
strValueName = "bUse2DGPUf"
dwValue = 0
oReg.SetDWORDValue HKU,strKeyPath,strValueName,dwValue

Comments

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