<div dir="ltr"><div><div><div><div><div>Hello,<br><br>I am trying to create a virtual machine by installing the OS from an iso to a qemu image.<br><br></div>However, whenever the disk image is created, it is created with a user and group of oneadmin:cloud, however, once the VM attempts to start it is changed to libvirt-qemu:kvm then root:root, and I get an entry in the log:<br>
<br>>> <span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(111,111,111);display:inline!important;float:none">error: internal error process exited while connecting to monitor: kvm: -drive file=/var/lib/one//datastores/0/87/disk.1,if=none,id=drive-ide0-1-0,format=qcow2,cache=none: could not open disk image<br>
<br></span></div>However, this disk image -does- exist, although with incorrect permissions:<br><br>>> root@loki:~# ls -lah /var/lib/one//datastores/0/87<br>>> -rw-r--r-- 1 root         root  5.1G Apr 27 19:24 disk.1<br>
<br></div>What is changing the ownership of my disk images?<br><br></div>Thanks,<br></div>Jon A<br><div><div><br><br>The full VM log is below:<br><br><span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(111,111,111);display:inline!important;float:none">Sat Apr 27 19:23:31 2013 [DiM][I]: New VM state is ACTIVE.</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(111,111,111);display:inline!important;float:none">Sat Apr 27 19:23:31 2013 [LCM][I]: New VM state is PROLOG.</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(111,111,111);display:inline!important;float:none">Sat Apr 27 19:24:29 2013 [TM][I]: clone: Cloning loki:/var/lib/one/datastores/103/4a657983e37df7e79b59110748f58ce8 in /var/lib/one/datastores/0/87/disk.0</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(111,111,111);display:inline!important;float:none">Sat Apr 27 19:24:29 2013 [TM][I]: ExitCode: 0</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(111,111,111);display:inline!important;float:none">Sat Apr 27 19:24:51 2013 [TM][I]: mkimage: Making filesystem of 5120M and type ext4 at loki:/var/lib/one//datastores/0/87/disk.1</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(111,111,111);display:inline!important;float:none">Sat Apr 27 19:24:51 2013 [TM][I]: ExitCode: 0</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(111,111,111);display:inline!important;float:none">Sat Apr 27 19:24:52 2013 [TM][I]: context: Generating context block device at loki:/var/lib/one//datastores/0/87/disk.2</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(111,111,111);display:inline!important;float:none">Sat Apr 27 19:24:52 2013 [TM][I]: ExitCode: 0</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(111,111,111);display:inline!important;float:none">Sat Apr 27 19:24:53 2013 [LCM][I]: New VM state is BOOT</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(111,111,111);display:inline!important;float:none">Sat Apr 27 19:24:53 2013 [VMM][I]: Generating deployment file: /var/lib/one/vms/87/deployment.0</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(111,111,111);display:inline!important;float:none">Sat Apr 27 19:24:53 2013 [VMM][I]: ExitCode: 0</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(111,111,111);display:inline!important;float:none">Sat Apr 27 19:24:53 2013 [VMM][I]: Successfully execute network driver operation: pre.</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(111,111,111);display:inline!important;float:none">Sat Apr 27 19:24:56 2013 [VMM][I]: Command execution fail: cat << EOT | /var/tmp/one/vmm/kvm/deploy /var/lib/one//datastores/0/87/deployment.0 loki 87 loki</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(111,111,111);display:inline!important;float:none">Sat Apr 27 19:24:56 2013 [VMM][I]: error: Failed to create domain from /var/lib/one//datastores/0/87/deployment.0</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(111,111,111);display:inline!important;float:none">Sat Apr 27 19:24:56 2013 [VMM][I]: error: internal error process exited while connecting to monitor: kvm: -drive file=/var/lib/one//datastores/0/87/disk.1,if=none,id=drive-ide0-1-0,format=qcow2,cache=none: could not open disk image /var/lib/one//datastores/0/87/disk.1: Invalid argument</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(111,111,111);display:inline!important;float:none">Sat Apr 27 19:24:56 2013 [VMM][I]:<span class=""> </span></span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<span class="" style="color:rgb(255,141,129);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Sat Apr 27 19:24:56 2013 [VMM][E]: Could not create domain from /var/lib/one//datastores/0/87/deployment.0</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(111,111,111);display:inline!important;float:none">Sat Apr 27 19:24:56 2013 [VMM][I]: ExitCode: 255</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(111,111,111);display:inline!important;float:none">Sat Apr 27 19:24:56 2013 [VMM][I]: Failed to execute virtualization driver operation: deploy.</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<span class="" style="color:rgb(255,141,129);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Sat Apr 27 19:24:56 2013 [VMM][E]: Error deploying virtual machine: Could not create domain from /var/lib/one//datastores/0/87/deployment.0</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:28px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(111,111,111);display:inline!important;float:none">Sat Apr 27 19:24:57 2013 [DiM][I]: New VM state is FAILED</span><br>
</div></div></div>