<br><br><div class="gmail_quote">On 23 October 2012 13:45, Christoph Stich <span dir="ltr"><<a href="mailto:christoph.stich@inovex.de" target="_blank">christoph.stich@inovex.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <div>Hi Daniel,<br>
      <br>
      output from onevm show:<br>
      ###########################<br>
      VIRTUAL MACHINE 76
      INFORMATION                                                  <br>
      ID                  : 76                  <br>
      NAME                : tty-linux-vlan110-vnc<br>
      USER                : oneadmin            <br>
      GROUP               : oneadmin            <br>
      STATE               : FAILED              <br>
      LCM_STATE           : LCM_INIT            <br>
      RESCHED             : No                  <br>
      START TIME          : 10/23 07:34:31      <br>
      END TIME            : 10/23 07:36:22      <br>
      DEPLOY ID           : -                   <br>
      <br>
      VIRTUAL MACHINE
      MONITORING                                                      <br>
      NET_TX              : 0K                  <br>
      USED CPU            : 0                   <br>
      USED MEMORY         : 0K                  <br>
      NET_RX              : 0K                  <br>
      <br>
      PERMISSIONS                                                                    
      <br>
      OWNER               : um-                 <br>
      GROUP               : ---                 <br>
      OTHER               : ---                 <br>
      <br>
      VIRTUAL MACHINE
      TEMPLATE                                                        <br>
      CPU="0.25"<br>
      DISK=[<br>
        CLONE="YES",<br>
        DATASTORE="minirz",<br>
        DATASTORE_ID="100",<br>
        DEV_PREFIX="hd",<br>
        DISK_ID="0",<br>
        DRIVER="raw",<br>
        IMAGE="ttylinux",<br>
        IMAGE_ID="5",<br>
        IMAGE_UNAME="oneadmin",<br>
        READONLY="NO",<br>
        SAVE="NO",<br>
       
      SOURCE="/var/lib/one/datastores/100/394f515620d03290de79db6d4d25b262",<br>
        TARGET="hda",<br>
        TM_MAD="ssh",<br>
        TYPE="FILE" ]<br>
      ERROR=[<br>
        MESSAGE="Error deploying virtual machine: Could not create
      domain from /var/lib/one//datastores/0/76/deployment.1",<br>
        TIMESTAMP="Tue Oct 23 07:36:22 2012" ]<br>
      GRAPHICS=[<br>
        LISTEN="0.0.0.0",<br>
        PORT="5976",<br>
        TYPE="vnc" ]<br>
      MEMORY="64"<br>
      NAME="tty-linux-vlan110-vnc"<br>
      NIC=[<br>
        BRIDGE="onebr26",<br>
        IP="172.24.110.21",<br>
        MAC="02:00:ac:18:6e:15",<br>
        MODEL="e1000",<br>
        NETWORK="Vlan110-frontend",<br>
        NETWORK_ID="26",<br>
        NETWORK_UNAME="oneadmin",<br>
        PHYDEV="eth0",<br>
        VLAN="YES",<br>
        VLAN_ID="110" ]<br>
      OS=[<br>
        ARCH="i686",<br>
        BOOT="hd" ]<br>
      RAW=[<br>
        TYPE="kvm" ]<br>
      TEMPLATE_ID="37"<br>
      VCPU="1"<br>
      VMID="76"<br>
      <br>
      VIRTUAL MACHINE
      HISTORY                                                         <br>
       SEQ HOST            REASON           START            TIME    
      PROLOG_TIME<br>
          0 kvmhost01       erro    10/23 07:36:16    0d 00h00m06s    0d
      00h00m02s<br>
      ################################################<br>
      <br>
      Output onetemplate show:<br>
      ##################################<br>
      TEMPLATE 37
      INFORMATION                                                        
      <br>
      ID             : 37                  <br>
      NAME           : tty-linux-vlan110-vnc<br>
      USER           : oneadmin            <br>
      GROUP          : oneadmin            <br>
      REGISTER TIME  : 10/22 04:48:52      <br>
      <br>
      PERMISSIONS                                                                    
      <br>
      OWNER          : um-                 <br>
      GROUP          : ---                 <br>
      OTHER          : ---                 <br>
      <br>
      TEMPLATE
      CONTENTS                                                              
      <br>
      CPU="0.25"<br>
      DISK=[<br>
        DRIVER="raw",<br>
        IMAGE="ttylinux",<br>
        IMAGE_UNAME="oneadmin" ]<br>
      GRAPHICS=[<br>
        LISTEN="0.0.0.0",<br>
        TYPE="vnc" ]<br>
      MEMORY="64"<br>
      NAME="tty-linux-vlan110-vnc"<br>
      NIC=[<br>
        MODEL="e1000",<br>
        NETWORK="Vlan110-frontend",<br>
        NETWORK_UNAME="oneadmin" ]<br>
      OS=[<br>
        ARCH="i686",<br>
        BOOT="hd" ]<br>
      RAW=[<br>
        TYPE="kvm" ]<br>
      TEMPLATE_ID="37"<br>
      VCPU="1"<br>
      ########################<br></div></div></blockquote><div><br></div><div>Everything looks fine. Could you also check/send the content of  /var/lib/one//datastores/0/76/deployment.1 and /var/log/libvirt/qemu/one-76.log</div>

