Configuring the Deployment Environment
To facilitate subsequent configuration operations on different nodes, change the host names and mappings on all nodes.
- Set the host name of each node.
Management node:
hostnamectl set-hostname controller hostnamectl --transient set-hostname controller echo "controller" > /etc/hostname
Compute node:
hostnamectl set-hostname compute hostnamectl --transient set-hostname compute echo "compute" > /etc/hostname
After the change, log in to the OS again for the change to take effect.
- Modify the /etc/hosts files on all nodes.
- Open the file.
vi /etc/hosts
- Press i to enter the insert mode and add the following content:
IP address of the management node controller IP address of the compute node compute
- Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
- Open the file.
Parent topic: Installing and Deploying oVirt-engine