Lxd: error: The device doesn't exist

Created on 23 Jul 2017  路  2Comments  路  Source: lxc/lxd

The template below is mostly useful for bug reports and support questions.
Feel free to remove anything which doesn't apply to you and add more information where it makes sense.

Required information

  • Distribution: ubuntu
  • Distribution version: 16.04
  • The output of "lxc info" or if that fails:
config:
  core.https_address: '[::]:8443'
  core.trust_password: true
  storage.zfs_pool_name: lxd
api_extensions:
- id_map
api_status: stable
api_version: "1.0"
auth: trusted
public: false
environment:
  addresses:
  - 139.59.42.26:8443
  - 10.47.0.5:8443
  - 172.17.0.1:8443
  - 10.76.84.1:8443
  - '[fde6:181e:8175:abf::1]:8443'
  - 10.0.3.1:8443
  - 172.16.28.1:8443
  - 172.16.28.1:8443
  architectures:
  - x86_64
  - i686
  certificate: |
    -----BEGIN CERTIFICATE-----
    MIIFcDCCA1igAwIBAgIQB0wP5c5Q11+uNSfdviG4sDANBgkqhkiG9w0BAQsFADBA
    MRwwGgYDVQQKExNsaW51eGNvbnRhaW5lcnMub3JnMSAwHgYDVQQDDBdyb290QHVi
    dW50dS0xZ2ItYmxyMS0wMTAeFw0xNzA3MjAwNjMxMDdaFw0yNzA3MTgwNjMxMDda
    MEAxHDAaBgNVBAoTE2xpbnV4Y29udGFpbmVycy5vcmcxIDAeBgNVBAMMF3Jvb3RA
    dWJ1bnR1LTFnYi1ibHIxLTAxMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKC
    AgEAzpbFfvZMnRqQ4RaEFg6CbZU6a17kiRXzjZf0Xqblr8tvGnSrCDGecXp3Rru7
    qxOSiYebVb58KbwwmG+9IbZO88OeBrKuyY0hEfglemYoeCAiGOqBjEE6p5N5wZQ/
    e7kSx3UvXLcYsCXdYtTkPzUXHKj+MwmgTUqiDLyn6VfVMOD9+p+z7mmW90FrVYn6
    RScK8mOTLRHUijfiApIV1Oxft/Wir0Zf7xi6T7Nkw559c0DJZXm9VSLHtPSmGJxL
    VdfZqCzhQqUPc7fvkWQxm/nbf9infO8VgwSjN9TGVEvC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5gUUDue9v9ZIg
    0LNY6RZro9HMJGAnR2fHeFxxsE3GhdXQanWty8OaCCenZXBmevsUFpZFBr95nRpl
    oAf2mRQsGOt91vMjqVdPMcPXNSV8grrwsIPWtnu+2SYSkynpZ0Drq2fb4bJEIqSN
    ynxmbxaWs9EqCzbL42VKY9q5rYI31HD9M4jwI7iqXrLj7ALQwAs0RQ38jJI0F+VI
    6UjNJw==
    -----END CERTIFICATE-----
  certificate_fingerprint: ee199a5016ec68a5f804d7ab420645113bd328a18040ec5ce967b1117ab4bd1f
  driver: lxc
  driver_version: 2.0.7
  kernel: Linux
  kernel_architecture: x86_64
  kernel_version: 4.4.0-83-generic
  server: lxd
  server_pid: 14718
  server_version: 2.0.10
  storage: zfs
  storage_version: "5"

I'm getting an error while trying to limit network bandwidth

the name of my container is "first"

root@ubuntu-1gb-blr1-01:~# lxc config device set first eth0 limits.ingress 1Mbit
error: The device doesn't exist

]

Most helpful comment

That's because the "eth0" device is inherited from a profile.

If you want that limit to apply to all your containers, you shoud use "lxc profile set default eth0 limits.ingress 1Mbit".

If you only want to have the limit applied to this one container, then you need to override the "eth0" device at the container level. Something like this should do:

lxc config device add first eth0 nic nictype=bridged parent=lxdbr0 name=eth0 limits.ingress=1Mbit

All 2 comments

That's because the "eth0" device is inherited from a profile.

If you want that limit to apply to all your containers, you shoud use "lxc profile set default eth0 limits.ingress 1Mbit".

If you only want to have the limit applied to this one container, then you need to override the "eth0" device at the container level. Something like this should do:

lxc config device add first eth0 nic nictype=bridged parent=lxdbr0 name=eth0 limits.ingress=1Mbit

thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AndreiPashkin picture AndreiPashkin  路  5Comments

spacekookie picture spacekookie  路  3Comments

sajoupa picture sajoupa  路  4Comments

sforteva picture sforteva  路  3Comments

simos picture simos  路  3Comments