Network and Machine Configuration Guide
This document provides a detailed guide for configuring network and machine parameters, including XML editing for libvirt, managing VM disk formats, and establishing a systematic approach to assigning machine UUIDs, MAC addresses, and other related configurations. It also outlines the structure for assigning unique identifiers to servers and VMs based on their roles and environments.
.qcow2
disk from a system-prepared VM and delete all previous signatures (e.g., SSH keys, hostname, file system UUID).Code | Description |
---|---|
e0 | Development |
e1 | Staging |
e2 | DevOps |
e3 | Load Balancer (local domains) |
e4 | Monitor |
e5 | Webxi |
e6 | MySQL Backup |
e7 | Miscellaneous |
It is based on the KVM bridge on the bare metal server.
If the bridge name is virbr20
this octet will be 20
.
Bridge Name | Code | Description |
---|---|---|
Virbr20 | 20 | Prmary Interface(Bridged) |
Virho10 | 10 | Host-only Interface |
Virbr30 | 30 | Prmary Interface(Bridged) |
Octet | Description |
---|---|
00 | Default sequence |
01, 02… | Specific project/environment sequence |
Staging Changes:
Octet | Description | Example Value |
---|---|---|
Octet-3 | Staging environment | e1 |
Octet-4 | Primary interface | 20 |
Octet-5&6 | Sequence number specific to the project | 00, 01, 02 |
Format | Complete MAC Address Format | 0a:01:e1:20:00:00 |
Octet | Field | Description |
---|---|---|
Octet 1 | data-center-id | Identifier for the data center |
Octet 2 | Bare metal server number | Unique machine number |
Octet 3 | Environment-number | Environment code (e.g., e1 for staging) |
Octet 4 | interface-number | Interface ID (e.g., 20 for primary interface) |
Octet 5 & 6 | sequence-1 & 2 | Sequential numbers for project or environment |
Example:
0a:01:e1:20:00:01
00000000-0000-0000-0000-0a01e1200001
Role | MAC Address | Description |
---|---|---|
DevOps Server | 0a:01:e2:20:00:01 | Bridge MAC: 0a:01:e2:20:00:01 Host-only MAC: 0a:01:e2:10:00:01 |
MySQL Backup | 0a:01:e6:20:00:01 | Look at the octets |
Miscellaneous Server | 0a:01:e7:30:00:01 | Look at the octets |
The machine UUID is derived by removing the colons (:) from the primary interface’s MAC address of the VM and appending it to the UUID base 00000000-0000-0000-0000-.
Example:
Primary MAC Address: 0a:01:e1:20:00:01
Machine UUID: 00000000-0000-0000-0000-0a01e1200001
By adhering to these guidelines and the outlined structure, you can maintain a standardized and conflict-free environment for managing VMs and their network configurations.
By adhering to these guidelines and the outlined structure, you can maintain a standardized and conflict-free environment for managing VMs and their network configurations.
After determining the interface MAC address and machine UUID for various environments, it is crucial to understand the reserved IP addresses for specific purposes. The following steps guide you in identifying and managing IP addresses in your infrastructure:
Access Reserved IP Address Information:
Review IP Addresses Reserved for Employees:
Understanding the IP Range:
Check for Specific Sequences:
By referring to the above resources, you can efficiently manage and allocate IP addresses based on specific usage requirements and avoid conflicts in your network infrastructure.