[one-users] [Fwd: Re: Opennebula development question]

2010-11-18 Thread Daniel . MOLDOVAN


Thanks to all for the answers.

And i have a question for opennebula developement. Why in
/one/tm_commands/ssh/tm_context.sh, the temporary directory is
TMP_DIR="$ONE_LOCATION/var/$DST_HASH" ? Should not be /tmp/$DST_HASH?
Because usually oneadmin does not have access to create folders in var in
the case opennebula is installed system wide as in my case(as a result
from express install).

Regards,
Daniel

> Hi, I'm new to this so I might be wrong, but I'm going to try to give a
> few answers below... hopefully someone will correct me if needed.
>
> El 18/11/10 17:27, daniel.moldo...@cs.utcluj.ro escribió:
>
>> Hy,
>>
>>
>> Is there any method of assigning a fixed/static IP to a virtual
>> machine? I have tried anything, even creating a virtual network with
>> only one IP as lease like below and assign this network to the virtual
>> machine in the vm template.
>>
>> NAME = "VM2_net"
>> TYPE = FIXED
>> BRIDGE = virbr0
>> LEASES = [IP=192.168.122.23]
>>
>
> I guess you have tried including the ip in the NIC section of the VM
> template? And had a look to http://opennebula.org/documentation:rel2.0:vgg
>
> NIC = [
> network = "name_of_the_virtual_network",   #Optional, XEN, KVM ip  =
> "ip_address",#Optional, XEN, KVM
> bridge  = "name_of_bridge_to_bind_if", #Optional, XEN, KVM target  =
> "device_name_to_map_if", #Optional, KVM
> mac = "HW_address",#Optional, XEN, KVM script  =
> "path_to_script_to_bring_up_if"] #Optional, KVM
>
>
> You might need to use the contextualization feature as well:
> http://opennebula.org/documentation:rel2.0:cong
>
>
>
>> Nomather what i try, the virtual machine will always get a random IP
>> located in the subnet of the virbr0 bridge. Although using onevm show,
>> the IP i have requested is reported as assigned, inside the virtual
>> machine things are different.
>>
>> Can there be issues regarding the host/guest OS? I am running CentOS as
>>  host and currently experimenting with Ubuntu JeOs and Desktop editions
>> as guest systems.The network configuration inside the hosts states that
>> the IP is assigned by DHCP.
>>
> Another way may be to configure your guests directly with the fixed IP
> address you want, but this is not so elegant as letting opennebula do it
> for you, of course.
>>
>> P.S. And just of curiosity(i am new to bridging/networking) how
>> difficult it is to perform some bridging or connection in order to be
>> able to ping the virtual machine from any opennebula node or client, not
>> just from the current host of the virtual machine?
> Not too difficult but it can get tricky the first time. You may need to
> look on http://wiki.libvirt.org/page/Networking
> if you're using kvm, to check that libvirt is correctly setup for that.
>
> Good luck,
>
>
> Hector
>
>>
>> Thank you,
>> Daniel
>>
>>
>> ___
>> Users mailing list
>> Users@lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>
>
> --
> Hector
> ___
> 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] Source RPM package

2010-11-18 Thread Pham Kim Long
Actually I was asking for the source package, as I need to fix some issues I 
found with the VMware driver.

Thanks
Long

-Original Message-
From: daniel.moldo...@cs.utcluj.ro [mailto:daniel.moldo...@cs.utcluj.ro] 
Sent: Friday, November 19, 2010 4:11 AM
To: Phạm Kim Long
Cc: users@lists.opennebula.org
Subject: Re: [one-users] Source RPM package


Extracted from Opennebula express installer( the CentOs install file)

http://dev.opennebula.org/attachments/download/222/opennebula-2.0-1.x86_64.rpm
http://dev.opennebula.org/attachments/download/223/opennebula-2.0-1.i386.rpm

