10 setting up the dhcp server for virtual guests – HP Insight Control Software for Linux User Manual
Page 210
3.
Use the text editor of your choice to create the /etc/icelx/uuidformat/nodename file
on the managed system. This file consists only of the following text:
UUIDFORMAT=n
Where n is original, lowercaseG6, or G6, as appropriate.
4.
If the IP of the management processor is on a separate subnet from the server and inaccessible,
then perform these additional steps to allow the server to be successfully bare-metal
discovered.
a.
Create a subdirectory named uuidformat under the /var/lib/systemimager/
scripts/
directory.
b.
Use the text editor of your choice to create a file either named for the host name or
named default in that directory. This file consists only of the following text:
UUIDFORMAT=G6
5.
Perform a bare-metal discovery on the server.
6.
Run the install.sh script, which is included in the distribution, to correct any licensing
issues:
# install.sh --clear-license-uuids
21.10 Setting up the DHCP server for virtual guests
HP recommends that you map (for the
server) the MAC addresses to the IP addresses,
particularly if you want to monitor the virtual machine guests (
s). Here, within the
/etc/dhcpd.conf
file, is a map for virtual machines vm001 and vm002, which are used as an
example in this chapter.
group {
option subnet-mask 255.255.252.0;
option routers 192.0.2.1;
option domain-name-servers 192.0.2.51,192.0.2.52;
option ntp-servers ntp1.example.com,ntp2.example.com;
option domain-name "example.com";
host vm001 {
hardware ethernet 00:16:3E:AB:CD:01;
fixed-address 192.0.2.150;
option host-name "vm001";
}
host vm002 {
hardware ethernet 00:16:3E:AB:CD:02;
fixed-address 192.0.2.151;
option host-name "vm002";
}
}
MAC addresses for some virtual machines begin with the octets 00:16:3E; the final three octets
are chosen arbitrarily.
NOTE:
A convention used in this map is that the value of the last two (hexadecimal) digits of
the MAC address matches the (decimal) value of the host name. For example, a host named
vm011
, would correlate to a MAC address ending with the octet 0B.
210
Miscellaneous topics