Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 264042 - minimal install CDs do not support virtio-based devices
Summary: minimal install CDs do not support virtio-based devices
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: InstallCD (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Release Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-28 07:52 UTC by Boris Figovsky
Modified: 2016-08-30 22:54 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Boris Figovsky 2009-03-28 07:52:27 UTC
When I use kvm's virtio devices:
- -net nic,model=virtio
- -drive file=foo.img,if=virtio
the minimal CD does not recognize them.
this is due to the lack of the virtio* modules.


Reproducible: Always

Steps to Reproduce:
launch kvm with -net nic,model=virtio, -drive file=foo.img,if=virtio and -cdrom install-x86-minimal*.iso (or the amd64 one)

Actual Results:  
The virtio disk /dev/vda (foo.img) is not seen and cannot be used at all.
There is no network device found.

Expected Results:  
The virtio disk /dev/vda (foo.img) is accessible and usable.
The virtio network device is found and usable.
Comment 1 Andrew Gaffney (RETIRED) gentoo-dev 2009-05-03 17:03:04 UTC
What are the CONFIG_* options? Doing a 'grep -i virtio' through a 2.6.28 kconfig doesn't turn up anything.
Comment 2 Boris Figovsky 2009-05-03 18:06:25 UTC
(In reply to comment #1)
> What are the CONFIG_* options? Doing a 'grep -i virtio' through a 2.6.28
> kconfig doesn't turn up anything.
> 

In my 2.6.28 and 2.6.29 gentoo-sources kernels, my virtual Gentoo uses:
# grep VIRTIO /usr/src/linux/.config
CONFIG_VIRTIO_BLK=y       <- the -drive device (can be a module in the livecd)
CONFIG_VIRTIO_NET=y       <- the -net device (can be a module in the livecd)
# CONFIG_VIRTIO_CONSOLE is not set  <- I do not use it (it is for lguest and some other ones, not used in kvm as I remember)
CONFIG_HW_RANDOM_VIRTIO=y <- HW random generator instead of Intel/AMD/VIA's one (can be a module)
CONFIG_VIRTIO=y           <- the base of all virtio framework
CONFIG_VIRTIO_RING=y      <- the communication with the host
CONFIG_VIRTIO_PCI=y       <- the blk and net devices live on this one
CONFIG_VIRTIO_BALLOON=y   <- the ability to control memory size in guest from the host while the guest is running (not needed in the livecd)
Most of these options are labeled still as experimental.
Comment 3 Andrew Gaffney (RETIRED) gentoo-dev 2009-05-03 21:49:16 UTC
Ah, these didn't show up in my .config because I didn't have CONFIG_VIRTUALIZATION enabled. I've updated the x86/amd64 installcd kconfigs. This will appear in the next round of autobuilds.
Comment 4 Raymond Jennings 2016-08-30 18:07:32 UTC
This appears to be a problema gain
Comment 5 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2016-08-30 22:54:23 UTC
This is such an old bug that you should have opened a new bug about this.

$ grep -i virtio releases/weekly/kconfig/amd64/installcd-4.4.6.config 
CONFIG_VIRTIO_BLK=m
CONFIG_SCSI_VIRTIO=m
CONFIG_VIRTIO_NET=m
CONFIG_VIRTIO_CONSOLE=m
CONFIG_HW_RANDOM_VIRTIO=m
CONFIG_VIRTIO=m
# Virtio drivers
CONFIG_VIRTIO_PCI=m
CONFIG_VIRTIO_PCI_LEGACY=y
CONFIG_VIRTIO_BALLOON=m
# CONFIG_VIRTIO_INPUT is not set
CONFIG_VIRTIO_MMIO=m
# CONFIG_VIRTIO_MMIO_CMDLINE_DEVICES is not set

 $ grep -i virtio releases/weekly/kconfig/x86/installcd-3.18.12.config 
CONFIG_VIRTIO_BLK=m
CONFIG_SCSI_VIRTIO=m
CONFIG_VIRTIO_NET=m
CONFIG_VIRTIO_CONSOLE=m
CONFIG_HW_RANDOM_VIRTIO=m
CONFIG_VIRTIO=m
# Virtio drivers
CONFIG_VIRTIO_PCI=m
CONFIG_VIRTIO_BALLOON=m
# CONFIG_VIRTIO_MMIO is not set


You didn't state in what version / arch you got this issue, but as you can see above, the latest kernel does have the virtio drivers enabled.