See also http://twiki.mwt2.org/bin/view/Admins/HypervisorConfiguration
Building a new VM
Before constructing the VM, it's useful already to have configured Cobbler to netboot the new system. This is more thoroughly described in http://twiki.mwt2.org/bin/view/Admins/NewCobblerNode
, but it's pretty straightforward to do through the GUI
. When setting a MAC address for the new VM, be sure that it isn't in Cobbler's
or in http://twiki.mwt2.org/bin/view/Admins/NetworkInventoryUC
. MAC prefixes should be as follows:
54:52:00:01 MWT2 UC
54:52:00:04 MWT2 IU
In order to have a strong mapping of MAC addresses to IP addresses for new nodes, I'm beginning a couple of new series. A strong mapping makes it easier for us to assure availability of both MAC and IP. Note that 54:52:00 is the OUI vendor prefix for Linux KVM, so we're really only allocating the "0a" (decimal 10) and "87" (decimal 135) sub-prefixes. Because of the strong mapping to IP addresses, the MAC field will be sparsely populated, but given the MAC or the IP, you can infer the other.
54:52:00:0a MAC prefix for IP addresses in 10.1.0.0/16. 54:52:00:0a:xx:yy => 10.1.xx.yy.
54:52:00:87 MAC prefix for IP addresses in 188.8.131.52/16. 54:52:00:87:xx:yy => 128.135.xx.yy.
In Cobbler, pay particular attention to these settings:
|| [name of server; e.g. uct2-newserver.mwt2.org]
|| [select a profile; e.g. SL-55-x86_64-kvm]
| General/Netboot enabled
| Virtualization/Virt Path
|| [path for root disk image; e.g. /kvm/uct2-newserver.mwt2.org.img]
| Virtualization/Virt File Size
| Virtualization/Virt Type
| Virtualization/Virt CPUs
|| # of cpus
| Virtualization/Virt RAM
|| [size of memory in MEGABYTES]
| Virtualization/Virt Auto Boot?
|| yes or no
| Networking (Global)/Hostname
|| [the nodename of the machine, which actually has nothing to do with networks; e.g. uct2-newserver.mwt2.org]
| Networking (Global)/Gateway
|| Default gw, e.g. 184.108.40.206
| Networking/eth0/MAC Address
| Networking/eth0/IP Address
|| [private, internal IP; e.g. 10.1.x.y]
| Networking/eth0/Virt Bridge
| Networking/eth1/MAC Address
| Networking/eth1/IP Address
|| [public, external IP; e.g. 128.135.x.y]
|| [whatever is appropriate; e.g. 255.255.255.128]
| Networking/eth1/Virt Bridge
The Cobbler DHCP service listens on the private network. It will configure
using DHCP, but
must be configured as
Everything else, to the best of my knowledge, will be inherited or configured at installation time.
Be sure to sync cobbler before proceeding, so that DHCP and PXE are updated.
Libvirt stores virtual machine metadata in XML files. A machine description for
, virtual disks reside in
, and are referenced by the XML VM descriptor.
You can create an XML descriptor for a new VM manually, or by using an existing VM as a template, or you can use the
command. (See references.) But the easiest is to use
koan --server=bootstrap.mwt2.org --virt --system=uct2-newserver.mwt2.org
, the VM will boot and attempt to PXE boot. If everything is good so far, it will begin network installation. It will shut down on completion. You will restart it:
virsh start uct2-newserver.mwt2.org
The new system will come up.
- 08 Feb 2013