- Install the Virtual BMC package in the machine to use as the vBMC server.
Note1: When using OpenStack repos the python3-virtualbmc RPM might be available. These instrucctions do not use that package.
pip3 install virtualbmc
- The vBMC server can be running in any machine. When using a remote libvirt server it is recommended to have passwordless authentication from the vBMC server to the libvirt machines.
- For this document the vBMC Server
export vBMCServerIP=192.168.1.13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
#################################################################################### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: ingressnodefirewall.openshift.io/v1alpha1 | |
kind: IngressNodeFirewallConfig | |
metadata: | |
name: ingressnodefirewallconfig | |
namespace: openshift-ingress-node-firewall | |
spec: | |
nodeSelector: | |
node-role.kubernetes.io/control-plane: "" | |
--- |
-
Configure export domain in RHV or Ovirt
-
Export the VM to the export domain. A new directory with the vdisk uuid will be created and the VM will be exported to it.
- A sample export
/exportfs/export_domain/<vdisk_uuid>/images/<disk_id>
- A sample export
-
Mount the export domain ito a Linux mcahine and go into the
<vdisk_uuid>/images
-
In the folder there iwll be a file with a uuid representing the
<disk_id>
and ameta
file -
Use
qemu-img convert
to convert toqcow2
format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If $USERNAME and $PASSWORD are not defined | |
# in the environment prompt for them | |
if [ -z "${USERNAME+x}" ]; then | |
read -p 'Username: ' USERNAME | |
fi | |
if [ -z "${PASSWORD+x}" ]; then | |
read -sp 'Password: ' PASSWORD | |
fi | |
echo -e "\nAttempting to find the K8s API Server and token" |
NewerOlder