<div dir="ltr">Hi,<div><br></div><div>On Fri, Oct 18, 2013 at 1:26 AM, Marius Corici <span dir="ltr"><<a href="mailto:marius@corici.ro" target="_blank">marius@corici.ro</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div bgcolor="#FFFFFF" text="#000000">and /var/log/libvirt/qemu/one-172.log shows:<br><br>cache=none: could not open disk image /var/lib/one//datastores/0/172/disk.0: Invalid argument<br>2013-10-16 19:48:08.122+0000: shutting down<br>

<br>Have no idea what next. :-/</div></blockquote></div><div><br></div><div class="gmail_extra">Can you check if that file is accessible by oneadmin in the host machine?</div><div class="gmail_extra"><br></div><div class="gmail_extra">

Regards</div><div class="gmail_extra"><div><div dir="ltr">--<br><div>Carlos Martín, MSc<br>Project Engineer</div><div>OpenNebula - Flexible Enterprise Cloud Made Simple<br><div><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" style="color:rgb(42,93,176)" target="_blank"></a></span></div>

</div></div></div>
<br><br><div class="gmail_quote">On Fri, Oct 18, 2013 at 1:26 AM, Marius Corici <span dir="ltr"><<a href="mailto:marius@corici.ro" target="_blank">marius@corici.ro</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>Hey Martin,<br>
      <br>
      Thanks for suggestions. Checked the details from [1] and seems to
      be as it should.<br>
      <br>
      libvirt.log shows:<br>
      <br>
      2013-10-16 19:48:08.121+0000: 8722: error : qemuMonitorIORead:522
      : Unable to read from monitor: Connection reset by peer<br>
      <br>
      and /var/log/libvirt/qemu/one-172.log shows:<br>
      <br>
      2013-10-16 19:47:54.709+0000: starting up<br>
      LC_ALL=C <br>
      PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
      <br>
      HOME=/root <br>
      USER=root <br>
      LOGNAME=root <br>
      QEMU_AUDIO_DRV=none /usr/bin/kvm -S -M pc-1.1 -enable-kvm -m 512
      -smp 1,<br>
      sockets=1,<br>
      cores=1,<br>
      threads=1 -name one-172 -uuid 9aa233d8-51c5-f8ea-39a4-62fe7c3e71de
      -no-user-config -nodefaults -chardev socket,<br>
      id=charmonitor,<br>
      path=/var/lib/libvirt/qemu/one-172.monitor,<br>
      server,<br>
      nowait -mon chardev=charmonitor,<br>
      id=monitor,<br>
      mode=control -rtc base=utc -no-shutdown -device piix3-usb-uhci,<br>
      id=usb,<br>
      bus=pci.0,<br>
      addr=0x1.0x2 -drive file=/var/lib/one//datastores/0/172/disk.0,<br>
      if=none,<br>
      id=drive-virtio-disk0,<br>
      format=qcow2,<br>
      cache=none -device virtio-blk-pci,scsi=off,<br>
      bus=pci.0,<br>
      addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0,<br>
      bootindex=1 -drive file=/var/lib/one//datastores/0/172/disk.2,<br>
      if=none,<br>
      id=drive-ide0-0-0,<br>
      readonly=on,<br>
      format=raw -device ide-cd,<br>
      bus=ide.0,<br>
      unit=0,<br>
      drive=drive-ide0-0-0,<br>
      id=ide0-0-0 -drive file=/var/lib/one//datastores/0/172/disk.1,<br>
      if=none,<br>
      id=drive-ide0-0-1,<br>
      format=raw,<br>
      cache=none -device ide-hd,<br>
      bus=ide.0,<br>
      unit=1,<br>
      drive=drive-ide0-0-1,<br>
      id=ide0-0-1 -netdev tap,<br>
      fd=34,<br>
      id=hostnet0 -device rtl8139,<br>
      netdev=hostnet0,<br>
      id=net0,<br>
      mac=02:00:0a:c2:00:05,<br>
      bus=pci.0,<br>
      addr=0x3 -vnc <a href="http://10.255.254.2:172" target="_blank">10.255.254.2:172</a> -vga cirrus -device
      virtio-balloon-pci,<br>
      id=balloon0,<br>
      bus=pci.0,<br>
      addr=0x5<br>
      kvm: -drive file=/var/lib/one//datastores/0/172/disk.0,<br>
      if=none,<br>
      id=drive-virtio-disk0,<br>
      format=qcow2,<br>
      cache=none: could not open disk image
      /var/lib/one//datastores/0/172/disk.0: Invalid argument<br>
      2013-10-16 19:48:08.122+0000: shutting down<br>
      <br>
      Have no idea what next. :-/<div><div class="h5"><br>
      <br>
      <br>
      On 10/16/2013 04:49 PM, Carlos Martín Sánchez wrote:<br>
    </div></div></div><div><div class="h5">
    <blockquote type="cite">
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div>First make sure the required configuration [1] is in place.</div>
        <div>Then take a look at the libvirt log files, they may contain
          more information: /var/log/libvirt/libvirtd.log and
          /var/log/libvirt/qemu/one-<id>.log</div>
        <div><br>
        </div>
        <div>Regards</div>
        <div><br>
        </div>
        <div>[1] <a href="http://opennebula.org/documentation:rel4.2:kvmg#configuration" target="_blank">http://opennebula.org/documentation:rel4.2:kvmg#configuration</a><br>
        </div>
      </div>
      <div class="gmail_extra"><br clear="all">
        <div>
          <div dir="ltr">--<br>
            <div>Carlos Martín, MSc<br>
              Project Engineer</div>
            <div>OpenNebula - Flexible Enterprise Cloud Made Simple<br>
              <div><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a>
                  | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a>
                  | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"></span></div>
            </div>
          </div>
        </div>
        <br>
        <br>
        <div class="gmail_quote">On Tue, Oct 15, 2013 at 7:58 PM, Marius
          Corici <span dir="ltr"><<a href="mailto:marius@corici.ro" target="_blank">marius@corici.ro</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> Hi everybody,<br>
              <br>
              I'm new here and you're my "The Last Stand" solution.
              What's the story:<br>
              <br>
              When I try to create a VM from my app, I receive this
              error:<br>
              <br>
              <br>
              <blockquote>Tue Oct 15 16:00:22 2013 [DiM][I]: New VM
                state is ACTIVE.<br>
                Tue Oct 15 16:00:22 2013 [LCM][I]: New VM state is
                PROLOG.<br>
                Tue Oct 15 16:00:25 2013 [LCM][I]: New VM state is BOOT<br>
                Tue Oct 15 16:00:25 2013 [VMM][I]: Generating deployment
                file: /var/lib/one/vms/169/deployment.0<br>
                Tue Oct 15 16:00:25 2013 [VMM][I]: ExitCode: 0<br>
                Tue Oct 15 16:00:25 2013 [VMM][I]: Successfully execute
                network driver operation: pre.<br>
                Tue Oct 15 16:00:38 2013 [VMM][I]: Command execution
                fail: cat << EOT | /var/tmp/one/vmm/kvm/deploy
                '/var/lib/one//datastores/0/169/deployment.0' '<a href="http://domain.com" target="_blank">domain.com</a>' 169 <a href="http://domain.com" target="_blank">domain.com</a><br>
                Tue Oct 15 16:00:38 2013 [VMM][I]: error: Failed to
                create domain from
                /var/lib/one//datastores/0/169/deployment.0<br>
                Tue Oct 15 16:00:38 2013 [VMM][I]: error: Unable to read
                from monitor: Connection reset by peer<br>
                <span>Tue Oct 15 16:00:38 2013 [VMM][E]: Could not
                  create domain from
                  /var/lib/one//datastores/0/169/deployment.0</span><br>
                Tue Oct 15 16:00:38 2013 [VMM][I]: ExitCode: 255<br>
                Tue Oct 15 16:00:38 2013 [VMM][I]: Failed to execute
                virtualization driver operation: deploy.<br>
                <span>Tue Oct 15 16:00:38 2013 [VMM][E]: Error deploying
                  virtual machine: Could not create domain from
                  /var/lib/one//datastores/0/169/deployment.0</span><br>
                Tue Oct 15 16:00:41 2013 [DiM][I]: New VM state is
                FAILED<br>
                <br>
              </blockquote>
              I have OpenNebula 4.2 on Debian, and I don't know where
              else to look for an answer. <br>
              <br>
              Thank you<span><font color="#888888"><br>
                  <br>
                  Marius<br>
                </font></span></div>
            <br>
            _______________________________________________<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>
        <br>
      </div>
    </blockquote>
    <br>
  </div></div></div>

</blockquote></div><br></div></div>