https://www.juniper.net/documentation/en_US/vrr/topics/task/installation/vrr-kvm-installing.html
...
cp /home/me/Downloads/juniper/vMX_files/junos-x86-64-17.3R1.10.qcow2 /var/lib/libvirt/images/vrr-VM01.img
cp /home/me/Downloads/juniper/vMX_files/metadata.img /var/lib/libvirt/images/metadata.img
Issue with em2 and em3 >>> need more investigation, use vlan on em1
Code Block |
---|
title | hp8300 bridge config |
---|
collapse | true |
---|
|
[root@hp8300 images]# brctl show
bridge name bridge id STP enabled interfaces
br0 8000.6c3be5389335 yes eno1
vnet0
vnet1
br1 8000.000000000000 yes
virbr0 8000.000000000000 yes
virbr1 8000.000000000000 yes
virbr2 8000.5254001f8598 yes virbr2-nic
vnet2
virbr3 8000.5254000d4d01 yes virbr3-nic
vnet3
virbr4 8000.525400571a52 yes virbr4-nic
virvlan 8000.525400279847 yes virvlan-nic
vrr-ext 8000.000000000000 no
vrr-mgmt 8000.000000000000 no
#some of the bridges have been created by virsh
[root@hp8300 images]# virsh net-list
Name State Autostart Persistent
----------------------------------------------------------
virbr2 active yes yes
virbr3 active yes yes
virbr4 active yes yes
virvlan active yes yes
|
#using hp8300 set-up instead >>> and change the vrr.xml accordingly ( br0 + virbr0 )
#brctl addbr vrr-mgmt
#brctl addbr vrr-ext
#ip link set dev vrr-mgmt up
...
from vRR1.xml slot= '0x04' function= '0x0'
em0 = 0x03 >> will be the first interface
em1 = 0x04 >> will be the second interface
em2 = 0x05 >> will be the third interface
em3 = 0x06 >> will be the forth interface
Code Block |
---|
title | show VM's Mc Address |
---|
| [root@hp8300 ~]# virsh domiflist vRR1
Interface Type Source Model MAC
-------------------------------------------------------
vnet4 bridge br0 e1000 52:54:00:b5:e6:1c
vnet5 bridge br0 e1000 52:54:00:78:7d:ee
vnet6 bridge virbr2 e1000 52:54:00:eb:ba:dd
vnet7 bridge virbr2 e1000 52:54:00:10:e3:49
|
|
Code Block |
---|
title | show VM's mac address |
---|
collapse | true |
---|
| [root@hp8300 ~]# brctl showmacs br0 | grep 52:54:00:b5:e6:1c
4 52:54:00:b5:e6:1c no 1.01
bridge name bridge id STP enabled interfaces
br0 8000.6c3be5389335 yes eno1
vnet4
br1 8000.000000000000 yes
virbr0 8000.000000000000 yes
virbr1 8000.000000000000 yes
virbr2 8000.5254001f8598 yes virbr2-nic
vnet5
vnet6
vnet7
virbr3 8000.5254000d4d01 yes virbr3-nic
virbr4 8000.525400571a52 yes virbr4-nic
virvlan 8000.525400279847 yes virvlan-nic
vrr-ext 8000.000000000000 no
vrr-mgmt 8000.000000000000 no
[root@hp8300 ~]# virsh net-list
Name State Autostart Persistent
----------------------------------------------------------
virbr2 active yes yes
virbr3 active yes yes
virbr4 active yes yes
virvlan active yes yes
|
|
---|
...