title: How to configure a new host and virtual machine on opennebula?
body: <p>We're using OpenNebula to simulate a simple replicated <code>JBoss</code> application. </p>
  
  <p>We've installed all opennebula packages, qemu and kvm and libvirt. </p>
  
  <p>We have created a simple ethernet network ad hoc between my pc (a node) and the one of my friend (which is both node and front-end) by plugging an ethernet cable between me and him (10.0.0.1 and 10.0.0.2). </p>
  
  <p>So we can ping each other correctly, we've set everything to that we can ssh without a password to each other with "oneadmin" user. </p>
  
  <p>We've configured all files such as below:</p>
  
  <pre><code>/etc/libvirt/libvirtd.conf
  /etc/default/libvirtd-bin
  </code></pre>
  
  <p>And so on...
  kvm and kvm-intel are both enabled.
  The daemon 
      libvirtd -d -l
  seems to start correctly.</p>
  
  <p>In fact, from the gui of opennebula in the front end, we can see both the hosts monitored.</p>
  
  <p>Anyway there's a problem when we try to start the virtual machine on the node which is not the front-end. I mean when we try to do a deploy of a VM on the other node. The error is something like this</p>
  
  <pre><code>cannot stat `/var/lib/one/datastores/1/f5394317d377beaa09fc07697df9ff68
  </code></pre>
  
  <p>but if, from the front end which has virtual machine n°1 we perform,
      cd /var/lib/one/datastores/1
  then we can see that file, we've also given all the permissions to it...
  Any idea? :(</p>