Hi,<div><br class="Apple-interchange-newline">On Wed, Feb 6, 2013 at 9:48 PM, Johannes Thome <span dir="ltr"><<a href="mailto:johannes.thome@electrica.cujae.edu.cu" target="_blank">johannes.thome@electrica.cujae.edu.cu</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">i checked the libvirt-bin is running... but i have no idea if oneadmin can use it...<br>

<br></blockquote><div><div><br class="Apple-interchange-newline">To check if everything is set up correctly, execute as oneadmin, from the front-end machine</div><div>$ ssh host1 'virsh -c qemu:///system nodeinfo'</div>

</div><div><br></div><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">I found some new problems after i just created a host1 with sunstone.<br>

<br>in the libvirt log file:<br><br>2013-02-06 15:17:37.761+0000: 4689: info : libvirt version: 0.9.8<br>2013-02-06 15:17:37.761+0000: 4689: error : virNetTLSContextCheckCertFile:<u></u>92 : Cannot read CA certificate '/etc/pki/CA/cacert.pem': No such file or directory<br>

<br>and in oned.log<br><br>Wed Feb  6 15:39:35 2013 [ReM][D]: HostInfo method invoked<br>Wed Feb  6 15:39:36 2013 [InM][I]: Monitoring host host1 (0)<br>Wed Feb  6 15:39:37 2013 [ReM][D]: HostInfo method invoked<br>Wed Feb  6 15:39:37 2013 [InM][I]: Command execution fail: scp -r /var/lib/one/remotes/. host1:/var/tmp/one<br>

Wed Feb  6 15:39:37 2013 [InM][I]: ssh: Could not resolve hostname host1: Name or service not known<br>Wed Feb  6 15:39:37 2013 [InM][I]: lost connection<br>Wed Feb  6 15:39:37 2013 [InM][I]: ExitCode: 1<br>Wed Feb  6 15:39:37 2013 [InM][E]: Error monitoring host 0 : MONITOR FAILURE 0 Could not update remotes</blockquote>

<div><br></div><div>Just to be sure, you do understand that host1 is not just a name for the OpenNebula Host object, but the hostname or IP of a physical machine reachable from the front-end, right?</div><div><br></div><div>

