Skip to content

Instantly share code, notes, and snippets.

View xsgordon's full-sized avatar

Steve Gordon xsgordon

  • Red Hat
  • Toronto
View GitHub Profile
Starting with {product-title} 4.12, Red Hat has added a six month Extended Update Support (EUS) phase for even numbered releases, extending the total available lifecycle from 18 months to two (2) years. In the 4.12 release, this additional Extended Update Support is only available for the x86_64 architecture.
Starting with {product-title} 4.14, Red Hat has added an optional twelve months Additional Extended Update Support Term 2, extending the total available lifecycle from two (2) years to three (3) years. Additional EUS Term 2 is available on all architecture variants of {product-title}. For more information, see the link:https://access.redhat.com/support/policy/updates/openshift[Red Hat {product-title} Life Cycle Policy].
apiVersion: harvesterhci.io/v1beta1
kind: VirtualMachineTemplateVersion
metadata:
creationTimestamp: "2021-05-20T21:57:27Z"
generation: 2
labels:
template.harvesterhci.io/templateID: windows-iso-image-base-template
managedFields:
- apiVersion: harvesterhci.io/v1beta1
fieldsType: FieldsV1
@xsgordon
xsgordon / minishift-version-setting.txt
Last active October 10, 2017 15:05
Configuring Minishift to use OpenShift Origin v3.7.0-alpha.1
$ minishift config set openshift-version 3.7.0-alpha.1
$ minishift start
-- Checking if KVM driver is installed ...
Driver is available at /usr/local/bin/docker-machine-driver-kvm ...
Checking driver binary is executable ... OK
-- Checking if Libvirt is installed ... OK
-- Checking if Libvirt default network is present and active ... OK
-- Starting local OpenShift cluster using 'kvm' hypervisor ...
-- Minishift VM will be configured with ...
Memory: 2 GB
@xsgordon
xsgordon / minishift-quickstart.sh
Last active May 29, 2017 16:18
Quickly get up and running with minishift on a bare RHEL host.
#!/bin/sh
# Grab minishift and the oc client
wget https://github.com/minishift/minishift/releases/download/v1.0.1/minishift-1.0.1-linux-amd64.tgz
tar -xzf minishift-1.0.1-linux-amd64.tgz
wget https://github.com/openshift/origin/releases/download/v1.5.1/openshift-origin-client-tools-v1.5.1-7b451fc-linux-64bit.tar.gz
tar -xzf openshift-origin-client-tools-v1.5.1-7b451fc-linux-64bit.tar.gz
# These steps need to be performed as root, note that installing libvirt does not automatically bring qemu-kvm with it so we explicitly grab that.
sudo curl -L https://github.com/dhiltgen/docker-machine-kvm/releases/download/v0.10.0/docker-machine-driver-kvm -o /usr/local/bin/docker-machine-driver-kvm
@xsgordon
xsgordon / nested-virt.yaml
Last active June 5, 2017 13:34
Playbook to enable nested virtualization for Intel CPUs on RHEL 7
# E.g. ansible-playbook nested-virt.yaml --extra-vars target=127.0.0.1
---
- hosts: "{{target}}"
tasks:
- name: Disable reverse path filtering (default)
sysctl: >
name=net.ipv4.conf.default.rp_filter
value=0
state=present
- name: Disable reverse path filtering (all)
@xsgordon
xsgordon / xiincludes.xsl
Created April 22, 2013 14:15
Extract relative paths to all Xi:included files using XSL.
<?xml version="1.0"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xi="http://www.w3.org/2001/XInclude">
<xsl:output method="text" omit-xml-declaration="yes" indent="yes" />
<xsl:template match="xi:include[@href]">
<xsl:value-of select="@href"/><xsl:text>&#10;</xsl:text>
</xsl:template>
<xsl:template match="text()" />