Re: [one-users] VNC problem

2013-04-01 Thread Tino Vazquez
Hi,

Please, send over the output of git log.

Regards,

-Tino
--
Constantino Vázquez Blanco, PhD, MSc
Project Engineer
OpenNebula - The Open-Source Solution for Data Center Virtualization
www.OpenNebula.org | @tinova79 | @OpenNebula


On Thu, Mar 28, 2013 at 12:48 PM, Prachi De deprac...@gmail.com wrote:
 Hi Tino,

 I installed opennebula-3.6.0 from scratch on frontend machine.
 installed novnc in self contained mode at /srv/cloud/one/share
 Still i am facing the same problem vnc icon is active but when i click on
 icon nothing happens.
 sunstone.error is showing follwing error

 ==Sinatra/1.4.2 has taken the stage on 9869 for development with backup from
 Thin

 Help needed.

 Regards.
 --




 On Mon, Mar 25, 2013 at 5:36 PM, Tino Vazquez tin...@opennebula.org wrote:

 Hi,

 It looks like you have a typo. Please send the output of git log
 (not gitk log)

 Regards,

 -Tino

 --
 Constantino Vázquez Blanco, PhD, MSc
 Project Engineer
 OpenNebula - The Open-Source Solution for Data Center Virtualization
 www.OpenNebula.org | @tinova79 | @OpenNebula


 On Mon, Mar 25, 2013 at 1:04 PM, Tino Vazquez tin...@opennebula.org
 wrote:
  fyi
  --
  Constantino Vázquez Blanco, PhD, MSc
  Project Engineer
  OpenNebula - The Open-Source Solution for Data Center Virtualization
  www.OpenNebula.org | @tinova79 | @OpenNebula
 
 
 
  -- Forwarded message --
  From: Prachi De deprac...@gmail.com
  Date: Mon, Mar 25, 2013 at 12:40 PM
  Subject: Re: [one-users] VNC problem
  To: Tino Vazquez tinov...@gmail.com
 
 
  HI Tino
 
 
  Thanks for your reply.
 
  I downloded novnc.sh from
 
  http://dev.opennebula.org/projects/opennebula/repository/revisions/master/entry/share/install_novnc.sh
  this link.
 
  and the git log is as follows
 
  oneadmin@prachi:/$ gitk log
  No protocol specified
  No protocol specified
  Application initialization failed: couldn't connect to display :0
  No protocol specified
  No protocol specified
  Error in startup script: couldn't connect to display :0
  while executing
  load /usr/lib/libtk8.5.so.0 Tk
  (package ifneeded Tk 8.5.11 script)
  invoked from within
  package require Tk
  (file /usr/bin/gitk line 10)
 
  Thanks and Regards.
 
  --
 
 
  On Mon, Mar 25, 2013 at 4:19 PM, Tino Vazquez tinov...@gmail.com
  wrote:
 
  Hi,
 
  If you are using the latest from the repository, please state the
  branch you are using and the latest commit you've cloned (the first
  entry of git log).
 
  Regards,
 
  -Tino
  --
  Constantino Vázquez Blanco, PhD, MSc | dsa-research.org/tinova
  Virtualization Technology Engineer / Researcher
  OpenNebula - The Open-Source Solution for Data Center Virtualization
  www.OpenNebula.org | @tinova79 | @OpenNebula
 
 
  On Mon, Mar 25, 2013 at 11:45 AM, Prachi De deprac...@gmail.com
  wrote:
   Hi all,
  
  
   I have downloded novnc.sh from opennebula repository and installed it
   at
   /srv/cloud/one/share
  
  
   ~/share$ sudo ./install_novnc.sh
   Downloading noVNC latest version...
  
   
   100.0%
   Extracting files to temporary folder...
   Installing Sunstone client libraries in
   /usr/lib/one/sunstone/public...
   Installing SelfService client libraries in
   /usr/lib/one/ruby/cloud/occi/ui/public...
   Downloading Websockify VNC proxy files
  
   
   100.0%
  
   
   100.0%
   Backing up and updating /etc/one/sunstone-server.conf with new VNC
   proxy
   path...
   sed: can't read /etc/one/sunstone-server.conf: No such file or
   directory
   Backing up and updating /etc/one/occi-server.conf with new VNC proxy
   path...
   sed: can't read /etc/one/occi-server.conf: No such file or directory
   Installation successful
  
  
   After successfull installation I tried to open vm but same problem
   vnc icon
   is active but vm popup window not diplayed on screen.
   I think backing up and updating the /etc/one/sunstone-server.conf
   with new
   VNC proxy path failed is the problem?
  
   Plz help.
  
   Thanks.
   --
   Prachi D.
  
  
  
   ___
   Users mailing list
   Users@lists.opennebula.org
   http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
  
 
 
 
 
  --
  Prachi D.

 --
 Constantino Vázquez Blanco, PhD, MSc | dsa-research.org/tinova
 Virtualization Technology Engineer / Researcher
 OpenNebula - The Open-Source Solution for Data Center Virtualization
 www.OpenNebula.org | @tinova79 | @OpenNebula


 On Mon, Mar 25, 2013 at 1:04 PM, Tino Vazquez tin...@opennebula.org
 wrote:
  fyi
  --
  Constantino Vázquez Blanco, PhD, MSc
  Project Engineer
  OpenNebula - The Open-Source Solution for Data Center Virtualization
  www.OpenNebula.org | @tinova79 | @OpenNebula
 
 
 
  -- Forwarded message --
  From: Prachi De deprac...@gmail.com
  