<div><br></div><div>Cheers</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div text="#000000" bgcolor="#FFFFFF"><div>
      <br>
      Kind Regards<br>
      Christoph<br>
      <br>
      <br>
      <br>
      Am 23.10.2012 13:25, schrieb Daniel Molina:<br>
    </div><div><div class="h5">
    <blockquote type="cite"><br>
      <br>
      <div class="gmail_quote">On 22 October 2012 12:36, Christoph Stich
        <span dir="ltr"><<a href="mailto:christoph.stich@inovex.de" target="_blank">christoph.stich@inovex.de</a>></span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div text="#000000" bgcolor="#FFFFFF">
            <div>Hi Daniel,<br>
              <br>
              at first, thanks for the reply and the support.<br>
              <br>
              <u>1) network setup/problem:</u><br>
              in general it seems to be resolved. I got it working and
              the vnet is bridged together with the physical interface.<br>
              vlan-tags are working, too.<br>
              <br>
              The only remaining issue is: The IP leases from the
              vm-network seem only be set to the tty-linux. I'm able to
              ping and connect to it.<br>
              The other VMs, Ubuntu Server (from the Marketplace) are
              not pingable. Is the autoconfig of the interface not
              working for this?<br>
              <u><br>
              </u></div>
          </div>
        </blockquote>
        <div>Currently, I am running an Ubuntu Server from the
          Marketplace in my development environment, so the image should
          be fine.</div>
        <div> </div>
        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div text="#000000" bgcolor="#FFFFFF">
            <div><u> <br>
              </u><u>2) vnc setup / problem</u><u>:</u><br>
              I added the output-file from "onetemplate show"<br>
            </div>
          </div>
        </blockquote>
        <div><br>
        </div>
        <div>This mailing list does not allow mail attachments, could
          your please paste the output from ontemplate show and onevm
          show? </div>
        <div><br>
        </div>
        <div>Cheers</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div text="#000000" bgcolor="#FFFFFF">
            <div> <br>
              Kind Regards<br>
              Christoph<br>
              <br>
              <br>
              <br>
              <br>
              Am 22.10.2012 12:12, schrieb Daniel Molina:<br>
            </div>
            <div>
              <div>
                <blockquote type="cite">Hi,<br>
                  <br>
                  <div class="gmail_quote">On 16 October 2012 09:08,
                    Christoph Stich <span dir="ltr"><<a href="mailto:christoph.stich@inovex.de" target="_blank">christoph.stich@inovex.de</a>></span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div text="#000000" bgcolor="#FFFFFF"> Dear All,<br>
                        <br>
                        I got two problems at my opennebula/kvm
                        environment.<br>
                        <br>
                        <u>1) network setup</u><br>
                        in general the one frontend and kvm host are
                        running and connected.<br>
                        I can start instances of the ubuntu image (from
                        marketplace).<br>
                        But I'm not able to connect to the vm via the
                        kvm-host.<br>
                        <br>
                        At the kvm host I have a virbr0 with ip and dhcp
                        server.<br>
                        I created a network at the sunstone gui, which
                        should use the virbr0.<br>
                        I assigned an ip to the vm, but I'm not able to
                        ping the vm.<br>
                        <br>
                        I do not know what I'm doing wrong in this case.<br>
                      </div>
                    </blockquote>
                    <div><br>
                    </div>
                    <div>Could you send us the output of "brctl show"?</div>
                    <div> </div>
                    <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div text="#000000" bgcolor="#FFFFFF"> <br>
                        <u>2) vnc setup</u><br>
                        The next issue has to do with vnc.<br>
                        I created the ca and the server/client certs.
                        Distributed the certs to all hosts.<br>
                        I modified the libvirtd config / qemu config to
                        use vnc and the certs. ( <a href="http://wiki.libvirt.org/page/VNCTLSSetup" target="_blank">http://wiki.libvirt.org/page/VNCTLSSetup)</a><br>
                        I installed the novnc at the one frontend.<br>
                        <br>
                        When I know create a vm at open nebula and
                        enable the graphics > vnc, the instance can
                        not be created and fails with the following
                        error:<br>
                        <pre style="line-height:normal;text-indent:0px;letter-spacing:normal;text-align:start;font-variant:normal;color:rgb(34,34,34);text-transform:none;font-style:normal;font-size:13px;font-weight:normal;word-spacing:0px">

Tue Oct 16 02:21:02 2012 [DiM][I]: New VM state is ACTIVE.
Tue Oct 16 02:21:02 2012 [LCM][I]: New VM state is PROLOG.
Tue Oct 16 02:21:02 2012 [VM][I]: Virtual Machine has no context
Tue Oct 16 02:21:19 2012 [TM][I]: clone: Cloning onefrontend:/var/lib/one/datastores/100/671dbca24b99c0c4f9199e0239446fb0 in /var/lib/one/datastores/0/33/disk.0
Tue Oct 16 02:21:19 2012 [TM][I]: ExitCode: 0
Tue Oct 16 02:21:19 2012 [LCM][I]: New VM state is BOOT
Tue Oct 16 02:21:19 2012 [VMM][I]: Generating deployment file: /var/lib/one/33/deployment.0
Tue Oct 16 02:21:19 2012 [VMM][I]: ExitCode: 0
Tue Oct 16 02:21:19 2012 [VMM][I]: Successfully execute network driver operation: pre.
Tue Oct 16 02:21:22 2012 [VMM][I]: Command execution fail: cat << EOT | /var/tmp/one/vmm/kvm/deploy /var/lib/one//datastores/0/33/deployment.0 kvmhost01 33 kvmhost01
Tue Oct 16 02:21:22 2012 [VMM][I]: error: failed to get domain '/var/lib/one//datastores/0/33/deployment.0'
Tue Oct 16 02:21:22 2012 [VMM][I]: error: Domain not found: no domain with matching name '/var/lib/one//datastores/0/33/deployment.0'
Tue Oct 16 02:21:22 2012 [VMM][I]: error: Failed to create domain from /var/lib/one//datastores/0/33/deployment.0
Tue Oct 16 02:21:22 2012 [VMM][I]: error: Unable to read from monitor: Connection reset by peer
<span>Tue Oct 16 02:21:22 2012 [VMM][E]: Could not create domain from /var/lib/one//datastores/0/33/deployment.0</span>
Tue Oct 16 02:21:22 2012 [VMM][I]: ExitCode: 255
Tue Oct 16 02:21:22 2012 [VMM][I]: Failed to execute virtualization driver operation: deploy.
<span>Tue Oct 16 02:21:22 2012 [VMM][E]: Error deploying virtual machine: Could not create domain from /var/lib/one//datastores/0/33/deployment.0</span>
Tue Oct 16 02:21:22 2012 [DiM][I]: New VM state is FAILED</pre>
                      </div>
                    </blockquote>
                    <div>Please, send us the template you're trying to
                      instantiate.</div>
                    <div><br>
                    </div>
                    <div>Cheers</div>
                    <div> </div>
                    <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div text="#000000" bgcolor="#FFFFFF"> I checked
                        the permissions of folders and tested the setup
                        without tls but the same error occured.<br>
                        I checked the following guide: <a href="http://opennebula.org/documentation:rel3.6:sunstone#vnc_troubleshooting" target="_blank">http://opennebula.org/documentation:rel3.6:sunstone#vnc_troubleshooting</a><br>


                        <br>
                        But it did not help.<br>
                        <br>
                        I already downloaded the following file: <a href="https://github.com/kanaka/websockify/downloads" target="_blank">https://github.com/kanaka/websockify/downloads</a><br>
                        and replaced the old websockify.<br>
                        <br>
                        Thanks in advance for your time.<br>
                        <br>
                        Regards<br>
                        Chris<br>
                        <br>
                      </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>
                  <br clear="all">
                  <div><br>
                  </div>
                  -- <br>
                  Daniel Molina<br>
                  Project Engineer<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:dmolina@opennebula.org" target="_blank">dmolina@opennebula.org</a>
                  | @OpenNebula<br>
                </blockquote>
                <br>
              </div>
            </div>
          </div>
        </blockquote>
      </div>
      <br>
      <br clear="all">
      <div><br>
      </div>
      -- <br>
      Daniel Molina<br>
      Project Engineer<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:dmolina@opennebula.org" target="_blank">dmolina@opennebula.org</a> | @OpenNebula<br>
    </blockquote>
    <br>
  </div></div></div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br>Daniel Molina<br>Project Engineer<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:dmolina@opennebula.org" target="_blank">dmolina@opennebula.org</a> | @OpenNebula<br>