În Joi, Noiembrie 18, 2010 9:31 pm, Pham Kim Long a scris:
> Hi Jaime,
>
>
> It's for CentOS 5.5.
>
>
> Thanks
> Long
>
>
> From: j.me...@gmail.com [mailto:j.me...@gmail.com] On Behalf Of Jaime 
> Melis
> Sent: Friday, November 19, 2010 12:38 AM
> To: Phạm Kim Long
> Cc: users@lists.opennebula.org
> Subject: Re: [one-users] Source RPM package
>
>
> Hello,
>
>
> for what distribution do you want the source package?
>
> regards, Jaime
> On Thu, Nov 18, 2010 at 1:03 PM, Pham Kim Long 
> mailto:lon...@fpt.net>> wrote:
> Hi
>
>
> Is there a source RPM package available for ONE 2.0? I looked at 
> http://dev.opennebula.org/projects/packages/files
> and found only 2.0 beta source.
>
> Thanks OpenNebula team for the great work.
> Long
>
>
>
> ___
> 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@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Source RPM package

2010-11-18 Thread Daniel . MOLDOVAN

Extracted from Opennebula express installer( the CentOs install file)

http://dev.opennebula.org/attachments/download/222/opennebula-2.0-1.x86_64.rpm
http://dev.opennebula.org/attachments/download/223/opennebula-2.0-1.i386.rpm

În Joi, Noiembrie 18, 2010 9:31 pm, Pham Kim Long a scris:
> Hi Jaime,
>
>
> It's for CentOS 5.5.
>
>
> Thanks
> Long
>
>
> From: j.me...@gmail.com [mailto:j.me...@gmail.com] On Behalf Of Jaime
> Melis
> Sent: Friday, November 19, 2010 12:38 AM
> To: Phạm Kim Long
> Cc: users@lists.opennebula.org
> Subject: Re: [one-users] Source RPM package
>
>
> Hello,
>
>
> for what distribution do you want the source package?
>
> regards, Jaime
> On Thu, Nov 18, 2010 at 1:03 PM, Pham Kim Long
> mailto:lon...@fpt.net>> wrote:
> Hi
>
>
> Is there a source RPM package available for ONE 2.0? I looked at
> http://dev.opennebula.org/projects/packages/files
> and found only 2.0 beta source.
>
> Thanks OpenNebula team for the great work.
> Long
>
>
>
> ___
> 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@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] VM Templates

2010-11-18 Thread Ruben S. Montero
Hi Luca,

DRIVER attribute is not included in the last release of OpenNebula 2.0 It is
in the one-2.0 branch. You can download it form the fir repo, the fix will
be distributed in the next maintenance release (at the end of this month)

Cheers

Ruben

On Thu, Nov 18, 2010 at 6:05 PM, Luca Lorenzini wrote:

