Created
September 11, 2020 17:19
-
-
Save miabbott/65c8483b430725851c6530d0556462c4 to your computer and use it in GitHub Desktop.
bonding testing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # virt-install command | |
| virt-install --name rhcos4 --os-variant rhel8.1 --ram 2048 --vcpus 2 --disk size=20 --network network=default,mac=52:54:00:f6:f3:41 --network network=default,mac=52:54:00:de:44:7c --accelerate --cdrom rhcos-43.81.202001072253.0-installer.x86_64.iso | |
| # install options | |
| coreos.inst.install_dev=vda coreos.inst.image_url=http://192.168.124.1:9001/rhcos-43.81.202001101655.0-metal.x86_64.raw.gz coreos.inst.ignition_url=http://192.168.124.1:9001/ignition.json coreos.inst.platform_id=qemu ip=192.168.124.100::192.168.124.1:255.255.255.0:rhcos:bond0:none bond=bond0:enp1s0,enp2s0:mode=active-backup,miimon=100rd.peerdns=0 nameserver=10.5.30.160 nameserver=10.0.128.69 | |
| # vadim's build | |
| coreos.inst.install_dev=vda coreos.inst.image_url=http://192.168.124.1:9001/rhcos-43vrutkovs.80.20191015.2-metal.x86_64.raw.gz coreos.inst.ignition_url=http://192.168.124.1:9001/ignition.json coreos.inst.platform_id=qemu ip=192.168.124.100::192.168.124.1:255.255.255.0:rhcos:bond0:none bond=bond0:enp1s0,enp2s0:mode=active-backup,miimon=100rd.peerdns=0 nameserver=10.5.30.160 nameserver=10.0.128.69 | |
| # first ART build with fixed igntion | |
| coreos.inst.install_dev=vda coreos.inst.image_url=http://192.168.124.1:9001/rhcos-43.81.20191022.1-metal.x86_64.raw.gz coreos.inst.ignition_url=http://192.168.124.1:9001/ignition.json coreos.inst.platform_id=qemu ip=192.168.124.100::192.168.124.1:255.255.255.0:rhcos:bond0:none bond=bond0:enp1s0,enp2s0:mode=active-backup,miimon=100rd.peerdns=0 nameserver=10.5.30.160 nameserver=10.0.128.69 | |
| # 43.81.201911190025.0 | |
| coreos.inst.install_dev=vda coreos.inst.image_url=http://192.168.124.1:9001/rhcos-43.81.201911190025.0-metal.x86_64.raw.gz coreos.inst.ignition_url=http://192.168.124.1:9001/ignition.json coreos.inst.platform_id=qemu ip=192.168.124.100::192.168.124.1:255.255.255.0:rhcos:bond0:none bond=bond0:enp1s0,enp2s0:mode=active-backup,miimon=100rd.peerdns=0 nameserver=10.5.30.160 nameserver=10.0.128.69 | |
| # 43.81.201911190025.0 w/ dhcp | |
| coreos.inst.install_dev=vda coreos.inst.image_url=http://192.168.124.1:9001/rhcos-43.81.201911190025.0-metal.x86_64.raw.gz coreos.inst.ignition_url=http://192.168.124.1:9001/ignition.json coreos.inst.platform_id=qemu ip=bond0:dhcp bond=bond0:enp1s0,enp2s0:mode=1 rd.driver.pre=dm_multipath | |
| # fixed ignition build with 1 static bonds | |
| coreos.inst.install_dev=vda coreos.inst.image_url=http://192.168.124.1:9001/rhcos-43.81.202001132054.0-metal.x86_64.raw.gz coreos.inst.ignition_url=http://192.168.124.1:9001/ignition.json coreos.inst.platform_id=qemu ip=192.168.124.100::192.168.124.1:255.255.255.0:rhcos:bond0:none bond=bond0:enp1s0,enp2s0:mode=active-backup,miimon=100 rd.peerdns=0 nameserver=10.5.30.160 nameserver=10.0.128.69 | |
| # fixed ignition build with 2 static bonds | |
| coreos.inst.install_dev=vda coreos.inst.image_url=http://192.168.124.1:9001/rhcos-43.81.202001132054.0-metal.x86_64.raw.gz coreos.inst.ignition_url=http://192.168.124.1:9001/ignition.json coreos.inst.platform_id=qemu ip=192.168.124.100::192.168.124.1:255.255.255.0:rhcos:bond0:none bond=bond0:enp1s0,enp2s0:mode=active-backup,miimon=100 ip=192.168.124.200::192.168.124.1:255.255.255.0:rhcos:bond1:none bond=bond1:enp3s0,enp4s0:mode=active-backup,miimon=100 rd.peerdns=0 nameserver=10.5.30.160 nameserver=10.0.128.69 | |
| # fixed ignition build with 1 dhcp bonds | |
| coreos.inst.install_dev=vda coreos.inst.image_url=http://192.168.124.1:9001/rhcos-43.81.202001132054.0-metal.x86_64.raw.gz coreos.inst.ignition_url=http://192.168.124.1:9001/ignition.json coreos.inst.platform_id=qemu ip=bond0:dhcp bond=bond0:enp1s0,enp2s0:mode=active-backup,miimon=100 rd.peerdns=0 nameserver=10.5.30.160 nameserver=10.0.128.69 | |
| # fixed ignition build with 2 dhcp bonds | |
| coreos.inst.install_dev=vda coreos.inst.image_url=http://192.168.124.1:9001/rhcos-43.81.202001132054.0-metal.x86_64.raw.gz coreos.inst.ignition_url=http://192.168.124.1:9001/ignition.json coreos.inst.platform_id=qemu ip=bond0:dhcp bond=bond0:enp1s0,enp2s0:mode=active-backup,miimon=100 ip=bond1:dhcp bond=bond1:enp3s0,enp4s0:mode=active-backup,miimon=100 rd.peerdns=0 nameserver=10.5.30.160 nameserver=10.0.128.69 | |
| # fixed ignition build with dhcp interfaces | |
| coreos.inst.install_dev=vda coreos.inst.image_url=http://192.168.124.1:9001/rhcos-43.81.202001132054.0-metal.x86_64.raw.gz coreos.inst.ignition_url=http://192.168.124.1:9001/ignition.json coreos.inst.platform_id=qemu ip=dhcp rd.peerdns=0 nameserver=10.5.30.160 nameserver=10.0.128.69 | |
| # fixed ignition build with static interface | |
| coreos.inst.install_dev=vda coreos.inst.image_url=http://192.168.124.1:9001/rhcos-43.81.202001132054.0-metal.x86_64.raw.gz coreos.inst.ignition_url=http://192.168.124.1:9001/ignition.json coreos.inst.platform_id=qemu ip=192.168.124.100::192.168.124.1:255.255.255.0:rhcos:enp1s0:none rd.peerdns=0 nameserver=10.5.30.160 nameserver=10.0.128.69 | |
| # fixed ignition build with multiple interface | |
| coreos.inst.install_dev=vda coreos.inst.image_url=http://192.168.124.1:9001/rhcos-43.81.202001132054.0-metal.x86_64.raw.gz coreos.inst.ignition_url=http://192.168.124.1:9001/ignition.json coreos.inst.platform_id=qemu ip=192.168.124.100::192.168.124.1:255.255.255.0:rhcos:enp1s0:none ip=192.168.124.200::192.168.124.1:255.255.255.0:rhcos:enp2s0:none rd.peerdns=0 nameserver=10.5.30.160 nameserver=10.0.128.69 | |
| # 4.2 ga image + 1 static bond | |
| coreos.inst.install_dev=vda coreos.inst.image_url=http://192.168.124.1:9001/rhcos-4.2.0-x86_64-metal-bios.raw.gz coreos.inst.ignition_url=http://192.168.124.1:9001/ignition.json coreos.inst.platform_id=qemu ip=192.168.124.100::192.168.124.1:255.255.255.0:rhcos:bond0:none bond=bond0:enp1s0,enp2s0:mode=active-backup,miimon=100 rd.peerdns=0 nameserver=10.5.30.160 nameserver=10.0.128.69 | |
| # 4.2 fixed image + 1 static bond | |
| coreos.inst.install_dev=vda coreos.inst.image_url=http://192.168.124.1:9001/rhcos-42devel.81.20200116.1-metal-bios.raw.gz coreos.inst.ignition_url=http://192.168.124.1:9001/ignition.json coreos.inst.platform_id=qemu ip=192.168.124.100::192.168.124.1:255.255.255.0:rhcos:bond0:none bond=bond0:enp1s0,enp2s0:mode=active-backup,miimon=100 rd.peerdns=0 nameserver=10.5.30.160 nameserver=10.0.128.69 | |
| # 4.2 ART Image + 1 static bond | |
| virt-install --name rhcos4 --os-variant rhel8.1 --ram 2048 --vcpus 2 --disk size=20 --network network=default,mac=52:54:00:f6:f3:41 --network network=default,mac=52:54:00:de:44:7c --accelerate --cdrom /var/lib/libvirt/images/rhcos-42.81.20200205.0-installer.iso | |
| coreos.inst.install_dev=vda coreos.inst.ignition_url=http://192.168.124.1:9001/ignition.json coreos.inst.platform_id=qemu ip=192.168.124.100::192.168.124.1:255.255.255.0:rhcos:bond0:none bond=bond0:enp1s0,enp2s0:mode=active-backup,miimon=100 rd.peerdns=0 nameserver=10.5.30.160 nameserver=10.0.128.69 coreos.inst.image_url=http://192.168.124.1:9001/rhcos-42.81.20200204.1-metal-bios.raw.gz | |
| # 4.2 ART Image + 1 dhcp bond | |
| virt-install --name rhcos4 --os-variant rhel8.1 --ram 2048 --vcpus 2 --disk size=20 --network network=default,mac=52:54:00:f6:f3:41 --network network=default,mac=52:54:00:de:44:7c --accelerate --cdrom /var/lib/libvirt/images/rhcos-42.81.20200205.0-installer.iso | |
| coreos.inst.install_dev=vda coreos.inst.ignition_url=http://192.168.124.1:9001/ignition.json coreos.inst.platform_id=qemu ip=bond0:dhcp bond=bond0:enp1s0,enp2s0:mode=active-backup,miimon=100 rd.peerdns=0 nameserver=10.5.30.160 nameserver=10.0.128.69 coreos.inst.image_url=http://192.168.124.1:9001/rhcos-42.81.20200204.1-metal-bios.raw.gz | |
| # 4.2 ART image + 2 static bond | |
| virt-install --name rhcos4 --os-variant rhel8.1 --ram 2048 --vcpus 2 --disk size=20 --network network=default,mac=52:54:00:f6:f3:41 --network network=default,mac=52:54:00:de:44:7c --network network=default,mac=52:54:00:f6:f4:51 --network network=default,mac=52:54:00:f6:f5:61 --accelerate --cdrom /var/lib/libvirt/images/rhcos-42.81.20200205.0-installer.iso | |
| coreos.inst.install_dev=vda coreos.inst.image_url=http://192.168.124.1:9001/rhcos-42.81.20200204.1-metal-bios.raw.gz coreos.inst.ignition_url=http://192.168.124.1:9001/ignition.json coreos.inst.platform_id=qemu ip=192.168.124.100::192.168.124.1:255.255.255.0:rhcos:bond0:none bond=bond0:enp1s0,enp2s0:mode=active-backup,miimon=100 ip=192.168.124.200::192.168.124.1:255.255.255.0:rhcos:bond1:none bond=bond1:enp3s0,enp4s0:mode=active-backup,miimon=100 rd.peerdns=0 nameserver=10.5.30.160 nameserver=10.0.128.69 | |
| # 4.2 ART image + single DCHP interface | |
| virt-install --name rhcos4 --os-variant rhel8.1 --ram 2048 --vcpus 2 --disk size=20 --network network=default,mac=52:54:00:f6:f3:41 --accelerate --cdrom /var/lib/libvirt/images/rhcos-42.81.20200205.0-installer.iso | |
| coreos.inst.install_dev=vda coreos.inst.ignition_url=http://192.168.124.1:9001/ignition.json coreos.inst.platform_id=qemu ip=192.168.124.100::192.168.124.1:255.255.255.0:rhcos:enp1s0:none rd.peerdns=0 nameserver=10.5.30.160 nameserver=10.0.128.69 coreos.inst.image_url=http://192.168.124.1:9001/rhcos-42.81.20200204.1-metal-bios.raw.gz | |
| # 4.3 GA image + 1 static bond | |
| virt-install --name rhcos4 --os-variant rhel8.1 --ram 2048 --vcpus 2 --disk size=20 --network network=default,mac=52:54:00:f6:f3:41 --network network=default,mac=52:54:00:de:44:7c --accelerate --cdrom /var/lib/libvirt/images/rhcos-4.3.0-x86_64-installer.iso | |
| coreos.inst.install_dev=vda coreos.inst.ignition_url=http://192.168.124.1:9001/ignition.json coreos.inst.platform_id=qemu ip=bond0:dhcp bond=bond0:enp1s0,enp2s0:mode=active-backup,miimon=100 rd.peerdns=0 nameserver=10.5.30.160 nameserver=10.0.128.69 coreos.inst.image_url=http://192.168.124.1:9001/rhcos-4.3.0-x86_64-metal.raw.gz | |
| ### | |
| coreos.inst.install_dev=vda coreos.inst.ignition_url=http://192.168.124.1:9001/ignition.json coreos.inst.platform_id=qemu coreos.inst.image_url=http://192.168.124.1:9001/rhcos-4.3.0-x86_64-metal.raw.gz ip=::::rhcos:enp1s0:dhcp | |
| # 4.3.8 Image + 1 DHCP bond (802.3ad) | |
| coreos.inst=yes coreos.inst.install_dev=vda coreos.inst.ignition_url=http://192.168.124.1:9001/ignition.json coreos.inst.image_url=http://192.168.124.1:9001/rhcos-4.3.8-x86_64-metal.x86_64.raw.gz ip=bond0:dhcp bond=bond0:enp1s0,enp2s0:mode=802.3ad,lacp_rate=1,xmit_hash_policy=layer3+4,miimon=100 | |
| #### | |
| #### | |
| ### Dusty's reproducer script | |
| #!/bin/bash | |
| set -eu | |
| DISK="/var/b/images/rhcos-${1}-qemu.x86_64.qcow2" | |
| kernelargs='ip=192.168.122.111::192.168.122.1:255.255.255.0:rhcos:bond0:none' | |
| kernelargs+=' bond=bond0:enp1s0,enp2s0:mode=active-backup,miimon=100' | |
| kernelargs+=' rd.peerdns=0' | |
| kernelargs+=' nameserver=10.11.5.19' | |
| kernelargs+=' nameserver=8.8.8.8' | |
| kernelargs+=' rd.neednet=1' | |
| kernelargs+=' console=tty0 console=ttyS0' | |
| #kernelargs+=' root=/dev/disk/by-label/root rootflags=defaults,prjquota rw ignition.firstboot console=tty0 console=ttyS0,115200n8 ignition.platform.id=qemu ostree=/ostree/boot.1/rhcos/35c3598a73719420a8ec4b8ed300218b8eaa9656102acbe239f8fee04ca9c960/0' | |
| kernelargs+=' root=/dev/disk/by-label/root rootflags=defaults,prjquota rw ignition.firstboot console=tty0 console=ttyS0,115200n8 ignition.platform.id=qemu ostree=/ostree/boot.1/rhcos/931b79ab3a9f527ed412c8644cf7839b536ed391d9d8a65f88cfb3420417f956/0' | |
| #kernelargs+=' rd.break' | |
| bootoptvalue="kernel=/var/b/images/rhcos-${1}-installer-kernel-x86_64" | |
| bootoptvalue+=",initrd=/var/b/images/rhcos-${1}-installer-initramfs.x86_64.img" | |
| set -x | |
| virt-install \ | |
| --import \ | |
| --name rhcos4 \ | |
| --os-variant rhel8.1 \ | |
| --ram 2048 \ | |
| --vcpus 2 \ | |
| --disk backing_store=${DISK},size=20,bus=scsi \ | |
| --network bridge=virbr0 \ | |
| --network bridge=virbr0 \ | |
| --graphics none \ | |
| --qemu-commandline="-fw_cfg name=opt/com.coreos/config,file=/var/b/images/ignition-with-auto-login.ign" \ | |
| --boot $bootoptvalue,kernel_args="$kernelargs" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment