Skip to content

Instantly share code, notes, and snippets.

View isugimpy's full-sized avatar

Jayme Howard isugimpy

  • Reddit
  • Des Moines, IA
View GitHub Profile
@isugimpy
isugimpy / elb.tf
Last active December 6, 2022 14:22
resource aws_elb infra_candidate {
name = "infra-candidate"
subnets = ["subnet-placeholder"]
security_groups = ["sg-placeholder"]
listener {
instance_port = 80
instance_protocol = "HTTP"
lb_port = 80
lb_protocol = "HTTP"
04e2f2b77ec0067590c10703c67c947e875bf131dccb5e0c87f7de5a027dc460f4655424c6e3aaaf717877e7a77afa0f0e1098ace1223adf1cebe5e1ec1eb02d7c;skokefoe
#!/bin/bash
OPTS=""
# Basic CPU settings. Also fix Nvidia fuckery
#OPTS="$OPTS -cpu host,kvm=off,hv_time,hv_relaxed,hv_vapic,hv_spinlocks=0x1fff"
OPTS="$OPTS -cpu host,kvm=off,hv_time,hv_relaxed,hv_vapic,hv_spinlocks=0x1fff,hv_vendor_id=Nvidia43FIX"
#OPTS="$OPTS -cpu host,kvm=off"
OPTS="$OPTS -smp 4,sockets=1,cores=4,threads=1"
# Enable KVM full virtualization support.
OPTS="$OPTS -enable-kvm"
# Assign memory to the vm.