> @Upendra Moturi: the setting of the vnc port is based on the VMID and it's
> unique. Also i havent any other applications or vms using vnc.
>
> I think i found the problem: I'm using qcow2 image format to save disk
> space and I noticed that the DRIVER attribute is discarded in deployment
> file creation and i'm not able to use qcow2 format for my images. Without
> this i cant use images created with backing_file either. I put the  name='qemu' type='qcow2' /> by hand in the deployment file and deploy it
> manually and the image boot.
> To do this i left my "not-booting-vm" running so the link to the image
> wasnt deleted, i change few things in the deployment.0 file (the name, the
> vnc port, and i've add the driver tag) and used "virsh create deployment.0"
> command. The vm works fine and use the image with backing_file option.
>
> I hope this feature will be fixed asap!
>
> Here my template, deployment file generated by opennebula, the correct one,
> and the virsh dumpxml output.
>
>
> Luca
>
>  VM TEMPLATE FILE ~
>
>
> NAME   = ubuntu.qcow2
> MEMORY = 512
> CPU=0.5
>
> OS = [
> BOOT="hd",
> ROOT="hda"
> ]
>
> DISK = [
> TYPE= "disk",
> DRIVER="qcow2",
> SOURCE = "/public/luca/ubuntu10.qcow2",
> TARGET = "hda",
> CLONE = "no",
> SAVE = "no"
> ]
>
> INPUT = [ type = "tablet", bus = "usb" ]
>
> GRAPHICS = [TYPE = "vnc", LISTEN = "localhost", port="5901"]
> NIC= [ NETWORK = "private" ]
>
> FEATURES=[ acpi="no" ]
>
>
>  DEPLOYMENT FILE ~
>
> 
> one-61
> 524288
> 
> hvm
> 
> 
> 
> /usr/bin/kvm
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
>
>
>  WORKING DEPLOYMENT FILE ~~
>
> 
> one-test #Changed the name
> 524288
> 
> hvm
> 
> 
> 
> /usr/bin/kvm
> 
>   #Added this line
> 
> 
> 
> 
> 
> 
> 
>   #Changed vnc
> port
> 
> 
> 
> 
> 
> 
>
>
>
>  VIRSH DUMPXML # ~~~
>
> **
> 
>   one-test
>   98cbf252-5f3c-005a-1b29-a66fad8882d9
>   524288
>   524288
>   1
>   
> hvm
> 
>   
>   
> 
>   
>   
>   destroy
>   restart
>   destroy
>   
> /usr/bin/kvm
> 
>   
>   
>   
> 
> 
>   
>   
>   
> 
> 
> 
> 
> 
>   
> 
>   
>   
> libvirt-98cbf252-5f3c-005a-1b29-a66fad8882d9
> libvirt-98cbf252-5f3c-005a-1b29-a66fad8882d9
>   
> 
>
>
> On Thu, Nov 18, 2010 at 9:56 AM, Upendra Moturi wrote:
>
>> Can you check libvirt logs of host.
>> Generally the below message comes when there is address already in use(vnc
>> port).
>> error: monitor socket did not show up.: Connection refused
>> If change the vncport and try.
>>
>>
>> On Thu, Nov 18, 2010 at 2:15 PM, Ruben Diez  wrote:
>>
>>> Try to comment the "GRAPHICS " stuff Do it works for this case??
>>>
>>> Regards
>>>
>>> Luca Lorenzini escribió:
>>>
 I've some problems to create the exact vm template for any distribution
 different from Ubuntu. I want to try OpenSuse for my vm's images but or i
 get status failed [1] o if I delete the  KERNEL variable in the template I
 get "No bootable device". the image isnt corrupted, infact i can use it
 using kvm from console (kvm -hda /public/images/osuse.qcow2 -m 1024).
 Some suggestions?

 PS: It's possible to add in the website some tested and working
 templates?


 [1] ~~~ vm.log ~

 Wed Nov 17 17:29:15 2010 [VMM][I]: Generating deployment file:
 /var/lib/one/26/deployment.0
 Wed Nov 17 17:29:47 2010 [VMM][I]: Command execution fail:
 /tmp/one/vmm/kvm/deploy /var/lib/one//26/images/deployment.0
 Wed Nov 17 17:29:47 2010 [VMM][I]: STDERR follows.
 Wed Nov 17 17:29:47 2010 [VMM][I]: error: Failed to create domain from
 /var/lib/one//26/images/deployment.0
 Wed Nov 17 17:29:47 2010 [VMM][I]: error: monitor socket did not show
 up.: Connection refused
 Wed Nov 17 17:29:47 2010 [VMM][I]: ExitCode: 255
 Wed Nov 17 17:29:47 2010 [VMM][E]: Error deploying virtual machine
 Wed Nov 17 17:29:48 2010 [DiM][I]: New VM state is FAILED

 ~~~ vm template ~

 NAME   = osuse test
 MEMORY =1024
 CPU=1

 OS = [
BOOT="hd",
KERNEL="/vmlinuz", # i made a link on / pointing at
 /boot/"kernel-file"

Re: [one-users] Source RPM package

2010-11-18 Thread Pham Kim Long
Hi Jaime,

It's for CentOS 5.5.

Thanks
Long

From: j.me...@gmail.com [mailto:j.me...@gmail.com] On Behalf Of Jaime Melis
Sent: Friday, November 19, 2010 12:38 AM
To: Phạm Kim Long
Cc: users@lists.opennebula.org
Subject: Re: [one-users] Source RPM package

Hello,

for what distribution do you want the source package?

regards,
Jaime
On Thu, Nov 18, 2010 at 1:03 PM, Pham Kim Long 
mailto:lon...@fpt.net>> wrote:
Hi

Is there a source RPM package available for ONE 2.0? I looked at
http://dev.opennebula.org/projects/packages/files
and found only 2.0 beta source.

Thanks OpenNebula team for the great work.
Long


___
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] Source RPM package

2010-11-18 Thread Jaime Melis
Hello,

for what distribution do you want the source package?

regards,
Jaime

On Thu, Nov 18, 2010 at 1:03 PM, Pham Kim Long  wrote:

>  Hi
>
>
>
> Is there a source RPM package available for ONE 2.0? I looked at
>
> http://dev.opennebula.org/projects/packages/files
>
> and found only 2.0 beta source.
>
>
>
> Thanks OpenNebula team for the great work.
>
> Long
>
>
>
> ___
> 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] VM Templates

