Ubuntu Server 21.10 is out!
It ships
- Linux kernel 5.13 (including, among others, features as described here and here)
- QEMU v6.0
- libvirt v7.6
Ubuntu Server 21.10 is out!
It ships
Intended for KVM virtual server administrators, the "Linux on Z and LinuxONE - KVM Virtual Server Management" book illustrates how to set up, configure, and operate Linux on KVM instances and their virtual devices running on the KVM host and IBM Z hardware.
This major update includes libvirt commands and XML elements for managing the lifecycle of VFIO mediated devices, performance tuning tips, and a simplified method for configuring a virtual server for IBM Secure Execution for Linux.
qeth devices, namely OSA-Express and HiperSockets, have a vast array of functionalities that is easy to get lost in. This entry illustrates some of the most commonly sought functionalities, while trying to avoid confusing the reader with too much background information.
TLDR:
Initially, the only way to enable promiscuous mode on OSA-Express adapters and HiperSockets was through the so-called bridgeport mode. The concept of the bridgeport mode distinguishes between between ports as follows:
Bridgeport mode is available in Layer 2 mode only. Furthermore, HiperSockets devices need to be defined as external-bridged in IOCDS.
Use attributes in the device's sysfs directory as follows:
Bridgeport
mode effectively provides a promiscuous mode. But note that in addition
to enabling the primary bridgeport mode, the respective interface has
to have the promiscuous mode set, still!
All in all, here is how usage of this feature typically looks like:
$ echo primary >/sys/devices/qeth/0.0.bd00/bridge_role
# verify that we got primary bridgeport, not secondary, and are active:
$ cat /sys/devices/qeth/0.0.bd00/bridge_state
active
$ cat /sys/devices/qeth/0.0.bd00/bridge_role
primary
# enable promiscuous mode on the interface
$ ip link set <interface> promisc on
The downside of this approach is that only a single operating system per device can enable the primary bridgeport mode, which scales only that far. Therefore, something better, with more functionality was introduced to the platform.
Introduced
with IBM z14/LinuxONE II for HiperSockets, and IBM z15/LinuxONE III for
OSA, the VNIC characteristics feature provides promiscuous mode for
multiple operating systems attached to the same device, and provides
additional functionality which can be very handy especially with KVM.
The VNIC characteristics can be controlled through a number of attributes located in an extra subdirectory called vnicc in the device's sysfs directory.
Let us focus on two main functionalities.
Technically, VNIC does not provide a traditional promiscuous mode (just like bridgeport mode did not in the literal sense), but rather emulates a self-learning switch. However, for users looking for a promiscuous mode that is usable in conjunction with a Linux bridge or an Open vSwitch, the end-result is the same.
To activate, set the attributes as follows:
echo 1>/sys/devices/qeth/0.0.bd00/vnicc/flooding
echo 1>/sys/devices/qeth/0.0.bd00/vnicc/mcast_flooding
echo 1>/sys/devices/qeth/0.0.bd00/vnicc/learning
Again, in addition to enabling the promiscuous mode on the device,
the respective interface has to have the promiscuous mode set, still:
ip link set <interface> promisc on
Providing connectivity to virtual servers running in KVM, administrators have two choices to provide connectivity:
Luckily, VNIC characteristics offers functionality for MAC address takeover, too. To enable, set the VNIC characteristics as follows:
On the source KVM host:
echo 1>/sys/devices/qeth/0.0.bd00/vnicc/takeover_learning
On the target KVM host:
echo 1>/sys/devices/qeth/0.0.bd00/vnicc/takeover_setvmac
Note that bridgeport mode and VNIC characteristics are mutually exclusive! Meaning as soon as e.g. a single VNIC characteristics-related attribute is activated, bridgeport-related functionality is not available anymore until that VNIC-characteristic is disabled again.
Furthermore, check your Linux distribution's tools on how to persist the changes outlined above. On many distros, chzdev (comes with the s390-tools package) does the job, but not (yet) on all.
This
article only provides a brief overview. Both, promiscuous mode and the
VNIC characteristics have a lot more to it than what was covered in this
brief overview, which merely aims to provide just enough information to
get readers started with the most common usecases. For a deeper
understanding, check the respective sections in the Device Drivers, Features, and Commands book.
Join us for the 2021 Linux on IBM Z and LinuxONE Virtual Client Workshop!
Abstract
Get the latest news about the Linux exploitation and advantages of the IBM Z and LinuxONE platform in this technical workshop. Presented by our developers and solution architects, the training focuses on the latest news and technical information for Linux on IBM Z, LinuxONE, z/VM, and KVM, such as Red Hat OpenShift Container Platform, Red Hat OpenShift Container Storage, Security, Performance, Networking and Virtualization. You will have the chance to interact directly with IBM developers and solution experts during the event, especially in the interactive workgroup sessions, which will be held on the last day.
This workshop is free of charge.
Schedules & Registration
Americas, Europe, Middle East & Africa
July 12-16, every day 8:30 - 11:30 AM EST / 14:30 - 17:30 CET
Register here.
Asia Pacific
July 27-29, 2021, every day 8:30 - 11:30 AM CET / 2:30 - 5:30 PM Singapore time
Register here.
SUSE Linux Enterprise Server 15 SP3 is out! See the official announcement and the release notes. It provides
RHEL 8.4 is out! See the official announcement and the release notes.
KVM is supported via Advanced Virtualization, and provides
Furthermore, RHEL 8.4 now supports graphical installation for guest installs. Just add the highlighted arguments to your virt-install command line for an RHEL 8.4 install on an RHEL 8.4 KVM host:
virt-install --input keyboard,bus=virtio --input mouse,bus=virtio \
--graphics vnc --video virtio --disk size=8 --memory 2048 --name rhel84 \
--cdrom /var/lib/libvirt/images/RHEL-8.4.0-20210503.1-s390x-dvd1.iso
And the installation will enter the fancy graphical installer:
Make sure to have package virt-viewer installed on the host, and X forwarding enabled (option -X for ssh).
This new support also allows graphical installs started in cockpit:
Join us for our webinar on Wednesday, April 21, 11:00 AM - 12:00 PM EST!
Abstract
Speakers
Registration
Register here. You can check the system requirements here.
After registering, you will receive a confirmation email containing information about joining the webinar.
Replay & Archive
All sessions are recorded. For the archive as well as a replay and handout of this session and all previous webinars see here.