Hello,
I am facing the following issue regarding vm creation in opennebula. They are getting failed due to:
kvm: -drive file=/var/lib/one//datastores/0/136/disk.0,if=none,id=drive-ide0-0-0,format=qcow2: could not open disk image /var/lib/one//datastores/0/136/disk.0: Invalid argument
I can see that the disk.0 is using nobody:nobody as username and password and 99 as uid and gid.
Here’s my log file for one of the failed vm’s:
Jun 21 15:47:50 2016 [DiM][I]: New VM state is ACTIVE.
Tue Jun 21 15:47:50 2016 [LCM][I]: New VM state is PROLOG.
Tue Jun 21 15:47:52 2016 [TM][I]: clone: Cloning /var/lib/one/datastores/1/5507c64c201030def4e0a0c99078500f in c2:/var/lib/one//datastores/0/136/disk.0
Tue Jun 21 15:47:52 2016 [TM][I]: ExitCode: 0
Tue Jun 21 15:47:53 2016 [TM][I]: context: Generating context block device at c2:/var/lib/one//datastores/0/136/disk.1
Tue Jun 21 15:47:53 2016 [TM][I]: ExitCode: 0
Tue Jun 21 15:47:54 2016 [LCM][I]: New VM state is BOOT
Tue Jun 21 15:47:54 2016 [VMM][I]: Generating deployment file: /var/lib/one/vms/136/deployment.0
Tue Jun 21 15:47:54 2016 [VMM][I]: ExitCode: 0
Tue Jun 21 15:47:54 2016 [VMM][I]: Successfully execute network driver operation: pre.
Tue Jun 21 15:47:55 2016 [VMM][I]: Command execution fail: cat << EOT | /var/tmp/one/vmm/kvm/deploy /var/lib/one//datastores/0/136/deployment.0 c2 136 c2
Tue Jun 21 15:47:55 2016 [VMM][I]: error: Failed to create domain from /var/lib/one//datastores/0/136/deployment.0
Tue Jun 21 15:47:55 2016 [VMM][I]: error: internal error: early end of file from monitor: possible problem:
Tue Jun 21 15:47:55 2016 [VMM][I]: kvm: -drive file=/var/lib/one//datastores/0/136/disk.0,if=none,id=drive-ide0-0-0,format=qcow2: could not open disk image /var/lib/one//datastores/0/136/disk.0: Invalid argument
Tue Jun 21 15:47:55 2016 [VMM][I]:
Tue Jun 21 15:47:55 2016 [VMM][E]: Could not create domain from /var/lib/one//datastores/0/136/deployment.0
Tue Jun 21 15:47:55 2016 [VMM][I]: ExitCode: 255
Tue Jun 21 15:47:55 2016 [VMM][I]: Failed to execute virtualization driver operation: deploy.
Tue Jun 21 15:47:55 2016 [VMM][E]: Error deploying virtual machine: Could not create domain from /var/lib/one//datastores/0/136/deployment.0
Tue Jun 21 15:47:55 2016 [DiM][I]: New VM state is FAILED
Oneadmin is in following groups:
[root@c2 120]# id oneadmin
uid=488(oneadmin) gid=482(oneadmin) groups=482(oneadmin),36(kvm),107(qemu),519(libvirt)
/var/lib/one/ is the shared home directory of oneadmin, shared between server node and host machines.