2010-11-18 Thread Luca Lorenzini
@Upendra Moturi: the setting of the vnc port is based on the VMID and it's
unique. Also i havent any other applications or vms using vnc.

I think i found the problem: I'm using qcow2 image format to save disk space
and I noticed that the DRIVER attribute is discarded in deployment file
creation and i'm not able to use qcow2 format for my images. Without this i
cant use images created with backing_file either. I put the  by hand in the deployment file and deploy it
manually and the image boot.
To do this i left my "not-booting-vm" running so the link to the image wasnt
deleted, i change few things in the deployment.0 file (the name, the vnc
port, and i've add the driver tag) and used "virsh create deployment.0"
command. The vm works fine and use the image with backing_file option.

I hope this feature will be fixed asap!

Here my template, deployment file generated by opennebula, the correct one,
and the virsh dumpxml output.


Luca

 VM TEMPLATE FILE ~


NAME   = ubuntu.qcow2
MEMORY = 512
CPU=0.5

OS = [
BOOT="hd",
ROOT="hda"
]

DISK = [
TYPE= "disk",
DRIVER="qcow2",
SOURCE = "/public/luca/ubuntu10.qcow2",
TARGET = "hda",
CLONE = "no",
SAVE = "no"
]

INPUT = [ type = "tablet", bus = "usb" ]

GRAPHICS = [TYPE = "vnc", LISTEN = "localhost", port="5901"]
NIC= [ NETWORK = "private" ]

FEATURES=[ acpi="no" ]


 DEPLOYMENT FILE ~


one-61
524288

hvm



/usr/bin/kvm


















 WORKING DEPLOYMENT FILE ~~


one-test #Changed the name
524288

hvm



/usr/bin/kvm

  #Added this line







  #Changed vnc
port









 VIRSH DUMPXML # ~~~

**

  one-test
  98cbf252-5f3c-005a-1b29-a66fad8882d9
  524288
  524288
  1
  
hvm

  
  

  
  
  destroy
  restart
  destroy
  
/usr/bin/kvm

  
  
  


  
  
  





  

  
  
libvirt-98cbf252-5f3c-005a-1b29-a66fad8882d9
libvirt-98cbf252-5f3c-005a-1b29-a66fad8882d9
  



On Thu, Nov 18, 2010 at 9:56 AM, Upendra Moturi wrote:

> Can you check libvirt logs of host.
> Generally the below message comes when there is address already in use(vnc
> port).
> error: monitor socket did not show up.: Connection refused
> If change the vncport and try.
>
>
> On Thu, Nov 18, 2010 at 2:15 PM, Ruben Diez  wrote:
>
>> Try to comment the "GRAPHICS " stuff Do it works for this case??
>>
>> Regards
>>
>> Luca Lorenzini escribió:
>>
>>> I've some problems to create the exact vm template for any distribution
>>> different from Ubuntu. I want to try OpenSuse for my vm's images but or i
>>> get status failed [1] o if I delete the  KERNEL variable in the template I
>>> get "No bootable device". the image isnt corrupted, infact i can use it
>>> using kvm from console (kvm -hda /public/images/osuse.qcow2 -m 1024).
>>> Some suggestions?
>>>
>>> PS: It's possible to add in the website some tested and working
>>> templates?
>>>
>>>
>>> [1] ~~~ vm.log ~
>>>
>>> Wed Nov 17 17:29:15 2010 [VMM][I]: Generating deployment file:
>>> /var/lib/one/26/deployment.0
>>> Wed Nov 17 17:29:47 2010 [VMM][I]: Command execution fail:
>>> /tmp/one/vmm/kvm/deploy /var/lib/one//26/images/deployment.0
>>> Wed Nov 17 17:29:47 2010 [VMM][I]: STDERR follows.
>>> Wed Nov 17 17:29:47 2010 [VMM][I]: error: Failed to create domain from
>>> /var/lib/one//26/images/deployment.0
>>> Wed Nov 17 17:29:47 2010 [VMM][I]: error: monitor socket did not show
>>> up.: Connection refused
>>> Wed Nov 17 17:29:47 2010 [VMM][I]: ExitCode: 255
>>> Wed Nov 17 17:29:47 2010 [VMM][E]: Error deploying virtual machine
>>> Wed Nov 17 17:29:48 2010 [DiM][I]: New VM state is FAILED
>>>
>>> ~~~ vm template ~
>>>
>>> NAME   = osuse test
>>> MEMORY =1024
>>> CPU=1
>>>
>>> OS = [
>>>BOOT="hd",
>>>KERNEL="/vmlinuz", # i made a link on / pointing at
>>> /boot/"kernel-file"
>>>INITRD="/initrd", #i made a link on / pointing at
>>> /boot/"initrd-image-file"
>>>ROOT="sda2" #mount execution on the vm states  "/dev/sda2 on /
>>> type ext4"
>>> ]
>>>
>>> DISK = [
>>>SOURCE = "/public/images/osuse.qcow2",
>>>TARGET = "sda",
>>>CLONE = "no",
>>>SAVE = "no",
>>>   DRIVER = "qcow2"
>>> ]
>>>
>>>
>>> INPUT = [ type = "tablet", bus = "usb" ]
>>> GRAPHICS = [TYPE = "vnc", LISTEN = "localhost"]
>>>
>>> FEATURES=[ acpi="no" ]
>>>
>>>
>>> ~~~ generated deployment ~
>>>
>>>
>>> 
>>>one-26
>>>524288
>>>
>>>hvm
>>>/vmlinuz
>>>/initrd
>>>r

Re: [one-users] Virtual Machine Static IP Address

2010-11-18 Thread hector
Hi, I'm new to this so I might be wrong, but I'm going to try to give a
few answers below... hopefully someone will correct me if needed.

El 18/11/10 17:27, daniel.moldo...@cs.utcluj.ro escribió:
> Hy,
> 
> Is there any method of assigning a fixed/static IP to a virtual machine? I
> have tried anything, even creating a virtual network with only one IP as
> lease like below and assign this network to the virtual machine in the vm
> template.
> 
> NAME = "VM2_net"
> TYPE = FIXED
> BRIDGE = virbr0
> LEASES = [IP=192.168.122.23]

I guess you have tried including the ip in the NIC section of the VM
template? And had a look
to http://opennebula.org/documentation:rel2.0:vgg

NIC = [
  network = "name_of_the_virtual_network",   #Optional, XEN, KVM
  ip  = "ip_address",#Optional, XEN, KVM
  bridge  = "name_of_bridge_to_bind_if", #Optional, XEN, KVM
  target  = "device_name_to_map_if", #Optional, KVM
  mac = "HW_address",#Optional, XEN, KVM
  script  = "path_to_script_to_bring_up_if"] #Optional, KVM

You might need to use the contextualization feature as well:
http://opennebula.org/documentation:rel2.0:cong


> Nomather what i try, the virtual machine will always get a random IP
> located in the subnet of the virbr0 bridge. Although using onevm show, the
> IP i have requested is reported as assigned, inside the virtual machine
> things are different.
> 
> Can there be issues regarding the host/guest OS? I am running CentOS as
> host and currently experimenting with Ubuntu JeOs and Desktop editions as
> guest systems.The network configuration inside the hosts states that the
> IP is assigned by DHCP.
Another way may be to configure your guests directly with the fixed IP
address you want, but this is not so elegant as letting opennebula do it
for you, of course.
> 
> P.S. And just of curiosity(i am new to bridging/networking) how difficult
> it is to perform some bridging or connection in order to be able to ping 
> the virtual machine from any opennebula node or client, not just from the
> current host of the virtual machine?
Not too difficult but it can get tricky the first time. You may need to
look on
http://wiki.libvirt.org/page/Networking
if you're using kvm, to check that libvirt is correctly setup for that.

Good luck,

Hector
> 
> Thank you,
> Daniel
> 
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> 


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


[one-users] Virtual Machine Static IP Address

2010-11-18 Thread Daniel . MOLDOVAN
Hy,

Is there any method of assigning a fixed/static IP to a virtual machine? I
have tried anything, even creating a virtual network with only one IP as
lease like below and assign this network to the virtual machine in the vm
template.

NAME = "VM2_net"
TYPE = FIXED
BRIDGE = virbr0
LEASES = [IP=192.168.122.23]

Nomather what i try, the virtual machine will always get a random IP
located in the subnet of the virbr0 bridge. Although using onevm show, the
IP i have requested is reported as assigned, inside the virtual machine
things are different.

Can there be issues regarding the host/guest OS? I am running CentOS as
host and currently experimenting with Ubuntu JeOs and Desktop editions as
guest systems.The network configuration inside the hosts states that the
IP is assigned by DHCP.

P.S. And just of curiosity(i am new to bridging/networking) how difficult
it is to perform some bridging or connection in order to be able to ping 
the virtual machine from any opennebula node or client, not just from the
current host of the virtual machine?

Thank you,
Daniel

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


Re: [one-users] Match-making scheduler question

2010-11-18 Thread Ignacio M. Llorente
Hi

>
>
> I'm writing a survey on Clouds for research purposes. I have some questions
> related to the match-making scheduler that OpenNebula uses:
>
> 1. it's not clear for me if the placement policies can be configured per VM
> type or per VM instance, could you clarify this?
>

The Requirements and rank expressions are given in the VM description file
(template), so  they can be configured per VM instance. However when using a
cloud interface, the user can not specify these attributes and so are
defined by the cloud administrator per VM type.

>
> 2. are the placement policies configurable per cloud client or for the
> whole cloud platform?
>

Both scenarios can be implemented.

>
> 3. is it possible to configure the policies in such a way as to distribute
> a client's VMs across the physical hosts in such a way as to reduce the
> probability of platform failure as a result of hardware failure? Is this
> do-able without modifying the source code of OpenNebula?
>

Yes

Cheers

>
>
> Thanks very much,
>
> Adrian Muresan
>
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>


-- 
Ignacio M. Llorente, Full Professor (Catedratico):
http://dsa-research.org/llorente
DSA Research Group:  web http://dsa-research.org and blog
http://blog.dsa-research.org
OpenNebula Open Source Toolkit for Cloud Computing:
http://www.OpenNebula.org
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] Match-making scheduler question