Regards</div><div>--<br>Carlos Martín, MSc<br>Project Engineer<br>OpenNebula - The Open-source Solution for Data Center Virtualization<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>
<br><br><div class="gmail_quote">On Wed, Feb 6, 2013 at 9:48 PM, Johannes Thome <span dir="ltr"><<a href="mailto:johannes.thome@electrica.cujae.edu.cu" target="_blank">johannes.thome@electrica.cujae.edu.cu</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">i checked the libvirt-bin is running... but i have no idea if oneadmin can use it...<br>
<br>
I found some new problems after i just created a host1 with sunstone.<br>
<br>
in the libvirt log file:<br>
<br>
2013-02-06 15:17:37.761+0000: 4689: info : libvirt version: 0.9.8<br>
2013-02-06 15:17:37.761+0000: 4689: error : virNetTLSContextCheckCertFile:<u></u>92 : Cannot read CA certificate '/etc/pki/CA/cacert.pem': No such file or directory<br>
<br>
and in oned.log<br>
<br>
Wed Feb  6 15:39:35 2013 [ReM][D]: HostInfo method invoked<br>
Wed Feb  6 15:39:36 2013 [InM][I]: Monitoring host host1 (0)<br>
Wed Feb  6 15:39:37 2013 [ReM][D]: HostInfo method invoked<br>
Wed Feb  6 15:39:37 2013 [InM][I]: Command execution fail: scp -r /var/lib/one/remotes/. host1:/var/tmp/one<br>
Wed Feb  6 15:39:37 2013 [InM][I]: ssh: Could not resolve hostname host1: Name or service not known<br>
Wed Feb  6 15:39:37 2013 [InM][I]: lost connection<br>
Wed Feb  6 15:39:37 2013 [InM][I]: ExitCode: 1<br>
Wed Feb  6 15:39:37 2013 [InM][E]: Error monitoring host 0 : MONITOR FAILURE 0 Could not update remotes<div class="im"><br>
<br>
<br>
<br>
Am 2013-02-06 14:51, schrieb Hector Sanjuan:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
>From the logs there are at least two problems:<div><div class="h5"><br>
<br>
Wed Feb  6 10:03:09 2013 [InM][I]: error: Failed to connect socket to<br>
'/var/run/libvirt/libvirt-<u></u>sock': No such file or directory<br>
<br>
Is libvirt correctly installed? Can oneadmin use it?<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Wed Feb  6 10:03:10 2013 [InM][I]: ssh: Could not resolve hostname<br>
oneadmin: Name or service not known<br>
</blockquote>
<br>
It seems you added the host with name oneadmin, but you dont have any<br>
host  named oneadmin or it cannot be resolved. If you are adding the<br>
frontend  has host, add 'localhost'.<br>
<br>
You DO need passwordless ssh access to all hosts, regardless of using<br>
shared storage etc. because SSH is how opennebula copies the<br>
necessary  scripts, and monitors hosts and vms. You also need to be<br>
able to ssh  localhost passwordless if you are adding it as a node.<br>
<br>
Hector<br>
<br>
<br>
<br>
On Wed, 06 Feb 2013 16:29:10 +0100, Johannes Thome<br>
<<a href="mailto:johannes.thome@electrica.cujae.edu.cu" target="_blank">johannes.thome@electrica.<u></u>cujae.edu.cu</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I put my logfiles in this Email, and the log-files complete in the<br>
attachment.<br>
<br>
i have only the front end on one computer, so i dont need really a ssh<br>
how can i use shared?<br>
all my hosts are added to the hosts file... but i created them with<br>
sunstone<br>
<br>
i got errors in my logfiles but i dont know how to fix them<br>
<br>
I tried to configrate the ssh-server like this:<br>
<br>
apt-get install openssh-server<br>
<br>
You can configure any password you like (even blank) because we are<br>
going to set up a<br>
passwordless login from the frontend:<br>
oneadmin@front-end $ ssh-copy-id oneadmin@host1<br>
Now if you connect from the oneadmin account on the frontend to the<br>
oneadminaccount of the<br>
host, you should get the shell prompt without entering any password by<br>
using the following<br>
command:<br>
oneadmin@front-end $ ssh oneadmin@front-end<br>
<br>
<br>
a part of the 1.log file:<br>
<br>
Tue Feb  5 17:51:28 2013 [DiM][I]: New VM state is PENDING<br>
Tue Feb  5 17:51:35 2013 [DiM][I]: New VM state is ACTIVE.<br>
Tue Feb  5 17:51:36 2013 [LCM][I]: New VM state is PROLOG.<br>
Tue Feb  5 17:51:36 2013 [VM][I]: Virtual Machine has no context<br>
Tue Feb  5 17:51:36 2013 [TM][I]: Command execution fail:<br>
/var/lib/one/remotes/tm/<u></u>shared/clone<br>
<br>
chivas-Aspire-5755G:/var/lib/<u></u>one/datastores/1/<u></u>f9ba5ca69d58eb7f6b6e495c66a0d1<u></u>01<br>
oneadmin:/var/lib/one//<u></u>datastores/0/1/disk.0 1 1<br>
Tue Feb  5 17:51:36 2013 [TM][I]: clone: Cloning<br>
/var/lib/one/datastores/1/<u></u>f9ba5ca69d58eb7f6b6e495c66a0d1<u></u>01 in<br>
oneadmin:/var/lib/one//<u></u>datastores/0/1/disk.0<br>
Tue Feb  5 17:51:36 2013 [TM][E]: clone: Command "cd<br>
/var/lib/one/datastores/0/1; cp -r<br>
/var/lib/one/datastores/1/<u></u>f9ba5ca69d58eb7f6b6e495c66a0d1<u></u>01<br>
/var/lib/one/datastores/0/1/<u></u>disk.0" failed: ssh: Could not resolve<br>
hostname oneadmin: Name or service not known<br>
Tue Feb  5 17:51:36 2013 [TM][E]: Error copying<br>
<br>
chivas-Aspire-5755G:/var/lib/<u></u>one/datastores/1/<u></u>f9ba5ca69d58eb7f6b6e495c66a0d1<u></u>01<br>
to oneadmin:/var/lib/one//<u></u>datastores/0/1/disk.0<br>
Tue Feb  5 17:51:36 2013 [TM][I]: ExitCode: 255<br>
Tue Feb  5 17:51:36 2013 [TM][E]: Error executing image transfer<br>
script: Error copying<br>
<br>
chivas-Aspire-5755G:/var/lib/<u></u>one/datastores/1/<u></u>f9ba5ca69d58eb7f6b6e495c66a0d1<u></u>01<br>
to oneadmin:/var/lib/one//<u></u>datastores/0/1/disk.0<br>
Tue Feb  5 17:51:37 2013 [DiM][I]: New VM state is FAILED<br>
<br>
a part of oned.log<br>
<br>
Wed Feb  6 10:02:54 2013 [ONE][I]: Starting OpenNebula 3.8.3<br>
------------------------------<u></u>----------<br>
      OpenNebula Configuration File<br>
------------------------------<u></u>----------<br>
<br>
AUTH_MAD=AUTHN=ssh,x509,ldap,<u></u>server_cipher,server_x509,<u></u>EXECUTABLE=one_auth_mad<br>
DATASTORE_LOCATION=/var/lib/<u></u>one//datastores<br>
DATASTORE_MAD=ARGUMENTS=-t 15 -d<br>
fs,vmware,vmfs,iscsi,lvm,<u></u>EXECUTABLE=one_datastore<br>
DB=BACKEND=sqlite<br>
DEBUG_LEVEL=3<br>
DEFAULT_DEVICE_PREFIX=hd<br>
DEFAULT_IMAGE_TYPE=OS<br>
ENABLE_OTHER_PERMISSIONS=YES<br>
HM_MAD=EXECUTABLE=one_hm<br>
HOST_MONITORING_EXPIRATION_<u></u>TIME=86400<br>
HOST_MONITORING_INTERVAL=600<br>
HOST_PER_INTERVAL=15<br>
IMAGE_RESTRICTED_ATTR=SOURCE<br>
IM_MAD=ARGUMENTS=-r 0 -t 15 kvm,EXECUTABLE=one_im_ssh,<u></u>NAME=im_kvm<br>
MAC_PREFIX=02:00<br>
MANAGER_TIMER=15<br>
NETWORK_SIZE=254<br>
PORT=2633<br>
SCRIPTS_REMOTE_DIR=/var/tmp/<u></u>one<br>
SESSION_EXPIRATION_TIME=900<br>
TM_MAD=ARGUMENTS=-t 15 -d<br>
dummy,lvm,shared,qcow2,ssh,<u></u>vmfs,iscsi,EXECUTABLE=one_tm<br>
VM_MAD=ARGUMENTS=-t 15 -r 0<br>
<br>
kvm,DEFAULT=vmm_exec/vmm_exec_<u></u>kvm.conf,EXECUTABLE=one_vmm_<u></u>exec,NAME=vmm_kvm,TYPE=kvm<br>
VM_MONITORING_EXPIRATION_TIME=<u></u>86400<br>
VM_PER_INTERVAL=5<br>
VM_POLLING_INTERVAL=600<br>
VM_RESTRICTED_ATTR=CONTEXT/<u></u>FILES<br>
VM_RESTRICTED_ATTR=NIC/MAC<br>
VM_RESTRICTED_ATTR=NIC/VLAN_ID<br>
VM_RESTRICTED_ATTR=RANK<br>
VNC_BASE_PORT=5900<br>
------------------------------<u></u>----------<br>
Wed Feb  6 10:02:54 2013 [ONE][I]: Log level:3<br>
[0=ERROR,1=WARNING,2=INFO,3=<u></u>DEBUG]<br>
Wed Feb  6 10:02:54 2013 [ONE][I]: Checking database version.<br>
Wed Feb  6 10:02:54 2013 [VMM][I]: Starting Virtual Machine Manager...<br>
Wed Feb  6 10:02:54 2013 [LCM][I]: Starting Life-cycle Manager...<br>
Wed Feb  6 10:02:54 2013 [VMM][I]: Virtual Machine Manager started.<br>
Wed Feb  6 10:02:54 2013 [LCM][I]: Life-cycle Manager started.<br>
Wed Feb  6 10:02:54 2013 [InM][I]: Starting Information Manager...<br>
Wed Feb  6 10:02:54 2013 [InM][I]: Information Manager started.<br>
Wed Feb  6 10:02:54 2013 [TrM][I]: Starting Transfer Manager...<br>
Wed Feb  6 10:02:54 2013 [TrM][I]: Transfer Manager started.<br>
Wed Feb  6 10:02:54 2013 [DiM][I]: Starting Dispatch Manager...<br>
Wed Feb  6 10:02:54 2013 [DiM][I]: Dispatch Manager started.<br>
Wed Feb  6 10:02:54 2013 [HKM][I]: Starting Hook Manager...<br>
Wed Feb  6 10:02:54 2013 [AuM][I]: Starting Auth Manager...<br>
Wed Feb  6 10:02:54 2013 [HKM][I]: Hook Manager started.<br>
Wed Feb  6 10:02:54 2013 [AuM][I]: Authorization Manager started.<br>
Wed Feb  6 10:02:54 2013 [ImM][I]: Starting Image Manager...<br>
Wed Feb  6 10:02:54 2013 [ImM][I]: Image Manager started.<br>
Wed Feb  6 10:02:54 2013 [ReM][I]: Starting Request Manager...<br>
Wed Feb  6 10:02:54 2013 [ReM][I]: Starting XML-RPC server, port 2633<br>
...<br>
Wed Feb  6 10:02:54 2013 [ReM][I]: Request Manager started.<br>
Wed Feb  6 10:02:56 2013 [VMM][I]: Loading Virtual Machine Manager<br>
drivers.<br>
Wed Feb  6 10:02:56 2013 [VMM][I]:      Loading driver: vmm_kvm (KVM)<br>
Wed Feb  6 10:02:58 2013 [VMM][I]:      Driver vmm_kvm loaded.<br>
Wed Feb  6 10:02:58 2013 [InM][I]: Loading Information Manager drivers.<br>
Wed Feb  6 10:02:58 2013 [InM][I]:      Loading driver: im_kvm<br>
Wed Feb  6 10:02:59 2013 [InM][I]:      Driver im_kvm loaded<br>
Wed Feb  6 10:02:59 2013 [TM][I]: Loading Transfer Manager driver.<br>
Wed Feb  6 10:02:59 2013 [TM][I]:       Transfer manager driver loaded<br>
Wed Feb  6 10:02:59 2013 [HKM][I]: Loading Hook Manager driver.<br>
Wed Feb  6 10:03:00 2013 [HKM][I]:      Hook Manager loaded<br>
Wed Feb  6 10:03:00 2013 [ImM][I]: Loading Image Manager driver.<br>
Wed Feb  6 10:03:00 2013 [ImM][I]:      Image Manager loaded<br>
Wed Feb  6 10:03:00 2013 [AuM][I]: Loading Auth. Manager driver.<br>
Wed Feb  6 10:03:00 2013 [AuM][I]:      Auth Manager loaded<br>
Wed Feb  6 10:03:01 2013 [AuM][D]: Message received: LOG I 0 ExitCode:<br>
0<br>
<br>
Wed Feb  6 10:03:01 2013 [AuM][I]: ExitCode: 0<br>
Wed Feb  6 10:03:01 2013 [AuM][D]: Message received: AUTHENTICATE<br>
SUCCESS 0 -<br>
<br>
Wed Feb  6 10:03:01 2013 [ReM][D]: Req:1920 UID:1 UserPoolInfo invoked<br>
Wed Feb  6 10:03:01 2013 [ReM][D]: Req:1920 UID:1 UserPoolInfo result<br>
SUCCESS, "<USER_POOL><USER><ID..."<br>
Wed Feb  6 10:03:08 2013 [InM][I]: Monitoring host host1 (2)<br>
Wed Feb  6 10:03:09 2013 [InM][I]: Monitoring host host2 (3)<br>
Wed Feb  6 10:03:09 2013 [InM][I]: Monitoring host oneadmin (4)<br>
Wed Feb  6 10:03:09 2013 [InM][I]: Command execution fail: 'if [ -x<br>
"/var/tmp/one/im/run_probes" ]; then /var/tmp/one/im/run_probes kvm 2<br>
host1; else                              exit 42; fi'<br>
Wed Feb  6 10:03:09 2013 [InM][I]: Command execution fail: 'if [ -x<br>
"/var/tmp/one/im/run_probes" ]; then /var/tmp/one/im/run_probes kvm 3<br>
host2; else                              exit 42; fi'<br>
Wed Feb  6 10:03:09 2013 [InM][I]: error: Failed to connect socket to<br>
'/var/run/libvirt/libvirt-<u></u>sock': No such file or directory<br>
Wed Feb  6 10:03:09 2013 [InM][I]: error: Failed to connect socket to<br>
'/var/run/libvirt/libvirt-<u></u>sock': No such file or directory<br>
Wed Feb  6 10:03:09 2013 [InM][I]: error: failed to connect to the<br>
hypervisor<br>
Wed Feb  6 10:03:09 2013 [InM][I]: error: failed to connect to the<br>
hypervisor<br>
Wed Feb  6 10:03:09 2013 [InM][E]: Error executing kvm.rb<br>
Wed Feb  6 10:03:09 2013 [InM][E]: Error executing kvm.rb<br>
Wed Feb  6 10:03:09 2013 [InM][I]: ExitCode: 255<br>
Wed Feb  6 10:03:09 2013 [InM][I]: ExitCode: 255<br>
Wed Feb  6 10:03:09 2013 [InM][E]: Error monitoring host 2 : MONITOR<br>
FAILURE 2 Error executing kvm.rb<br>
<br>
Wed Feb  6 10:03:10 2013 [InM][E]: Error monitoring host 3 : MONITOR<br>
FAILURE 3 Error executing kvm.rb<br>
<br>
Wed Feb  6 10:03:10 2013 [InM][I]: Command execution fail: 'if [ -x<br>
"/var/tmp/one/im/run_probes" ]; then /var/tmp/one/im/run_probes kvm 4<br>
oneadmin; else                              exit 42; fi'<br>
Wed Feb  6 10:03:10 2013 [InM][I]: ssh: Could not resolve hostname<br>
oneadmin: Name or service not known<br>
Wed Feb  6 10:03:10 2013 [InM][I]: ExitCode: 255<br>
Wed Feb  6 10:03:10 2013 [InM][E]: Error monitoring host 4 : MONITOR<br>
FAILURE 4 -<br>
<br>
a part of sunstone.log<br>
<br>
------------------------------<u></u>--------<br>
          Server configuration<br>
------------------------------<u></u>--------<br>
{:vnc_proxy_support_wss=><u></u>false,<br>
  :vnc_proxy_key=>nil,<br>
  :core_auth=>"cipher",<br>
  :host=>"127.0.0.1",<br>
  :tmpdir=>"/var/tmp",<br>
  :marketplace_url=>"<a href="https://marketplace.c12g.com/appliance" target="_blank">https://<u></u>marketplace.c12g.com/appliance</a><u></u>",<br>
  :debug_level=>3,<br>
  :port=>9869,<br>
  :lang=>"en_US",<br>
  :vnc_proxy_port=>29876,<br>
  :vnc_proxy_cert=>nil,<br>
  :auth=>"sunstone",<br>
  :vnc_proxy_path=>nil,<br>
  :one_xmlrpc=>"<a href="http://localhost:2633/RPC2" target="_blank">http://<u></u>localhost:2633/RPC2</a>"}<br>
Wed Feb 06 10:03:01 2013 [E]: Cannot create token folder<br>
Wed Feb 06 10:03:01 2013 [E]: File exists -<br>
/var/lib/one/sunstone_vnc_<u></u>tokens<br>
Wed Feb 06 10:03:01 2013 [I]: VNC proxy not configured<br>
<br>
Am 2013-02-06 05:31, schrieb Carlos Martín Sánchez:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
You will probably find more useful messages in the log file,<br>
/var/log/one/oned.log.<br>
<br>
It looks like the host is in error state, so OpenNebula can't monitor<br>
it properly. Did you configure the passwordless ssh access (for the<br>
oneadmin user) to Host01?<br>
<br>
Regards<br>
--<br>
Carlos Martín, MSc<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> [5] | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | @OpenNebula [6]<br>
<br>
On Mon, Feb 4, 2013 at 5:30 PM, Johannes Thome<br>
<<a href="mailto:johannes.thome@electrica.cujae.edu.cu" target="_blank">johannes.thome@electrica.<u></u>cujae.edu.cu</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello, I installed Opennebula 3.8.3 with sunstone on a 64 bit<br>
computer with ubuntu 12.04<br>
i have only one pc so i have only the front-end. Hopefully it works<br>
if i try to run the VM's on my computer.<br>
<br>
Please check somebody if i missed something in my installation or<br>
configuration and why i got this error in Sunstone:<br>
<br>
MESSAGE         Error executing image transfer script: Error copying<br>
<br>
chivas-Aspire-5755G:/var/lib/<u></u>one/datastores/1/<u></u>e709ae07335f01fdb1d23730860d07<u></u>d6<br>
to Host01:/var/lib/one//<u></u>datastores/0/0/disk.0<br>
<br>
<br>
<br>
------------------------------<u></u>------------------------------<u></u>----------------------<br>
<br>
How I installed Opennebula 3.8.3 with KVM:<br>
<br>
Programs which are useful for the installation process:<br>
<br>
Mc<br>
<br>
# apt-get install mc<br>
<br>
Synaptic:<br>
<br>
# apt-get install synaptic<br>
<br>
Download open nebula version 3.8.3 Tarbell for Ubuntu 12.04 from the<br>
internet:<br>
<a href="http://downloads.opennebula.org/" target="_blank">http://downloads.opennebula.<u></u>org/</a> [1]<br>
or use the downloaded file you should receive with this<br>
Documentation.<br>
Also you receive some Gems you have to use them because the normal<br>
installation of the gems fails.<br>
I am going to explain later how to install a Gem manually.<br>
<br>
Unzip with mc „Ubuntu-12.04-opennebula-3.8.<u></u>3.tar.gz“ to:<br>
/home/user/Desktop/install<br>
<br>
Change the permissions of all files:<br>
<br>
# cd /home/user/Desktop/install<br>
<br>
# chmod -R 755 * (to chance the permission of all files in that<br>
folder)<br>
<br>
The order of packages installation:<br>
<br>
opennebula-common: provides the user and common files<br>
libopennebula-ruby: all ruby libraries<br>
opennebula-node: prepares a node as an opennebula-node<br>
opennebula-sunstone: OpenNebula Sunstone Web Interface<br>
opennebula-tools: Command Line interface<br>
opennebula: OpenNebula Daemon<br>
<br>
If any of this packages gives you an error use the following command<br>
to fix the issue:<br>
<br>
# apt-get install -f<br>
<br>
opennebula-common: provides the user and common files<br>
<br>
# dpkg -i opennebula-common_3.8.3-1_all.<u></u>deb<br>
libopennebula-ruby: all ruby libraries<br>
<br>
# dpkg -i ruby-opennebula_3.8.3-1_all.<u></u>deb<br>
opennebula-node: prepares a node as an opennebula-node<br>
<br>
# dpkg -i opennebula-node_3.8.3-1_all.<u></u>deb<br>
opennebula-sunstone: OpenNebula Sunstone Web Interface<br>
<br>
# dpkg -i opennebula-sunstone_3.8.3-1_<u></u>all.deb<br>
<br>
opennebula-tools: Command Line interface<br>
<br>
# dpkg -i opennebula-tools_3.8.3-1_all.<u></u>deb<br>
opennebula: OpenNebula Daemon<br>
<br>
# dpkg -i opennebula_3.8.3-1_amd64.deb<br>
<br>
After the basic installation it is necessary to install the Gems for<br>
ruby.<br>
There for open mc in the terminal and go to the folder<br>
/usr/share/opennebula/ and run the install_gems script.<br>
<br>
It will fail in the second part of the script but it is necessary to<br>
run it because the first part of the skript is also important.<br>
<br>
Start mc from the console to install the gems manually.<br>
<br>
# mc<br>
<br>
unzip the gems and copy the content of each of them to<br>
/var/lib/gems/1.8/gems/:<br>
<br>
amazon-ec2-0.9.17.gem<br>
curb-0.8.3.gem<br>
daemons-1.1.9.gem<br>
eventmachine-1.0.0.gem<br>
json-1.7.6.gem<br>
mysql-2.9.0.gem<br>
net-ldap-0.3.1.gem<br>
nokogiri-1.5.6.gem<br>
rack-1.5.0.gem<br>
rack-protection-1.3.2.gem<br>
rake-10.0.3.gem<br>
rubygems-update-1.8.24.gem<br>
sequel-3.43.0.gem<br>
sinatra-1.3.4.gem<br>
sqlite3-1.3.7.gem<br>
thin-1.5.0.gem<br>
tilt-1.3.3.gem<br>
uuidtools-2.1.3.gem<br>
xml-simple-1.1.2.gem<br>
<br>
and chance their permissions.<br>
<br>
<br>
<br>
------------------------------<u></u>------------------------------<u></u>------------------------------<u></u>----<br>
<br>
after that i configured Open nebula for KVM like this:<br>
<br>
# apt-get install qemu-utils qemu-kvm<br>
<br>
KVM Configuration<br>
<br>
Modify /etc/libvirt/qemu.conf<br>
<br>
Qemu should be configured to not change file ownership. Modify<br>
/etc/libvirt/qemu.conf to<br>
<br>
include dynamic_ownership = 0. To be able to use the images copied<br>
by OpenNebula, change also<br>
<br>
the user and group under which the libvirtd is run to ”oneadmin”:<br>
<br>
# grep -vE ’^($|#)’ /etc/libvirt/qemu.conf<br>
<br>
user = "oneadmin"<br>
<br>
group = "cloud" (because i don't have a group named oneadmin)<br>
<br>
dynamic_ownership = 0<br>
<br>
The user with access to these remotes hosts on behalf of OpenNebula<br>
(typically <oneadmin>) has<br>
<br>
to pertain to the <libvirtd> and <kvm> groups in order to use the<br>
deaemon and be able to launch<br>
<br>
Vms.<br>
<br>
If apparmor is active (by default in Ubuntu it is), you should add<br>
/var/lib/one to the end of<br>
<br>
/etc/apparmor.d/libvirt-qemu<br>
 (if not exits create this file)<br>
<br>
owner /var/lib/one/** rw,<br>
<br>
/etc/libvirt/libvirtd.conf : Uncomment ”listen tcp = 1”. Security<br>
configuration is left to the<br>
<br>
admin’s choice, file is full of useful comments to achieve a correct<br>
configuration. As a tip, if you<br>
<br>
don’t want to use TLS for connections set listen_tls = 0.<br>
<br>
/etc/default/libvirt-bin : add -l option to libvirtd_opts<br>
<br>
check because set is by default:<br>
<br>
OpenNebula needs to know if it is going to use the KVM Driver. To<br>
achieve this, uncomment these<br>
<br>
drivers in /etc/one/oned.conf (they were like in the description)<br>
<br>
<br>
<br>
------------------------------<u></u>------------------------------<u></u>------------------------------<u></u>-------<br>
<br>
I restarted opennebula and sunstone and started to try out if it is<br>
working or not<br>
<br>
i created a host:<br>
<br>
Host information - Host01<br>
id      0<br>
Name    Host01<br>
Cluster         -<br>
State   ERROR<br>
IM MAD  im_kvm<br>
VM MAD  vmm_kvm<br>
VN MAD  dummy<br>
Host shares<br>
Total Mem       0K<br>
Used Mem (real)         0K<br>
Used Mem (allocated)    0K<br>
Total CPU       0<br>
Used CPU (real)         0<br>
Used CPU (allocated)    0<br>
Running VMs     0<br>
<br>
Host template<br>
ERROR<br>
<br>
MESSAGE         Error monitoring host 0 : MONITOR FAILURE 0 -<br>
TIMESTAMP       Wed Jan 30 14:32:48 2013<br>
<br>
<br>
------------------------------<u></u>------------------------------<u></u>------------<br>
a fixed network:<br>
<br>
Virtual Network 0 information<br>
ID      0<br>
Name    Network<br>
Cluster         -<br>
Owner   oneadmin<br>
Group   oneadmin<br>
Bridge  vbr1<br>
VLAN    no<br>
Physical device         --<br>
VLAN ID         --<br>
Permissions<br>
     Owner      um-<br>
     Group      ---<br>
     Other      ---<br>
------------------------------<u></u>------------------------------<u></u>-----<br>
a ttylinux image:<br>
<br>
Image "ttylinux - kvm" information<br>
ID      0<br>
Name    ttylinux - kvm<br>
Datastore       default<br>
Owner   oneadmin<br>
Group   oneadmin<br>
Type    OS<br>
Register time   10:57:57 01/30/2013<br>
Persistent      no<br>
Source  /var/lib/one/datastores/1/<u></u>e709ae07335f01fdb1d23730860d07<u></u>d6<br>
Path    /home/chivas/Desktop/ttylinux.<u></u>img<br>
Filesystem type         --<br>
Size (Mb)       40<br>
State   USED<br>
Running #VMS    1<br>
Permissions<br>
     Owner      um-<br>
     Group      ---<br>
     Other      ---<br>
<br>
Image template<br>
DEV_PREFIX      hd<br>
DRIVER  raw<br>
<br>
<br>
------------------------------<u></u>------------------------------<u></u>----------------------<br>
and a template for the virtual machine:<br>
<br>
Template<br>
NAME    Template01<br>
OS<br>
<br>
BOOT    hd<br>
ARCH    x86_64<br>
<br>
DISK<br>
<br>
IMAGE_UNAME     oneadmin<br>
IMAGE   ttylinux - kvm<br>
<br>
VCPU    1<br>
CPU     0.5<br>
RAW<br>
<br>
TYPE    kvm<br>
<br>
NIC<br>
<br>
NETWORK_UNAME   oneadmin<br>
NETWORK         Network<br>
<br>
MEMORY  2048<br>
GRAPHICS<br>
<br>
TYPE    vnc<br>
LISTEN  0.0.0.0<br>
<br>
INPUT<br>
<br>
TYPE    mouse<br>
BUS     usb<br>
<br>
TEMPLATE_ID     0<br>
<br>
<br>
------------------------------<u></u>------------------------------<u></u>---------------<br>
i built my VM and tryed to deploy the host... he was on error first<br>
i enabled him again.<br>
<br>
Virtual Machine information - one-0<br>
ID      0<br>
Name    one-0<br>
Owner   oneadmin<br>
Group   oneadmin<br>
State   FAILED<br>
LCM State       LCM_INIT<br>
Host    --<br>
Start time      11:05:07 01/30/2013<br>
Deploy ID       -<br>
Permissions<br>
     Owner      um-<br>
     Group      ---<br>
     Other      ---<br>
******************************<u></u>****************<br>
VM template<br>
NAME    one-0<br>
OS<br>
<br>
BOOT    hd<br>
ARCH    x86_64<br>
<br>
ERROR<br>
<br>
MESSAGE         Error executing image transfer script: Error copying<br>
<br>
chivas-Aspire-5755G:/var/lib/<u></u>one/datastores/1/<u></u>e709ae07335f01fdb1d23730860d07<u></u>d6<br>
to Host01:/var/lib/one//<u></u>datastores/0/0/disk.0<br>
TIMESTAMP       Wed Jan 30 12:35:11 2013<br>
<br>
DISK<br>
<br>
READONLY        NO<br>
TARGET  hda<br>
IMAGE_ID        0<br>
DEV_PREFIX      hd<br>
DATASTORE       default<br>
TM_MAD  shared<br>
TYPE    FILE<br>
SOURCE  /var/lib/one/datastores/1/<u></u>e709ae07335f01fdb1d23730860d07<u></u>d6<br>
IMAGE_UNAME     oneadmin<br>
DRIVER  raw<br>
DISK_ID         0<br>
SAVE    NO<br>
IMAGE   ttylinux - kvm<br>
DATASTORE_ID    1<br>
CLONE   YES<br>
<br>
VMID    0<br>
VCPU    1<br>
CPU     0.5<br>
RAW<br>
<br>
TYPE    kvm<br>
<br>
NIC<br>
<br>
NETWORK_ID      0<br>
NETWORK_UNAME   oneadmin<br>
BRIDGE  vbr1<br>
NETWORK         Network<br>
IP      192.168.2.100<br>
VLAN    NO<br>
MAC     02:00:c0:a8:02:64<br>
<br>
MEMORY  2048<br>
GRAPHICS<br>
<br>
PORT    5900<br>
TYPE    vnc<br>
LISTEN  0.0.0.0<br>
<br>
INPUT<br>
<br>
TYPE    mouse<br>
BUS     usb<br>
<br>
TEMPLATE_ID     0<br>
<br>
so the error is:<br>
<br>
MESSAGE         Error executing image transfer script: Error copying<br>
<br>
chivas-Aspire-5755G:/var/lib/<u></u>one/datastores/1/<u></u>e709ae07335f01fdb1d23730860d07<u></u>d6<br>
to Host01:/var/lib/one//<u></u>datastores/0/0/disk.0<br>
<br>
what can i do to fix it?<br>
<br>
Thanks for the help and greetings<br>
<br>
Johannes Thomé<br>
<br>
48 Aniversario del Instituto Superior Politecnico Jose Antonio<br>
Echeverria, Cujae<br>
Una obra de la Revolucion Cubana | 2 de diciembre de 1964 |<br>
<a href="http://cujae.edu.cu" target="_blank">http://cujae.edu.cu</a> [2]<br>
<br>
Consulte la enciclopedia colaborativa cubana. <a href="http://www.ecured.cu" target="_blank">http://www.ecured.cu</a><br>
[3]<br>
______________________________<u></u>_________________<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/<u></u>listinfo.cgi/users-opennebula.<u></u>org</a> [4]<br>
</blockquote>
<br>
<br>
<br>
Links:<br>
------<br>
[1] <a href="http://downloads.opennebula.org/" target="_blank">http://downloads.opennebula.<u></u>org/</a><br>
[2] <a href="http://cujae.edu.cu" target="_blank">http://cujae.edu.cu</a><br>
[3] <a href="http://www.ecured.cu" target="_blank">http://www.ecured.cu</a><br>
[4] <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/<u></u>listinfo.cgi/users-opennebula.<u></u>org</a><br>
[5] <a href="http://www.OpenNebula.org" target="_blank">http://www.OpenNebula.org</a><br>
[6] <a href="http://twitter.com/opennebula" target="_blank">http://twitter.com/opennebula</a><br>
</blockquote>
<br>
</blockquote></div></div></blockquote>
<br>
-- <br><div class="im HOEnZb">
Follow me on Flickr: <a href="http://www.flickr.com/photos/johannesgoestocuba/" target="_blank">http://www.flickr.com/photos/<u></u>johannesgoestocuba/</a><br>
<br>
<br></div><div class="im HOEnZb">
48 Aniversario del Instituto Superior Politecnico Jose Antonio Echeverria, Cujae<br>
Una obra de la Revolucion Cubana | 2 de diciembre de 1964 | <a href="http://cujae.edu.cu" target="_blank">http://cujae.edu.cu</a><br>
<br>
<br>
<br></div><div class="HOEnZb"><div class="h5">
Consulte la enciclopedia colaborativa cubana. <a href="http://www.ecured.cu" target="_blank">http://www.ecured.cu</a><br>
</div></div></blockquote></div><br></div>