# Could not create domain permission denied

**URL:** <https://forum.opennebula.io/t/could-not-create-domain-permission-denied/9488>\
**Category:** Product Support\
**Created:** [May 3, 2021, 4:09pm UTC](https://forum.opennebula.io/t/could-not-create-domain-permission-denied/9488 "2021-05-03T16:09:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Iliya\_Valaee](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/iliya_valaee/32/6955_2.png) [@Iliya\_Valaee](https://forum.opennebula.io/u/Iliya_Valaee)\
**Post date:** [May 3, 2021, 4:09pm UTC](https://forum.opennebula.io/t/could-not-create-domain-permission-denied/9488/1 "2021-05-03T16:09:32Z")

</div>

Hi!  
I want to create vm in opennebula but it says  
Could not create domain  
I configured glusterfs as storage  
I already check permission  
LOG:

````Mon
Mon May 3 13:18:24 2021 [Z0][VM][I]: New LCM state is PROLOG
Mon May 3 13:18:25 2021 [Z0][VM][I]: New LCM state is BOOT
Mon May 3 13:18:25 2021 [Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/895/deployment.0
Mon May 3 13:18:26 2021 [Z0][VMM][I]: Successfully execute transfer manager driver operation: tm_context.
Mon May 3 13:18:26 2021 [Z0][VMM][I]: ExitCode: 0
Mon May 3 13:18:26 2021 [Z0][VMM][I]: Successfully execute network driver operation: pre.
Mon May 3 13:18:28 2021 [Z0][VMM][I]: Command execution fail: cat << EOT | /var/tmp/one/vmm/kvm/deploy '/var/lib/one//datastores/0/895/deployment.0' 'provision-node-8' 895 provision-node-8
Mon May 3 13:18:28 2021 [Z0][VMM][I]: error: Failed to create domain from /var/lib/one//datastores/0/895/deployment.0
Mon May 3 13:18:28 2021 [Z0][VMM][I]: error: internal error: process exited while connecting to monitor: 2021-05-03T13:18:28.550731Z qemu-system-x86_64: -blockdev {"driver":"file","filename":"/var/lib/one/datastores/1/2c78ac1207ad2d91b2af971a63756351","node-name":"libvirt-3-storage","cache":{"direct":true,"no-flush":false},"auto-read-only":true,"discard":"unmap"}: Could not open '/var/lib/one/datastores/1/2c78ac1207ad2d91b2af971a63756351': Permission denied
Mon May 3 13:18:28 2021 [Z0][VMM][E]: Could not create domain from /var/lib/one//datastores/0/895/deployment.0
Mon May 3 13:18:28 2021 [Z0][VMM][I]: ExitCode: 255
Mon May 3 13:18:29 2021 [Z0][VMM][I]: ExitCode: 0
Mon May 3 13:18:29 2021 [Z0][VMM][I]: Successfully execute network driver operation: clean.
Mon May 3 13:18:29 2021 [Z0][VMM][I]: Failed to execute virtualization driver operation: deploy.
Mon May 3 13:18:29 2021 [Z0][VMM][E]: Error deploying virtual machine: Could not create domain from /var/lib/one//datastores/0/895/deployment.0
Mon May 3 13:18:29 2021 [Z0][VM][I]: New LCM state is BOOT_FAILURE```
````

---

<div class="post-metadata">

**Author:** ![David\_Martins](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/david_martins/32/7019_2.png) [@David\_Martins](https://forum.opennebula.io/u/David_Martins)\
**Post date:** [December 13, 2021, 5:09pm UTC](https://forum.opennebula.io/t/could-not-create-domain-permission-denied/9488/2 "2021-12-13T17:09:59Z")

</div>

Hi,

I’ve the same issue on a NFS datastore, do you have find any solution for this issue ?

Kind regards

---

<div class="post-metadata">

**Author:** ![kate](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/kate/32/7256_2.png) [@kate](https://forum.opennebula.io/u/kate)\
**Post date:** [January 13, 2022, 12:35am UTC](https://forum.opennebula.io/t/could-not-create-domain-permission-denied/9488/3 "2022-01-13T00:35:17Z")

</div>

Hi,  
I had a similar problem running Debian 11.2 OS in my lab.  
For me, it turned out to be a restrictive app-armor profile.  
And I worked around it by disabling the app-armor in the kernel at boot - though this is probably _not_ the best way

[https://wiki.debian.org/AppArmor/HowToUse#Disable\_AppArmor](https://wiki.debian.org/AppArmor/HowToUse#Disable_AppArmor)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/1/14d66f1130b9cd292905f575da9b68a9f574dd03.png) [@system](https://forum.opennebula.io/u/system)\
**Post date:** [June 25, 2025, 3:48pm UTC](https://forum.opennebula.io/t/could-not-create-domain-permission-denied/9488/4 "2025-06-25T15:48:02Z")

</div>

Closed on June 25, 2025, 3:48pm UTC

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
