[haiku-bugs] Re: [Haiku] #9800: Virtio network driver

  • From: "mmlr" <trac@xxxxxxxxxxxx>
  • Date: Sun, 09 Aug 2015 15:22:32 -0000

#9800: Virtio network driver
-------------------------------+----------------------------
Reporter: korli | Owner: nobody
Type: enhancement | Status: new
Priority: normal | Milestone: R1
Component: Drivers/Network | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
-------------------------------+----------------------------

Comment (by mmlr):

Regarding networking with OpenStack there is an easy way to get around the
need for virtio_net until it is available:

Depending on the hypervisor, the emulated network card can be changed with
the {{{hw_vif_model}}} property on the bootable image. It can be set when
uploading the initial image with glance using {{{--property
hw_vif_model=e1000}}}. VMs booted from that image (or from volumes created
with the image as a source) inherit the property and the hypervisor will
then emulate the following device:

{{{
PCI: [dom 0, bus 0] bus 0, device 3, function 0: vendor 8086, device
100e, revision 03
PCI: class_base 02, class_function 00, class_api 00
PCI: vendor 8086: Intel Corporation
PCI: device 100e: 82540EM Gigabit Ethernet Controller (QEMU Virtual
Machine)
PCI: info: Network controller (Ethernet controller)
PCI: line_size 00, latency 00, header_type 00, BIST 00
PCI: ROM base host feb80000, pci feb80000, size 00040000
PCI: cardbus_CIS 00000000, subsystem_id 1100, subsystem_vendor_id 1af4
PCI: interrupt_line 0b, interrupt_pin 01, min_grant 00, max_latency 00
PCI: base reg 0: host febc0000, pci febc0000, size 00020000, flags 00
PCI: base reg 1: host 0000c000, pci 0000c000, size 00000040, flags 01
PCI: base reg 2: host 00000000, pci 00000000, size 00000000, flags 00
PCI: base reg 3: host 00000000, pci 00000000, size 00000000, flags 00
PCI: base reg 4: host 00000000, pci 00000000, size 00000000, flags 00
PCI: base reg 5: host 00000000, pci 00000000, size 00000000, flags 00
PCI: Capabilities: (not supported)
}}}

This one is supported by the ipro1000 (lem) driver and allows Haiku to
use networking within an otherwise stock OpenStack. I have only tested
this with deployments that use KVM as the hypervisor, but the
documentation for the property (http://docs.openstack.org/cli-
reference/content/chapter_cli-glance-property.html) lists the e1000 value
as valid for VMWare and Xen as well.

I've successfully used Haiku in a private OpenStack deployment (Icehouse
and Juno releases) and a OpenStack based public cloud (CityCloud, Juno
release).

--
Ticket URL: <https://dev.haiku-os.org/ticket/9800#comment:3>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: