Skip to content

Instantly share code, notes, and snippets.

@pavolloffay
Last active July 3, 2018 13:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pavolloffay/6cf767a59a2c8066161a19de271e92d1 to your computer and use it in GitHub Desktop.
Save pavolloffay/6cf767a59a2c8066161a19de271e92d1 to your computer and use it in GitHub Desktop.
ovirt-fedora
virt-builder centos-7.4 --root-password password:nolamavaio --size=15G --ssh-inject=root --format=qcow2 -o centos74.qcow2
sudo virt-install --import --disk centos74.qcow2 --memory 10000 --name oc-test --cpu core2duo,+x2apic,disable=vmx
Destroy
virsh destroy oc-test
virsh undefine oc-test --managed-save
Restart
virsh shutdown oc-test
virsh start oc-test
Open console
virsh console oc-test
In VM
yum install -y wget vim git
yum install python-virtualenv.noarch
virtualenv ansible23
source ansible23/bin/activate
pip install --upgrade pip
pip install ansible==2.4.3.0
Clone openshift-ansible
git clone https://github.com/openshift/openshift-ansible
cd openshift-ansible
git checkout release-3.9
vim inventory/hosts.localhost # use 127.0.0.1.nip.ip as instead of localhost
Access OC cluster
oc status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment