Перейти к содержанию

Attach

nectl interface libvirt attach

Attach interface to the domain

Synopsis

Attach an existing interface (by name or UUID) to a libvirt domain. If an interface name is provided as a positional argument, the --id flag is optional. Otherwise, the --id flag must be specified.

nectl interface libvirt attach [interface-name] [flags]

Examples

  nectl interface libvirt attach <interface-name> -d <domain-name>
  nectl interface libvirt attach --id <interface-id> -d <domain-name>
  nectl interface libvirt attach --id <interface-id> -d <domain-name> -n virtio -q 16
  nectl interface libvirt attach --id <interface-id> -d <domain-name> --nic-link-state up

Options

      --domain-id string          Domain ID
  -d, --domain-name string        Domain name
  -h, --help                      help for attach
      --id string                 Interface ID
      --ignore-hypervisor         Ignore Hypervisor
  -q, --nic-driver-queue uint16   NIC driver queue
      --nic-link-state string     NIC link state: up|down
  -n, --nic-model string          NIC model

Options inherited from parent commands

      --host string   gRPC server host (default "127.0.0.1")
      --port uint16   gRPC server port (default 30666)

SEE ALSO