Driver for VirtIO networking device
Syntax:
io-pkt-variant -d virtio [option[,option...]] ...
where variant is v4-hc or v6-hc.
Options:
- irq=N
- The IRQ of the interface. The default is automatically detected on supported hardware.
- mac=XXXXXXXXXXXX
- The MAC address of the controller.
The default is automatically detected on supported hardware.
- name=prefix
- Override the default interface prefix.
By default, the driver's interface names are in the form vtX,
where X is an integer. By setting this option, you can change the vt to something else.
- pci=N
- Use the PCI VirtIO device found at the specified PCI instance. The default behavior is to detect all instances.
This option can't be used if smem is specified.
- smem=XXXXXXXX
- Use the MMIO VirtIO device found at the specified location, which is the starting address of the device's representation
in the guest's VM.
This option can't be used if pci is specified.
Description:
The devnp-virtio.so driver supports the VirtIO network interface exported by
hypervisors that follow the VirtIO standard.
Note:
The network drivers don't put entries
into the
/dev namespace, so a
waitfor
command for such an entry won't work properly in buildfiles or scripts.
Use
if_up -p
instead; for example,
if_up -p vt0.
Examples:
Start the v4 variant of
io-pkt, run
devnp-virtio.so
to support the VirtIO networking device, and assign an IP address to the driver's interface:
io-pkt-v4-hc -d virtio
ifconfig vt0 192.0.2.1
Start the v6 variant of
io-pkt, configure
devnp-virtio.so
to use the MMIO VirtIO device at address
0xf0c00000 with an IRQ of 58,
and assign an IP address to the driver's interface:
io-pkt-v6-hc -d virtio smem=0xf0c00000,irq=58
ifconfig vt0 192.0.2.1
For further information about how to configure a driver that gets started by the TCP/IP stack,
see the io-pkt entry.