# lxd\_container: More than one root device found

**URL:** <https://forum.ansible.com/t/lxd-container-more-than-one-root-device-found/24584>\
**Category:** Ansible Developer\
**Tags:** ubuntu\
**Created:** [May 26, 2017, 9:00pm UTC](https://forum.ansible.com/t/lxd-container-more-than-one-root-device-found/24584 "2017-05-26T21:00:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Berend\_de\_Boer](https://avatars.discourse-cdn.com/v4/letter/b/e495f1/32.png) [@Berend\_de\_Boer](https://forum.ansible.com/u/Berend_de_Boer)\
**Post date:** [May 26, 2017, 9:00pm UTC](https://forum.ansible.com/t/lxd-container-more-than-one-root-device-found/24584/1 "2017-05-26T21:00:36Z")

</div>

Hi All,

I have a very weird problem with the lxd\_container module. When I create a container, I get this message:

> fatal: [localhost]: FAILED! =\> {“actions”: , “changed”: false, “failed”: true, “msg”: “More than one root device found.”}

This used to work, but no longer. Not sure why. Have tried both ansible 2.3 and 2.3.1.0 (v2.3.1.0-0.2.rc2). Can’t find anything on the internet.

My script:

> * * *
> 
> - hosts: 127.0.0.1
> 
> connection: local
> 
> gather\_facts: false
> 
> tasks:
> 
> - name: create a container
> 
> connection: local
> 
> become: false
> 
> lxd\_container:
> 
> name: test
> 
> state: started
> 
> source:
> 
> type: image
> 
> mode: pull
> 
> server: [https://images.linuxcontainers.org](https://images.linuxcontainers.org)
> 
> protocol: lxd
> 
> alias: “ubuntu/xenial/amd64”
> 
> devices: { “rootfs”: { “type”: “disk”, “path”: “/” } }
> 
> profiles: [“default”]
> 
> wait\_for\_ipv4\_addresses: false
> 
> timeout: 600

I’m on Ubuntu 17.04. Does anyone have a clue how to figure out what’s going on? I can create lxd containers on the command-line just fine:

> lxc launch ubuntu:16.04 test

works perfectly (but is not recognised by the script, it will try to create a new container).

Any pointers much appreciated!

Berend.

---

<div class="post-metadata">

**Author:** ![Berend\_de\_Boer](https://avatars.discourse-cdn.com/v4/letter/b/e495f1/32.png) [@Berend\_de\_Boer](https://forum.ansible.com/u/Berend_de_Boer)\
**Post date:** [June 20, 2017, 7:04am UTC](https://forum.ansible.com/t/lxd-container-more-than-one-root-device-found/24584/2 "2017-06-20T07:04:25Z")

</div>

Replying to myself: removing the devices attribute (or removing the “rootfs” property) fixes the problem.