Re: [one-users] VNC Error opennebual-3.8.3 -Failed to connect to server(1006)

2013-04-01 Thread Daniel Molina
Hi,

On 1 April 2013 09:52, Prachi De deprac...@gmail.com wrote:

 Hi All,

 Installed opennebula-3.8.3 on frontend in self contained mode and unable
 to see vm running on host.

 Tried following solutions
 1]Cheked if I set Listen= 0 0 0 0 in qemu.conf.
 2]Killed existing proxies and relaunched through console
 3] o/p


 *Kill existing proxy*

 oneadmin@psd:~/var$ ps aux | grep websockify

 oneadmin 3357 0.0 0.3 13296 6344 pts/1 S 10:50 0:00 python
 /srv/cloud/one/share/websockify/websocketproxy.py
 --target-config=/srv/cloud/one/var/sunstone_vnc_tokens 29876

 oneadmin 6011 0.0 0.0 4392 820 pts/1 S+ 11:42 0:00 grep websockify

 oneadmin@psd:~/var$ kill 3357

 *4] Launch proxy manually*

 oneadmin@psd:~/var$ python
 /srv/cloud/one/share/websockify/websocketproxy.py
 --target-config=/srv/cloud/one/var/sunstone_vnc_tokens 29876

 WARNING: no 'numpy' module, HyBi protocol is slower or disabled

 WebSocket server settings:

 - Listen on :29876

 - Flash security policy server

 - No SSL/TLS support (no cert file)

 - proxying from :29876 to targets in
 /srv/cloud/one/var/sunstone_vnc_tokens

  1: 127.0.0.1: Plain non-SSL (ws://) WebSocket connection

 1: 127.0.0.1: Version hybi-13, base64: 'True'

 1: 127.0.0.1: Path: '/?token=cco7iiv1aoijvck4bn3k'

 1: connecting to: oneadmin@clustermachineip:29876

 1: handler exception: [Errno -2] Name or service not known

 I have added oneadmin@clusterip in frontend machines hosts file . In
 resolv.conf nameserver 127.0.0.1 .

 MY VM TEMPLATE:

  ID 6 Namemynet Cluster- Owneroneadmin Grouponeadmin Bridgevirbr0 
 VLANyesPhysical device
 eth1 VLAN ID-- Permissions  Ownerum-  Group---  Other--
 oneadmin@pbi:~$ virsh list
  Id Name State
 --
  11 one-10   running


 Here vm id shown by virsh list is 11 but sunstone shows  vm id 10 .

 If vm is created on host and running then why this error is coming for VNC


 : handler exception: [Errno -2] Name or service not known.


 One bridge is created on host machine
 oneadmin@pbi:~$ brctl show
 bridge name bridge id STP enabled interfaces
 virbr0 8000.fe00c0a80101 yes vnet0

 eth1 is ethernet of host machine.



The problem is you added your host ''oneadmin@clusterip''' including the
user. Trying just adding ''clusterip'' as the host name and modifying your
~/.ssh/config to connect as oneadmin to that host

Host clusterip
User oneadmin

Hope this helps


-- 
Daniel Molina
Project Engineer
OpenNebula - The Open Source Solution for Data Center Virtualization
www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] OpenNebula participation at LOAD days and CentOS Dojo this weekend in Antwerp, Belgium

2013-04-01 Thread Jaime Melis
Dear users,

The OpenNebula project will participate both in the LOAD Days and CentOS
Dojo events this weekend (6th-8th April) in Antwerp, Belgium.

More information here:
http://blog.opennebula.org/?p=4421

It would be great to see you there.

Cheers,
Jaime

-- 
Jaime Melis
Project Engineer
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org | jme...@opennebula.org
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] how to save driver responses?

2013-04-01 Thread Tobias Zillner
Hi,

I want to save driver responses into the database. A user should be able to
get the responses for his command.

At the moment I am looking for a way to save the responses as a generic
document or to save this as additional info in the vm template.

Can anybody give me some hints how to do this in an easy an practical way?

THX

Regards,
Tobias
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] vmm driver result in shell

2013-04-01 Thread Carlos Martín Sánchez
Think of Documents as Templates with a number that identifies documents of
the same type. For the reference documentation, see the Document and
DocumentPool classes of the ruby oca [1]. For an example, you may want to
take a look at the OpenNebula Apps source code [2].

Regards

[1] http://opennebula.org/doc/3.8/oca/ruby/
[2] http://opennebula.org/software:software

--
Carlos Martín, MSc
Project Engineer
OpenNebula - The Open-source Solution for Data Center Virtualization
www.OpenNebula.org | cmar...@opennebula.org |
@OpenNebulahttp://twitter.com/opennebulacmar...@opennebula.org


On Sat, Mar 30, 2013 at 5:30 PM, Tobias Zillner tobias.zill...@gmx.atwrote:

 Yes it worked fine for me. Thank you for the advice!

 Now I am working on how to save the examiation results. The one document
 way sounds very nice.

 Can you give me some exapmles how to use them?

 Regards,
 Tobias




 2013/3/25 Carlos Martín Sánchez cmar...@opennebula.org

 The message sent from the core to the drivers is built
 by VirtualMachineManager::format_message. This message is then received by
 the driver, see for instance one_vmm_exec.rb poll method, and decoded
 (VirtualMachineDriver.rb).

 I guess you can safely add a new xml element to the message if you need
 to.


 Let me know if this works out.

 Regards
 --
 Carlos Martín, MSc
 Project Engineer
 OpenNebula - The Open-source Solution for Data Center Virtualization
 www.OpenNebula.org | cmar...@opennebula.org | 
 @OpenNebulahttp://twitter.com/opennebulacmar...@opennebula.org


 On Mon, Mar 25, 2013 at 1:47 PM, Tobias Zillner tobias.zill...@gmx.atwrote:

  It depends which commad i am executing. Dump memory is resource
 intesive but commds like read the process list shoudn't cost to much
 performance.

 The problem is that the usershould be able to choose wich command is
 executed. So i must add a possibility to get this command to the driver. Or
 am i thinking wrong?

 Regards,

 Tobias

 *Gesendet:* Montag, 25. März 2013 um 13:19 Uhr
 *Von:* Carlos Martín Sánchez cmar...@opennebula.org
 *An:* Tobias Zillner tobias.zill...@gmx.at
 *Cc:* users users@lists.opennebula.org
 *Betreff:* Re: [one-users] vmm driver result in shell
 Is your command very resource-intensive?

 I'm thinking that maybe you could just add your commands to the periodic
 VM monitorization. Or add a flag somewhere to indicate if the operation
 should be done in the next poll action... If you avoid to change the
 OpenNebula code it will be easier to distribute, use with newer versions,
 etc.
 --
 Carlos Martín, MSc
 Project Engineer
 OpenNebula - The Open-source Solution for Data Center Virtualization
 www.OpenNebula.org | cmar...@opennebula.org | 
 @OpenNebulahttp://twitter.com/opennebula

 On Mon, Mar 25, 2013 at 12:59 PM, Tobias Zillner 
 tobias.zill...@gmx.atwrote:

 Hi,

 thank you for your quick answer!

 I am executing a volatility command  on the driver. Results are some
 kind of lists or process information which is show directly on the
 screen/shell.

 At the moment i added functionality to one.vm.action to process my
 commands. Which part would be best to save the results in a document
 ressource or add it to the vm template?
 How can i invoke this?

 Regards,
 Tobias

 2013/3/25 Carlos Martín Sánchez cmar...@opennebula.org

 Hi,

 What kind of results will you present to the user?


 The commands that trigger a driver action are asynchronous, so you
 can't get any result immediately to the user.

 If you are modifying the c++ core, you could add your custom
 information in the VM template, this way the users will see it in the
 'onevm show' output.

 Or you could use the generic document resources [1]. These are just
 like the templates managed with onetemplate; they will store anything and
 will also have owner, group, acl, permissions...

 Regards

 [1]
 http://opennebula.org/documentation:rel3.8:api#actions_for_document_management
 --
 Carlos Martín, MSc
 Project Engineer
 OpenNebula - The Open-source Solution for Data Center Virtualization
 www.OpenNebula.org | cmar...@opennebula.org | 
 @OpenNebulahttp://twitter.com/opennebula

  On Fri, Mar 22, 2013 at 2:37 PM, Tobias Zillner 
 tobias.zill...@gmx.at wrote:

  Hello,

 my Name is Tobias Zillner and I am working on a master thesis about
 forensics in the cloud.

 For my practical part I decided to add forensic services to open
 nebula.

 So i extended the onevm commad and added a function forensics. I
 extended the whole way through the code.
 At the moment i am able to execute my own vmmd script, in which a
 forensic tool (volatility) is called and analyse the virtual machines.

 But now I don't know how to get the result back to the user.
 Basically i want to create a scenario like this:

 A user just puts in onevm forensics id and the analysis result is
 shown to him in the screen.

 Anybody can help me here and tell me what funtions to call or how the
 way back to the user shell works?
 Does anyone have experience with adding funtions and the 

Re: [one-users] [marketplace images] debian and opensuse - no bootable device

2013-04-01 Thread Javier Fontan
The OpenSUSE image and target device (xvda) are meant to be used with xen.
In fact KVM does not know about xen virtual devices (xvd*)

Can you send me the output of:

$ file /var/lib/one/datastores/1/19f921a2c46ac299b7a02bc79d60559e

That problem with CentOS is a bit more strange.



On Wed, Mar 27, 2013 at 10:21 PM, Martin Klepáč klepa...@gmail.com wrote:

 Hi,

 I have recently installed OpenNebula 3.8.3 on three hosts (one acting as
 the frontend, two hosts running KVM hypervisor - all Ubuntu 12.04). I have
 downloaded several images from the C12G marketplace such as ttylinux,
 Ubuntu 12.04, Debian Squeeze, CentOS or OpenSuse. While ttylinux, Ubuntu
 and CentOS are successfully instantiated, I have problems booting Debian
 and OpenSuse.

 VNC reveals that the systems cannot boot from the designated image.
 Booting from Hard Disk...
 Boot failed: could not read the boot disk

 Both Debian and Opensuse images have a non-default disk device as shown in
 marketplace:
 OpenSuse (xvda):
 http://marketplace.c12g.com/appliance/4feb28bc8fb81d63da01
 Debian (sda):
 http://marketplace.c12g.com/appliance/5000348d8fb81d4ba801

 Debian disk image as registered in my cloud:
 $ oneimage show 9
 IMAGE 9
 INFORMATION
 ID : 9
 NAME   : debian
 USER   : oneadmin
 GROUP  : oneadmin
 DATASTORE  : default
 TYPE   : OS
 REGISTER TIME  : 03/26 20:15:51
 PERSISTENT : No
 SOURCE : /var/lib/one/datastores/1/19f921a2c46ac299b7a02bc79d60559e
 PATH   : /images/debian/debian.img
 SIZE   : 8G
 STATE  : used
 RUNNING_VMS: 1

 PERMISSIONS

 OWNER  : um-
 GROUP  : ---
 OTHER  : ---

 IMAGE
 TEMPLATE
 DEV_PREFIX=hd

 OpenSuse image as registered in my cloud:
 $ oneimage show 11
 IMAGE 11
 INFORMATION
 ID : 11
 NAME   : opensuse
 USER   : oneadmin
 GROUP  : oneadmin
 DATASTORE  : default
 TYPE   : OS
 REGISTER TIME  : 03/26 22:21:35
 PERSISTENT : No
 SOURCE : /var/lib/one/datastores/1/365ba4bf05f157eca6e45507867a185a
 PATH   : /images/opensuse/opensuse.img
 SIZE   : 8G
 STATE  : used
 RUNNING_VMS: 1

 PERMISSIONS

 OWNER  : um-
 GROUP  : ---
 OTHER  : ---

 IMAGE
 TEMPLATE
 DEV_PREFIX=hd


 Instead of relying on templates, I use the following files for
 instantiating respective images. I assumed that adding TARGET variable in
 DISK section would do the trick, but obviously I am missing something...
 $ cat debian_new.one
 NAME   = debian
 CPU= 1
 VCPU   = 2
 MEMORY = 512
 DISK   = [ IMAGE_ID = 9,
   target   = sda ]

 OS = [ ARCH = x86_64 ]

 NIC= [ NETWORK_ID = 1 ]

 FEATURES=[ acpi=no ]

 GRAPHICS=[ type = vnc,
 listen = 0.0.0.0 ]

 RAW = [ type = kvm, data =  serial type='pty' source
 path='/dev/pts/3'/ target port='1'/ /serial ]


 $ cat opensuse_new.one
 NAME   = opensuse
 CPU= 1
 VCPU   = 2
 MEMORY = 512

 OS = [ ARCH = x86_64 ]

 DISK   = [ IMAGE_ID = 11,
 TARGET = xvda ]

 NIC= [ NETWORK_ID = 1 ]

 FEATURES=[ acpi=no ]

 GRAPHICS=[ type = vnc,
 listen = 0.0.0.0 ]


 Then, I instantiate the VM by issuing $ onevm create
 {debian_new.one|opensuse_new.one}
 The instance turns into running state, but VNC discloses the issue
 depicted above.


 BTW - as setting up OpenNebula is a part of my bachelor's thesis
 (comparison of private IaaS clouds), I would say that in comparison to
 other solutions such as OpenStack OpenNebula is very user-friendly in terms
 of installation complexity. However, I do not understand why the images
 provided in the marketplace do not have a compulsory template to them ;(


 Thank you for any suggestions,

 Martin Klepac

 ___
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org




-- 
Javier Fontán Muiños
Project Engineer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | jfon...@opennebula.org | @OpenNebula
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Saveas Target Datastore?

2013-04-01 Thread Carlos Martín Sánchez
Hi,

Only disks using an Image can be saved, and the new Image is created in the
same Datastore as the source Image.
The same happens for the oneimage clone operation, new Images are created
in the same Datastore.

Regards
--
Carlos Martín, MSc
Project Engineer
OpenNebula - The Open-source Solution for Data Center Virtualization
www.OpenNebula.org | cmar...@opennebula.org |
@OpenNebulahttp://twitter.com/opennebulacmar...@opennebula.org


On Sat, Mar 30, 2013 at 9:18 PM, Ricardo Duarte rjt...@hotmail.com wrote:

 Hi there,

 When a user saves a disk (onevm saveas), how does OpenNebula selects the
 target datastore for the copy?
 Say a user has a running instance that was cloned from datastore1, where
 regular users only have USE permission.
 Users can only CREATE on datastore100.
 If the user issues a onevm saveas, will the image go to datastore100?
 What if users can CREATE on more than one datastore?  How will the target
 be selected?

 Thanks,
 Ricardo

 ___
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] IP allocation audit?

2013-04-01 Thread Carlos Martín Sánchez
Hi,

The accounting information [1] includes the whole VM template, so you can
filter the NIC/IP elements.

Regards

[1] http://opennebula.org/documentation:rel3.8:accounting

--
Carlos Martín, MSc
Project Engineer
OpenNebula - The Open-source Solution for Data Center Virtualization
www.OpenNebula.org | cmar...@opennebula.org |
@OpenNebulahttp://twitter.com/opennebulacmar...@opennebula.org


On Fri, Mar 29, 2013 at 12:13 PM, Ricardo Duarte rjt...@hotmail.com wrote:

 Hi there,

 Is there currently a way to get an audit trail for IP allocations?
 I want to keep a history of who was using each ip at a time.

 Regards,
 Ricardo

 ___
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] Fwd: VNC Error opennebual-3.8.3 -Failed to connect to server(1006)

2013-04-01 Thread Daniel Molina
FYI

-- Forwarded message --
From: Prachi De deprac...@gmail.com
Date: 1 April 2013 13:52
Subject: Re: [one-users] VNC Error opennebual-3.8.3 -Failed to connect to
server(1006)
To: Daniel Molina dmol...@opennebula.org


Hi Daniel,

Thanks for the reply .

My problem is solved now , able to  see VNC popup Window.

Regards.


On Mon, Apr 1, 2013 at 2:49 PM, Daniel Molina dmol...@opennebula.orgwrote:

 Hi,

 On 1 April 2013 09:52, Prachi De deprac...@gmail.com wrote:

 Hi All,

 Installed opennebula-3.8.3 on frontend in self contained mode and unable
 to see vm running on host.

 Tried following solutions
 1]Cheked if I set Listen= 0 0 0 0 in qemu.conf.
 2]Killed existing proxies and relaunched through console
 3] o/p


 *Kill existing proxy*

 oneadmin@psd:~/var$ ps aux | grep websockify

 oneadmin 3357 0.0 0.3 13296 6344 pts/1 S 10:50 0:00 python
 /srv/cloud/one/share/websockify/websocketproxy.py
 --target-config=/srv/cloud/one/var/sunstone_vnc_tokens 29876

 oneadmin 6011 0.0 0.0 4392 820 pts/1 S+ 11:42 0:00 grep websockify

 oneadmin@psd:~/var$ kill 3357

 *4] Launch proxy manually*

 oneadmin@psd:~/var$ python
 /srv/cloud/one/share/websockify/websocketproxy.py
 --target-config=/srv/cloud/one/var/sunstone_vnc_tokens 29876

 WARNING: no 'numpy' module, HyBi protocol is slower or disabled

 WebSocket server settings:

 - Listen on :29876

 - Flash security policy server

 - No SSL/TLS support (no cert file)

 - proxying from :29876 to targets in
 /srv/cloud/one/var/sunstone_vnc_tokens

  1: 127.0.0.1: Plain non-SSL (ws://) WebSocket connection

 1: 127.0.0.1: Version hybi-13, base64: 'True'

 1: 127.0.0.1: Path: '/?token=cco7iiv1aoijvck4bn3k'

 1: connecting to: oneadmin@clustermachineip:29876

 1: handler exception: [Errno -2] Name or service not known

 I have added oneadmin@clusterip in frontend machines hosts file . In
 resolv.conf nameserver 127.0.0.1 .

 MY VM TEMPLATE:

  ID 6 Namemynet Cluster- Owneroneadmin Grouponeadmin Bridgevirbr0 
 VLANyesPhysical device
 eth1 VLAN ID-- Permissions  Ownerum-  Group---  Other--
 oneadmin@pbi:~$ virsh list
  Id Name State
 --
  11 one-10   running


 Here vm id shown by virsh list is 11 but sunstone shows  vm id 10 .

 If vm is created on host and running then why this error is coming for VNC


 : handler exception: [Errno -2] Name or service not known.


 One bridge is created on host machine
 oneadmin@pbi:~$ brctl show
 bridge name bridge id STP enabled interfaces
 virbr0 8000.fe00c0a80101 yes vnet0

 eth1 is ethernet of host machine.



 The problem is you added your host ''oneadmin@clusterip''' including the
 user. Trying just adding ''clusterip'' as the host name and modifying your
 ~/.ssh/config to connect as oneadmin to that host

 Host clusterip
 User oneadmin

 Hope this helps


 --
 Daniel Molina
 Project Engineer
 OpenNebula - The Open Source Solution for Data Center Virtualization
 www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula




-- 
Prachi D.





-- 
Daniel Molina
Project Engineer
OpenNebula - The Open Source Solution for Data Center Virtualization
www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Cannot log in to Ubuntu 12.04 image on Marketplace

2013-04-01 Thread Javier Fontan
As stated in the image description SSH_PUBLIC_KEY setups root user:

  Use SSH_PUBLIC_KEY to setup root account login.

Try using the ssh private key that goes with the one you set in the
contextualization. Connect to root user.

USERNAME parameter has no meaning there.


On Mon, Apr 1, 2013 at 2:24 PM, Mark Farragher m...@firstfocus.eu wrote:

 Hi,

 I'm trying to log in to this virtual machine that I downloaded from the
 marketplace:

 https://marketplace.c12g.com/appliance/4fc76a938fb81d351701

 Contextualisation of the network works fine, after instantiating the
 virtual machine I see it appearing on IP address 10.0.0.13. But no matter
 what I try, I cannot log in.

 Can someone explain to me exactly what I need to do to set up a user
 account in this virtual machine (or even just to be able to log in?).  I
 understand that I need to configure the SSH_PUBLIC_KEY parameter in the
 contextualisation section, but I do not understand which key I need to put
 in there. I used the public key of my kvmuser account on the host, but I
 am unable to SSH into the virtual machine with this user; it keeps asking
 for a password.

 I also see that there is a parameter called USERNAME but I do not
 understand how I can configure the password for this user during
 contextualisation. Logging in with a blank password does not work, and
 neither does the password as set on the host.

 I have the impression I'm not getting a crucial part of contextualisation.
 Can someone point me in the right direction?


 This is my VM template:

 CONTEXT=[
  ETH0_DNS=$NETWORK[DNS, NETWORK=\lan\],
  ETH0_GATEWAY=$NETWORK[GATEWAY, NETWORK=\lan\],
  ETH0_IP=$NIC[IP, NETWORK=\lan\],
  ETH0_MASK=$NETWORK[NETWORK_MASK, NETWORK=\lan\],
  ETH0_NETWORK=$NETWORK[NETWORK_ADDRESS, NETWORK=\lan\],
  HOSTNAME=vm$VMID,
  SSH_PUBLIC_KEY=ssh-rsa
 B3NzaC1yc2EDAQABAAABAQCgqWYN6yHZ+RedZ13IKCqxuN1WBSvtcZ7kI3FZuBQVIiF4jy3B5y5tL77k02L79izE00KmIPPTy6hvvJWTfD4qeaqyICJl2EFFAje0Ws898rbuxyLkLSd318L9lTAhdAiCw/7EDTaPzM5oGrxPzwdOoDCZPxHf9ry65NoN1N+wdxqlHv974PWgadqsRLVu05JB4qIBKTPxiF2B3maT6gjPjW44TUOKdDaMG1FQbcgbB/0MoajGNCsAw4Kliy11DK0laAb0FL30GOafOKNAlSoqY+WT+G1Iv2micS/J1xGn3NRWN+wzH/qmHVRX6BR5ByDLlAl0Y2P5l0cPJAKQBgp3
 kvmuser@Pinky,
  USERNAME=kvmuser ]

 CPU=0.10

 DISK=[
  BUS=virtio,
  DEV_PREFIX=hd,
  IMAGE=Ubuntu Server 12.04 (Precise Pangolin) - kvm,
  TARGET=hda ]

 FEATURES=[
  ACPI=yes,
  APIC=yes,
  PAE=yes ]

 GRAPHICS=[
  LISTEN=localhost,
  PORT=5911,
  TYPE=vnc ]

 MEMORY=2000
 NAME=Ubuntu Server 12.04

 NIC=[
  BRIDGE=br0,
  IP=10.0.0.13,
  MAC=02:00:0a:00:00:0d,
  MODEL=virtio,
  NETWORK=virtual machine lan,
  NETWORK_ID=3,
  PHYDEV=eth1,
  VLAN=YES ]

 OS=[
  ARCH=x86_64,
  BOOT=hd ]

 RAW=[
  DATA=devicesserial type=\pty\source path=\/dev/pts/5\/target
 port=\0\//serialconsole type=\pty\ tty=\/dev/pts/5\source
 path=\/dev/pts/5\/target port=\0\//console/devices,
  TYPE=kvm ]

 TEMPLATE_ID=4


 Kind regards

 Mark Farragher





 ___
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org




-- 
Javier Fontán Muiños
Project Engineer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | jfon...@opennebula.org | @OpenNebula
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Trouble starting up Virtual Machine from marketplace

2013-04-01 Thread Javier Fontan
By default kvm configuration file does not set KERNEL parameter. In fact in
OpenNebula, even if you can do it, is not common to set the kernel or
initrd for kvm VMs.


On Fri, Mar 29, 2013 at 12:50 PM, Mark Farragher m...@firstfocus.eu wrote:

 Hi Jamie,

 I fixed the problem!

 I manually created a working virtual machine in virt-manager and then
 created another one through OpenNebula. After cloning the OpenNebula
 virtual machine in virt-manager I see its xml file appearing in
 /etc/libvirt/qemu and this allows me to do a side-by-side comparison of a
 working VM and a non-working one.

 One of the differences I spotted is that the OpenNebula virtual machine
 (which does not work) has this line:

 KERNEL = /vmlinuz

 The working virtual machine does not specify a kernel. So I edited the
 cloned OpenNebula xml file and took this line out, restarted the libvirt
 daemon and rebooted the virtual machine in virt-manager. And it worked!

 I traced the setting to the /etc/one/vmm_exec/vmm_exec_kvm.conf file in
 the front end. I commented the KERNEL line out and restarted the opennebula
 daemon. From that point onward every virtual machine I create in OpenNebula
 works!

 My theory is that by specifying the kernel the VM boots into a kernel that
 does not have virtio support. So once the bootloader finishes it does not
 see any bootable device and halts. By omitting the KERNEL parameter I let
 KVM automatically pick the right kernel.



 Kind regards,
 Mark Farragher

 On Mar 28, 2013, at 1:32 PM, Jaime Melis jme...@opennebula.org wrote:

 Hi Mark,

 let's try again with a different BUS. Remove the BUS tag altogether and in
 the template write this instead:
 ...
 DISK = [ IMAGE_ID = 3, DEV_PREFIX = sd ]
 ...

 cheers,
 Jaime


 On Wed, Mar 27, 2013 at 1:29 PM, Mark Farragher m...@firstfocus.euwrote:

 Hi Javier,

 Interesting! That would explain why I can never get any VM to boot. But
 the images seem to be okay. This is my front end:

 oneadmin@metroplex:/etc/one$ ls
  /var/lib/one/datastores/101/8231dd33c68c873afa94f1deff1688d2 -al
 -rw-rw 1 oneadmin oneadmin 11811160064 Mar 27 14:41
 /var/lib/one/datastores/101/8231dd33c68c873afa94f1deff1688d2

 And this is the deploy folder on the host:

 root@Pinky:/opt/one/datastores/0/21# ls -al
 total 11534352
 drwxr-xr-x 2 oneadmin cloud4096 Mar 27 17:04 .
 drwxr-xr-x 3 oneadmin cloud4096 Mar 27 17:02 ..
 -rw-r--r-- 1 oneadmin cloud 976 Mar 27 17:04 deployment.0
 -rw-r- 1 oneadmin cloud 11811160064 Mar 27 17:04 disk.0

 Both files are 11GB in size. In the PROLOG phase I can see 11 GB being
 transferred from the front end to the host.

 I also tested with another virtual machine, like this:

 1. I manually created a new VM on the host in virt-manager
 2. I booted the VM, connected over the network using SSH, installed some
 software in it and verified that everything is ok.
 3. I then copied the image file of this working vm (30GB) to the front
 end and created an OpenNebula image with it
 4. I tried to boot a new VM in OpenNebula using this image.

 This gives the exact same error. Isn't it strange that two unrelated disk
 images both get corrupted in the same way as soon as I put them in
 OpenNebula?

 My OpenNebula version is 3.6.0 and my host OS is:

 oneadmin@Pinky:/opt/one/datastores/0$ cat /etc/issue
 Debian GNU/Linux 6.0 \n \l

 oneadmin@Pinky:/opt/one/datastores/0$ uname -a
 Linux Pinky 2.6.32-5-amd64 #1 SMP Mon Feb 25 00:26:11 UTC 2013
 x86_64 GNU/Linux

 My front end OS is the same :

 oneadmin@metroplex:/etc/one$ cat /etc/issue
 Debian GNU/Linux 6.0 \n \l

 oneadmin@metroplex:/etc/one$ uname -a
 Linux metroplex 2.6.32-5-amd64 #1 SMP Mon Feb 25 00:26:11 UTC
 2013 x86_64 GNU/Linux


 Is it possible the images are okay and the full 11GB is transferred, but
 the booting VM is somehow unable to deal with lvm partitions and therefore
 only sees the boot partition? Do I need to install or upgrade something to
 get lvm support in kvm working?


 Kind regards,
 Mark Farragher



 On Mar 27, 2013, at 6:02 PM, Javier Fontan jfon...@opennebula.org
 wrote:

  I think I've found the problem. The Image is not correctly downloaded,
  its size is 200 Mb instead of 11 Gb. I've also been digging on what
  could be block device major 254 and it may be an lvm partition. 200 Mb
  is enough to hold the boot loader and the boot partition but not the
  root partition, so it crashed.
 
  It is strange that you had no error downloading that image. Can you
  tell me the OpenNebula version and frontend distribution to test this
  here?
 
  Try to download the image again and check the size.
 


 ___
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org




 --
 Jaime Melis
 Project Engineer
 OpenNebula - The Open Source Toolkit 

[one-users] econe auth not working (4.0 and 3.8.3) ?

2013-04-01 Thread Ricardo Duarte
Hi there,

On both 3.8.3 and 4.0 I'm getting the following error when trying to use the 
EC2 API:

- AuthFailure: The username or password is not correct

I'm using ACCESS_KEY = username, and EC2_SECRET_KEY= sha1 password, shown with 
oneuser show id . 
I'm pointing EC2_URL to http://one controller:econe port.
My ec2_auth has the correct serveradmin credential.
My users are using Core as the auth driver, and were created with Sunstone.
Oned.log shows Message received: AUTHENTICATE SUCCESS 1731 -.

Any idea of what can be the problem?

Thanks,
Ricardo
  ___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] econe auth not working (4.0 and 3.8.3) ?