2010-11-18 Thread Adrian Muresan
Hi,

I'm writing a survey on Clouds for research purposes. I have some questions 
related to the match-making scheduler that OpenNebula uses:

1. it's not clear for me if the placement policies can be configured per VM 
type or per VM instance, could you clarify this?

2. are the placement policies configurable per cloud client or for the whole 
cloud platform?

3. is it possible to configure the policies in such a way as to distribute a 
client's VMs across the physical hosts in such a way as to reduce the 
probability of platform failure as a result of hardware failure? Is this 
do-able without modifying the source code of OpenNebula?


Thanks very much,

Adrian Muresan



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


[one-users] Source RPM package

2010-11-18 Thread Pham Kim Long
Hi

Is there a source RPM package available for ONE 2.0? I looked at
http://dev.opennebula.org/projects/packages/files
and found only 2.0 beta source.

Thanks OpenNebula team for the great work.
Long

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


Re: [one-users] VM Templates

2010-11-18 Thread Upendra Moturi
Can you check libvirt logs of host.
Generally the below message comes when there is address already in use(vnc
port).
error: monitor socket did not show up.: Connection refused
If change the vncport and try.

On Thu, Nov 18, 2010 at 2:15 PM, Ruben Diez  wrote:

> Try to comment the "GRAPHICS " stuff Do it works for this case??
>
> Regards
>
> Luca Lorenzini escribió:
>
>> I've some problems to create the exact vm template for any distribution
>> different from Ubuntu. I want to try OpenSuse for my vm's images but or i
>> get status failed [1] o if I delete the  KERNEL variable in the template I
>> get "No bootable device". the image isnt corrupted, infact i can use it
>> using kvm from console (kvm -hda /public/images/osuse.qcow2 -m 1024).
>> Some suggestions?
>>
>> PS: It's possible to add in the website some tested and working templates?
>>
>>
>> [1] ~~~ vm.log ~
>>
>> Wed Nov 17 17:29:15 2010 [VMM][I]: Generating deployment file:
>> /var/lib/one/26/deployment.0
>> Wed Nov 17 17:29:47 2010 [VMM][I]: Command execution fail:
>> /tmp/one/vmm/kvm/deploy /var/lib/one//26/images/deployment.0
>> Wed Nov 17 17:29:47 2010 [VMM][I]: STDERR follows.
>> Wed Nov 17 17:29:47 2010 [VMM][I]: error: Failed to create domain from
>> /var/lib/one//26/images/deployment.0
>> Wed Nov 17 17:29:47 2010 [VMM][I]: error: monitor socket did not show up.:
>> Connection refused
>> Wed Nov 17 17:29:47 2010 [VMM][I]: ExitCode: 255
>> Wed Nov 17 17:29:47 2010 [VMM][E]: Error deploying virtual machine
>> Wed Nov 17 17:29:48 2010 [DiM][I]: New VM state is FAILED
>>
>> ~~~ vm template ~
>>
>> NAME   = osuse test
>> MEMORY =1024
>> CPU=1
>>
>> OS = [
>>BOOT="hd",
>>KERNEL="/vmlinuz", # i made a link on / pointing at
>> /boot/"kernel-file"
>>INITRD="/initrd", #i made a link on / pointing at
>> /boot/"initrd-image-file"
>>ROOT="sda2" #mount execution on the vm states  "/dev/sda2 on / type
>> ext4"
>> ]
>>
>> DISK = [
>>SOURCE = "/public/images/osuse.qcow2",
>>TARGET = "sda",
>>CLONE = "no",
>>SAVE = "no",
>>   DRIVER = "qcow2"
>> ]
>>
>>
>> INPUT = [ type = "tablet", bus = "usb" ]
>> GRAPHICS = [TYPE = "vnc", LISTEN = "localhost"]
>>
>> FEATURES=[ acpi="no" ]
>>
>>
>> ~~~ generated deployment ~
>>
>>
>> 
>>one-26
>>524288
>>
>>hvm
>>/vmlinuz
>>/initrd
>>root=/dev/sda2 
>>
>>
>>
>>/usr/bin/kvm
>>
>>
>>
>>
>>
>>
>>
>> 
>>
>> 
>>
>> ___
>> 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
>



