Skip to content

Instantly share code, notes, and snippets.

@pavolloffay pavolloffay/ovirt-fedora
Last active Jul 3, 2018

Embed
What would you like to do?
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
You can’t perform that action at this time.