io7m | single-page | multi-page
3.5. vm-add-ahci-disk
Previous
3. Command-Line Interface
Up
3.7. vm-add-e1000-network-device
Next
3.6

# vm-add-ahci-optical

- 3.6. vm-add-ahci-optical
  - 3.6.1. Name
  - 3.6.2. Description
  - 3.6.3. Example

3.6.1

## Name

1
vm-add-ahci-optical - Add an AHCI optical drive to a virtual machine
3.6.2

## Description

1
The vm-add-ahci-optical command adds an optical drive to a virtual machine.
2
Optical drives do not have any storage backends assigned to them by default. The storage backend for an optical drive must be specified by a boot configuration.
3

### 3.6.2.3 Parameters

Parameter | Type | Required | Description
--- | --- | --- | ---
--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.

4

### 3.6.2.4 Device Slot Syntax

    <deviceSlot> = <bus> ":" <slot> ":" <function>

    Where:
      <bus>      = [0 .. 255]
      <slot>     = [0 .. 31]
      <function> = [0 .. 7]

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

3.6.3

## Example

1

### 3.6.3.1 Example

    $ waxmill vm-add-ahci-optical \
      --machine de17174a-1b3c-4ebc-80af-cb239aa18cbd \
      --device-slot 0:4:0

3.5. vm-add-ahci-disk
Previous
3. Command-Line Interface
Up
3.7. vm-add-e1000-network-device
Next
io7m | single-page | multi-page