-- 
Thanks and Regards,
Upendra.M
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] VM Templates

2010-11-18 Thread Daniel . MOLDOVAN
Hy,

I have encountered the same problem. Do not specify Kernel because this is
mainly used in conjunction with the XEN hypervisor and it indicates the
physical path to the HOST kernel used to boot the virtual machine, not of
the kernel inside the VM. So if the Host is using Ubuntu, only the Ubuntu
distributions can be loaded by using the Kernel attribute.

And about the no bootable device found, i have avoided it only by:
- defining also Image disk
 example: DISK = [type=cdrom ,
source=/home/utcn/Downloads/jeos-8.04.3-jeos-i386.iso, target=hdb]
- stating that ROOT=hdb and booting from the cdrom. From it i could
install the linux distribution on the "disk" device and then use it as a
normal boot device.


I think that because the virtual disk was not created by opennebula( i
used AQUEMU GUI), it did not recognized it properly in order to boot from
it.

P.S. If anywone has a more elegant solution to this "no bootable device
problem" problem fell free to share.

Thanks,
Daniel


> I've some problems to create the exact vm template for any distribution
> different from Ubuntu. I want to try OpenSuse for my vm's images but or i
> get status failed [1] o if I delete the  KERNEL variable in the template
> I
> get "No bootable device". the image isnt corrupted, infact i can use it
> using kvm from console (kvm -hda /public/images/osuse.qcow2 -m 1024). Some
> suggestions?
>
> PS: It's possible to add in the website some tested and working
> templates?
>
>
> [1] ~~~ vm.log ~
>
>
> Wed Nov 17 17:29:15 2010 [VMM][I]: Generating deployment file:
> /var/lib/one/26/deployment.0
> Wed Nov 17 17:29:47 2010 [VMM][I]: Command execution fail:
> /tmp/one/vmm/kvm/deploy /var/lib/one//26/images/deployment.0
> Wed Nov 17 17:29:47 2010 [VMM][I]: STDERR follows.
> Wed Nov 17 17:29:47 2010 [VMM][I]: error: Failed to create domain from
> /var/lib/one//26/images/deployment.0
> Wed Nov 17 17:29:47 2010 [VMM][I]: error: monitor socket did not show up.:
>  Connection refused
> Wed Nov 17 17:29:47 2010 [VMM][I]: ExitCode: 255
> Wed Nov 17 17:29:47 2010 [VMM][E]: Error deploying virtual machine
> Wed Nov 17 17:29:48 2010 [DiM][I]: New VM state is FAILED
>
>
> ~~~ vm template ~
>
>
> NAME   = osuse test
> MEMORY =1024
> CPU=1
>
>
> OS = [
> BOOT="hd",
> KERNEL="/vmlinuz", # i made a link on / pointing at
> /boot/"kernel-file"
> INITRD="/initrd", #i made a link on / pointing at
> /boot/"initrd-image-file"
> ROOT="sda2" #mount execution on the vm states  "/dev/sda2 on / type
> ext4" ]
>
>
> DISK = [
> SOURCE = "/public/images/osuse.qcow2",
> TARGET = "sda",
> CLONE = "no",
> SAVE = "no",
> DRIVER = "qcow2"
> ]
>
>
>
> INPUT = [ type = "tablet", bus = "usb" ]
> GRAPHICS = [TYPE = "vnc", LISTEN = "localhost"]
>
>
> FEATURES=[ acpi="no" ]
>
>
>
> ~~~ generated deployment ~
>
>
>
> 
> one-26
> 524288
> 
> hvm
> /vmlinuz
> /initrd
> root=/dev/sda2 
> 
> 
> 
> /usr/bin/kvm
> 
> 
> 
> 
> 
> 
> 
> 
> ___
> 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] VM Templates

