Last active
July 3, 2018 13:02
-
-
Save pavolloffay/6cf767a59a2c8066161a19de271e92d1 to your computer and use it in GitHub Desktop.
ovirt-fedora
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
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