2013-04-01 Thread Ricardo Duarte
Hi,

I will answer my own question, because I find the solution.
The problem was that I was using the fqdn instead of the IP address, for the 
EC2_URL. 
I had a look at the EC2CloudAuth.rb, and what was happening was the following:

- The signature_v1 function requires the host to be stripped from the params.
- The current implementation only deletes the host name that matches the :host: 
parameter from econe.conf (params.delete('econe_host'). )
- So, signature_v1 would consider the host for the calculation when I was using 
the fqdn != :host:

I had the IP as the :host: parameter. As soon as I changed it to the fqdn, I 
could use http://fqdn:econe port as the ec2 endpoint.
But then, http://ip:econe port stops working.

Regards,
Ricardo

From: rjt...@hotmail.com
To: users@lists.opennebula.org
Date: Mon, 1 Apr 2013 22:48:25 +
Subject: [one-users] econe auth not working (4.0 and 3.8.3) ?




Hi there,

On both 3.8.3 and 4.0 I'm getting the following error when trying to use the 
EC2 API:

- AuthFailure: The username or password is not correct

I'm using ACCESS_KEY = username, and EC2_SECRET_KEY= sha1 password, shown with 
oneuser show id . 
I'm pointing EC2_URL to http://one controller:econe port.
My ec2_auth has the correct serveradmin credential.
My users are using Core as the auth driver, and were created with Sunstone.
Oned.log shows Message received: AUTHENTICATE SUCCESS 1731 -.

