CONFIG_VHOST_NET is missing from the `linux-kvm` flavor

Bug #1980122 reported by manoj reddy
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux-meta-kvm (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

LXC VM Ubuntu Version
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focal

Kernel Version
uname -a
Linux Test-Setup-01-Dell-ens5f1 5.4.0-1070-kvm #75-Ubuntu SMP Fri Jun 10 19:57:34 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

I have tried many way for installing vhost_net driver. But It didn't got any idea because it is not part of kernel.
Here the lsmod | grep vhost shows only the vhost, It doesn't shows the vhost_net driver.

Is there any solution to use the vhost_net or Is there any other way for installing vhost_net driver in kvm.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in linux-meta-kvm (Ubuntu):
status: New → Confirmed
Revision history for this message
Simon Déziel (sdeziel) wrote :

In a 20.04 VM, we can see that linux-image-kvm doesn't have the module enabled while linux-image-virtual and linux-image-generic have it:

# grep CONFIG_VHOST_NET /boot/config-5.4.0-1*
/boot/config-5.4.0-1070-kvm:# CONFIG_VHOST_NET is not set
/boot/config-5.4.0-121-generic:CONFIG_VHOST_NET=m

summary: - Not the able to see the vhost_net driver in lxc vm kernel in the path
- "/lib/modules/5.4.0-1070-kvm/kernel/drivers/vhost" to create the tap
- interfaces
+ CONFIG_VHOST_NET is missing from the `linux-kvm` flavor
Revision history for this message
manoj reddy (miniga) wrote :

Hi Simon,
Can we get the 5.4.0-1070-kvm linux source code that your team can enable the CONFIG_VHOST_NET flag in the /boot/ floader and we can compile again.

We needed it needful. Please help us for finding the 5.4.0-1070-kvm linux source code.

Otherwise provide us the link that we can follow.

Thanks & Regards,
Manoj

manoj reddy (miniga)
Changed in linux-meta-kvm (Ubuntu):
status: Confirmed → Fix Released
status: Fix Released → Confirmed
Revision history for this message
Simon Déziel (sdeziel) wrote :

Hello Manoj,

Whether the CONFIG_VHOST_NET should be enabled or not in the linux-kvm flavor is for the kernel team to decide. If they decide it should, eventually an updated kernel will be made available.

Until then, or if they decide to keep it disabled, you can get a suitable kernel by installing the meta-package `linux-image-virtual` which has the required module enabled.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.