Laptop KVM Setup
Laptop KVM Setup
Laptop KVM Setup
<network>
<name>isolated</name>
<uuid>1acc23fb-fc90-48d6-9b20-4f56947c2985</uuid>
<forward mode='nat'/>
<bridge name='virbr1' stp='on' delay='0'/> -------------------> # change
virbrX according to brctl show command i.e. append virbrX+1 here
<mac address='52:54:00:90:8b:cc'/>
<ip address='192.168.123.1' netmask='255.255.255.0'>
</ip>
</network>
Create a RHEL 7.2 VM with 4096 RAM and 120G HDD with isolated network
And network parameters should be of type virtio and HDD as well virtio
==========
Inside VM
=========
# cat > /etc/hosts << EOF
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.123.2 satellite.lab.example.com satellite
192.168.123.1 kvm.lab.example.com kvm
EOF
# hostnamectl set-hostname satellite.lab.example.com
# hostname satellite.lab.example.com
# # cat /etc/yum.repos.d/satellite.repo
[rhel-7-server-rpms]
name=RHEL 7 Server RPMs
baseurl=ftp://192.168.123.1/pub/satellite/rhel-7-server-rpms
gpgcheck=0
enabled=1
[rhel-7-server-satellite-6.2-rpms]
name=RHEL 7 Server Satellite 6.2 RPMs
baseurl=ftp://192.168.123.1/pub/satellite/rhel-7-server-satellite-6.2-rpms
gpgcheck=0
enabled=1
[rhel-server-rhscl-7-rpms]
name=RHEL 7 Server RHSCL RPMs
baseurl=ftp://192.168.123.1/pub/satellite/rhel-server-rhscl-7-rpms
gpgcheck=0
enabled=1
# mkdir ~/.hammer
cat > ~/.hammer/cli_config.yml <<EOF
:foreman:
:host: 'https://satellite.lab.example.com/'
:username: 'admin'
:password: 'redhat'
EOF
# ORG="RedHat"
# LOC="India"
# yum install wget -y
# wget http://dhcp9-239.gsslab.pnq.redhat.com/pub/satellite6.zip -P /tmp
# hammer subscription upload --organization "$ORG" --file /tmp/satellite6.zip
# hammer organization update --name "$ORG" --redhat-repository-url
"http://dell-per320-3.gsslab.pnq.redhat.com/pub/local-cdn/"