Re: [one-users] iscsi target as a guest disk

2011-12-15 Thread Prakhar Srivastava
Hi,
It appears that you are using the tm_ssh transfer drivers. Use tm_lvm
transfer manager drivers instead.

Prakhar

On Thu, Dec 15, 2011 at 2:01 PM, Tengvall, Ilkka (NSN - FI Espoo) 
ilkka.tengv...@nsn.com wrote:

 Hi,

 I'm writing related to issue:

 http://dev.opennebula.org/issues/1025

 Ruben, thanks for answer, you commented there that iscsi could be used
 as a disk:

 you should be able to use iSCSI block devices with
 DISK=[TYPE=block,SOURCE=path_to_dev].

 I tried to follow you instruction, I don't see it working. What am I
 missing, since the oned tries to cp the iscsi image, instead as pass it
 to guest as disk:

 
 $ cat
 iscsi-vm.txt

 NAME=f16-min-iscsi
 USER=oneadmin
 GROUP=oneadmin
 PUBLIC=No

 DISK=[
  BUS=virtio,
  TYPE=block,


 SOURCE=/dev/disk/by-path/ip-192.168.117.1:3260-iscsi-iqn.2009-02.net.nsn-net:whipper.f16-min-lun-0
 ]
 GRAPHICS=[
  KEYMAP=fi,
  TYPE=vnc ]
 INPUT=[
  BUS=usb,
  TYPE=mouse ]
 MEMORY=512
 NIC=[
  NETWORK_ID=1,
  WHITE_PORTS_TCP=22 ]
 OS=[
  ARCH=x86_64,
  BOOT=hd ]
 RAW=[
  TYPE=kvm ]
 VCPU=1
 

 Creating the machine using the disk:

 
 $ onevm create iscsi-vm.txt
 ID: 10
 

 and after it fails I see from the logs that it tried to copy the image
 (cp), instead of passing it to libvirt as a virtio device:

 
 Thu Dec 15 10:26:09 2011 [DiM][I]: New VM state is ACTIVE.
 Thu Dec 15 10:26:09 2011 [LCM][I]: New VM state is PROLOG.
 Thu Dec 15 10:26:09 2011 [VM][I]: Virtual Machine has no context
 Thu Dec 15 10:26:09 2011 [TM][I]: Command execution fail:
 /usr/lib/one/tm_commands/shared/tm_clone.sh

 /dev/disk/by-path/ip-192.168.117.1:3260-iscsi-iqn.2009-02.net.nsn-net:whipper.f16-min-lun-0
 onebula:/var/lib/one//10/images/disk.0
 Thu Dec 15 10:26:09 2011 [TM][D]: tm_clone.sh:

 /dev/disk/by-path/ip-192.168.117.1:3260-iscsi-iqn.2009-02.net.nsn-net:whipper.f16-min-lun-0
 onebula:/var/lib/one//10/images/disk.0
 Thu Dec 15 10:26:09 2011 [TM][D]: tm_clone.sh: DST:
 /var/lib/one//10/images/disk.0
 Thu Dec 15 10:26:09 2011 [TM][I]: tm_clone.sh: Creating directory
 /var/lib/one//10/images
 Thu Dec 15 10:26:09 2011 [TM][I]: tm_clone.sh: Executed mkdir -p
 /var/lib/one//10/images.
 Thu Dec 15 10:26:09 2011 [TM][I]: tm_clone.sh: Executed chmod a+w
 /var/lib/one//10/images.
 Thu Dec 15 10:26:09 2011 [TM][I]: tm_clone.sh: Cloning
 3260-iscsi-iqn.2009-02.net.nsn-net:whipper.f16-min-lun-0
 Thu Dec 15 10:26:09 2011 [TM][E]: tm_clone.sh: Command cp -r
 3260-iscsi-iqn.2009-02.net.nsn-net:whipper.f16-min-lun-0
 /var/lib/one//10/images/disk.0 failed.
 Thu Dec 15 10:26:09 2011 [TM][E]: tm_clone.sh: cp: cannot stat
 `3260-iscsi-iqn.2009-02.net.nsn-net:whipper.f16-min-lun-0': No such file
 or directory
 Thu Dec 15 10:26:09 2011 [TM][E]: Error copying

 /dev/disk/by-path/ip-192.168.117.1:3260-iscsi-iqn.2009-02.net.nsn-net:whipper.f16-min-lun-0
 to onebula:/var/lib/one//10/images/disk.0
 Thu Dec 15 10:26:09 2011 [TM][I]: ExitCode: 1
 Thu Dec 15 10:26:09 2011 [TM][E]: Error excuting image transfer script:
 Error copying

 /dev/disk/by-path/ip-192.168.117.1:3260-iscsi-iqn.2009-02.net.nsn-net:whipper.f16-min-lun-0
 to onebula:/var/lib/one//10/images/disk.0
 Thu Dec 15 10:26:09 2011 [DiM][I]: New VM state is FAILED
 

 Thanks for the answer so far.


 On 2011-12-12 15:33, ext Tengvall, Ilkka (NSN - FI Espoo) wrote:
  Hi,
 
  I'm new to Open Nebula, and have some questions. First one would be
  about iscsi support. I can't find any reference from oned documents
  itself about iscsi. Is it possible to configure guests  using iscsi lun
  from remote server as a os block device?
 
  I have done it using libvirt, so it works, but how to map this to oned
  configs?
 
  another way which would also work would be booting kernel directly or
  via ipxe and give it iscsi as a root device. Both of those work too.
 
  Is there a way to do this in oned?
 
  I found an old related posting here, but I don't know if it ever led to
  anything:
 
 
 http://lists.opennebula.org/htdig.cgi/users-opennebula.org/2009-July/000599.html
 


 --
 Ilkka Tengvall
 Senior Specialist, Linux  Virtualization Architecture

 ___
 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] xmlrpc client

2011-12-09 Thread Prakhar Srivastava
Hi,
This is how I create a connection to the server
oneClient = new Client(oneadmin:onepass,http://192.168.1.5:2633/RPC2;);

Check that you are using the
import org.opennebula.client.Client;

to make user that you are using the correct client. Also send the
stacktrace if you are still facing problems.

Prakhar

On Fri, Dec 9, 2011 at 5:03 PM, Ksenija Poljak
ksenija.pol...@altus-it.hrwrote:

 Even when I use that API, I still get Unauthorized exception.
 What is the proper way to form a session string that gets user (for start
 oneadmin) authenticated and authorized in Java client so that I can test
 other methods?
 I use client function: Client client = new Client(session_string,
 server_url);

 public *Client*(java.lang.String secret,
   java.lang.String endpoint)
throws ClientConfigurationException 
 http://opennebula.org/doc/3.0/oca/java/org/opennebula/client/ClientConfigurationException.html



 On Thu, Dec 8, 2011 at 5:16 PM, Prakhar Srivastava 
 prakhar@gmail.comwrote:

 Hi Ksenija,
 Why don't you simply use the Java OpenNebula Cloud 
 APIhttp://opennebula.org/documentation:rel3.0:java that
 is packaged with opennebula. If there is no specific scenario, its best to
 use them.

 Prakhar

 On Thu, Dec 8, 2011 at 3:23 PM, Ksenija Poljak 
 ksenija.pol...@altus-it.hr wrote:

 Hi, I'm using opennebula 3 and I'm trying to write an xmlrpc Java client.
 I'm not able to connect my client to opennebula server.
 I keep getting unauthorized exception:

 org.apache.xmlrpc.client.XmlRpcHttpTransportException: HTTP server
 returned unexpected status: Unauthorized

 My testing program:

 package open.nebula.client;


 import java.net.MalformedURLException;
 import java.net.URL;

 import org.apache.xmlrpc.XmlRpcException;
 import org.apache.xmlrpc.client.XmlRpcClient;
 import org.apache.xmlrpc.client.XmlRpcClientConfigImpl;

 public class OpenNebulaClient{
  private XmlRpcClient client = new XmlRpcClient();;
 private XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
  private String session =
 oneadmin:ffd775fdb8e47ebf5b68513843f31742f74118e8;
  public OpenNebulaClient(String server_url)
 {
 try{
  this.config.setServerURL(new URL(server_url));
 this.client.setConfig(this.config);
  }catch(MalformedURLException e){
 System.err.println(e);
 }
  }
  public void getUserInfo(int id) throws XmlRpcException
  {
 Object[] params = {session,id};
 try {
 Object[] result = (Object[])this.client.execute(
 one.user.info,params);
 if(!result[0].equals(null)) {
 boolean success = (Boolean)result[0];
 String str_res = (String)result[1];
 System.out.println(success=+success);
 System.out.println(result=+str_res);
 }else{
 System.out.println(success=0);
 }
 }catch (XmlRpcException e) {
 System.err.println(e);
  //e.printStackTrace();
 }
 }
  public static void main(String[] args)
 {
 OpenNebulaClient on_client = new

  OpenNebulaClient(http://server_ip:port/RPC2;);
 try{
 on_client.getUserInfo(0);
  }catch(XmlRpcException xmlrpce){
 System.err.println(xmlrpce);
 }
  }
 }


 I'm confused becose when I look at examples on the web, there are
 methods used as one.userinfo, and on opennebula official site they are
 listed in form: one.user.info.
 Session string I used consists of username:password that I get listed
 with command: 'oneuser show 0' on opennebula server.
 Client and opennebula server are on different machines.
 I'm not sure what I do wrong. Any suggestions would be more than
 helpfull. Tnx in advance.

 the full stackTrace of error:

 org.apache.xmlrpc.client.XmlRpcHttpTransportException: HTTP server
 returned unexpected status: Unauthorized
 at
 org.apache.xmlrpc.client.XmlRpcSunHttpTransport.getInputStream(XmlRpcSunHttpTransport.java:94)
  at
 org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:152)
 at
 org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:143)
  at
 org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
 at
 org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
  at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
 at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:137)
  at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:126)
 at
 open.nebula.client.OpenNebulaClient.getUserInfo(OpenNebulaClient.java:30)
  at open.nebula.client.OpenNebulaClient.main(OpenNebulaClient.java:49)

 ___
 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



 ___
 Users mailing list
 Users

Re: [one-users] xmlrpc client

2011-12-09 Thread Prakhar Srivastava
You appear to use the hashed password and not the password itself. Use the
real password to construct the session string.


On Fri, Dec 9, 2011 at 5:38 PM, Ksenija Poljak
ksenija.pol...@altus-it.hrwrote:

 I do the same thing and is not working. This line alone does not cause any
 problems. But when I try to use UserPool.info(client); or any other method,
 returned error string is: HTTP server returned unexpected status:
 Unauthorized.

 On Fri, Dec 9, 2011 at 12:52 PM, Prakhar Srivastava prakhar@gmail.com
  wrote:

 Hi,
 This is how I create a connection to the server
 oneClient = new Client(oneadmin:onepass,http://192.168.1.5:2633/RPC2
 );

 Check that you are using the
 import org.opennebula.client.Client;

 to make user that you are using the correct client. Also send the
 stacktrace if you are still facing problems.

 Prakhar


 On Fri, Dec 9, 2011 at 5:03 PM, Ksenija Poljak 
 ksenija.pol...@altus-it.hr wrote:

 Even when I use that API, I still get Unauthorized exception.
 What is the proper way to form a session string that gets user (for
 start oneadmin) authenticated and authorized in Java client so that I can
 test other methods?
 I use client function: Client client = new Client(session_string,
 server_url);

 public *Client*(java.lang.String secret,
   java.lang.String endpoint)
throws ClientConfigurationException 
 http://opennebula.org/doc/3.0/oca/java/org/opennebula/client/ClientConfigurationException.html



 On Thu, Dec 8, 2011 at 5:16 PM, Prakhar Srivastava 
 prakhar@gmail.com wrote:

 Hi Ksenija,
 Why don't you simply use the Java OpenNebula Cloud 
 APIhttp://opennebula.org/documentation:rel3.0:java that
 is packaged with opennebula. If there is no specific scenario, its best to
 use them.

 Prakhar

 On Thu, Dec 8, 2011 at 3:23 PM, Ksenija Poljak 
 ksenija.pol...@altus-it.hr wrote:

 Hi, I'm using opennebula 3 and I'm trying to write an xmlrpc Java
 client.
 I'm not able to connect my client to opennebula server.
 I keep getting unauthorized exception:

 org.apache.xmlrpc.client.XmlRpcHttpTransportException: HTTP server
 returned unexpected status: Unauthorized

 My testing program:

 package open.nebula.client;


 import java.net.MalformedURLException;
 import java.net.URL;

 import org.apache.xmlrpc.XmlRpcException;
 import org.apache.xmlrpc.client.XmlRpcClient;
 import org.apache.xmlrpc.client.XmlRpcClientConfigImpl;

 public class OpenNebulaClient{
  private XmlRpcClient client = new XmlRpcClient();;
 private XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
  private String session =
 oneadmin:ffd775fdb8e47ebf5b68513843f31742f74118e8;
  public OpenNebulaClient(String server_url)
 {
 try{
  this.config.setServerURL(new URL(server_url));
 this.client.setConfig(this.config);
  }catch(MalformedURLException e){
 System.err.println(e);
 }
  }
  public void getUserInfo(int id) throws XmlRpcException
  {
 Object[] params = {session,id};
 try {
 Object[] result = (Object[])this.client.execute(
 one.user.info,params);
 if(!result[0].equals(null)) {
 boolean success = (Boolean)result[0];
 String str_res = (String)result[1];
 System.out.println(success=+success);
 System.out.println(result=+str_res);
 }else{
 System.out.println(success=0);
 }
 }catch (XmlRpcException e) {
 System.err.println(e);
  //e.printStackTrace();
 }
 }
  public static void main(String[] args)
 {
 OpenNebulaClient on_client = new

  OpenNebulaClient(http://server_ip:port/RPC2;);
 try{
 on_client.getUserInfo(0);
  }catch(XmlRpcException xmlrpce){
 System.err.println(xmlrpce);
 }
  }
 }


 I'm confused becose when I look at examples on the web, there are
 methods used as one.userinfo, and on opennebula official site they are
 listed in form: one.user.info.
 Session string I used consists of username:password that I get listed
 with command: 'oneuser show 0' on opennebula server.
 Client and opennebula server are on different machines.
 I'm not sure what I do wrong. Any suggestions would be more than
 helpfull. Tnx in advance.

 the full stackTrace of error:

 org.apache.xmlrpc.client.XmlRpcHttpTransportException: HTTP server
 returned unexpected status: Unauthorized
 at
 org.apache.xmlrpc.client.XmlRpcSunHttpTransport.getInputStream(XmlRpcSunHttpTransport.java:94)
  at
 org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:152)
 at
 org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:143)
  at
 org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
 at
 org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
  at
 org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
 at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:137)
  at
 org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:126

[one-users] creating a hook on SAVE_SUSPEND state

2011-10-04 Thread Prakhar Srivastava
Hi,
Is it possible to create a hook on SAVE_SUSPEND state, The documentation
only specifies create, running, stop, shutdown, done and failed states
under possible values of on ???
http://opennebula.org/documentation:rel3.0:hooks

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


Re: [one-users] Authorization for opennebula users--How

2011-10-04 Thread Prakhar Srivastava
Hi,
You should check oned.log. The virtual machine you are trying to create may
be using some resources like (network, images, hosts etc that you might not
be authorised to use. Use ACL to configure the user for different virtual
resources)

http://opennebula.org/documentation:rel3.0:hooks

http://opennebula.org/documentation:rel3.0:hooksPrakhar

On Tue, Oct 4, 2011 at 3:41 PM, Bharat Bagai bagai_bha...@hotmail.comwrote:

  Hi

  When I try to create a VM, it gives an error: *User is not authorised to
 CREATE in VM POOL*. How  can I set authorizations to the Open Nebula users
 to create/shutdown/Delete the objects?

 Thanks in advance

 (Bharat)

 ___
 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] How to use LVM storage backend with OCCI

2011-09-28 Thread Prakhar Srivastava
Hi,
I wish if someone has any idea how to use LVM backend with OCCI. The OCCI
compute template file only takes the storage URL for the uploaded image.
What if I have done a pre-staging of OS images on the hosts and want to use
the LVM transfer manager with SOURCE=/dev/vg-name/lv-name

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


[one-users] Using Opennebula with jCloud multi cloud library

2011-09-23 Thread Prakhar Srivastava
Hi,
I was exploring the opportunity of using jCloud APIs with Opennebula EC2
query interface. I have setup the econe server correctly and able to create
and terminate instances using econe client. JCloud APIs can be used with
Eucalyptus private clouds because they expose a EC2 APIs. I believe there
must be a way out to use Opennebula with EC2 APIs.

Anyone used the Opennebula EC2 interface with jCloud?? I wish if someone can
throw light on the solution.


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


Re: [one-users] accessing VDC using Cloud APIs

2011-09-22 Thread Prakhar Srivastava
Hi,
Thanks for the response. I tried to use the REST service with data formatted
in JSON using HttpBuilder. I would like to know the authentication method
for using the service. When I tried to use the auth.basic method for setting
up userid and password, it return 404 Unauthorized error. But I can see that
the OzonesClient.rb is using the auth.basic to set the credentials.
Any idea if I am doing anything wrong?
My objective is to create VDC using the REST services.

Thanks,
Prakhar


On Sun, Sep 18, 2011 at 3:36 AM, Ruben S. Montero rube...@dacya.ucm.eswrote:

 Hi,

 Actually, oZones/VDC is implemented as a REST service with data formatted
 in JSON so it should be pretty easy to interact with the module though
 anything that talks HTTP.

 We plan to provide a wrapper API for the service with bindings in JAVA and
 Ruby [1]. In the meantime, you may want to take a look to the ruby client
 and web app to develop apps for the OpenNebula Zones and VDCs service [2]
 (Developer information for the REST API is also to be written...)

 Cheers

 Ruben

 [1] http://dev.opennebula.org/issues/789
 [2] Client File at src/ozones/Client/lib/OZonesClient.rb
  REST Service implemented at src/ozones/Server/ozones-server.rb


 On Thu, Sep 15, 2011 at 3:30 PM, Prakhar Srivastava prakhar@gmail.com
  wrote:

 Hi,
 I was checking the Opennebula 2.9.80 and really liked the VDC feature. I
 wanted to know if it is possible to create VDC using Cloud APIs. I checked
 the Opennebula Java API, it seems they doesn't have support for it.

 Is there any other way one can create VDC except onevdc command ??

 Prakhar


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




 --
 Dr. Ruben Santiago Montero
 Associate Professor (Profesor Titular), Complutense University of Madrid

 URL: http://dsa-research.org/doku.php?id=people:ruben
 Weblog: http://blog.dsa-research.org/?author=7

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


Re: [one-users] HAIZEA lease manager and latest OpenNebula release

2011-09-22 Thread Prakhar Srivastava
Hi,
I hace tested Haizea scheduling backend with Opennebula 2.2 . It has worked
out of the box for me. Since Opennebula 2.2 documentation states that Haizea
can be used as a Scheduling backend. So I believe that there as no core
changes as far as adding a new scheduler is of concern.

Thanks,
Prakhar

On Fri, Sep 23, 2011 at 10:34 AM, Patrice LACHANCE patlacha...@gmail.comwrote:

 Hello

 Anyone using the HAIZEA lease manager as a scheduling backend for
 OpenNebula 2.x or 3.x?
 Were there any major changes in the ONE core that would break compatibility
 ?

 Thanks and have a nice day!

 Patrice

 ___
 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] Creating a deb package from a Opennebula installation

2011-09-19 Thread Prakhar Srivastava
Hi,
I have installed opennebula by building it from source on an i386 machine.
 The Opennebula 3.0 beta2 download page does not list the Ubuntu package for
i386 machines. I would now like to install the package on another machine

What is the standard way to create a .deb package that can be used on ubuntu
out of my existing installation.

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


[one-users] accessing VDC using Cloud APIs

2011-09-15 Thread Prakhar Srivastava
Hi,
I was checking the Opennebula 2.9.80 and really liked the VDC feature. I
wanted to know if it is possible to create VDC using Cloud APIs. I checked
the Opennebula Java API, it seems they doesn't have support for it.

Is there any other way one can create VDC except onevdc command ??

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


Re: [one-users] onevm shows vm is running but it is not in xen

2011-07-18 Thread Prakhar Srivastava
Hi,
*onevm create* will create the virtual machine instance and deploy it too.
If you want to just submit the VM, use *onevm submit* instead.
Can you please post back the vm.log for the vm?

Prakhar

On Mon, Jul 18, 2011 at 7:09 PM, Rasika Karunathilaka 
rasika.karunathil...@yahoo.com wrote:

 Hi Team,
  I was able to create vm instance, and it was created successfully. Please
 find my vm template below. However I can't log in to the vm. when I try to
 get the console (xm console id) it provide following messages. Further vm
 is in blocked state. Please Help ! ..
 Why does it deploy, when I just used onevm create VMTemplate , shouldn't
 it create the image only and not start it. I believe stating should come
 when we issue onevm deploy .  Highly appreciate you help on this. Kernel
 and Initrd on template is pointed to the same on Xen Host machine.

 Cheers !
 Rasika

  VM Template ##
 Name = Fed12
 CPU =   1
 MEMORY  =   512
 OS = [
 KERNEL  = /boot/vmlinuz-2.6.37.1-1.2-xen,
 INITRD  = /boot/initrd-2.6.37.1-1.2-xen,
 ROOT=
 /dev/disk/by-id/ata-Hitachi_HDS721680PLA380_PVE101Z7UGE1AM-part2 
 ]

 DISK= [
 IMAGE_ID= 1
 ]


 CONTEXT = [
 HOSTNAME=   Fed12,
 USERNAME=   oneadmin,
 IP_PRIVATE  =   $NIC[IP],
 IP_GEN  =   192.168.104.$VMID,
 FILES   =   /vms_configuration/id_rsa.pub
 /vms_configuration/init.sh,
 TARGET  =   hdb
 ]

 ## Console messages
 #

 0.171869] PNP: No PS/2 controller found. Probing ports directly.
 [0.172713] i8042.c: No controller found.
 [0.172756] mice: PS/2 mouse device common for all mice
 [0.172882] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
 [0.172910] rtc_cmos: probe of rtc_cmos failed with error -38
 [0.173054] TCP cubic registered
 [0.173075] NET: Registered protocol family 10
 [0.173274] lo: Disabled Privacy Extensions
 [0.173405] Registering the dns_resolver key type
 [0.173436] libceph: loaded (mon/osd proto 15/24, osdmap 5/5 5/5)
 [0.173506] registered taskstats version 1
 [0.173522]   Magic number: 1:252:3141
 [0.173537] XENBUS: Device with no driver: device/vbd/51712
 [0.173541] XENBUS: Device with no driver: device/vbd/832
 [0.173545]
 /usr/src/packages/BUILD/kernel-xen-2.6.37.1/linux-2.6.37/drivers/rtc/hctosys.c:
 unable to open rtc device (rtc0)
 [0.173592] Freeing unused kernel memory: 344k freed
 [0.174686] Write protecting the kernel text: 4176k
 [0.175358] Write protecting the kernel read-only data: 2792k
 [0.217635] netfront: Initialising virtual ethernet driver.
 [0.232769] xen-vbd: registered block device major 202
 [0.232795] blkfront: xvda: barriers enabled
 [0.234407]  xvda: xvda1 xvda2
 [0.234661] Setting capacity to 8388610
 [0.234667] xvda: detected capacity change from 0 to 4294968320
 [0.234827] xen-vbd: registered block device major 3
 [0.234840] blkfront: hdb: barriers enabled
 [0.236238]  hdb: unknown partition table
 [0.236355] Setting capacity to 736
 [0.236360] hdb: detected capacity change from 0 to 376832
 [0.336171] udev[65]: starting version 166

 ___
 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] Network-help

2011-07-16 Thread Prakhar Srivastava
Hi.
Can you post back the complete xen conf file you are using ???

Prakhar

On 16 Jul 2011 08:33, puneeth puneeth.pod...@gmail.com wrote:
 hi,
 i want to assign the virtual machine that i create using one(opennebula)
 a certain ip address (say 192.168.10.5) now when creating the template i
 do the needed ie specify the required data in the template.

 network template:
 ip = 192.168.10.5
 bridge = eth0
 i'm using xen to create a virtual machine so not specifying anything
 else.
 could someone point out the mistake here.
 and xen configuration is as follows:

 network : network-bridge
 vif : vif-bridge
 should i change the network option to route.
 but i thought that bridge supported static ip assignment.

 the problem is currently the vm is created but the IP of the vm is the
 ip of the image(ie image used in creating the vm).

 thanks in advance
 --
 puneeth

 ___
 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] Error: Cannot find kernel /boot/vmlinuz.. + Open Suse cluster

2011-07-12 Thread Prakhar Srivastava
Hi,
The kernel and the initrd path should be present on the cluster node where
Xen is installed. The error specifies that Opennebula cannot find the
kernel. Check if the file is present at these paths and their permissions.

Prakhar.

On Tue, Jul 12, 2011 at 2:11 PM, Rasika Karunathilaka 
rasika.karunathil...@yahoo.com wrote:

 Hi All,

 Can you please shed some light on following issue.


 http://www.mail-archive.com/users@lists.opennebula.org/msg03644.html


 Cheers !
 Rasika Karunathilaka.

 ___
 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] issue with LVM storage

2011-06-21 Thread Prakhar Srivastava
Hi,
When I try to create to VM on a cluster node using tm_lvm mode. I get the
following error.

Tue Jun 21 19:50:24 2011 [DiM][I]: New VM state is ACTIVE.
Tue Jun 21 19:50:24 2011 [LCM][I]: New VM state is PROLOG.
Tue Jun 21 20:03:46 2011 [TM][I]: tm_clone.sh:
iCloud:/srv/cloud/one/var//images/56cee3989f620fc82e2af24ed4aeffcdc84b125b
192.168.145.105:/srv/cloud/one/var//211/images/disk.0
Tue Jun 21 20:03:46 2011 [TM][I]: tm_clone.sh: DST:
/srv/cloud/one/var//211/images/disk.0
Tue Jun 21 20:03:46 2011 [TM][I]: tm_clone.sh: Creating directory
/srv/cloud/one/var//211/images
Tue Jun 21 20:03:46 2011 [TM][I]: tm_clone.sh: Executed /usr/bin/ssh
192.168.145.105 mkdir -p /srv/cloud/one/var//211/images.
Tue Jun 21 20:03:46 2011 [TM][I]: tm_clone.sh: Creating LV lv-one-211-0
Tue Jun 21 20:03:46 2011 [TM][I]: tm_clone.sh: Executed /usr/bin/ssh
192.168.145.105 /usr/bin/sudo /sbin/lvcreate -L1G -n lv-one-211-0 one-data.
Tue Jun 21 20:03:46 2011 [TM][I]: tm_clone.sh: Executed /usr/bin/ssh
192.168.145.105 ln -s /dev/one-data/lv-one-211-0
/srv/cloud/one/var//211/images/disk.0.
Tue Jun 21 20:03:46 2011 [TM][I]: tm_clone.sh: Dumping Image
Tue Jun 21 20:03:46 2011 [TM][I]: tm_clone.sh: Executed eval cat
/srv/cloud/one/var//images/56cee3989f620fc82e2af24ed4aeffcdc84b125b |
/usr/bin/ssh 192.168.145.105 /usr/bin/sudo /bin/dd
of=/dev/one-data/lv-one-211-0 bs=64k.
Tue Jun 21 20:04:00 2011 [TM][I]: tm_mkswap.sh: Creating 1024Mb image in
/srv/cloud/one/var//211/images/disk.1
Tue Jun 21 20:04:00 2011 [TM][I]: tm_mkswap.sh: Executed /usr/bin/ssh
192.168.145.105 mkdir -p /srv/cloud/one/var//211/images.
Tue Jun 21 20:04:00 2011 [TM][I]: tm_mkswap.sh: Executed /usr/bin/ssh
192.168.145.105 /bin/dd if=/dev/zero
of=/srv/cloud/one/var//211/images/disk.1 bs=1 count=1 seek=1024M.
Tue Jun 21 20:04:00 2011 [TM][I]: tm_mkswap.sh: Initializing swap space
Tue Jun 21 20:04:00 2011 [TM][I]: tm_mkswap.sh: Executed /usr/bin/ssh
192.168.145.105 /sbin/mkswap /srv/cloud/one/var//211/images/disk.1.
Tue Jun 21 20:04:00 2011 [TM][I]: tm_mkswap.sh: Executed /usr/bin/ssh
192.168.145.105 chmod a+w /srv/cloud/one/var//211/images/disk.1.
Tue Jun 21 20:04:06 2011 [TM][I]: tm_context.sh: Executed mkdir -p
/srv/cloud/one/var/c1799edd687e76f8d944d8aaa4f4ff71/isofiles.
Tue Jun 21 20:04:06 2011 [TM][I]: tm_context.sh: Executed cp -R
/srv/cloud/one/var/211/context.sh
/srv/cloud/one/var/c1799edd687e76f8d944d8aaa4f4ff71/isofiles.
Tue Jun 21 20:04:06 2011 [TM][I]: tm_context.sh: Executed cp -R
/home/cloud/opennebula/images/init.sh
/srv/cloud/one/var/c1799edd687e76f8d944d8aaa4f4ff71/isofiles.
Tue Jun 21 20:04:06 2011 [TM][I]: tm_context.sh: Executed cp -R
/root/.ssh/id_dsa.pub
/srv/cloud/one/var/c1799edd687e76f8d944d8aaa4f4ff71/isofiles.
Tue Jun 21 20:04:06 2011 [TM][I]: tm_context.sh: Executed /usr/bin/mkisofs
-o /srv/cloud/one/var/c1799edd687e76f8d944d8aaa4f4ff71/disk.2 -J -R
/srv/cloud/one/var/c1799edd687e76f8d944d8aaa4f4ff71/isofiles.
Tue Jun 21 20:04:06 2011 [TM][I]: tm_context.sh: Executed /usr/bin/scp
/srv/cloud/one/var/c1799edd687e76f8d944d8aaa4f4ff71/disk.2 192.168.145.105:
/srv/cloud/one/var//211/images/disk.2.
Tue Jun 21 20:04:06 2011 [TM][I]: tm_context.sh: Executed rm -rf
/srv/cloud/one/var/c1799edd687e76f8d944d8aaa4f4ff71.
Tue Jun 21 20:04:06 2011 [LCM][I]: New VM state is BOOT
Tue Jun 21 20:04:06 2011 [VMM][I]: Generating deployment file:
/srv/cloud/one/var/211/deployment.0
Tue Jun 21 20:04:19 2011 [VMM][I]: Command execution fail: 'if [ -x
/var/tmp/one/vmm/xen/deploy ]; then /var/tmp/one/vmm/xen/deploy
/srv/cloud/one/var//211/images/deployment.0; else
   exit 42; fi'
Tue Jun 21 20:04:19 2011 [VMM][I]: STDERR follows.
Tue Jun 21 20:04:19 2011 [VMM][I]: Error: Device 51712 (vbd) could not be
connected. /dev/dm-0 does not exist.
Tue Jun 21 20:04:19 2011 [VMM][I]: ExitCode: 1
*Tue Jun 21 20:04:19 2011 [VMM][E]: Error deploying virtual machine: Error:
Device 51712 (vbd) could not be connected. /dev/dm-0 does not exist.*
Tue Jun 21 20:04:19 2011 [DiM][I]: New VM state is FAILED
Tue Jun 21 20:04:31 2011 [TM][W]: Ignored: LOG - 211 tm_delete.sh: Deleting
remote LVs

Tue Jun 21 20:04:31 2011 [TM][W]: Ignored: LOG - 211 tm_delete.sh: Executed
/usr/bin/ssh 192.168.145.105 /usr/bin/sudo /sbin/lvremove -f $(echo
one-data/$(/usr/bin/sudo /sbin/lvs --noheadings one-data|awk '{print
$1}'|grep lv-one-211)).

Tue Jun 21 20:04:31 2011 [TM][W]: Ignored: LOG - 211 tm_delete.sh: Deleting
/srv/cloud/one/var//211/images

Tue Jun 21 20:04:31 2011 [TM][W]: Ignored: LOG - 211 tm_delete.sh: Executed
/usr/bin/ssh 192.168.145.105 rm -rf /srv/cloud/one/var//211/images.

Tue Jun 21 20:04:31 2011 [TM][W]: Ignored: TRANSFER SUCCESS 211 -

When I check the cluster node for the /dev/dm-0, the device mapper for the
logical volume created during VM creation, it shows me that /dev/dm-0 is
present.

Hope someone could throw some light on this error.

Regards,
Prakhar
___
Users mailing list
Users@lists.opennebula.org

[one-users] One daemon crashing issue

2011-05-08 Thread Prakhar Srivastava
Hi,
The opennebula frontend dumps the following error log on the screen
sometimes and after that the connection is refused by one daemon.

 *** glibc detected *** /srv/cloud/one/bin/oned: double free or corruption
(fasttop): 0x0a109ab0 ***
=== Backtrace: =
/lib/libc.so.6(+0x6c501)[0xb702f501]
/lib/libc.so.6(+0x6dd70)[0xb7030d70]
/lib/libc.so.6(cfree+0x6d)[0xb7033e5d]
/usr/lib/libxmlrpc.so.3(xmlrpc_DECREF+0x50)[0xb7276af0]
/usr/lib/libxmlrpc.so.3(xmlrpc_array_get_item+0x5b)[0xb72786cb]
/usr/lib/libxmlrpc.so.3(+0x495c)[0xb727795c]
/usr/lib/libxmlrpc.so.3(xmlrpc_parse_value_va+0x32)[0xb7277c72]
/usr/lib/libxmlrpc.so.3(xmlrpc_parse_value+0x32)[0xb7277cb2]
/usr/lib/libxmlrpc_server.so.3(xmlrpc_dispatchCall+0x184)[0xb72ca284]
/usr/lib/libxmlrpc_server.so.3(xmlrpc_registry_process_call+0xd5)[0xb72ca3b5]
/usr/lib/libxmlrpc_server_abyss.so.3(+0x23f3)[0xb72d13f3]
/usr/lib/libxmlrpc_abyss.so.3(+0x9dd9)[0xb72c1dd9]
/usr/lib/libxmlrpc_abyss.so.3(+0x5830)[0xb72bd830]
/usr/lib/libxmlrpc_abyss.so.3(+0xcd12)[0xb72c4d12]
/lib/libpthread.so.0(+0x5cc9)[0xb7299cc9]
/lib/libc.so.6(clone+0x5e)[0xb70936ae]
=== Memory map: 
08048000-0811 r-xp  08:01 3280707/srv/cloud/one/bin/oned
0811-08111000 r--p 000c7000 08:01 3280707/srv/cloud/one/bin/oned
08111000-08112000 rw-p 000c8000 08:01 3280707/srv/cloud/one/bin/oned
0a0df000-0a142000 rw-p  00:00 0  [heap]
adafe000-adaff000 ---p  00:00 0
adaff000-ae2ff000 rw-p  00:00 0
ae2ff000-ae30 ---p  00:00 0
ae30-aeb0 rw-p  00:00 0
aeb0-aeb21000 rw-p  00:00 0
aeb21000-aec0 ---p  00:00 0
aec03000-aec04000 ---p  00:00 0
aec04000-af404000 rw-p  00:00 0
af404000-af405000 ---p  00:00 0
af405000-afc05000 rw-p  00:00 0
b0b0-b0b21000 rw-p  00:00 0
b0b21000-b0c0 ---p  00:00 0
b0c07000-b0c08000 ---p  00:00 0
b0c08000-b1408000 rw-p  00:00 0
b1408000-b1409000 ---p  00:00 0
b1409000-b1c09000 rw-p  00:00 0
b1c09000-b1c0a000 ---p  00:00 0
b1c0a000-b240a000 rw-p  00:00 0
b240a000-b240b000 ---p  00:00 0
b240b000-b2c0b000 rw-p  00:00 0
b2c0b000-b2c0c000 ---p  00:00 0
b2c0c000-b340c000 rw-p  00:00 0
b340c000-b340d000 ---p  00:00 0
b340d000-b3c0d000 rw-p  00:00 0
b3c0d000-b3c0e000 ---p  00:00 0
b3c0e000-b440e000 rw-p  00:00 0
b440e000-b440f000 ---p  00:00 0
b440f000-b4c0f000 rw-p  00:00 0
b4c0f000-b4c1 ---p  00:00 0
b4c1-b541 rw-p  00:00 0
b541-b5411000 ---p  00:00 0
b5411000-b5c11000 rw-p  00:00 0
b5c11000-b5c12000 ---p  00:00 0
b5c12000-b6412000 rw-p  00:00 0
b6412000-b6413000 ---p  00:00 0
b6413000-b6c13000 rw-p  00:00 0
b6c13000-b6c1d000 r-xp  08:01 2101708/lib/libnss_files-2.12.1.so
b6c1d000-b6c1e000 r--p 9000 08:01 2101708/lib/libnss_files-2.12.1.so
b6c1e000-b6c1f000 rw-p a000 08:01 2101708/lib/libnss_files-2.12.1.so
b6c1f000-b6c23000 rw-p  00:00 0
b6c23000-b6c26000 r-xp  08:01 2101383/lib/libgpg-error.so.0.4.0
b6c26000-b6c27000 r--p 2000 08:01 2101383/lib/libgpg-error.so.0.4.0
b6c27000-b6c28000 rw-p 3000 08:01 2101383/lib/libgpg-error.so.0.4.0
b6c28000-b6c29000 rw-p  00:00 0
b6c29000-b6c9a000 r-xp  08:01 2101385/lib/libgcrypt.so.11.5.3
b6c9a000-b6c9b000 r--p 0007 08:01 2101385/lib/libgcrypt.so.11.5.3
b6c9b000-b6c9d000 rw-p 00071000 08:01 2101385/lib/libgcrypt.so.11.5.3
b6c9d000-b6cac000 r-xp  08:01 1320837/usr/lib/libtasn1.so.3.1.9
b6cac000-b6cad000 r--p e000 08:01 1320837/usr/lib/libtasn1.so.3.1.9
b6cad000-b6cae000 rw-p f000 08:01 1320837/usr/lib/libtasn1.so.3.1.9
b6cae000-b6cb r-xp  08:01 2101387/lib/libkeyutils.so.1.3
b6cb-b6cb1000 r--p 1000 08:01 2101387/lib/libkeyutils.so.1.3
b6cb1000-b6cb2000 rw-p 2000 08:01 2101387/lib/libkeyutils.so.1.3
b6cb2000-b6cb8000 r-xp  08:01 1311681
 /usr/lib/libkrb5support.so.0.1
b6cb8000-b6cb9000 r--p 5000 08:01 1311681
 /usr/lib/libkrb5support.so.0.1
b6cb9000-b6cba000 rw-p 6000 08:01 1311681
 /usr/lib/libkrb5support.so.0.1
b6cba000-b6cbc000 r-xp  08:01 2097163/lib/libcom_err.so.2.1
b6cbc000-b6cbd000 r--p 1000 08:01 2097163/lib/libcom_err.so.2.1
b6cbd000-b6cbe000 rw-p 2000 08:01 2097163/lib/libcom_err.so.2.1
b6cbe000-b6cbf000 rw-p  00:00 0
b6cbf000-b6ce r-xp  08:01 1311672/usr/lib/libk5crypto.so.3.1
b6ce-b6ce1000 ---p 00021000 08:01 1311672/usr/lib/libk5crypto.so.3.1
b6ce1000-b6ce2000 r--p 00021000 08:01 1311672/usr/lib/libk5crypto.so.3.1
b6ce2000-b6ce3000 rw-p 00022000 08:01 1311672/usr/lib/libk5crypto.so.3.1
b6ce3000-b6d8b000 r-xp  08:01 1311678/usr/lib/libkrb5.so.3.3
b6d8b000-b6d9 r--p 000a8000 08:01 1311678

Re: [one-users] onevm saveas command

2011-04-28 Thread Prakhar Srivastava
Hi,
Thanks a lot for the response.
Here is the output of, onevm show after onevm saveas

VIRTUAL MACHINE 109 INFORMATION

ID : 109
NAME   : test2
STATE  : ACTIVE
LCM_STATE  : RUNNING
START TIME : 04/28 14:06:06
END TIME   : -
DEPLOY ID: : one-109

VIRTUAL MACHINE MONITORING

NET_TX : 0
NET_RX : 0
USED MEMORY: 0
USED CPU   : 0

VIRTUAL MACHINE TEMPLATE

CONTEXT=[
  DNS_PUBLIC=192.168.150.226,
  FILES=/home/cloud/opennebula/images/init.sh /root/.ssh/id_dsa.pub,
  GATEWAY_PUBLIC=192.168.145.1,
  HOSTNAME=test2,
  IP_PUBLIC=192.168.145.69,
  ROOT_PUBKEY=id_dsa.pub,
  TARGET=xvdc ]
CPU=1
DISK=[
  CLONE=YES,
  DISK_ID=0,
  DRIVER=file:,
  IMAGE=DebianLenny3,
  IMAGE_ID=5,
  READONLY=NO,
  SAVE=YES,
  SAVE_AS=6,
  SOURCE=/srv/cloud/one/var//images/b870fb155609d982de48a9b050e2b8c8790aa953,
  TARGET=xvda,
  TYPE=DISK ]
DISK=[
  DISK_ID=1,
  DRIVER=file:,
  READONLY=no,
  SIZE=1024,
  TARGET=xvdd,
  TYPE=swap ]
MEMORY=256
NAME=test2
NIC=[
  BRIDGE=eth0,
  IP=192.168.145.69,
  MAC=02:00:c0:a8:91:45,
  NETWORK=Public,
  NETWORK_ID=4 ]
OS=[
  INITRD=/home/cloud/kernel/xen/2/initrd-2.6.27.21-0.1-xen,
  KERNEL=/home/cloud/kernel/xen/2/vmlinuz-2.6.27.21-0.1-xen,
  KERNEL_CMD=xencons=tty,
  ROOT=xvda ]
VCPU=1
VMID=109

I uncommented the image hooks in oned.conf and restarted one daemon. This
time it worked as expected. The oneimage list listed the new image and its
corresponding image file was found in /srv/lcoud/one/var/images.

I have one another issue. The JAVA OCA has a savedisk() method for the same
functionality but its asks for the image ID. I expected it to ask the new
image name similar to the input taken by onevm saveas command. How to
achieve the same functionality using the JAVA OCA.

Thanks
Prakhar

On Thu, Apr 28, 2011 at 3:59 AM, Daniel Molina dmol...@opennebula.orgwrote:

 Hi,

 Check that the image hook is uncommented in the oned.conf.
 Would you mind to send us the output of onevm show VMID after the saveas
 command.

 Regards

 On 27 April 2011 10:53, Prakhar Srivastava prakhar@gmail.com wrote:

 Hi,
 When I run the command,
   onevm saves VMID DISKID IMAGENAME
 the image of the disk is successfully saved upon shutdown of the VM,
 however the the file with a hash string name in (/srv/cloud/one/var/images)
 is not created. So when I use the image in any VM, it compains that the file
 cannot be found in /srv/cloud/one/var/images.
 Tue Apr 26 20:59:36 2011 [LCM][I]: New VM state is SHUTDOWN
 Tue Apr 26 20:59:44 2011 [LCM][I]: New VM state is EPILOG
 Tue Apr 26 21:01:15 2011 [TM][I]: tm_mv.sh: Moving
 /srv/cloud/one/var//90/images/disk.0
 Tue Apr 26 21:01:15 2011 [TM][I]: tm_mv.sh: Executed /usr/bin/ssh box1
 mkdir -p /srv/cloud/one/var/90.
 Tue Apr 26 21:01:15 2011 [TM][I]: tm_mv.sh: Executed /usr/bin/scp -r
 192.168.145.116:/srv/cloud/one/var//90/images/disk.0
 box1:/srv/cloud/one/var/90/disk.0.
 Tue Apr 26 21:01:15 2011 [TM][I]: tm_mv.sh: Executed /usr/bin/ssh
 192.168.145.116 rm -rf /srv/cloud/one/var//90/images/disk.0.
 Tue Apr 26 21:01:16 2011 [TM][I]: tm_delete.sh: Deleting
 /srv/cloud/one/var//90/images
 Tue Apr 26 21:01:16 2011 [TM][I]: tm_delete.sh: Executed /usr/bin/ssh
 192.168.145.116 rm -rf /srv/cloud/one/var//90/images.
 Tue Apr 26 21:01:16 2011 [DiM][I]: New VM state is DONE



 Isn't the image supposed to be registered during the save process.
 Anyhow I am able to use the image by using a template file providing the
 source as the disk image saved and then registering it with a different
 name.

 Please advice.

 Prakhar

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




 --
 Daniel Molina, Cloud Technology Engineer/Researcher
 Major Contributor
 OpenNebula - The Open Source Toolkit for Cloud Computing
 www.OpenNebula.org | dmol...@opennebula.org


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


Re: [one-users] Can't restart or resume VM when VM is in save status. And MEMORY = 0 when VM is running .

2011-04-08 Thread Prakhar Srivastava
Hi,
If by saving you intend to 'resume' that VM at a later point in time,your
steps are correct.

Regards,
Prakhar

2011/4/8 Khoa Nguyen vankhoa...@gmail.com


 Hi Prakhar Srivastava
 Thank you for your reply. If i want to save a VM .
 1. onevm stop id
 2. Wait until changing from saving to stopping state.
 3. onevm resume id.

 Is that right?



 2011/4/8 Prakhar Srivastava prakhar@gmail.com

 Hi Khoa
 As already stated by Carlos, the save state is an intermediate state in
 which the running VM image is saved to the disk. This might take a little
 time and in the the mean time, the VM state is save (means it is saving the
 image so that it can be resumed from the state at which it was stopped). You
 cannot perform resume  at save (saving...)  state. It will always give an
 error. Once the VMs image is saved completely, the state changes to stop
 (means the VM is stopped). You can only resume a VM from a stopped or
 suspended state. So if you are not getting to 'stop' state, please check
 your vm.log file for any error. You can find the log file in
 /var/log/VMID/vm.log. Do post back the logs in case you find it cryptic
 !!!

 Regards,
 Prakhar


 2011/4/8 Khoa Nguyen vankhoa...@gmail.com

 Hi Carlos Martín Sánchez

 When the VM is in save status, How to change from saving  to running
 status?
 I try to enable VM , but it display Erros: wrong state.
 I can't solve problem.




 2011/4/5 Carlos Martín Sánchez cmar...@opennebula.org

 Hi there,

 If you take a look at the Virtual Machine Life-cycle diagram [1], the
 'save' state is a intermediate state, and the VM should end in either the
 'suspended' or 'stopped' state. If the VM is stuck in 'save', you may find
 some error messages in oned.log or the VM's log (in vm-id/vm.log).

 About #2, it may be a monitorization problem. Can you check using virsh
 or xentop the actual memory consumption?

 Best regards,
 Carlos.

 [1]
 http://opennebula.org/documentation:rel2.2:vm_guide#virtual_machine_life-cycle

 --
 Carlos Martín, MSc
 Project Major Contributor
 OpenNebula - The Open Source Toolkit for Cloud Computing
 www.OpenNebula.org http://www.opennebula.org/ | cmartin@opennebula
 .org


 On 17 March 2011 05:01, Khoa Nguyen vankhoa...@gmail.com wrote:

 I have two question but I can't explain .
 1.When i suspend or stop a VM, It changes to save status. Unfortunaly,I
 want to resume or restart  VM to changing running status , It display
 Error: Wrong state to perform action. I don't know why. Is OpenNebula
 wrong??

 2. Status's VM is ruunig but MEMORY = 0.

 Anyone know? Please help me.


 oneadmin1@oneadmin-desktop:/home/oneadmin$ onevm list
ID USER NAME STAT CPU MEMHOSTNAMETIME
39 oneadmin ttylinux runn   0 * 0K*   172.29.70.137 00 00:05:05
 oneadmin1@oneadmin-desktop:/home/oneadmin$ onevm suspend 39
 oneadmin1@oneadmin-desktop:/home/oneadmin$ onevm list
ID USER NAME STAT CPU MEMHOSTNAMETIME
39 oneadmin ttylinux save   0 * 0K*   172.29.70.137 00 00:05:21
 oneadmin1@oneadmin-desktop:/home/oneadmin$ *onevm resume 39
 Error: Wrong state to perform action*
 oneadmin1@oneadmin-desktop:/home/oneadmin$ *onevm restart 39
 Error: Wrong state to perform action*

 Thank you for advance.

 ,--
 Nguyễn Vũ Văn Khoa
 Đại học Khoa Học Tự Nhiên TP HCM



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





 --
 Nguyễn Vũ Văn Khoa
 Đại học Khoa Học Tự Nhiên TP HCM



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





 --
 Nguyễn Vũ Văn Khoa
 Đại học Khoa Học Tự Nhiên TP HCM



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


Re: [one-users] Setting up private networks for VM

2011-04-07 Thread Prakhar Srivastava
Hi Jaime,
I did as you said. I specified the same bridge eth0 for both the public and
the private network. I created two VMs with both public and private
interfaces. I could ping private IPs from within the virtual machines.
However I was surprised to see that if I create one VM with both public and
private interfaces and one VM with just the private interface, I am not able
to ping the private only VM from the both-public-and-private VM which was
something I wished to do.

In a general case, I wish to have just a single both-public-and-private
VM(call it master VM) for a user and other VMs should have just the private
interface so that it can be accessed from the master VM.

Is this behavior normal or I am missing something ??

Regards,
Prakhar

On Thu, Apr 7, 2011 at 2:05 PM, Jaime Melis jme...@opennebula.org wrote:

 Hi Prakhar,

 you need to use the same bridge, both for public and private networks:
 eth0.

 regards,
 Jaime


 On Wed, Apr 6, 2011 at 9:18 PM, Prakhar Srivastava 
 prakhar@gmail.comwrote:

 Hi,
 Thannx for the reply.
 Using two NIC sections per VM (one has eth0 bridge and the other one has
 eth1 as bridge) But I have a single bridge created on each of my cluster
 nodes i.e. eth0. When I insert NIC for private network which has bridge as
 eth1, I get a error that eth1 bridge does not exist and the deployment
 fails.eth0 acts as a bridge between my public network and the network
 interfaces of VMs. This works fine.

 I want that a second NIC can be added to the VMs but it fails because of
 the reason mentioned above.(there is no eth1 bidge).

 Regards,
 Prakhar


 On Wed, Apr 6, 2011 at 9:18 PM, Jaime Melis jme...@opennebula.orgwrote:

 Hi Prakhar,

 The scenario you've described is very easily achievable, you only need to
 create another private network vnet instance (created with the onevnet
 utility) and add two NIC sections per VM, one for the public NIC and one for
 the private one.

 It has one drawback, though, if you do this you will not be able to use
 the ebtables hook for network isolation, therefore someone using one of your
 VMs might be able to do MAC spoofing. But other than that it should work
 perfectly.

 cheers,
 Jaime

 On Mon, Apr 4, 2011 at 12:24 PM, Prakhar Srivastava 
 prakhar@gmail.com wrote:

 Hi,
 By private networks, I mean the virtual network created by opennebula
 onevnet utility. Consider the scenario where I have 4 VMs running in my
 opennebula cloud setup. All of them has  a public IP (allocated from a
 virtual network created by using onevnet utility) thats accessible from my
 network(LAN) . Its easy enough to access because it falls under the same
 network in which I am. What if I want to attach another interface to the
 VMs, so that I can assign private IPs to them .This is handy if you want to
 have more VMs than the number of public IPs available to you. Hope this
 makes sense.
 My question i do I need to have another physical NIC on all my cluster
 nodes for this.If not, please suggest a solution.

 Regards,
 Prakhar

 On Mon, Apr 4, 2011 at 11:33 AM, Prakhar Srivastava 
 prakhar@gmail.com wrote:

 Hi,
 I wanted to set up private networks for VMs in my opennebula setup. Is
 it necessary to have two physical NICs on the cluster nodes for setting
 private networks. If yes, is there any alternative to it so that I can use
 my VMs using their private IPs.

 Regards,
 Prakhar



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




 --
 Jaime Melis, Cloud Technology Engineer/Researcher
 Major Contributor
 OpenNebula - The Open Source Toolkit for Cloud Computing
 www.OpenNebula.org | jme...@opennebula.org





 --
 Jaime Melis, Cloud Technology Engineer/Researcher
 Major Contributor
 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


Re: [one-users] Can't restart or resume VM when VM is in save status. And MEMORY = 0 when VM is running .

2011-04-07 Thread Prakhar Srivastava
Hi Khoa
As already stated by Carlos, the save state is an intermediate state in
which the running VM image is saved to the disk. This might take a little
time and in the the mean time, the VM state is save (means it is saving the
image so that it can be resumed from the state at which it was stopped). You
cannot perform resume  at save (saving...)  state. It will always give an
error. Once the VMs image is saved completely, the state changes to stop
(means the VM is stopped). You can only resume a VM from a stopped or
suspended state. So if you are not getting to 'stop' state, please check
your vm.log file for any error. You can find the log file in
/var/log/VMID/vm.log. Do post back the logs in case you find it cryptic
!!!

Regards,
Prakhar

2011/4/8 Khoa Nguyen vankhoa...@gmail.com

 Hi Carlos Martín Sánchez

 When the VM is in save status, How to change from saving  to running
 status?
 I try to enable VM , but it display Erros: wrong state.
 I can't solve problem.




 2011/4/5 Carlos Martín Sánchez cmar...@opennebula.org

 Hi there,

 If you take a look at the Virtual Machine Life-cycle diagram [1], the
 'save' state is a intermediate state, and the VM should end in either the
 'suspended' or 'stopped' state. If the VM is stuck in 'save', you may find
 some error messages in oned.log or the VM's log (in vm-id/vm.log).

 About #2, it may be a monitorization problem. Can you check using virsh or
 xentop the actual memory consumption?

 Best regards,
 Carlos.

 [1]
 http://opennebula.org/documentation:rel2.2:vm_guide#virtual_machine_life-cycle

 --
 Carlos Martín, MSc
 Project Major Contributor
 OpenNebula - The Open Source Toolkit for Cloud Computing
 www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


 On 17 March 2011 05:01, Khoa Nguyen vankhoa...@gmail.com wrote:

 I have two question but I can't explain .
 1.When i suspend or stop a VM, It changes to save status. Unfortunaly,I
 want to resume or restart  VM to changing running status , It display
 Error: Wrong state to perform action. I don't know why. Is OpenNebula
 wrong??

 2. Status's VM is ruunig but MEMORY = 0.

 Anyone know? Please help me.


 oneadmin1@oneadmin-desktop:/home/oneadmin$ onevm list
ID USER NAME STAT CPU MEMHOSTNAMETIME
39 oneadmin ttylinux runn   0 * 0K*   172.29.70.137 00 00:05:05
 oneadmin1@oneadmin-desktop:/home/oneadmin$ onevm suspend 39
 oneadmin1@oneadmin-desktop:/home/oneadmin$ onevm list
ID USER NAME STAT CPU MEMHOSTNAMETIME
39 oneadmin ttylinux save   0 * 0K*   172.29.70.137 00 00:05:21
 oneadmin1@oneadmin-desktop:/home/oneadmin$ *onevm resume 39
 Error: Wrong state to perform action*
 oneadmin1@oneadmin-desktop:/home/oneadmin$ *onevm restart 39
 Error: Wrong state to perform action*

 Thank you for advance.

 ,--
 Nguyễn Vũ Văn Khoa
 Đại học Khoa Học Tự Nhiên TP HCM



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





 --
 Nguyễn Vũ Văn Khoa
 Đại học Khoa Học Tự Nhiên TP HCM



 ___
 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] Setting up private networks for VM

2011-04-06 Thread Prakhar Srivastava
Hi,
Thannx for the reply.
Using two NIC sections per VM (one has eth0 bridge and the other one has
eth1 as bridge) But I have a single bridge created on each of my cluster
nodes i.e. eth0. When I insert NIC for private network which has bridge as
eth1, I get a error that eth1 bridge does not exist and the deployment
fails.eth0 acts as a bridge between my public network and the network
interfaces of VMs. This works fine.

I want that a second NIC can be added to the VMs but it fails because of the
reason mentioned above.(there is no eth1 bidge).

Regards,
Prakhar

On Wed, Apr 6, 2011 at 9:18 PM, Jaime Melis jme...@opennebula.org wrote:

 Hi Prakhar,

 The scenario you've described is very easily achievable, you only need to
 create another private network vnet instance (created with the onevnet
 utility) and add two NIC sections per VM, one for the public NIC and one for
 the private one.

 It has one drawback, though, if you do this you will not be able to use the
 ebtables hook for network isolation, therefore someone using one of your VMs
 might be able to do MAC spoofing. But other than that it should work
 perfectly.

 cheers,
 Jaime

 On Mon, Apr 4, 2011 at 12:24 PM, Prakhar Srivastava prakhar@gmail.com
  wrote:

 Hi,
 By private networks, I mean the virtual network created by opennebula
 onevnet utility. Consider the scenario where I have 4 VMs running in my
 opennebula cloud setup. All of them has  a public IP (allocated from a
 virtual network created by using onevnet utility) thats accessible from my
 network(LAN) . Its easy enough to access because it falls under the same
 network in which I am. What if I want to attach another interface to the
 VMs, so that I can assign private IPs to them .This is handy if you want to
 have more VMs than the number of public IPs available to you. Hope this
 makes sense.
 My question i do I need to have another physical NIC on all my cluster
 nodes for this.If not, please suggest a solution.

 Regards,
 Prakhar

 On Mon, Apr 4, 2011 at 11:33 AM, Prakhar Srivastava 
 prakhar@gmail.com wrote:

 Hi,
 I wanted to set up private networks for VMs in my opennebula setup. Is it
 necessary to have two physical NICs on the cluster nodes for setting private
 networks. If yes, is there any alternative to it so that I can use my VMs
 using their private IPs.

 Regards,
 Prakhar



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




 --
 Jaime Melis, Cloud Technology Engineer/Researcher
 Major Contributor
 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] Setting up private networks for VM

2011-04-04 Thread Prakhar Srivastava
Hi,
I wanted to set up private networks for VMs in my opennebula setup. Is it
necessary to have two physical NICs on the cluster nodes for setting private
networks. If yes, is there any alternative to it so that I can use my VMs
using their private IPs.

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


Re: [one-users] Setting up private networks for VM

2011-04-04 Thread Prakhar Srivastava
Hi,
By private networks, I mean the virtual network created by opennebula
onevnet utility. Consider the scenario where I have 4 VMs running in my
opennebula cloud setup. All of them has  a public IP (allocated from a
virtual network created by using onevnet utility) thats accessible from my
network(LAN) . Its easy enough to access because it falls under the same
network in which I am. What if I want to attach another interface to the
VMs, so that I can assign private IPs to them .This is handy if you want to
have more VMs than the number of public IPs available to you. Hope this
makes sense.
My question i do I need to have another physical NIC on all my cluster nodes
for this.If not, please suggest a solution.

Regards,
Prakhar

On Mon, Apr 4, 2011 at 11:33 AM, Prakhar Srivastava
prakhar@gmail.comwrote:

 Hi,
 I wanted to set up private networks for VMs in my opennebula setup. Is it
 necessary to have two physical NICs on the cluster nodes for setting private
 networks. If yes, is there any alternative to it so that I can use my VMs
 using their private IPs.

 Regards,
 Prakhar

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


Re: [one-users] VM remain boot status.

2011-04-04 Thread Prakhar Srivastava
Hi,
Could you please provide the log files : oned.log and virtual machine (that
did not pass the boot state) log file. You can find them in /var/log/one
directory.

Regards,
Prakhar

On Mon, Apr 4, 2011 at 1:24 PM, Khoa Nguyen vankhoa...@gmail.com wrote:

 Hj all.
 First time , when i deploy VM on host. It changes the status from pending
 to running. Then I create the second VM but it remain boot status. I don't
 know why. Anybody know? Help me. Thank you in advance.
 --
 Nguyễn Vũ Văn Khoa
 Đại học Khoa Học Tự Nhiên TP HCM



 ___
 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] mysql support not compiled ?

2011-04-04 Thread Prakhar Srivastava
Hi,
You will need the mysql C++ development library package installed for mysql
support to be compiled with opennebula.You can install it from any standard
repository depending upon the linux distribution you are working on.

Regards,
Prakhar

On Mon, Apr 4, 2011 at 5:45 PM, Zeeshan Ali Shah zas...@pdc.kth.se wrote:

 with mysql=yes i am getting this

 include/MySqlDB.h:37:19: error: mysql.h: No such file or directory
 include/MySqlDB.h:82: error: ISO C++ forbids declaration of 'MYSQL' with no
 type
 include/MySqlDB.h:82: error: expected ';' before '*' token


 but i could not find mysql.h  ?  both in 2.0.1 and 2.2

 any hint ?




 --

 --
 Regards

 Zeeshan Ali Shah
 System Administrator
 PDC-Center for High Performance Computing
 KTH-Royal Institute of Technology , Sweden
 +46 8 790 9115



 ___
 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] Xen Vm has failed

2011-01-22 Thread Prakhar Srivastava
Hi,
try clearing the entries in /root/.ssh/known_hosts file and ssh into the
head node. Add the key this time when prompted.
Run the onevm create command .

Prakhar

On Sat, Jan 22, 2011 at 12:09 PM, priya opennebula 
priya.openneb...@gmail.com wrote:

 Hi,

 I created a VM in another system using the image in head node.

 [root@head2 ~]# onevm list
   ID USER NAME   STAT  CPU MEMHOSTNAMETIME
0 oneadmin   ttylinuxfail   0  0
 node4   08 22:25:26

 The following is the vm log

 Tue Nov 23 15:49:35 2010 [DiM][I]: New VM state is ACTIVE.
 Tue Nov 23 15:49:35 2010 [LCM][I]: New VM state is PROLOG.
 Tue Nov 23 15:49:35 2010 [VM][I]: Virtual Machine has no context
 Tue Nov 23 15:49:36 2010 [TM][I]: Command execution fail:
 /srv/cloud/one/oneadmin/lib/tm_commands/ssh/tm_clone.sh
 head2:/srv/cloud/one/oneadmin/images/virt_m.img
 node4:/srv/cloud/one/oneadmin/var//0/images/disk.0
 Tue Nov 23 15:49:36 2010 [TM][I]: STDERR follows.
 Tue Nov 23 15:49:36 2010 [TM][I]: ERROR MESSAGE --8--
 Tue Nov 23 15:49:36 2010 [TM][I]: Host key verification failed.
 Tue Nov 23 15:49:36 2010 [TM][I]: ERROR MESSAGE --8--
 Tue Nov 23 15:49:36 2010 [TM][I]: ExitCode: 1
 Tue Nov 23 15:49:36 2010 [TM][I]: tm_clone.sh:
 head2:/srv/cloud/one/oneadmin/images/virt_m.img
 node4:/srv/cloud/one/oneadmin/var//0/images/disk.0
 Tue Nov 23 15:49:36 2010 [TM][I]: tm_clone.sh: DST:
 /srv/cloud/one/oneadmin/var//0/images/disk.0
 Tue Nov 23 15:49:36 2010 [TM][I]: tm_clone.sh: Creating directory
 /srv/cloud/one/oneadmin/var//0/images
 Tue Nov 23 15:49:36 2010 [TM][I]: tm_clone.sh: Executed ssh node4 mkdir -p
 /srv/cloud/one/oneadmin/var//0/images.
 Tue Nov 23 15:49:36 2010 [TM][I]: tm_clone.sh: Cloning
 head2:/srv/cloud/one/oneadmin/images/virt_m.img
 Tue Nov 23 15:49:36 2010 [TM][I]: tm_clone.sh: ERROR: Command scp
 head2:/srv/cloud/one/oneadmin/images/virt_m.img
 node4:/srv/cloud/one/oneadmin/var//0/images/disk.0 failed.
 Tue Nov 23 15:49:36 2010 [TM][I]: tm_clone.sh: ERROR: Host key verification
 failed.
 Tue Nov 23 15:49:36 2010 [TM][E]: Error excuting image transfer script:
 Host key verification failed.
 Tue Nov 23 15:49:37 2010 [DiM][I]: New VM state is FAILED
 Tue Nov 23 15:49:37 2010 [TM][W]: Ignored: LOG - 0 tm_delete.sh: Deleting
 /srv/cloud/one/oneadmin/var//0/images

 Tue Nov 23 15:49:37 2010 [TM][W]: Ignored: LOG - 0 tm_delete.sh: Executed
 ssh node4 rm -rf /srv/cloud/one/oneadmin/var//0/images.

 Tue Nov 23 15:49:37 2010 [TM][W]: Ignored: TRANSFER SUCCESS 0 -


 ttylinux.one has the following

 NAME   = ttylinux
 CPU= 0.1
 MEMORY = 64


 DISK   = [
   source   = /srv/cloud/one/oneadmin/images/virt_m.img,
   target   = hda,
   readonly = no ]

 NIC= [
   NETWORK = Small network ]

 FEATURES=[ acpi=no ]

 #CONTEXT = [
 #hostname= $NAME,
 #ip_public   = 192.168.100.72,
 #files  = /root/.ssh/id_rsa.pub,
 #target  = hdc,
 #root_pubkey = id_dsa.pub,
 #username= root,
 #user_pubkey = id_dsa.pub
 #]


 Can anyone help me come out of this error?


 regards,

 priya

 ___
 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] Can't ssh to my vm but ttylinux can

2011-01-15 Thread Prakhar Srivastava
Hi,
Any custom image used should be prepared for contextualization. The ttylinux
image is already pre-configured for it. You can check out
theContextualization documentation on opennebula site.

Regards,
Prakhar

On Sun, Jan 16, 2011 at 12:11 AM, Ratchakrit Seriamnuai len...@gmail.comwrote:

 I used virt-manager to create my image file and try to run with opennebula.
 State of vm is runn but can't ssh to it I already install opennssh-server.
 But can ssh to ttylinux
 what should I do ?
 ___
 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] Difficulty in accessing the virtual instance

2010-12-20 Thread Prakhar Srivastava
',
]
vif = [
' mac=02:00:c0:a8:91:44,ip=192.168.145.68,bridge=eth0',
]
--
I have only used the file: driver . With :tap:aio, I get the above error.
Please advice.

On Thu, Dec 16, 2010 at 6:35 PM, daniel.moldo...@cs.utcluj.ro wrote:

 I had the same problem with the IP assignment.

 Contextualization  must be used in order to be able to assign the desired
 IP to the virtual machine. The contextualization script reads the MAC of
 the VM(opennebula assigns the MAC you have specified) and based on the MAC
 fields it assigns an IP. The script must be places inside your virtual
 machine.

 Look at http://www.opennebula.org/documentation:rel2.2:cong and
 http://www.opennebula.org/documentation:rel2.0:vmg to

 Regards,
 Daniel

 În Joi, Decembrie 16, 2010 2:35 pm, Prakhar Srivastava a scris:
  Hi,
  I am trying to install a opennebula cloud. I have one front end with
  ubuntu installed. I have successfully installed opennebula. I am able to
  run instances but cannot access them using the IP given in the network
  template file.. Following is my VM template file.
 
  NAME   = test-vm
  MEMORY = 256
  CPU= 1
 
 
  OS = [ KERNEL = /boot/vmlinuz-2.6.32-5-xen-amd64,
  INITRD = /boot/initrd.img-2.6.32-5-xen-amd64,
  ROOT   = /dev/xvda,
  KERNEL_CMD = ro xencons=tty console=tty1]
 
 
  # OS image, mapped to sda.
  DISK = [ IMAGE  = Debian Lenny,
  TARGET = xvda,
  DRIVER = file:,
  READONLY   = no ]
 
 
  # First DATABLOCK image, mapped to sde
  #DISK = [ IMAGE = Debian ]
 
 
  # Second DATABLOCK image, mapped to sdf
  #DISK = [ IMAGE = Experiment scripts ]
 
 
  # swap, sdd
  DISK = [ TYPE = swap,
  SIZE = 1024,
  TARGET   = sdb,
  READONLY = no,
  DRIVER   = file: ]
 
 
  #DISK = [ TYPE   = fs,
  # SIZE   = 4096,
  # FORMAT = ext3,
  # SAVE   = yes,
  # TARGET = sdg ]
 
 
  NIC=[NETWORK=Public1]
 
 
  --
  The network file is as follows
  NAME = Public1
  TYPE = FIXED
 
 
  BRIDGE = eth0
 
 
  LEASES = [IP=192.168.145.68]
 
 
  ---
  In opennebula , there is no option for specifying gateway, broadcast,
  netmask and dns server. How these values are communicated to the instance
  at boot time. I would like to know how networking is managed by
 opennebula
   front-end.
 
  Prakhar
  ___
  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] Difficulty in accessing the virtual instance

2010-12-16 Thread Prakhar Srivastava
Hi,
I am trying to install a opennebula cloud. I have one front end with ubuntu
installed. I have successfully installed opennebula. I am able to run
instances but cannot access them using the IP given in the network template
file.. Following is my VM template file.

NAME   = test-vm
MEMORY = 256
CPU= 1

OS = [ KERNEL = /boot/vmlinuz-2.6.32-5-xen-amd64,
   INITRD = /boot/initrd.img-2.6.32-5-xen-amd64,
   ROOT   = /dev/xvda,
   KERNEL_CMD = ro xencons=tty console=tty1]

# OS image, mapped to sda.
DISK = [ IMAGE  = Debian Lenny,
 TARGET = xvda,
 DRIVER = file:,
 READONLY   = no ]

# First DATABLOCK image, mapped to sde
#DISK = [ IMAGE = Debian ]

# Second DATABLOCK image, mapped to sdf
#DISK = [ IMAGE = Experiment scripts ]

# swap, sdd
DISK = [ TYPE = swap,
 SIZE = 1024,
 TARGET   = sdb,
 READONLY = no,
 DRIVER   = file: ]

#DISK = [ TYPE   = fs,
# SIZE   = 4096,
# FORMAT = ext3,
# SAVE   = yes,
# TARGET = sdg ]

NIC=[NETWORK=Public1]

--
The network file is as follows
NAME = Public1
TYPE = FIXED

BRIDGE = eth0

LEASES = [IP=192.168.145.68]

---
In opennebula , there is no option for specifying gateway, broadcast,
netmask and dns server. How these values are communicated to the instance at
boot time. I would like to know how networking is managed by opennebula
front-end.

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