2010-11-18 Thread Ruben Diez

Try to comment the "GRAPHICS " stuff Do it works for this case??

Regards

Luca Lorenzini escribió:
I've some problems to create the exact vm template for any 
distribution different from Ubuntu. I want to try OpenSuse for my vm's 
images but or i get status failed [1] o if I delete the  KERNEL 
variable in the template I get "No bootable device". the image isnt 
corrupted, infact i can use it using kvm from console (kvm -hda 
/public/images/osuse.qcow2 -m 1024).

Some suggestions?

PS: It's possible to add in the website some tested and working templates?


[1] ~~~ vm.log ~

Wed Nov 17 17:29:15 2010 [VMM][I]: Generating deployment file: 
/var/lib/one/26/deployment.0
Wed Nov 17 17:29:47 2010 [VMM][I]: Command execution fail: 
/tmp/one/vmm/kvm/deploy /var/lib/one//26/images/deployment.0

Wed Nov 17 17:29:47 2010 [VMM][I]: STDERR follows.
Wed Nov 17 17:29:47 2010 [VMM][I]: error: Failed to create domain from 
/var/lib/one//26/images/deployment.0
Wed Nov 17 17:29:47 2010 [VMM][I]: error: monitor socket did not show 
up.: Connection refused

Wed Nov 17 17:29:47 2010 [VMM][I]: ExitCode: 255
Wed Nov 17 17:29:47 2010 [VMM][E]: Error deploying virtual machine
Wed Nov 17 17:29:48 2010 [DiM][I]: New VM state is FAILED

~~~ vm template ~

NAME   = osuse test
MEMORY =1024
CPU=1

OS = [
BOOT="hd",
KERNEL="/vmlinuz", # i made a link on / pointing at 
/boot/"kernel-file"
INITRD="/initrd", #i made a link on / pointing at 
/boot/"initrd-image-file"
ROOT="sda2" #mount execution on the vm states  "/dev/sda2 on / 
type ext4"

]

DISK = [
SOURCE = "/public/images/osuse.qcow2",
TARGET = "sda",
CLONE = "no",
SAVE = "no",
   DRIVER = "qcow2"
]


INPUT = [ type = "tablet", bus = "usb" ]
GRAPHICS = [TYPE = "vnc", LISTEN = "localhost"]

FEATURES=[ acpi="no" ]


~~~ generated deployment ~



one-26
524288

hvm
/vmlinuz
/initrd
root=/dev/sda2 



/usr/bin/kvm











___
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