Filed in: Implementation.UsingTheVirtualMachine · Modified on : Fri, 04 Mar 16
We provide a VM to easily discover and play with the SR-IPv6 framework. The VM contains the SR-IPv6 kernel, the modified iproute2 as well as the Nanonet framework, which allows to easily create virtual networks within the VM in order to test various network setups with SR.
We consider that you already have a proper version of qemu-kvm installed on your machine.
If you downloaded the compressed image, uncompress it with the following command:
$ unxz sr6-qcow2.img.xz
Then, launch the VM with the following command:
# qemu-system-x86_64 -enable-kvm -cpu host -drive file=sr6-qcow2.img,if=virtio -net nic -net user -m 2G -monitor stdio -smp 4
Feel free to modify the
-m 2G and
-smp 4 to respectively change the allocated memory and CPUs.
Create a new VM in VirtualBox, and select the vbox image when prompted.
Once the system has booted, you will be automatically logged in as the
sr6 user. You can switch to root by typing the
sudo su command. The default passwords are
You might want to update the kernel to the latest SR-IPv6 nightly build:
# wget http://files.segment-routing.org/vmlinuz-sr6 -O - > /boot/vmlinuz-sr6
# wget http://files.segment-routing.org/System.map-sr6 -O - > /boot/System.map-sr6
# wget http://files.segment-routing.org/config-sr6 -O - > /boot/config-sr6
The home directory of the user contains the sources of the modified iproute2 tool (which is already installed in the system), and the Nanonet framework. See the page Nanonet for more information about the framework.