Skip to content
This repository has been archived by the owner on Jun 4, 2021. It is now read-only.

Running machines in libvirt

David Lutterkort edited this page Sep 17, 2013 · 2 revisions

Virtual machines are a great way to try out Razor. If you are using libvirt, you can use the following network definition

<network>
  <name>razor</name>
  <uuid>d5e4d859-721b-caf1-4842-21704dea23dd</uuid>
  <forward mode='nat'/>
  <bridge name='virbr0' stp='on' delay='0' />
  <mac address='52:54:00:CA:8D:34'/>
  <ip address='192.168.100.1' netmask='255.255.255.0'>
    <tftp root='/var/lib/tftpboot' />
    <dhcp>
      <range start='192.168.100.128' end='192.168.100.254' />
      <bootp file='bootstrap.ipxe' />
    </dhcp>
  </ip>
</network>

Add a line 192.168.100.1 razor to /etc/hosts while you are at it and start the network with virsh net-start razor (in reality, you really want to use virt-manager to do all this)

After that, just create yourself a few VM's and set them to PXE boot from the razor network; don't forget to put undionly.kpxe and bootstrap.ipxe into /var/lib/tftpboot (see Installation)