Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 754090 - Minimal Installation CD does not include virtio drivers
Summary: Minimal Installation CD does not include virtio drivers
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: InstallCD (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Release Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-11 21:12 UTC by Nathan Shearer
Modified: 2020-11-11 21:23 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 Nathan Shearer 2020-11-11 21:12:23 UTC
I am installing Gentoo in a libvirt qemu kvm virtual machine. The minimal install boot media does not include virtio drivers, making the whole bootstrapping process a big pain since I can't use Gentoo to install Gentoo.

Reproducible: Always

Steps to Reproduce:
To reproduce the issue, simply boot a qemu virtual machine with a virtio based hard drive. The boot media does not load the appropriate kernel modules and the hard drive is unavailable.


Expected Results:  
I do know that you can use some other distro that does include the virtio drivers to start the install, but that really is an ugly workaround. Depending on another distro to bootstrap Gentoo isn't really ideal. I should be able to use the Gentoo install media to install Gentoo on the popular virtualisation environments: libvirt, vmware, hyperv, etc.

Here is a short lspci of the virtual machine hardware:

# lspci
00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Red Hat, Inc. Virtio GPU (rev 01)
00:03.0 Ethernet controller: Red Hat, Inc. Virtio network device
00:04.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03)
00:04.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 03)
00:04.2 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 03)
00:04.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03)
00:05.0 SCSI storage controller: Red Hat, Inc. Virtio block device
00:06.0 Unclassified device [00ff]: Red Hat, Inc. Virtio memory balloon
Comment 1 Ben Kohler gentoo-dev 2020-11-11 21:19:09 UTC
Quite a lot of virtio drivers are enabled:
https://gitweb.gentoo.org/proj/releng.git/tree/releases/kconfig/amd64/installcd-4.14.52.config

I am successfully using virtio here, I suspect something may be wrong on your end.

# fdisk -l && lspci -k

Disk /dev/vda: 20 GiB, 21474836480 bytes, 41943040 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 57C07A1D-F76F-443B-A489-AB819AEB403A

Device      Start      End  Sectors  Size Type
/dev/vda1    2048   526335   524288  256M EFI System
/dev/vda2  526336 41943006 41416671 19.8G Linux filesystem


00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
	Subsystem: Red Hat, Inc. Qemu virtual machine
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
	Subsystem: Red Hat, Inc. Qemu virtual machine
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
	Subsystem: Red Hat, Inc. Qemu virtual machine
	Kernel driver in use: ata_piix
	Kernel modules: ata_piix, pata_acpi, ata_generic
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
	Subsystem: Red Hat, Inc. Qemu virtual machine
	Kernel driver in use: piix4_smbus
	Kernel modules: i2c_piix4
00:02.0 VGA compatible controller: Red Hat, Inc. QXL paravirtual graphic card (rev 05)
	Subsystem: Red Hat, Inc. QEMU Virtual Machine
00:03.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 03)
	Subsystem: Red Hat, Inc. QEMU Virtual Machine
	Kernel driver in use: e1000
	Kernel modules: e1000
00:04.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 01)
	Subsystem: Red Hat, Inc. QEMU Virtual Machine
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
00:05.0 SCSI storage controller: Red Hat, Inc. Virtio block device
	Subsystem: Red Hat, Inc. Virtio block device
	Kernel driver in use: virtio-pci
	Kernel modules: virtio_pci
Comment 2 Ben Kohler gentoo-dev 2020-11-11 21:22:06 UTC
I tested on install-amd64-minimal-20200913T214503Z.iso just now since that's what I have on hand, but any recent amd64 installcd should work fine
Comment 3 Nathan Shearer 2020-11-11 21:23:04 UTC
I am mistaken, the minimal install ISO does include the virtio drivers.

livecd ~ # lsblk
NAME  MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
loop0   7:0    0 375.3M  1 loop /mnt/livecd
sr0    11:0    1   413M  0 rom  /mnt/cdrom
vda   253:0    0  29.8G  0 disk