Any idea of what can be the problem?

Thanks,
Ricardo
  

___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org   
  ___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] [Docs] Problem with OpenVSwitch and some questions about Ceph

2013-04-01 Thread Jon
Hello,

I know that previous versions of opennebula required openvswitch-brcompat


http://opennebula.org/documentation:rel3.8:openvswitch#hosts_configuration

but the 4.0 docs seem to indicate that with KVM brcompat is not required:


http://opennebula.org/documentation:rel4.0:openvswitch#ovswitch_and_ovswitch_brcompat

Anyway, I did install the openvswitch-brcompat package, but got the same
error.
(looking at the docs now, it seems that you have to tell the OpenNebula to
use a different openvswitch driver,
specifically openvswitch_brcompat, so I think this test may have been
incomplete)

Then I attempted to run the ovs command at the command line, when I do so,
I get the following error:

 root@loki:~# sudo /usr/bin/ovs-ofctl add-flow ovsbr0
in_port=,dl_src=02:00:44:47:83:44,priority=4,actions=normal
 ovs-ofctl: dl_src=02:00:44:47:83:44: bad syntax for in_port

I think this might be the root cause of the issue?  Where is in_port
defined?
I don't see it in the onevnet template, but that doesn't mean I didn't just
miss it.

One other question I had while going through the docs again, I see on the
openvswitch page:

 The sudoers file must be configured so oneadmin can execute ovs_vsctl in
