<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Ruben<br>
    <br>
    No, at this point in time nohting is solved. I just moved from
    attempting to migrate to just attempting to get a VM up and running
    on the new host.<br>
    <br>
    I will have a look at your suggestions tomorrow morning and report
    back.<br>
    <br>
    Jurgen<br>
    <div class="moz-cite-prefix">On 6/02/2013 8:31 PM, Ruben S. Montero
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAGi56tep6BnjP3pgztAzZpqE-kTB4yDxiAUT53A01SwEte4v9w@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi
        <div><br>
        </div>
        <div>So, then you have solved you restore issue? The permission
          issue is usually because a misconfigured qemu.conf
          (dynamic_ownership [1]) or a problem accessing the datastore
          from the hosts (mount points, mismatch ID of oneadmin...)</div>
        <div><br>
        </div>
        <div>Regarding the network problem you have to create bridge1 in
          the hosts and bind it to the target physical Host for the
          dummy configuration. However if you are using other modes like
          802.1Q then the bridge is created for you. This depends on how
          the host was defined. Information about networking modes and
          configuration is here[2]</div>
        <div><br>
        </div>
        <div>Cheers</div>
        <div><br>
        </div>
        <div>Ruben</div>
        <div><br>
        </div>
        <div>[1] <a moz-do-not-send="true"
            href="http://opennebula.org/documentation:rel3.8:kvmg"
            target="_blank">http://opennebula.org/documentation:rel3.8:kvmg</a></div>
        <div>[2] <a moz-do-not-send="true"
            href="http://opennebula.org/documentation:rel3.8:nm"
            target="_blank">http://opennebula.org/documentation:rel3.8:nm</a></div>
        <div class="gmail_extra"><br>
          <br>
          <div class="gmail_quote">On Wed, Feb 6, 2013 at 7:30 AM,
            Jürgen Weber <span dir="ltr"><<a moz-do-not-send="true"
                href="mailto:jurgen.weber@theiconic.com.au"
                target="_blank">jurgen.weber@theiconic.com.au</a>></span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">some
              more on this:<br>
              <br>
              I installed kvm, this was obvious, as well as
              bridge-utils; apt-get install kvm bridge-utils -y
              completed.<br>
              does not look to copy, copied manually to HOST<br>
              chmod -R 755 /var/lib/one/remotes on MASTER and HOST<br>
              <br>
              Ran it manually on the master and :<br>
              oneadmin@MASTER:~$ virsh --connect qemu:///system restore
              /var/lib/one//datastores/0/164/checkpoint<br>
              Domain restored from /var/lib/one//datastores/0/164/checkpoint
              works<br>
              <br>
              <a moz-do-not-send="true"
                href="http://dev.opennebula.org/issues/1324"
                target="_blank">http://dev.opennebula.org/issues/1324</a>;
              hashed out == if, pointless I have a later version anyway.<br>
              <br>
              oneadmin@chaos:~$ /var/lib/one/remotes/vmm/kvm/restore
              /var/lib/one//datastores/0/166/checkpoint <-- works as
              well.<br>
              <br>
              Now I am just trying to deploy a VM on the machine, lets
              just instantiate one here and I get:<br>
              <br>
              Wed Feb  6 17:26:10 2013 [TM][D]: Message received: LOG I
              172 ln: Cloning chaos:/var/lib/one/datastores/106/c24ad9c213f28d634b6192e6b52d216f
              in /var/lib/one/datastores/0/172/disk.0<br>
              Wed Feb  6 17:26:10 2013 [TM][D]: Message received: LOG I
              172 ExitCode: 0<br>
              Wed Feb  6 17:26:11 2013 [TM][D]: Message received: LOG I
              172 context: Generating context block device at
              tartarus.matrix:/var/lib/one//datastores/0/172/disk.1<br>
              Wed Feb  6 17:26:11 2013 [TM][D]: Message received: LOG I
              172 ExitCode: 0<br>
              Wed Feb  6 17:26:11 2013 [TM][D]: Message received:
              TRANSFER SUCCESS 172 -<br>
              Wed Feb  6 17:26:11 2013 [VMM][D]: Message received: LOG I
              172 ExitCode: 0<br>
              Wed Feb  6 17:26:11 2013 [VMM][D]: Message received: LOG I
              172 Successfully execute network driver operation: pre.<br>
              Wed Feb  6 17:26:11 2013 [VMM][D]: Message received: LOG I
              172 Command execution fail: cat << EOT |
              /var/tmp/one/vmm/kvm/deploy /var/lib/one//datastores/0/172/deployment.0
              tartarus.matrix 172 tartarus.matrix<br>
              Wed Feb  6 17:26:11 2013 [VMM][D]: Message received: LOG I
              172 error: Failed to create domain from
              /var/lib/one//datastores/0/172/deployment.0<br>
              Wed Feb  6 17:26:11 2013 [VMM][D]: Message received: LOG I
              172 error: Cannot get interface MTU on 'bridge1': No such
              device<br>
              Wed Feb  6 17:26:11 2013 [VMM][D]: Message received: LOG E
              172 Could not create domain from
              /var/lib/one//datastores/0/172/deployment.0<br>
              Wed Feb  6 17:26:11 2013 [VMM][D]: Message received: LOG I
              172 ExitCode: 255<br>
              Wed Feb  6 17:26:11 2013 [VMM][D]: Message received: LOG I
              172 Failed to execute virtualization driver operation:
              deploy.<br>
              Wed Feb  6 17:26:11 2013 [VMM][D]: Message received:
              DEPLOY FAILURE 172 Could not create domain from
              /var/lib/one//datastores/0/172/deployment.0<br>
              <br>
              Now i have not bridge configuration on the MASTER and I
              have observed from deleting and creating a VM that
              OpenNebula is doing all the interface configurations its
              self, which I do vaguely remember getting working last
              time so I am not sure why its not working here.<br>
              <br>
              Any thoughts?
              <div>
                <div><br>
                  On 06/02/13 10:47, Jürgen Weber wrote:<br>
                  <blockquote class="gmail_quote" style="margin:0 0 0
                    .8ex;border-left:1px #ccc solid;padding-left:1ex">
                    Hi<br>
                    <br>
                    Right now I have a OpenNebula server, running the
                    front end (SunStone) and host all on one machine. It
                    works great. Lets refer to this as the master.<br>
                    <br>
                    I am trying to add a new host (reffered to as the
                    host) to run more VM's. I am attempting to migrate
                    from the master to the host without success.
                    Firstly, what is installed:<br>
                    <br>
                    MASTER<br>
                    uname -a<br>
                    Linux MASTER 3.2.0-4-amd64 #1 SMP Debian 3.2.35-2
                    x86_64 GNU/Linux<br>
                    <br>
                    cat /etc/debian_version<br>
                    7.0<br>
                    <br>
                    ii  opennebula                         3.4.1-3.1
                    amd64 controller which executes the OpenNebula
                    cluster services<br>
                    ii  opennebula-common                  3.4.1-3.1 all
                    empty package to create OpenNebula users and
                    directories<br>
                    ii  opennebula-sunstone                3.4.1-3.1 all
                             web interface to which executes the
                    OpenNebula cluster services<br>
                    ii  opennebula-tools                   3.4.1-3.1 all
                    Command-line tools for OpenNebula Cloud<br>
                    ii  ruby-opennebula                    3.4.1-3.1 all
                             Ruby bindings for OpenNebula Cloud API
                    (OCA)<br>
                    ii  kvm                              
                     1:1.1.2+dfsg-5 amd64 dummy transitional package
                    from kvm to qemu-kvm<br>
                    ii  qemu-kvm                           1.1.2+dfsg-5
                    amd64 Full virtualization on x86 hardware<br>
                    ii  libvirt-bin                        0.9.12-5
                    amd64 programs for the libvirt library<br>
                    ii  libvirt0                           0.9.12-5
                    amd64 library for interfacing with different
                    virtualization systems<br>
                    ii  python-libvirt                     0.9.12-5
                    amd64 libvirt Python bindings<br>
                    <br>
                    HOST<br>
                    uname -a<br>
                    Linux HOST 3.2.0-4-amd64 #1 SMP Debian 3.2.35-2
                    x86_64 GNU/Linux<br>
                    <br>
                    cat /etc/debian_version<br>
                    7.0<br>
                    <br>
                    i  opennebula-common                  3.4.1-3.1 all
                             empty package to create OpenNebula users
                    and directories<br>
                    ii  opennebula-node                    3.4.1-3.1 all
                    empty package to prepare a machine as OpenNebula
                    Node<br>
                    ii  libvirt-bin                        0.9.12-5
                    amd64 programs for the libvirt library<br>
                    ii  libvirt0                           0.9.12-5
                    amd64 library for interfacing with different
                    virtualization systems<br>
                    <br>
                    Reading /usr/share/doc/opennebula-node/README.Debian
                    it tells you what to do, I followed those
                    instructions, everything completed successfully.<br>
                    Things I find odd... kvm/qemu-kvm packages are not
                    installed on the HOST but that README file says to
                    ensure that the kernel modules are loaded which they
                    are.<br>
                    <br>
                    oneadmin@MASTER:~$ onehost list<br>
                      ID NAME         CLUSTER     RVM   TCPU   FCPU  
                    ACPU   TMEM FMEM   AMEM STAT<br>
                       2 MASTER.matrix Internal     16   3200   2509  
                     200 126.1G 27.2G  22.1G   on<br>
                       4 HOST.mat -             0   1600   1600   1600
                     31.5G  31.1G 31.5G   on<br>
                    <br>
                    But that said, here is what happens in the VM's log
                    when I try to migrate:<br>
                    <br>
                    Wed Feb  6 09:31:46 2013 [VMM][D]: Message received:
                    LOG I 161 ExitCode: 0<br>
                    Wed Feb  6 09:31:46 2013 [VMM][D]: Message received:
                    LOG I 161 Successfully execute virtualization driver
                    operation: save.<br>
                    Wed Feb  6 09:31:46 2013 [VMM][D]: Message received:
                    LOG I 161 ExitCode: 0<br>
                    Wed Feb  6 09:31:46 2013 [VMM][D]: Message received:
                    LOG I 161 Successfully execute network driver
                    operation: clean.<br>
                    Wed Feb  6 09:31:46 2013 [VMM][D]: Message received:
                    SAVE SUCCESS 161 -<br>
                    Wed Feb  6 09:31:47 2013 [TM][D]: Message received:
                    LOG I 161 ExitCode: 0<br>
                    Wed Feb  6 09:31:47 2013 [TM][D]: Message received:
                    LOG I 161 ExitCode: 0<br>
                    Wed Feb  6 09:31:47 2013 [TM][D]: Message received:
                    TRANSFER SUCCESS 161 -<br>
                    Wed Feb  6 09:31:47 2013 [VMM][D]: Message received:
                    LOG I 161 ExitCode: 0<br>
                    Wed Feb  6 09:31:47 2013 [VMM][D]: Message received:
                    LOG I 161 Successfully execute network driver
                    operation: pre.<br>
                    Wed Feb  6 09:31:47 2013 [VMM][D]: Message received:
                    LOG I 161 Command execution fail:
                    /var/tmp/one/vmm/kvm/restore
                    /var/lib/one//datastores/0/161/checkpoint HOST 161
                    HOST<br>
                    Wed Feb  6 09:31:47 2013 [VMM][D]: Message received:
                    LOG E 161 restore: Command "virsh --connect
                    qemu:///system restore /var/lib/one//datastores/0/161/checkpoint"
                    failed: error: Failed to restore domain from
                    /var/lib/one//datastores/0/161/checkpoint<br>
                    Wed Feb  6 09:31:47 2013 [VMM][D]: Message received:
                    LOG I 161 error: Failed to create file
                    '/var/lib/one//datastores/0/161/checkpoint':
                    Operation not permitted<br>
                    Wed Feb  6 09:31:47 2013 [VMM][D]: Message received:
                    LOG E 161 Could not restore from
                    /var/lib/one//datastores/0/161/checkpoint<br>
                    Wed Feb  6 09:31:47 2013 [VMM][D]: Message received:
                    LOG I 161 ExitCode: 1<br>
                    Wed Feb  6 09:31:47 2013 [VMM][D]: Message received:
                    LOG I 161 Failed to execute virtualization driver
                    operation: restore.<br>
                    Wed Feb  6 09:31:47 2013 [VMM][D]: Message received:
                    RESTORE FAILURE 161 Could not restore from
                    /var/lib/one//datastores/0/161/checkpoint<br>
                    Wed Feb  6 09:31:49 2013 [InM][I]: ExitCode: 0<br>
                    <br>
                    I can work out this operation is that is not
                    permitted, is it a permissions issue? What host is
                    this error originating from.. is it saying the
                    MASTER does not have access to that file or the
                    HOST? I have no idea.<br>
                    <br>
                    Any help appreicated.<br>
                    <br>
                    Thanks<br>
                    <br>
                    Jurgen<br>
                    <br>
                  </blockquote>
                  <br>
                  -- <br>
                  Jürgen Weber<br>
                  <br>
                  Systems Engineer<br>
                  IT Infrastructure Team Leader<br>
                  <br>
                  THE ICONIC | E <a moz-do-not-send="true"
                    href="mailto:jurgen.weber@theiconic.com.au"
                    target="_blank">jurgen.weber@theiconic.com.au</a> |
                  <a moz-do-not-send="true"
                    href="http://www.theiconic.com.au" target="_blank">www.theiconic.com.au</a><br>
                  <br>
                  _______________________________________________<br>
                  Users mailing list<br>
                  <a moz-do-not-send="true"
                    href="mailto:Users@lists.opennebula.org"
                    target="_blank">Users@lists.opennebula.org</a><br>
                  <a moz-do-not-send="true"
                    href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org"
                    target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org<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><a moz-do-not-send="true"
                    href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a>
                  | <a moz-do-not-send="true"
                    href="mailto:rsmontero@opennebula.org"
                    target="_blank">rsmontero@opennebula.org</a> |
                  @OpenNebula
                </div>
              </div>
            </blockquote>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>