Create cfg file for your YubiRadius DomU

In this post which is part of the series on how to import YubiRadius, a Free Radius appliance implementing OTP validation, into Xen Open source Hypervisor, we will finally create the .cfg file needed by the Hypervisor to create the virtual machine and boot it

As we saw earlier most of the work is already been done by the Xen.tools, which would already have created the cfg file for the DomU we created in an earlier step and the yubiradius config file can be easily cloned from the DomU cfg file we had in a previous step.

root@Lithium-Dom0:/mnt/sdb1/download# cat /etc/xen/YubiRad.cfg
#
# Configuration file for the Xen instance YubiRad
# Fri Mar 2 17:34:50 2012.
#
#
#  Kernel + memory size
#
 
bootloader = ‘/usr/bin/pygrub’
 
vcpus       = ‘2’
memory      = ‘512’
 
#
#  Disk device(s).
#
root        = ‘/dev/xvda2 ro’
disk        = [
‘file:/xen/images/domains/yubiradius/YubiRad.img,xvda2,w’,
‘file:/xen/images/domains/yubiradius/swap.img,xvda1,w’,
]
#
#  Physical volumes
#
#
#  Hostname
#
name        = ‘YubiRad’
 
#
#  Networking
#
vif         = [ ‘ip=192.168.x.x,bridge=eth0,mac=00:16:3E:8B:fa:b1’ ]
#
#  Behaviour
#
on_poweroff = ‘destroy’
on_reboot   = ‘restart’
on_crash    = ‘restart’
root@Lithium-Dom0:/mnt/sdb1/download#

In this phase it is necessary that the information in the disk device section matches what you have in the fstab. Also the mac address has to be unique at least in own layer 2 network. Also, by copying the file you already have for the host that has been created, you ensure the MAC address is valid (the higher bits have significance in MAC addresses) and by changing one of the last octets you will reduce the risk of MAC address collisions in your network: Xen has its own MC address space assigned to it and Xen-Tools use thos addresses when creating the .cfg file.

About Fabio

Love of technology and flying have been the drivers of my life, more about me.
Tagged , , , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *



Please solve the Sweet CAPTCHA below (when displayed) in order to post a comment.