我得到''execution fail: cat << EOT | /var/tmp/one/vmm/kvm/deploy '/var/lib/one//datastores/101/103/deployment.0'“权限被拒绝

I get ''execution fail: cat << EOT | /var/tmp/one/vmm/kvm/deploy '/var/lib/one//datastores/101/103/deployment.0' " Permission denied

我正在创建一个新的虚拟机并得到这个错误。我该怎么办?

Mon Jan 21 13:06:41 2019 [Z0][ReM][D]: Req:2080 UID:0 one.vmpool.info invoked , -2, 0, -200, -1 Mon Jan 21 13:06:41 2019 [Z0][ReM][D]: Req:2080 UID:0 one.vmpool.info result SUCCESS, "69<..." Mon Jan 21 13:06:41 2019 [Z0][ReM][D]: Req:8720 UID:0 one.user.info invoked , 0 Mon Jan 21 13:06:41 2019 [Z0][ReM][D]: Req:8720 UID:0 one.user.info result SUCCESS, "0

Mon Jan 21 13:06:43 2019 [Z0][VMM][D]: Message received: LOG I 103 Successfully execute network driver operation: pre.

Mon Jan 21 13:06:44 2019 [Z0][VMM][D]: Message received: LOG I 103 Command execution fail: cat << EOT | /var/tmp/one/vmm/kvm/deploy '/var/lib/one//datastores/101/103/deployment.0' 'fast.sense.dcc.ufmg.br' 103 fast.sense.dcc.ufmg.br

Mon Jan 21 13:06:44 2019 [Z0][VMM][D]: Message received: LOG I 103 error: Failed to create domain from /var/lib/one//datastores/101/103/deployment.0

Mon Jan 21 13:06:44 2019 [Z0][VMM][D]: Message received: LOG I 103 error: internal error: process exited while connecting to monitor: 2019-01-21T15:06:44.029263Z qemu-system-x86_64: -drive file=/var/lib/one//datastores/101/103/disk.1,format=qcow2,if=none,id=drive-virtio-disk0,cache=none: Could not open '/var/lib/one//datastores/101/103/disk.1': Permission denied

Mon Jan 21 13:06:44 2019 [Z0][VMM][D]: Message received: LOG E 103 Could not create domain from /var/lib/one//datastores/101/103/deployment.0

Mon Jan 21 13:06:44 2019 [Z0][VMM][D]: Message received: LOG I 103 ExitCode: 255

Mon Jan 21 13:06:44 2019 [Z0][VMM][D]: Message received: LOG I 103 Failed to execute virtualization driver operation: deploy.

Mon Jan 21 13:06:44 2019 [Z0][VMM][D]: Message received: DEPLOY FAILURE 103 Could not create domain from /var/lib/one//datastores/101/103/deployment.0

已解决! 我将 oneadmin 添加到 sudo 组:

sudo adduser oneadmin sudo

并且,添加:

user = "root"
group = "root"
dynamic_ownership = 0

到/etc/libvirt/qemu.conf