Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added x86_64 EFI bootloader

...

WARNINGS: Please ensure you have the latest (at least 3.0.0) version of libvirt to automatically use '-pflash' option to run EFI firmware as this is the most stable and feature-complete.
                     Please ensure the video card mode of the EFI enabled VM is set to VGA, and the Disk to IDE.
                     You cannot clone a BIOS based VM's disk and use it on a EFI VM and expect it to work out of the box. EFI will not pick up the grub and you will be on the shell. Restoration might be possible but outside of the scope of this page.

Network Setup

Now that libvirt and qemu are properly setup, it is time for the network configuration.
Using the virt-manager, go into the Edit > Connection Details > Virtual Networks (tab), click on the Plus sign to add a new network, and create :

...

WARNING: Note that you won't be able to have both the VPN connection to the actual lab up, and those networks started at the same time as Linux, despite being wonderful, cannot magically guess which 10.40 or 10.41 you want your packets to be routed to.
                   To mitigate this we recommend not enabling autostart of the libvirt networks. To start them use the command :



Code Block
languagebash
root@localhost:~# virsh net-start $(VM_NETWORK_NAME)


To stop them, use the command :


Code Block
root@localhost:~# virsh net-destroy $(VM_NETWORK_NAME)


Without the networks started, you will not be able to start the VM's whose interfaces are linked to those networks.

...

Note : You can assign multiple machines to the same BMC !

PXE booting an x86_64 UEFI machine

To PXE boot an amd64 UEFI enabled machine, you need a specific grub to be supplied by MrP as bootloader.
One such GRUB can be downloaded here : http://people.linaro.org/~baptiste.gerondeau/grub.efi