[ipxe-devel] virtnet_open_legacy() fails to find virtqueues on Google Compute Engine

Akihiro Suda suda.kyoto at gmail.com
Wed Dec 14 06:16:25 UTC 2016


Hello,

I tried to boot iPXE on a Google Compute Engine instance, but the virtio
driver doesn't work because virtnet_open_legacy() fails to find virtqueues.

Please let me know what I can do for providing further information to debug
the issue.

The serial console output with "DEBUG=virtio-net" is as follows:

    iPXE initialising devices...Common virtio capability not found!
    VIRTIO-NET 0xdf584 busaddr=0000:00:04.0 ioaddr=0xc040 irq=11
    VIRTIO-NET 0xdf584 mac=42:01:0a:92:00:0a
    ok

    iPXE 1.0.0+ (26050) -- Open Source Network Boot Firmware --
http://ipxe.org
    Features: DNS HTTP iSCSI TFTP SRP AoE ELF MBOOT PXE bzImage Menu PXEXT
    iPXE> ifstat
    net0: 42:01:0a:92:00:0a using virtio-net on 0000:00:04.0 (closed)
      [Link:up, TX:0 TXE:0 RX:0 RXE:0]
    iPXE> dhcp
    VIRTIO-NET 0xdf584 cannot register queue 0
    Could not open net0: No such file or directory (http://ipxe.org/2d5c403b
)
    iPXE>


This ENOENT is raised from virtnet_open_legacy():
https://git.ipxe.org/ipxe.git/blob/26050fd4c87c50503d5bd573b2ec91703676e211:/src/drivers/net/virtio-net.c#l205


I also tested some previous commits, but all of them failed, so the issue
is not a regression in some recent commit:

 * 26050fd (Dec  8, 2016): the last commit when I tested
 * 7b499f8 (Apr 11, 2016): the last commit without support for virtio 1.0
 * e4419ff (Jul  2, 2010):  the first commit with the "native iPXE driver"
(The commit date is older than 232c208, but actually newer than 232c208)
 * 232c208 (Jul 11, 2010): the last commit without the "native iPXE
driver". The error message is "ERROR: queue size 4096 > 512", "Cannot
register queue #0"


Regards,

Akihiro Suda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20161214/2db7408e/attachment.htm>


More information about the ipxe-devel mailing list