Skip to content

fix(netwotk): Get MTU from tap device and set it in Qemu and clh args#564

Merged
urunc-bot[bot] merged 1 commit intomainfrom
fix_mtu
Apr 15, 2026
Merged

fix(netwotk): Get MTU from tap device and set it in Qemu and clh args#564
urunc-bot[bot] merged 1 commit intomainfrom
fix_mtu

Conversation

@cmainas
Copy link
Copy Markdown
Contributor

@cmainas cmainas commented Apr 15, 2026

Description

Qemu and Cloud hypervisor support setting the MTU value in the command line arguments of the network device. Therefore, get the MTU value from the network interface of the host that we associate with the tap device and set it as the MTU for Qemu's and cloud hypervisor's virtio network device.

Related issues

Related to #547 but since Firecracker does not accept any option to set the MTU or to retrieve it form the tap device, the issue will remain open.

How was this tested?

In a k3s environment using flannel, which uses 1450 for MTU, qemu and clh based images where deployed and checked the MTUs of the network interface inside the VM.

e.g. for a pod configuration:

    spec:
      runtimeClassName: urunc
      containers:
      - image: harbor.nbfc.io/nubificus/urunc/busybox-cloud-hypervisor-linux-raw:latest
        args: ["ip", "a"]

LLM usage

N/A

Checklist

  • I have read the contribution guide.
  • The linter passes locally (make lint).
  • The e2e tests of at least one tool pass locally (make test_ctr, make test_nerdctl, make test_docker, make test_crictl).
  • If LLMs were used: I have read the llm policy.

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 15, 2026

Deploy Preview for urunc canceled.

Name Link
🔨 Latest commit 02a2512
🔍 Latest deploy log https://app.netlify.com/projects/urunc/deploys/69dfc3011ffe2000085dfa8a

@ananos
Copy link
Copy Markdown
Contributor

ananos commented Apr 15, 2026

thanks @cmainas! looks good -- just a note for future reference, FC support is under way, pending merge of firecracker-microvm/firecracker#5828.

Solo5 should detect that, I believe we have raised that in Solo5/solo5#605 and should be resolved after: Solo5/solo5#606

@cmainas cmainas marked this pull request as ready for review April 15, 2026 16:40
@cmainas cmainas requested a review from ananos April 15, 2026 16:40
Qemu and Cloud hypervisor support setting the MTU value in the command
line arguments of the network device. Therefore, get the MTU value from
the network interface of the host that we associate with the tap device
and set it as the MTU for Qemu's and cloud hypervisor's virtio network
device.

PR: #564
Signed-off-by: Charalampos Mainas <cmainas@nubificus.co.uk>
Reviewed-by: Anastassios Nanos <ananos@nubificus.co.uk>
Approved-by: Anastassios Nanos <ananos@nubificus.co.uk>
@urunc-bot urunc-bot Bot merged commit a04eed8 into main Apr 15, 2026
2 checks passed
@ananos ananos deleted the fix_mtu branch April 15, 2026 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants