The following sections describe how to set up a two-leaf/two-spine Cumulus VX topology with QEMU/KVM on a Linux server.
Performing virtualization in Linux requires three components:
- Libvirt provides an abstraction language to define a VM. It uses XML to represent and define the VM.
- KVM works exclusively with QEMU and performs hardware acceleration for x86 VMs with Intel and AMD CPUs. The pair is often called KVM/QEMU or just KVM.
- QEMU is a machine emulator that allows the host machine to emulate the CPU architecture of the guest machine. Because QEMU does not provide hardware acceleration, it works well with KVM.
Review the Linux version of the host:
This guide is validated and verified for Ubuntu Trusty 14.04.5 LTS starting from a clean install.
Run the following commands to install
libvirt-udp-tunnelpackage repository provides an updated
libvirtdversion that includes enhancements required to launch Cumulus VX. The example below shows the installation output:
After the installation process is complete, log out, then log back in to verify the
libvirtversion.In this guide,
libvirt1.2.16 was verified.
Configure Cumulus VX VMs with QEMU/KVM
This section assumes that you have installed QEMU/KVM and the Cumulus VX disk image for KVM. For download locations and steps, refer to the Getting Started page.
This configuration is tested on a server running Debian 3.2.60-1+deb7u3 x86_64 GNU/Linux with 3.2.0-4-amd64 #1 SMP processors.
After you follow the steps below, the interfaces will be connected as follows:
qcow2image onto a Linux server four times to create the four VMs, then name them as follows:
leaf1.qcow2and configure it as follows:
leaf2.qcow2and configure it as follows:
spine1.qcow2and configure it as follows:
Power on spine2 and configure it as follows:
The QEMU/KVM commands used here are minimal. You can add more parameters, such as
-monitor, as needed.
Bridging Switch Port Interfaces
If you intend to bridge the switch ports in the VM, place each switch port in the bridge in its own virtual network on the host. Otherwise, you might see this error:
This section assumes that you are configuring a two-leaf/two-spine network topology, that you have completed the steps in Create a Cumulus VX Virtual Machine with VMware vSphere - ESXi 5.5 above, and that you now have a VM called
After you create all four VMs, follow the steps in Create a Two-Leaf, Two-Spine Topology to configure the network interfaces and routing.