- Add linux user to
libvirt
group
sudo usermod -a -G libvirt <your-user>
sudo -y install libvirt-devel gcc python3-devel
- Login and validate user can execute
virsh
commands
import csv | |
import os | |
def convert_1password_to_apple(input_file, output_file): | |
""" | |
Convert a 1Password CSV export file to a format compatible with Apple Passwords. | |
Apple Passwords import format requires the following columns: | |
- Title | |
- URL |
#!/bin/bash | |
set -euoE pipefail | |
# Redfish commands related to Virtual Media. | |
# Redfish doc reference: https://www.supermicro.com/manuals/other/RedfishRefGuide.pdf | |
export BMC_ADDRESS='' | |
export ISO_IMAGE=http://192.168.117.9:8080/ocp4-rwn-1-small.iso | |
export username_password='Administrator:superuser' |
Supporting 1G hugepages requires the Kernel to support 1G Hugepages. This is done by applying a boot Kernel parameter.
50-kargs-1g-hugepages.yaml
:
apiVersion: machineconfiguration.openshift.io/v1
kind: MachineConfig
Identify the ovs-node
of the Node hosting the Pods to monitor
# oc get pods --selector="app=ovs-node" -o wide
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
ovs-node-4hldj 1/1 Running 0 47h 198.18.100.16 worker-1 <none> <none>
ovs-node-bd9ln 1/1 Running 0 47h 198.18.100.12 master-1
from datasets import load_dataset | |
# Combine 'question' and 'answer' into a single 'text' field | |
def combine_qa(local_dataset): | |
local_dataset['text'] = f"User: {local_dataset['Question']}\nAssistant: {local_dataset['Answer']}" | |
return local_dataset | |
#################################################################################### | |
# main | |
#################################################################################### |
# | |
import sys, json | |
from pathlib import Path | |
from datetime import datetime | |
import pandas as pd | |
TSTAMP = datetime.now().replace(microsecond=0).isoformat().replace(":", '_') | |
ILABGEN = "granite-7b-lab-7b-Q4_K_M"+f"_{TSTAMP}" | |
DEBUG = True |
pip3 install virtualbmc
export vBMCServerIP=192.168.1.13