the hosts.

How do you recommend doing this?  I thought the oneadmin was set up to
execute commands with sudo when installing the packages...
I didn't see the oneadmin user in any of the sudo groups (sudoers, wheel,
root) so I added the

I did add the oneadmin user to the sudo group also without any success:

  root@loki:~# addgroup oneadmin sudo
  Adding user `oneadmin' to group `sudo' ...
  Adding user oneadmin to group sudo
  Done.

The only thing else I can think to do would be to set no passwords in the
sudoers file:

 oneadmin ALL=NOPASSWD: ALL

But this seems less than ideal.  Also, I think the incorrect syntax is the
root cause of the issue, if there are other issues.

What steps can I try next?

Thanks,
Jon A



On Thu, Mar 28, 2013 at 2:56 PM, Jaime Melis jme...@opennebula.org wrote:

 3) Documentation

 The fact that install_novnc.sh is being installed to two separate
 locations is a bug that has already been fixed.

 With regard to the /usr/share/opennebula issue, I'm afraid that's
 because of the Debian/Ubuntu packaging policy. For other distros (CentOS
 and openSUSE for example) the path is the one that appears in the
 documentation.

 To makes things easier for users I think this should be reflected in the
 README.debian file, and in the platform notes in the documentation. So
 thanks a lot for pointing this out.

 I created this feature to follow this problem:
 http://dev.opennebula.org/issues/1844

 cheers,
 Jaime

 On Thu, Mar 28, 2013 at 1:06 PM, Jon three1...@gmail.com wrote:

 Hello All,

 I've just installed OpenNebula 3.9.80 and I have to say this is
 amazing.  Everything works so smoothly.

 Anyway, down to business.

 OpenVSwitch:

 I've installed and configured OpenVSwitch and am able to manually add
 the OVS config using libvirt, then launch a VM,

   interface type='bridge'
 source bridge='ovsbr0'/
 virtualport type='openvswitch'
 /virtualport
 model type='virtio'/
 address type='pci' domain='0x' bus='0x00' slot='0x05'
 function='0x0'/
   /interface

 Which creates the device in ovs:

   system@ovsbr0:
   lookups: hit:1346333 missed:46007 lost:0
   flows: 8
   port 0: ovsbr0 (internal)
   port 1: eth0
   port 2: br0 (internal)
   port 7: vnet0


 However, when I attempt to create a virtual network without assigning
 an IP and instantiate the template I get the error:

  [TemplateInstantiate] Error allocating a new virtual machine. Cannot
 get IP/MAC lease from virtual network 0.

 The template of the virtual network is:

  oneadmin@loki:~$ onevnet show testnet1
   VIRTUAL NETWORK 0 INFORMATION
   ID : 0
   NAME   : testnet1
   USER   : oneadmin
   GROUP  : oneadmin
   CLUSTER: -
   TYPE   : FIXED
   BRIDGE : ovsbr0
   VLAN   : No
   USED LEASES: 0
 
   PERMISSIONS
   OWNER  : um-
   GROUP  : ---
   OTHER  : ---
 
   VIRTUAL NETWORK TEMPLATE
 
 
   VIRTUAL MACHINES
 

 If I add an IP to the vnet, I get the following template and error
 logs (full vm log attached, I think I've identified the relevant
 line):

  Thu Mar 28 10:34:05 2013 [VMM][E]: post: Command sudo
 /usr/bin/ovs-ofctl add-flow ovsbr0
 in_port=,dl_src=02:00:44:47:83:43,priority=4,actions=normal failed.

   oneadmin@loki:~$ onevnet show testnet1
   VIRTUAL NETWORK 0 INFORMATION
   ID : 0
   NAME   : testnet1
   USER   : oneadmin
   GROUP  : oneadmin
   CLUSTER: -
   TYPE   : FIXED
   BRIDGE : ovsbr0
   VLAN   : No
   USED LEASES: 1
 
   PERMISSIONS
   OWNER  : um-
   GROUP  : ---
   OTHER  : ---
 
   VIRTUAL NETWORK TEMPLATE
 
 
   USED LEASES
   LEASE=[