Hello All,<div><br></div><div>I've got an answer of sorts... It seems that OpenNebula doesn't like the "qcow2" type of driver.</div><div><br></div><div>If I use the following machine definition to define the vm and start it, I get the same "Invalid argument" error:</div>
<div><br></div><div>>> oneadmin@loki:~$ virsh define /var/lib/one/vms/99/deployment.0</div><div><div>>> oneadmin@loki:~$ virsh start one-99</div><div>>> error: Failed to start domain one-99</div><div>>> error: internal error process exited while connecting to monitor: kvm: -drive</div>
<div>>> file=/var/lib/one//datastores/0/99/disk.1,if=none,id=drive-ide0-1-0,format=qcow2: </div><div>>> could not open disk image /var/lib/one//datastores/0/99/disk.1: Invalid argument</div></div><div><br></div>
<div><br></div><div>However, changing "qcow2" to "raw" in the below deployment allows me to define the VM with virsh and start it. (Or edit it directly in libvirt)</div><div><br></div><div>This would indicate to me that </div>
<div><br></div><div>Deployment file in question:</div><div>oneadmin@loki:~$ cat /var/lib/one/vms/99/deployment.0 </div><div><div><domain type='kvm' xmlns:qemu='<a href="http://libvirt.org/schemas/domain/qemu/1.0">http://libvirt.org/schemas/domain/qemu/1.0</a>'></div>
<div>        <name>one-99</name></div><div>        <cputune></div><div>                <shares>1024</shares></div><div>        </cputune></div><div>        <memory>1048576</memory></div>
<div>        <os></div><div>                <type arch='x86_64'>hvm</type></div><div>                <boot dev='hd'/></div><div>        </os></div><div>        <devices></div>
<div>                <emulator>/usr/bin/kvm</emulator></div><div>                <disk type='file' device='cdrom'></div><div>                        <source file='/var/lib/one//datastores/0/99/disk.0'/></div>
<div>                        <target dev='hdb'/></div><div>                        <readonly/></div><div>                        <driver name='qemu' type='raw' cache='none'/></div>
<div>                </disk></div><div>                <disk type='file' device='disk'></div><div>                        <source file='/var/lib/one//datastores/0/99/disk.1'/></div>
<div>                        <target dev='hdc'/></div><div>                        <driver name='qemu' type='qcow2' cache='default'/></div><div>                </disk></div>
<div>                <disk type='file' device='disk'></div><div>                        <source file='/var/lib/one//datastores/0/99/disk.2'/></div><div>                        <target dev='hdd'/></div>
<div>                        <driver name='qemu' type='qcow2' cache='default'/></div><div>                </disk></div><div>                <disk type='file' device='cdrom'></div>
<div>                        <source file='/var/lib/one//datastores/0/99/disk.3'/></div><div>                        <target dev='hda'/></div><div>                        <readonly/></div>
<div>                        <driver name='qemu' type='raw'/></div><div>                </disk></div><div>                <interface type='bridge'></div><div>                        <source bridge='ovsbr0'/></div>
<div>                        <virtualport type='openvswitch'/></div><div>                        <mac address='02:00:44:47:83:43'/></div><div>                </interface></div><div>        </devices></div>
<div>        <features></div><div>                <acpi/></div><div>        </features></div><div></domain></div><div><br></div><div>Template used to create deployment file in question:</div><div><br>
</div><div><div>TEMPLATE 15 INFORMATION                                                         </div><div>ID             : 15                  </div><div>NAME           : ubuntu-13.04-x86_64-with_storage</div><div>USER           : oneadmin            </div>
<div>GROUP          : oneadmin            </div><div>REGISTER TIME  : 04/27 17:47:17      </div><div><br></div><div>PERMISSIONS                                                                     </div><div>OWNER          : um-                 </div>
<div>GROUP          : ---                 </div><div>OTHER          : ---                 </div><div><br></div><div>TEMPLATE CONTENTS                                                               </div><div>CONTEXT=[</div>
<div>  ETH0_DNS="$NETWORK[DNS,NETWORK_ID=\"3\"]",</div><div>  ETH0_GATEWAY="$NETWORK[GATEWAY,NETWORK_ID=\"3\"]",</div><div>  ETH0_IP="$NIC[IP,NETWORK_ID=\"3\"]",</div>
<div>  ETH0_MASK="$NETWORK[NETWORK_MASK,NETWORK_ID=\"3\"]",</div><div>  ETH0_NETWORK="$NETWORK[NETWORK_ADDRESS,NETWORK_ID=\"3\"]",</div><div>  SSH_PUBLIC_KEY="ssh-rsa abcd <a href="mailto:foo@bar.com">foo@bar.com</a> ]</div>
<div>CPU="1"</div><div>DISK=[</div><div>  IMAGE_ID="11" ]</div><div>DISK=[</div><div>  CACHE="default",</div><div>  DRIVER="qcow2",</div><div>  FORMAT="ext4",</div><div>  SIZE="5120",</div>
<div>  TYPE="fs" ]</div><div>DISK=[</div><div>  CACHE="default",</div><div>  DRIVER="qcow2",</div><div>  SIZE="2048",</div><div>  TYPE="swap" ]</div><div>MEMORY="1024"</div>
<div>NIC=[</div><div>  NETWORK_ID="0" ]</div><div>OS=[</div><div>  ARCH="x86_64" ]</div></div><div><br></div><div>Here is the template of the VM with RAW disks that starts successfully:</div><div><br></div>
<div><div>oneadmin@loki:~$ onetemplate show 25</div><div>TEMPLATE 25 INFORMATION                                                         </div><div>ID             : 25                  </div><div>NAME           : ubuntu-13.04-test_raw_storage</div>
<div>USER           : oneadmin            </div><div>GROUP          : oneadmin            </div><div>REGISTER TIME  : 05/13 11:11:24      </div><div><br></div><div>PERMISSIONS                                                                     </div>
<div>OWNER          : um-                 </div><div>GROUP          : ---                 </div><div>OTHER          : ---                 </div><div><br></div><div>TEMPLATE CONTENTS                                                               </div>
<div>CONTEXT=[</div><div>  ETH0_CONTEXT_FORCE_IPV4="$NETWORK[CONTEXT_FORCE_IPV4,NETWORK_ID=\"0\"]",</div><div>  ETH0_DNS="$NETWORK[DNS,NETWORK_ID=\"0\"]",</div><div>  ETH0_GATEWAY="$NETWORK[GATEWAY,NETWORK_ID=\"0\"]",</div>
<div>  ETH0_GATEWAY6="$NETWORK[GATEWAY6,NETWORK_ID=\"0\"]",</div><div>  ETH0_IP="$NIC[IP,NETWORK_ID=\"0\"]",</div><div>  ETH0_IPV6="$NIC[IP6_GLOBAL,NETWORK_ID=\"0\"]",</div>
<div>  ETH0_MASK="$NETWORK[NETWORK_MASK,NETWORK_ID=\"0\"]",</div><div>  ETH0_NETWORK="$NETWORK[NETWORK_ADDRESS,NETWORK_ID=\"0\"]",</div><div>  SSH_PUBLIC_KEY="ssh-rsa  ]</div><div>
CPU="2"</div><div>DISK=[</div><div>  DRIVER="raw",</div><div>  FORMAT="ext4",</div><div>  SIZE="5120",</div><div>  TYPE="fs" ]</div><div>DISK=[</div><div>  DRIVER="raw",</div>
<div>  SIZE="2048",</div><div>  TYPE="swap" ]</div><div>DISK=[</div><div>  IMAGE_ID="11" ]</div><div>GRAPHICS=[</div><div>  LISTEN="0.0.0.0",</div><div>  TYPE="VNC" ]</div>
<div>MEMORY="2042"</div><div>NIC=[</div><div>  NETWORK_ID="0" ]</div><div>OS=[</div><div>  ARCH="x86_64" ]</div><div>VCPU="2"</div></div><div><br></div><div>(actually, updating template #15 to reflect "raw" drivers in place of "qcow2" drivers also allows the VM to boot)</div>
<div><br></div><div>So, I guess the question then becomes, how do I tell OpenNebula to create qcow2 images instead of raw disk images?</div><div><br></div><div>Thanks,</div><div>Jon A</div><div><br></div><div><br></div><br>
<div class="gmail_quote">On Sun, May 12, 2013 at 1:45 PM, Jon <span dir="ltr"><<a href="mailto:three18ti@gmail.com" target="_blank">three18ti@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>Hello All,<br><br></div>After much aggravation, I finally came up with the idea to disable apparmor for libvirtd.  So I copied the profile from /etc/apparmor.d/usr.sbin.libvirtd to /etc/apparmor.d/disabled/usr.sbin.libvirtd</div>

<div dir="ltr"><br></div><div dir="ltr">And now I am not receiving the error message:</div><div dir="ltr"><br></div><div dir="ltr">>> error: internal error cannot load AppArmor profile 'libvirt-8a633864-4564-a814-8dc8-73bca05476a1'</div>

<div dir="ltr"><br></div><div dir="ltr">While this doesn't seem ideal, OpenNebula doesn't seem to work with the libvirt profile active after changing owner / group that libvirt runs as.  Has anyone been able to get libvirt to run with an active apparmor profile under the oneadmin / cloud user / group on an Ubuntu system?</div>

<div dir="ltr"><br></div><div dir="ltr">What I find even more puzzling, even after I cleared out /etc/apparmor.d/libvirt/:</div><div dir="ltr"><br></div><div dir="ltr">>> root@loki:~# ls -lah /etc/apparmor.d/libvirt/</div>

<div dir="ltr">>> total 20K</div><div dir="ltr">>> drwxr-xr-x  2 root root  12K May 12 13:18 .</div><div dir="ltr">>> drwxr-xr-x 10 root root 4.0K May 12 13:22 ..</div><div dir="ltr">>> -rw-r--r--  1 root root  164 May 12 13:17 TEMPLATE</div>

<div dir="ltr"><br></div><div dir="ltr">after tearing down apparmor the profile for libvirt-39122dda-bedb-4808-fd25-5e68446224ff is still active:</div><div dir="ltr"><br></div><div dir="ltr"><div dir="ltr">>> root@loki:~# /etc/init.d/apparmor teardown</div>

<div dir="ltr">>>  * Unloading AppArmor profiles        [ OK ] </div><div dir="ltr">>> root@loki:~# apparmor_status </div><div dir="ltr">>> apparmor module is loaded.</div><div dir="ltr">>> 1 profiles are loaded.</div>

<div dir="ltr">>> 1 profiles are in enforce mode.</div><div dir="ltr">>>    libvirt-39122dda-bedb-4808-fd25-5e68446224ff</div><div dir="ltr">>> 0 profiles are in complain mode.</div><div dir="ltr">>> 1 processes have profiles defined.</div>

<div dir="ltr">>> 1 processes are in enforce mode.</div><div dir="ltr">>>    libvirt-39122dda-bedb-4808-fd25-5e68446224ff (12050) </div><div dir="ltr">>> 0 processes are in complain mode.</div><div dir="ltr">

>> 0 processes are unconfined but have a profile defined</div></div><div class="gmail_extra"><br>All that said, I'm still having trouble attaching a disk.  The good news is I get the same "invalid argument" error when attaching a volatile disk or a persistent disk, however, the error prevents the VM from booting:</div>

<div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">>> Sun May 12 13:29:14 2013 [DiM][I]: New VM state is ACTIVE.</div><div class="gmail_extra">>> Sun May 12 13:29:15 2013 [LCM][I]: New VM state is PROLOG.</div>

<div class="gmail_extra">>> Sun May 12 13:29:29 2013 [LCM][E]: monitor_done_action, VM in a wrong state</div><div class="gmail_extra">>> Sun May 12 13:30:28 2013 [TM][I]: clone: Cloning loki:/var/lib/one/datastores/103/4a657983e37df7e79b59110748f58ce8 in /var/lib/one/datastores/0/98/disk.0</div>

<div class="gmail_extra">>> Sun May 12 13:30:28 2013 [TM][I]: ExitCode: 0</div><div class="gmail_extra">>> Sun May 12 13:31:00 2013 [TM][I]: mkimage: Making filesystem of 5120M and type ext4 at loki:/var/lib/one//datastores/0/98/disk.1</div>

<div class="gmail_extra">>> Sun May 12 13:31:00 2013 [TM][I]: ExitCode: 0</div><div class="gmail_extra">>> Sun May 12 13:31:02 2013 [TM][I]: mkimage: Making filesystem of 2048M and type swap at loki:/var/lib/one//datastores/0/98/disk.2</div>

<div class="gmail_extra">>> Sun May 12 13:31:02 2013 [TM][I]: ExitCode: 0</div><div class="gmail_extra">>> Sun May 12 13:31:03 2013 [TM][I]: context: Generating context block device at loki:/var/lib/one//datastores/0/98/disk.3</div>

<div class="gmail_extra">>> Sun May 12 13:31:03 2013 [TM][I]: ExitCode: 0</div><div class="gmail_extra">>> Sun May 12 13:31:03 2013 [LCM][I]: New VM state is BOOT</div><div class="gmail_extra">>> Sun May 12 13:31:03 2013 [VMM][I]: Generating deployment file: /var/lib/one/vms/98/deployment.0</div>

<div class="gmail_extra">>> Sun May 12 13:31:03 2013 [VMM][I]: ExitCode: 0</div><div class="gmail_extra">>> Sun May 12 13:31:03 2013 [VMM][I]: Successfully execute network driver operation: pre.</div><div class="gmail_extra">

>> Sun May 12 13:31:07 2013 [VMM][I]: Command execution fail: cat << EOT | /var/tmp/one/vmm/kvm/deploy /var/lib/one//datastores/0/98/deployment.0 loki 98 loki</div><div class="gmail_extra">>> Sun May 12 13:31:07 2013 [VMM][I]: error: Failed to create domain from /var/lib/one//datastores/0/98/deployment.0</div>

<div class="gmail_extra">>> Sun May 12 13:31:07 2013 [VMM][I]: error: internal error process exited while connecting to monitor: kvm: -drive file=/var/lib/one//datastores/0/98/disk.1,if=none,id=drive-ide0-1-0,format=qcow2,cache=none: could not open disk image /var/lib/one//datastores/0/98/disk.1: Invalid argument</div>

<div class="gmail_extra">>> Sun May 12 13:31:07 2013 [VMM][I]: </div><div class="gmail_extra">>> Sun May 12 13:31:07 2013 [VMM][E]: Could not create domain from /var/lib/one//datastores/0/98/deployment.0</div>

<div class="gmail_extra">>> Sun May 12 13:31:07 2013 [VMM][I]: ExitCode: 255</div><div class="gmail_extra">>> Sun May 12 13:31:07 2013 [VMM][I]: Failed to execute virtualization driver operation: deploy.</div>

<div class="gmail_extra">>> Sun May 12 13:31:07 2013 [VMM][E]: Error deploying virtual machine: Could not create domain from /var/lib/one//datastores/0/98/deployment.0</div><div class="gmail_extra">>> Sun May 12 13:31:08 2013 [DiM][I]: New VM state is FAILED</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">What is the invalid argument here?  </div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks for any suggestions.</div><div class="gmail_extra">
<br>
</div><div class="gmail_extra">Best Regards,</div><div class="gmail_extra">Jon A</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><div class="gmail_extra"><br></div><br><br><div class="gmail_quote">
On Wed, May 8, 2013 at 11:40 AM, Jon <span dir="ltr"><<a href="mailto:three18ti@gmail.com" target="_blank">three18ti@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Hey All,<br><br></div>So I've just upgraded to 4.0Final, however, I am still experiencing the previous errors Cannot load AppArmor Profile when attempting to use a volatile disk and an invalid argument when attempting to use a datablock as a disk image.<br>



<br></div>Given that this is the the same error I've been plagued with since OpenNebula 3.8, I'm fairly certain there is something wrong with my configuration, but I'm at a loss as to what it could be.<br><br>



</div>Any ideas are greatly appreciated.<br><br></div>thanks,<br></div>Jon A<br></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 6, 2013 at 11:51 AM, Jon <span dir="ltr"><<a href="mailto:three18ti@gmail.com" target="_blank">three18ti@gmail.com</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div>Hello Ruben,<br><br></div>Thanks for this.  I actually remember performing this step several months ago when I installed 3.8, however, I did not perform this step when I installed 4.0.<br>




<br></div>However, it seems that something is still not quite right.  I am now unable to deploy any VM with a failure message:<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 cannot load AppArmor profile 'libvirt-76e12b0b-7d3c-c71a-46f0-bfe44917aedb'</span><br>




<br></div><div>And a relevant entry in /var/log/libvirt/libvirtd.log (followed by a cascading series of errors)<br><br>>> 2013-05-06 17:06:39.665+0000: 1577: error : virCommandWait:2314 : internal error Child process (/usr/lib/libvirt/virt-aa-helper -p 0 -c -u libvirt-76e12b0b-7d3c-c71a-46f0-bfe44917aedb) status unexpected: exit status 1<br>




>> 2013-05-06 17:06:39.665+0000: 1577: error : AppArmorGenSecurityLabel:446 : internal error cannot load AppArmor profile 'libvirt-76e12b0b-7d3c-c71a-46f0-bfe44917aedb'<br></div><div><br><br></div>The docs say I need to add the following line to /etc/apparmor.d/libvirt-qemu
, I think this mean I need to add the following line to /etc/apparmor.d/abstractions/libvirt-qemu since this is the file that is loaded by the libvirt/TEMPLATE<br><br>>> owner /var/lib/one/** rw,<br><br></div>After adding this entry to /etc/apparmor.d/abstractions/libvirt-qemu and restarting apparmor my vm fails to start with the same error message.<br>




<br>So I found an old mailing list article about the same issue:<br><br>>> <a href="http://lists.opennebula.org/pipermail/users-opennebula.org/2012-June/019427.html" target="_blank">http://lists.opennebula.org/pipermail/users-opennebula.org/2012-June/019427.html</a><br>




<br></div>This thread also indicates that the following line is required in /etc/apparmor.d/usr.sbin.libvirtd<br><br>>> /var/lib/one/** lrwk,<br><br></div>After doing this, I am still getting the error.<br><br></div>




The last reply in this thread says the final solution was killing the apparmor process and restarting the apparmor service.  <br><br>I performed a teardown, which didn't help so I performed a full system reboot.<br><br>




</div>After the reboot, I still receive the error "internal error cannot load AppArmor profile"<div><div><div><div><br></div><div>It appears that this issue only occurs when I am attempting to use volitile disks.<br>




<br></div><div>However, when I attempt to attach a blank, persistent datablock to a virtual machine, I get the error:<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/95/disk.0,if=none,id=drive-ide0-1-0,format=qcow2,cache=none: could not open disk image /var/lib/one//datastores/0/95/disk.0: Invalid argument<br>




</span><br>I'm not sure if this is related to disabling dynamic ownership and setting the ownership and group to oneadmin / cloud or if it is an entierly different error altogether.<br><br></div><div>I will say that I am still able to clone an imported disk image from the marketplace, and it appears to launch and run successfully.<br>




<br></div><div>Thanks for all your help.<br></div><div>Jon A<br></div><div><br></div><div>Logs are attached below<br></div><div><br></div><div>Failed VM with volatile disk image:<br></div><div><div><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">Mon May 6 11:04:42 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">Mon May 6 11:04:42 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">Mon May 6 11:06:05 2013 [TM][I]: clone: Cloning loki:/var/lib/one/datastores/103/4a657983e37df7e79b59110748f58ce8 in /var/lib/one/datastores/0/91/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">Mon May 6 11:06:05 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">Mon May 6 11:06:33 2013 [TM][I]: mkimage: Making filesystem of 5M and type ext4 at loki:/var/lib/one//datastores/0/91/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">Mon May 6 11:06:33 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">Mon May 6 11:06:35 2013 [TM][I]: mkimage: Making filesystem of 2048M and type swap at loki:/var/lib/one//datastores/0/91/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">Mon May 6 11:06:35 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">Mon May 6 11:06:36 2013 [TM][I]: context: Generating context block device at loki:/var/lib/one//datastores/0/91/disk.3</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">Mon May 6 11:06:36 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">Mon May 6 11:06:37 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">Mon May 6 11:06:37 2013 [VMM][I]: Generating deployment file: /var/lib/one/vms/91/deployment.6</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">Mon May 6 11:06:37 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">Mon May 6 11:06:37 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">Mon May 6 11:06:39 2013 [VMM][I]: Command execution fail: cat << EOT | /var/tmp/one/vmm/kvm/deploy /var/lib/one//datastores/0/91/deployment.6 loki 91 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">Mon May 6 11:06:39 2013 [VMM][I]: error: Failed to create domain from /var/lib/one//datastores/0/91/deployment.6</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">Mon May 6 11:06:39 2013 [VMM][I]: error: internal error cannot load AppArmor profile 'libvirt-76e12b0b-7d3c-c71a-46f0-bfe44917aedb'</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(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">Mon May 6 11:06:39 2013 [VMM][E]: Could not create domain from /var/lib/one//datastores/0/91/deployment.6</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">Mon May 6 11:06:39 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">Mon May 6 11:06:39 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 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">Mon May 6 11:06:39 2013 [VMM][E]: Error deploying virtual machine: Could not create domain from /var/lib/one//datastores/0/91/deployment.6</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">Mon May 6 11:06:40 2013 [DiM][I]: New VM state is FAILED<br>




<br></span></div><div>Error log from VM with attached datablock:<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">Mon May 6 11:40:18 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">Mon May 6 11:40:19 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">Mon May 6 11:40:20 2013 [TM][I]: ln: Linking /var/lib/one/datastores/1/27ce5578d5cc9748cc44c8fedb75758b in loki:/var/lib/one//datastores/0/95/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">Mon May 6 11:40:20 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">Mon May 6 11:41:35 2013 [TM][I]: clone: Cloning loki:/var/lib/one/datastores/103/4a657983e37df7e79b59110748f58ce8 in /var/lib/one/datastores/0/95/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">Mon May 6 11:41:35 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">Mon May 6 11:41:37 2013 [TM][I]: context: Generating context block device at loki:/var/lib/one//datastores/0/95/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">Mon May 6 11:41:37 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">Mon May 6 11:41:37 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">Mon May 6 11:41:37 2013 [VMM][I]: Generating deployment file: /var/lib/one/vms/95/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">Mon May 6 11:41:38 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">Mon May 6 11:41:38 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">Mon May 6 11:41:40 2013 [VMM][I]: Command execution fail: cat << EOT | /var/tmp/one/vmm/kvm/deploy /var/lib/one//datastores/0/95/deployment.0 loki 95 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">Mon May 6 11:41:40 2013 [VMM][I]: error: Failed to create domain from /var/lib/one//datastores/0/95/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">Mon May 6 11:41:40 2013 [VMM][I]: error: internal error process exited while connecting to monitor: kvm: -drive file=/var/lib/one//datastores/0/95/disk.0,if=none,id=drive-ide0-1-0,format=qcow2,cache=none: could not open disk image /var/lib/one//datastores/0/95/disk.0: 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">Mon May 6 11:41:40 2013 [VMM][I]:<span> </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 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">Mon May 6 11:41:40 2013 [VMM][E]: Could not create domain from /var/lib/one//datastores/0/95/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">Mon May 6 11:41:40 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">Mon May 6 11:41:40 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 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">Mon May 6 11:41:40 2013 [VMM][E]: Error deploying virtual machine: Could not create domain from /var/lib/one//datastores/0/95/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">Mon May 6 11:41:41 2013 [DiM][I]: New VM state is FAILED</span><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"></span></div>




</div></div></div></div></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 6, 2013 at 5:23 AM, Ruben S. Montero <span dir="ltr"><<a href="mailto:rsmontero@opennebula.org" target="_blank">rsmontero@opennebula.org</a>></span> wrote:<br>




<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Have you tried to set the KVM configuration /etc/libvirt/qemu.conf as in<div><br></div><div><div>$ grep -vE '^($|#)' /etc/libvirt/qemu.conf</div>




<div>user = "oneadmin"</div><div>group = "oneadmin"</div>

<div>dynamic_ownership = 0</div></div><div><br></div><div><br></div><div>more details here:</div><div><br></div><div><a href="http://opennebula.org/documentation:rel3.8:kvmg#configuration" target="_blank">http://opennebula.org/documentation:rel3.8:kvmg#configuration</a><br>






</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Sun, May 5, 2013 at 9:40 PM, Jon <span dir="ltr"><<a href="mailto:three18ti@gmail.com" target="_blank">three18ti@gmail.com</a>></span> wrote:<br>






</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><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> </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 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 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>
<br></div></div>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br>Ruben S. Montero, PhD<br>Project co-Lead and Chief Architect<br>OpenNebula - The Open Source Solution for Data Center Virtualization<br>




<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:rsmontero@opennebula.org" target="_blank">rsmontero@opennebula.org</a> | @OpenNebula
</font></span></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>