io7m | single-page | multi-page
3.11. vm-add-virtio-disk
Previous
3. Command-Line Interface
Up
3.13. vm-console
Next
3.12

# vm-add-virtio-network-device

- 3.12. vm-add-virtio-network-device
  - 3.12.1. Name
  - 3.12.2. Description
  - 3.12.3. Example

3.12.1

## Name

1
vm-add-virtio-network-device - Add a Virtio network device to a virtual machine
3.12.2

## Description

1
The vm-add-virtio-network-device command adds a network device to a virtual machine. The device is a Virtio network device and, as such, requires a driver in the guest operating system that is capable of supporting Virtio.
2

### 3.12.2.2 Parameters

Parameter | Type | Required | Description
--- | --- | --- | ---
--type | Network Backend Kind | true | The type of network device backend to add (such as WXM_TAP, WXM_VMNET)
--guest-mac | MAC Address | true | The MAC address of the device on the guest side
--host-mac | MAC Address | true | The MAC address of the device on the host side
--interface-group | Interface group name | false | The interface groups to which the device belongs. May be repeated to specify multiple groups.
--comment | String | false | A comment describing the new disk
--configuration | Path | false | The path to the configuration file (environment variable: $WAXMILL_CONFIGURATION_FILE)
--device-slot | Device Slot | true | The slot to which the device will be attached.
--machine | UUID | true | The ID of the virtual machine
--verbose | Log Level | false | Set the minimum logging verbosity level.
--replace | Boolean | false | true if an existing device in the given slot should be replaced.

3

### 3.12.2.3 Device Slot Syntax

    bus        = ? [0 .. 255] ? ;
    slot       = ? [0 .. 31] ? ;
    function   = ? [0 .. 7] ? ;
    deviceSlot = bus , ":" , slot , ":" , function ;

    Examples:
      0:0:0
      255:31:7

3.12.3

## Example

1

### 3.12.3.1 Example

    $ waxmill vm-add-virtio-network-device \
      --machine de17174a-1b3c-4ebc-80af-cb239aa18cbd \
      --device-slot 0:4:0 \
      --type WXM_TAP \
      --name tap23 \
      --host-mac d9:63:c0:d9:09:e8 \
      --guest-mac d9:63:c0:d9:09:e9 \
      --interface-group wwwUsers \
      --interface-group ntpUsers

    $ waxmill vm-add-virtio-network-device \
      --machine de17174a-1b3c-4ebc-80af-cb239aa18cbd \
      --device-slot 0:4:0 \
      --type WXM_VMNET \
      --name vmnet23 \
      --host-mac d9:63:c0:d9:09:ea \
      --guest-mac d9:63:c0:d9:09:eb \
      --interface-group wwwUsers

3.11. vm-add-virtio-disk
Previous
3. Command-Line Interface
Up
3.13. vm-console
Next
io7m | single-page | multi-page