RHEL7: Configure a physical machine to host virtual guests.

Share this link

Note: This is an RHCSA 7 exam objective.

Prerequisites

Download the CentOS 7 distribution (see Software requirements) and install it with default configuration.

Choose a domain name (example.com strongly recommended), a host name (for example master.example.com) and an IP address compatible with your network environment (here 192.168.1.5, gateway is supposed to be 192.168.1.1).

Update your system:

# yum update

Installation Procedure

Install the KVM packages:

# yum group install "Virtualization Host"
# yum install -y virt-install
# yum install -y virt-top

Start the libvirtd service:

# systemctl start libvirtd

Activate the Chronyd/NTP service at boot and start it:

# systemctl enable chronyd && systemctl start chronyd

Check the installation:

virt-host-validate
QEMU: Checking for hardware virtualization : PASS
QEMU: Checking for device /dev/kvm : PASS
QEMU: Checking for device /dev/vhost-net : PASS
QEMU: Checking for device /dev/net/tun : PASS
LXC: Checking for Linux >= 2.6.26 : PASS

KVM Tip

You have just installed a KVM host but this installation will only last for 1 year. After this period and a reboot, your KVM certificate will expire. Look at this tutorial about KVM certificate expiration to set up an installation for more than 1 year.

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading...

Leave a Reply

2 Comments on "RHEL7: Configure a physical machine to host virtual guests."

Notify of
Sort by:   newest | oldest
Jaz
Member
Jaz

Q 1) Do we have to perform all of our exam questions on KVM?
I am currently using vmware workstation to practice RHEL7.

Q 2) Is this all we need to do in exam regarding KVM? Or we have to do more than just installing KVM?

wpDiscuz

RHCSA7: Task of the day

Allowed time: 15 minutes.
Get an iso image of CentOS 7 (or a DVD) and set up a local repository.

RHCE7: Task of the day

Allowed time: 10 minutes.
Set up a caching-only DNS server.

Poll for favorite RHEL 7 book

What is your favorite RHEL 7 book to prepare RHCSA & RHCE exams?

View Results

Loading ... Loading ...

Poll for most difficult RHCSA 7 topic

What do you think is the most difficult RHCSA 7 topic?

View Results

Loading ... Loading ...

Poll for most difficult RHCE 7 topic

What do you think is the most difficult RHCE 7 topic?

View Results

Loading ... Loading ...