[one-users] can't livemigrate VMs

2011-06-07 Thread Khoa Nguyen
Hi everyone

I want to live migrate VMs from kvm node to others. However, there have
problem which I can't solve it.
Some information in *vm.log*

Jun  7 14:55:02 2011 [TM][I]: tm_context.sh: Executed "rm -rf
/srv/cloud/one/var//272/images/isofiles".
Tue Jun  7 14:55:02 2011 [LCM][I]: New VM state is BOOT
Tue Jun  7 14:55:02 2011 [VMM][I]: Generating deployment file:
/srv/cloud/one/var/272/deployment.0
Tue Jun  7 14:55:03 2011 [LCM][I]: New VM state is RUNNING
Tue Jun  7 14:55:37 2011 [LCM][I]: New VM state is MIGRATE
Tue Jun  7 14:55:37 2011 [VMM][I]: Command execution fail: 'if [ -x
"/var/tmp/one/vmm/kvm/migrate" ]; then /var/tmp/one/vmm/kvm/migrate one-272
172.29.70.137; else  exit 42; fi'
Tue Jun  7 14:55:37 2011 [VMM][I]: STDERR follows.
Tue Jun  7 14:55:37 2011 [VMM][I]: Connecting to uri: qemu:///system
Tue Jun  7 14:55:37 2011 [VMM][I]: error: Cannot access CA certificate
'/etc/pki/CA/cacert.pem': No such file or directory
Tue Jun  7 14:55:37 2011 [VMM][I]: ExitCode: 1
Tue Jun  7 14:55:37 2011 [VMM][E]: Error live-migrating VM, Connecting to
uri: qemu:///system
Tue Jun  7 14:55:37 2011 [LCM][I]: Fail to life migrate VM. Assuming that
the VM is still RUNNING (will poll VM).

* one.log*



Tue Jun  7 14:55:36 2011 [ReM][D]: VirtualMachineMigrate invoked
Tue Jun  7 14:55:36 2011 [DiM][D]: Live-migrating VM 272
Tue Jun  7 14:55:37 2011 [VMM][D]: Message received: LOG - 272 Command
execution fail: 'if [ -x "/var/tmp/one/vmm/kvm/migrate" ]; then
/var/tmp/one/vmm/kvm/migrate one-272 172.29.70.137;
else  exit 42; fi'

Tue Jun  7 14:55:37 2011 [VMM][D]: Message received: LOG - 272 STDERR
follows.

Tue Jun  7 14:55:37 2011 [VMM][D]: Message received: LOG - 272 Connecting to
uri: qemu:///system

Tue Jun  7 14:55:37 2011 [VMM][D]: Message received: LOG - 272 error: Cannot
access CA certificate '/etc/pki/CA/cacert.pem': No such file or directory

Tue Jun  7 14:55:37 2011 [VMM][D]: Message received: LOG - 272 ExitCode: 1

Tue Jun  7 14:55:37 2011 [VMM][D]: Message received: MIGRATE FAILURE 272
Connecting to uri: qemu:///system

Tue Jun  7 14:55:37 2011 [VMM][D]: Message received: error: Cannot access CA
certificate '/etc/pki/CA/cacert.pem': No such file or directory

Tue Jun  7 14:55:37 2011 [VMM][D]: Message received: ExitCode: 1

Please help me?
Thank you


-- 
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] can't livemigrate VMs

2011-06-07 Thread samuel
You have 2 options:

1) configure SSL connection for qemu, or
2) use ssh as transport for qemu.

To do the second option, which is the easier, you should change the file
kvmrc
LIBVIRT_URI=qemu+ssh:///system
QEMU_PROTOCOL=qemu+ssh

Hope it helps,
Samuel.
On 7 June 2011 10:12, Khoa Nguyen  wrote:

> Hi everyone
>
> I want to live migrate VMs from kvm node to others. However, there have
> problem which I can't solve it.
> Some information in *vm.log*
>
> Jun  7 14:55:02 2011 [TM][I]: tm_context.sh: Executed "rm -rf
> /srv/cloud/one/var//272/images/isofiles".
> Tue Jun  7 14:55:02 2011 [LCM][I]: New VM state is BOOT
> Tue Jun  7 14:55:02 2011 [VMM][I]: Generating deployment file:
> /srv/cloud/one/var/272/deployment.0
> Tue Jun  7 14:55:03 2011 [LCM][I]: New VM state is RUNNING
> Tue Jun  7 14:55:37 2011 [LCM][I]: New VM state is MIGRATE
> Tue Jun  7 14:55:37 2011 [VMM][I]: Command execution fail: 'if [ -x
> "/var/tmp/one/vmm/kvm/migrate" ]; then /var/tmp/one/vmm/kvm/migrate one-272
> 172.29.70.137; else  exit 42; fi'
> Tue Jun  7 14:55:37 2011 [VMM][I]: STDERR follows.
> Tue Jun  7 14:55:37 2011 [VMM][I]: Connecting to uri: qemu:///system
> Tue Jun  7 14:55:37 2011 [VMM][I]: error: Cannot access CA certificate
> '/etc/pki/CA/cacert.pem': No such file or directory
> Tue Jun  7 14:55:37 2011 [VMM][I]: ExitCode: 1
> Tue Jun  7 14:55:37 2011 [VMM][E]: Error live-migrating VM, Connecting to
> uri: qemu:///system
> Tue Jun  7 14:55:37 2011 [LCM][I]: Fail to life migrate VM. Assuming that
> the VM is still RUNNING (will poll VM).
>
> * one.log*
>
>
>
> Tue Jun  7 14:55:36 2011 [ReM][D]: VirtualMachineMigrate invoked
> Tue Jun  7 14:55:36 2011 [DiM][D]: Live-migrating VM 272
> Tue Jun  7 14:55:37 2011 [VMM][D]: Message received: LOG - 272 Command
> execution fail: 'if [ -x "/var/tmp/one/vmm/kvm/migrate" ]; then
> /var/tmp/one/vmm/kvm/migrate one-272 172.29.70.137;
> else  exit 42; fi'
>
> Tue Jun  7 14:55:37 2011 [VMM][D]: Message received: LOG - 272 STDERR
> follows.
>
> Tue Jun  7 14:55:37 2011 [VMM][D]: Message received: LOG - 272 Connecting
> to uri: qemu:///system
>
> Tue Jun  7 14:55:37 2011 [VMM][D]: Message received: LOG - 272 error:
> Cannot access CA certificate '/etc/pki/CA/cacert.pem': No such file or
> directory
>
> Tue Jun  7 14:55:37 2011 [VMM][D]: Message received: LOG - 272 ExitCode: 1
>
> Tue Jun  7 14:55:37 2011 [VMM][D]: Message received: MIGRATE FAILURE 272
> Connecting to uri: qemu:///system
>
> Tue Jun  7 14:55:37 2011 [VMM][D]: Message received: error: Cannot access
> CA certificate '/etc/pki/CA/cacert.pem': No such file or directory
>
> Tue Jun  7 14:55:37 2011 [VMM][D]: Message received: ExitCode: 1
>
> Please help me?
> Thank you
>
>
> --
> 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


[one-users] question about dhcp settings for vm?

2011-06-07 Thread Ou, Yan
Hi All

Can anyone please tell me how to setup dhcp client for KVM based VMS by 
opennebula template?

I have set up the bridging interface br0 through eth0 (which is connected to 
our company network and IP is leased by company dhcp server), and br0 is set as 
dhcp as well.

Now I want our VMS (with registered MAC address in company NAS database) to be 
connected to company network through eth0 and retrieve the IPs from company 
dhcp server. Should I use br0? I have tried a single VM, and it has to use tap 
to get the IP (br0 is used to bridge between tap and eth0). But how to make the 
settings in opennebula network template? I have read some documentations but 
get no luck yet.

Can anyone help me on the settings? Many thanks!

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


Re: [one-users] how to create an internal user.

2011-06-07 Thread Carlos Martín Sánchez
Hi Salma,

It looks like you didn't set-up the environment variables referenced here
[1] for your new account (specially the PATH).

I would recommend you to use the :authentication: simple option in
auth.conf, to authenticate users with the one_auth file contents
(username:password). This way you can play around with the authorization and
then move on to the strongest ssh authentication.

Regards,
Carlos.

[1] http://opennebula.org/documentation:rel2.2:cg#opennebula_users
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org  | cmar...@opennebula.org


2011/6/2 salma rebai 

> hi,
> thank you for your response.
> But i still have problems with user management and some unclear points. In
> fact,  i have Opennebula installed in   a self contained directory.
> if i want to create a new user to opennebula, should that user be really
> created in my System or it is  not necessary.
> I follow this guide [1], i have created a new user in my system, then i
> generated the rsa- key, but i don't understand how to do the extraction of
> public key. the guide mention that it should be done bye the users by using
> the command "oneauth key.." and sent to the administrators. but the user
> have not  this command .
>
>  -bash: oneauth: command not found
>
> I have extracted the key using the oneadmin account, and i create the new
> user with the oneuser create command. the user is added in the  table list,
> and when i execute the command  i have this result
>
>[oneadmin@node020 ~]$ oneauth login salma
>export ONE_AUTH=/data1/opennebula/.one/one_ssh
>[oneadmin@node020 ~]$
>
>
>  but i could not login as the new user to execute opennebula
> fonctionalities.
> what is the problem?? am i doing some thing wrong??
> Can you give me some clarification please.
> thanks in advance.
>
> [1]http://opennebula.org/documentation:rel2.2:users
>
>
> Best regards,
> SALMA.
>
>
> 2011/6/1 Carlos Martín Sánchez 
>
>> Hi,
>>
>> Take a look at these links [1,2].
>>
>> In /lib/one/ruby/simple_permissions.rb (or
>> $ONE_LOCATION/lib/ruby/simple_permissions.rb in a self-contained
>> installation) you have to modify the auth_object method. Assuming you want
>> to give user 7 the same authorization as oneadmin:
>>
>> --- a/src/authm_mad/simple_permissions.rb
>> +++ b/src/authm_mad/simple_permissions.rb
>> @@ -78,7 +78,7 @@ class SimplePermissions
>>  # Authorizes each of the tokens. All parameters are strings. Pub
>>  # means public when "1" and private when "0"
>>  def auth_object(uid, object, id, action, owner, pub)
>> -return true if uid=='0'
>> +return true if (uid=='0' || uid=='7')
>>
>>  auth_result=false
>>
>> Best regards,
>> Carlos.
>>
>> [1] http://opennebula.org/documentation:rel2.2:users
>> [2] http://opennebula.org/documentation:rel2.2:auth
>>
>>
>> --
>> Carlos Martín, MSc
>> Project Major Contributor
>> OpenNebula - The Open Source Toolkit for Cloud Computing
>> www.OpenNebula.org  | cmar...@opennebula.org
>>
>>
>> On Wed, Jun 1, 2011 at 12:24 PM, salma rebai wrote:
>>
>>> Hi all,
>>> I work with Opennbeula2.2. I would know is that possible to create a
>>> second administrator account to opennebula( an internel user). What should I
>>> do to create an internal user to OpenNebula. Is there some configuration in
>>> the auth file to make.
>>> Thanks in advance.
>>>
>>> --
>>> Salma REBAI
>>> Ingénieur Informatique
>>> Mastère Réseaux et Systèmes Multimédia
>>> Ecole Nationale des Sciences Informatiques Univ. Manouba, Tunisie
>>> Institut Télécom SudParis
>>> rebai.sa...@gmail.com
>>>
>>> ___
>>> Users mailing list
>>> Users@lists.opennebula.org
>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>
>>>
>>
>
>
> --
> Salma REBAI
> Ingénieur Informatique
> Mastère Réseaux et Systèmes Multimédia
> Ecole Nationale des Sciences Informatiques Univ. Manouba, Tunisie
> Institut Télécom SudParis
> rebai.sa...@gmail.com
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] question about dhcp settings for vm?

2011-06-07 Thread Olivier Sallou
Hi,
I am not sure to understand your problem, but for DHCP config , on Open
nebula side,
all you need is to define a network, let's say "mycompany", and to
declare a bunch of MAC/IP associations (the ones defined in your dhcp).

At boot, using the "mycompany" network, your VM will be started with one
of the MAC defined in the "mycompany" network definition.
Then, your eth will get an IP from the DHCP (via eth0/br0)

Olivier

Le 6/7/11 11:19 AM, Ou, Yan a écrit :
> Hi All
>
> Can anyone please tell me how to setup dhcp client for KVM based VMS by 
> opennebula template?
>
> I have set up the bridging interface br0 through eth0 (which is connected to 
> our company network and IP is leased by company dhcp server), and br0 is set 
> as dhcp as well.
>
> Now I want our VMS (with registered MAC address in company NAS database) to 
> be connected to company network through eth0 and retrieve the IPs from 
> company dhcp server. Should I use br0? I have tried a single VM, and it has 
> to use tap to get the IP (br0 is used to bridge between tap and eth0). But 
> how to make the settings in opennebula network template? I have read some 
> documentations but get no luck yet.
>
> Can anyone help me on the settings? Many thanks!
>
> Regards
> Yan
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>

-- 
gpg key id: 4096R/326D8438  (pgp.mit.edu)
Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438


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


Re: [one-users] I get the error "[HostPoolInfo] User couldn't be authenticated, aborting call" when I reboot frontend server

2011-06-07 Thread Carlos Martín Sánchez
Hi,

Are you running 'one start' as oneadmin?

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


On Tue, Jun 7, 2011 at 11:37 AM, Amber Jain  wrote:

> Hello,
>
> I'm trying to setup opennebula express 2.2.0 on clean install of ubuntu
> 10.04. I do have access to 2 topologies at the moment. My 2 separate
> (testing purposes) network topologies are:
> 1. Single machine that act both as frontend server and worker node.
> 2. Two machine physical topology (1 frontend server and 1 worker node).
>
> The installation goes fine and even the ttylinux VM enters running state.
> Now when I reboot my frontend server, and try to create a new vm using
> 'onevm create', it remains in 'pending' state and I get this error in
> oned.log:
>
> Wed Jun  8 18:45:39 2011 [ReM][D]: HostPoolInfo method invoked
> Wed Jun  8 18:45:39 2011 [ReM][E]: [HostPoolInfo] User couldn't be
> authenticated, aborting call.
>
> I tried searching google and found a few similar errors posted on mailing
> list but none of it seems to match my setup context.
>
> I'm attaching oned.log with this mail and the log file corresponding to VM
> instance [VM_ID].log is not created as of yet.
> Output of 'onehost list' and 'onevm list': http://pastebin.com/MJJdDZSK
>
> Does anyone knows what could be causing this?
>
> Thanks in advance.
>
> --
> Amber Jain
> http://amberj.devio.us/
>
>
> ___
> 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] startup script should create dir if not present

2011-06-07 Thread Jaime Melis
Hi Robert,

thanks for reporting this, it makes total sense. We will update the package
for the next release.

thanks for the patch!

regards,
Jaime

On Thu, Jun 2, 2011 at 4:01 PM, Robert Schweikert wrote:

> Hi,
>
> IMHO the "one" startup script should create the directory for the pid files
> if the directory is not present. Reason is that /var/run may be located on a
> tmpfs and thus it might go away with every boot. Expecting the sysadmin to
> create the directory every time or writing her/his own script appears to me
> not very user friendly.
>
> Here is the patch I am applying in OBS to build the SUSE package.
>
> --- share/scripts/one.orig
> +++ share/scripts/one
> @@ -17,6 +17,7 @@
>
> #---
> #
>
>  if [ -z "$ONE_LOCATION" ]; then
> +ONE_PIDDIR=/var/run/one
> ONE_PID=/var/run/one/oned.pid
> ONE_SCHEDPID=/var/run/one/sched.pid
> ONE_CONF=/etc/one/oned.conf
> @@ -28,6 +29,7 @@ if [ -z "$ONE_LOCATION" ]; then
>
> LOCK_FILE=/var/lock/one/one
>  else
> +ONE_PIDDIR=$ONE_LOCATION/var
> ONE_PID=$ONE_LOCATION/var/oned.pid
> ONE_SCHEDPID=$ONE_LOCATION/var/sched.pid
> ONE_CONF=$ONE_LOCATION/etc/oned.conf
> @@ -53,6 +55,10 @@ setup()
> exit 1
> fi
>
> +if [ ! -d $ONE_PIDDIR ]; then
> +   mkdir $ONE_PIDDIR
> +fi
> +
> if [ -f $LOCK_FILE ]; then
> if [ -f  $ONE_PID ]; then
> ONEPID=`cat $ONE_PID`
>
> The directories required in /var/lock and /var/log are created by the
> package in %post. However, for general use of OpenNebula outside of a
> package install it might make sense to have the "one" startup script create
> these directories as well. Although, since neither /var/lock nor /var/log
> are expected on tmpfs, AFAIK, the creation is a one time setup task and thus
> may not be desired in the "one" startup script.
>
>
> Robert
> --
> Robert Schweikert   MAY THE SOURCE BE WITH YOU
> SUSE-IBM Software Integration Center   LINUX
> Tech Lead
> rschweik...@novell.com
> rschweik...@ca.ibm.com
> 781-464-8147
> ___
> 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


Re: [one-users] SVMSched (Smart Virtual Machine Scheduler) -- New contribution to OpenNebula ecosystem

2011-06-07 Thread Idafen Santana Pérez
Hi everyone,

this project seems to be a relevant and interesting approach. I would
like to test it on our ONe infrastructure so, is there any
documentation or reference about how to deploy the scheduler and use
it?

Thanks in advance.
Regards,
Idafen

On Mon, Jun 6, 2011 at 2:43 PM, Borja Sotomayor  wrote:
> Hi everyone,
>
> We have a new contribution to the OpenNebula ecosystem: SVMSched (Smart
> Virtual Machine Scheduler), a tool to easily set up on-demand SaaS and PaaS
> cloud infrastructures on top of OpenNebula.
>
> More details here:
>
> http://www.opennebula.org/software:ecosystem:svmsched
>
> Thanks to Rodrigue Chakode from INRIA (http://www.inria.fr/) for
> contributing this!
>
> Cheers,
> --
> Borja Sotomayor
>
>  Scientific Writer, Computation Institute
>  Lecturer, Department of Computer Science
>  University of Chicago
>  http://people.cs.uchicago.edu/~borja/
>
>  Community Manager, OpenNebula project
>  http://www.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


[one-users] [patch] Add support for rate-limiting a NIC on XEN

2011-06-07 Thread Vivien Bernet-Rollande

Hi everyone.

I've a lot of hopes set on those networking setup and teardown hooks 
that were discussed during yesterday's session. They would allow me to 
have much finer control on quite a few items (filtering, traffic 
shaping, etc.) while keeping support for migration.


Anyway, in the meantime, I have a use case where I need to be able to 
limit the upload rate of a VM. Basically, we bill clients based on their 
upload traffic. We need the ability to cap clients who wish to make sure 
they never go over their quota.I'd rather do this in dom0 with tc, which 
allows for nice burst control, but the hooks I would need don't exist yet.


The patch I propose ( see 
http://dev.opennebula.org/attachments/385/one_xen_rate_limit.diff ) adds 
support for rate limiting using the "rate" configuration parameter for a 
Xen vif. There is no support for KVM since I can't test it, but I doubt 
it would be hard to add. There is no support in Sunstone or the various 
API servers either.


The ONE config simply file goes like this :

NIC  = [ NETWORK = "INTERNET",
 RATE = "10Mb/s" ]

This will create the following deployment file :
vif = [
'mac=02:00:01:02:03:04,ip=1.2.3.4,bridge=xenbr0,rate=10Mb/s',
]

And a "xenstore-ls" will show :
ma
/local/domain/0/backend/vif/20/0/rate = "62500,5"

Iperf tests show an effective upload rate of 7-8 Mb/s, so provisioning a 
bit over the desired value seems to be necessary.



Something I'd really love to see would be the ability to add raw data on 
a vif or block device. That way, I could have solved my issue using 
something like :


NIC  = [ NETWORK = "INTERNET",
 RAW = "rate=10Mb/s" ]

--
Vivien Bernet-Rollande
Systems&  Networking Engineer
Alter Way Hosting

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


[one-users] Express installation, incompatibility Ruby 1.8.5 and Sunstone, How to upgrade?

2011-06-07 Thread Anders Branderud
Hello!

The Express Installation of OpenNebula 2.2.0 on CentOS has caused me big
problems, since it installs Ruby 1.8.5, which is incompatible with Sunstone.
I installed Ruby 1.9.2 after executing the Express installation, but the
problem remained, since Sunstone tried to use the old Ruby-installation.

I don't know how to configure, so that the newer Ruby-version should be used
instead.

I would be very thankful if anyone could help out! I think it also would be
nice with an upgrade of the OpenNebula Express-installation script and
repositories, so that a newer version of Ruby is installed instead avoiding
the above problem.

I also tried to install Open Nebula manually following instructions point by
point, but encountered other problems. I Googled the error messages, but
none of the advices worked for me.

I will now reinstall CentOS one more time and start it all over again..
Waiting for the reply re. Open Nebula Express-install so that I can move
on..

Thanks in advance!!

-- 
Kind Regards, Anders Branderud

[Personal blog] bloganders.blogspot.com  : Logical reasons - based on
scientific premises - for the existence of a Creator and that He hasn't left
His sapient creatures without an Instruction Manual - Torah ['books of
Moses'] - to ascertain, and aspire to, His purpose.

[Company] Anders Branderud IT Solutions - www.abitsolutions.org
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] onevm saveas : [ImageAllocate] Error trying to CREATE IMAGE No PATH in template.

2011-06-07 Thread knawnd

Hello!

I am trying to test 'onevm saveas' command for my OpenVZ VMs and I get 
the following error:

$ onevm saveas 57 0 "vps145 saved disk"
[ImageAllocate] Error trying to CREATE IMAGE No PATH in template

oned.log:
[...]
ue Jun  7 17:50:49 2011 [ReM][D]: ImageInfo method invoked
Tue Jun  7 17:50:49 2011 [ReM][D]: ImageAllocate invoked
Tue Jun  7 17:50:49 2011 [IMG][E]: No PATH in template.
Tue Jun  7 17:50:49 2011 [ReM][E]: [ImageAllocate] Error trying to 
CREATE IMAGE No PATH in template.

[...]

DISK was defined in VM template as
DISK = [ IMAGE  = "centos-5-x86" ]

OS image was created from the following file:
$ cat centos-5.x86.one.img
NAME  = "centos-5-x86"
PATH  = "/srv/cloud/one/one-2.1.8/var/images/centos-5-x86.tar.gz"
PUBLIC= YES
DESCRIPTION   = "CentOS 5 x86 OpenVZ template"

$ oneimage show 1
IMAGE  INFORMATION
ID : 1
NAME   : centos-5-x86
TYPE   : OS
REGISTER TIME  : 03/30 19:21:45
PUBLIC : Yes
PERSISTENT : No
SOURCE : 
/srv/cloud/one/one-2.2.0/var//images/70f38bbaf574eef06b8e3ca4e8ebee3eb1f1786d

STATE  : used
RUNNING_VMS: 1

IMAGE TEMPLATE
DESCRIPTION=CentOS 5 x86 OpenVZ template
DEV_PREFIX=sd
NAME=centos-5-x86
PATH=/srv/cloud/one/one-2.1.8/var/images/centos-5-x86.tar.gz

OpenNebula 2.2.0, CentOS 5.5.
What can be the reason of the error described above?

Thanks!
Nikolay.

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


Re: [one-users] NIC model in a xen machine

2011-06-07 Thread Jaime Melis
Hello Rubén,

thanks for reporting this, it is in fact a bug. We have created a new ticket
and applied a patch. This will be fixed for OpenNebula 3.0.

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

cheers,
Jaime

On Mon, Jun 6, 2011 at 2:14 PM, Ruben Diez  wrote:

> Hi:
>
> We are attempt to use an "e1000" network card in a virtual machine running
> in a xen virtualization node under OpenNebula control.
>
> In a direct xen configuración file this is done by the line:
>
> vif =
> ['model=e1000,mac=02:fe:xx:xx:xx:xx,ip=xxx.xxx.xxx.xxx,bridge=virbrXX',]
>
> But when we use this line in the openebula template:
>
>
> NIC=[ NETWORK="AA", IP=xxx.xxx.xxx.xxx, MODEL="e1000" ]
>
> The generated line in the deployment.0 file is:
>
> vif =
> ['type=e1000,mac=02:fe:xx:xx:xx:xx,ip=xxx.xxx.xxx.xxx,bridge=virbrXX',]
>
> instead the correct one:
>
> vif =
> ['model=e1000,mac=02:fe:xx:xx:xx:xx,ip=xxx.xxx.xxx.xxx,bridge=virbrXX',]
>
>
> So: how can we do in order to force the xen "model" parameter from the
> opennebula machine template???
>
> Note that a "model" parameter in the opennebula template correspond to a
> "type" parameter in the xen deployment.0, not to a "model" parameter...
>
> Regards.
>
>
> ___
> 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] live migration fails on ubuntu 11.04

2011-06-07 Thread samuel
Hi folks,

After few tricks to the standard configuration (controller exporting via NFS
opennebula directories to 2 other nodes) seems to work except for one point:
live migration.

When starting live migration (from sunstone web interface), the following
problem appears:

Tue Jun  7 17:12:51 2011 [VMM][I]: Command execution fail: 'if [ -x
"/var/tmp/one/vmm/kvm/migrate" ]; then /var/tmp/one/vmm/kvm/migrate one-131
node1; else  exit 42; fi'
Tue Jun  7 17:12:51 2011 [VMM][I]: STDERR follows.
Tue Jun  7 17:12:51 2011 [VMM][I]: error: Requested operation is not valid:
domain is already active as 'one-131'
Tue Jun  7 17:12:51 2011 [VMM][I]: ExitCode: 1
Tue Jun  7 17:12:51 2011 [VMM][E]: Error live-migrating VM, error: Requested
operation is not valid: domain is already active as 'one-131'
Tue Jun  7 17:12:51 2011 [LCM][I]: Fail to life migrate VM. Assuming that
the VM is still RUNNING (will poll VM).

I'm using qemu+ssh transport with the following version:
$ virsh version
Compilado contra la biblioteca: libvir 0.8.8
Utilizando la biblioteca: libvir 0.8.8
Utilizando API: QEMU 0.8.8
Ejecutando hypervisor: QEMU 0.14.0

Installed version of open nebula is 2.2.

Could anyone shed some light on this issue? I've looked in the Internet and
found some posts relating to qemu bugs but I'd like to know whether can I
get more information about this issue.

Thank you very much in advance,
Samuel.
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] live-/migration not working, uknown error

2011-06-07 Thread Adnan Pasic
Hey everyone,
sorry for spamming, but I thought it might be a good idea to share with you how 
I found out how to fix this issue!!! It was quite tedious actually.

After reviewing the logging documents, I set the following environment variables

export LIBVIRT_DEBUG=4
export LIBVIRT_LOG_OUTPUTS="1:file:/var/log/virsh.log"

Once that was set, I ran the following to monitor the log file: tail -f 
/var/log/virsh.log

When I ran the live migration this time around, this was the output I received 
on that error

23:35:47.102: error : server_error:7231 : operation failed: migrate failed: 
migrate "tcp:scott:49154"
migration failed

As you can see from this, it was trying to live migrate using the hostname 
"scott" instead of the actual IP once it established the session on both ends 
using ssh. To fix this, I simply modified the /etc/hosts file and included 
scott to resolve to the remote system and voila, it worked like a charm and 
quickly.

Hope this is helpful to anyone getting random UNKNOWN ERROR messages, and 
thanks to the mailing list for helping so selflessly every time!
Keep up the good work!

Regards, Adnan

-Ursprüngliche Nachricht-
Von: users-boun...@lists.opennebula.org 
[mailto:users-boun...@lists.opennebula.org] Im Auftrag von Adnan Pasic
Gesendet: Montag, 30. Mai 2011 21:41
An: 'Steffen Neumann'
Cc: users@lists.opennebula.org
Betreff: Re: [one-users] live-/migration not working, uknown error

Hey,
I already changed that part, and also performed a "onehost sync" afterwards, 
but still the "unknown error" issue appears. 
I wonder if I overlooked something else...although it's not possible, because I 
really read the tutorials thoroughly.
Also, I checked the lists already - I check them every time before I post 
something new. I don't wanna end up spamming the whole list here! :) 

Thanks very much, for the help up to now! 

-Ursprüngliche Nachricht-
Von: Steffen Neumann [mailto:sneum...@ipb-halle.de] 
Gesendet: Montag, 30. Mai 2011 21:34
An: Adnan Pasic
Cc: 'Carlos Martín Sánchez'; users@lists.opennebula.org
Betreff: Re: [one-users] live-/migration not working, uknown error

Hi,

On Mon, 2011-05-30 at 13:02 +0200, Adnan Pasic wrote:
> machines normally. The only problem I’, still having is the Live
> Migration!
...
> Is it possible that I somehow messed up the TLS encryption? I 

CHeck out the list archives, in opennebula-2.2 
you need to change qmeu to qemu+ssh in one of the scripts.

If you don't find it, ask again.

Yours,
Steffen

-- 
IPB HalleAG Massenspektrometrie & Bioinformatik
Dr. Steffen Neumann  http://www.IPB-Halle.DE
Weinberg 3   http://msbi.bic-gh.de
06120 Halle  Tel. +49 (0) 345 5582 - 1470
  +49 (0) 345 5582 - 0
sneumann(at)IPB-Halle.DE Fax. +49 (0) 345 5582 - 1409


___
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 livemigrate VMs

2011-06-07 Thread Khoa Nguyen
Thank you for your reply. I did your way but It can't solve problem. Anyone
have idea?
I install opennebula 2.0 on Ubuntu 9.10.

Thank you.

On Tue, Jun 7, 2011 at 3:31 PM, samuel  wrote:

> You have 2 options:
>
> 1) configure SSL connection for qemu, or
> 2) use ssh as transport for qemu.
>
> To do the second option, which is the easier, you should change the file
> kvmrc
> LIBVIRT_URI=qemu+ssh:///system
> QEMU_PROTOCOL=qemu+ssh
>
> Hope it helps,
> Samuel.
> On 7 June 2011 10:12, Khoa Nguyen  wrote:
>
>> Hi everyone
>>
>> I want to live migrate VMs from kvm node to others. However, there have
>> problem which I can't solve it.
>> Some information in *vm.log*
>>
>> Jun  7 14:55:02 2011 [TM][I]: tm_context.sh: Executed "rm -rf
>> /srv/cloud/one/var//272/images/isofiles".
>> Tue Jun  7 14:55:02 2011 [LCM][I]: New VM state is BOOT
>> Tue Jun  7 14:55:02 2011 [VMM][I]: Generating deployment file:
>> /srv/cloud/one/var/272/deployment.0
>> Tue Jun  7 14:55:03 2011 [LCM][I]: New VM state is RUNNING
>> Tue Jun  7 14:55:37 2011 [LCM][I]: New VM state is MIGRATE
>> Tue Jun  7 14:55:37 2011 [VMM][I]: Command execution fail: 'if [ -x
>> "/var/tmp/one/vmm/kvm/migrate" ]; then /var/tmp/one/vmm/kvm/migrate one-272
>> 172.29.70.137; else  exit 42; fi'
>> Tue Jun  7 14:55:37 2011 [VMM][I]: STDERR follows.
>> Tue Jun  7 14:55:37 2011 [VMM][I]: Connecting to uri: qemu:///system
>> Tue Jun  7 14:55:37 2011 [VMM][I]: error: Cannot access CA certificate
>> '/etc/pki/CA/cacert.pem': No such file or directory
>> Tue Jun  7 14:55:37 2011 [VMM][I]: ExitCode: 1
>> Tue Jun  7 14:55:37 2011 [VMM][E]: Error live-migrating VM, Connecting to
>> uri: qemu:///system
>> Tue Jun  7 14:55:37 2011 [LCM][I]: Fail to life migrate VM. Assuming that
>> the VM is still RUNNING (will poll VM).
>>
>> * one.log*
>>
>>
>>
>> Tue Jun  7 14:55:36 2011 [ReM][D]: VirtualMachineMigrate invoked
>> Tue Jun  7 14:55:36 2011 [DiM][D]: Live-migrating VM 272
>> Tue Jun  7 14:55:37 2011 [VMM][D]: Message received: LOG - 272 Command
>> execution fail: 'if [ -x "/var/tmp/one/vmm/kvm/migrate" ]; then
>> /var/tmp/one/vmm/kvm/migrate one-272 172.29.70.137;
>> else  exit 42; fi'
>>
>> Tue Jun  7 14:55:37 2011 [VMM][D]: Message received: LOG - 272 STDERR
>> follows.
>>
>> Tue Jun  7 14:55:37 2011 [VMM][D]: Message received: LOG - 272 Connecting
>> to uri: qemu:///system
>>
>> Tue Jun  7 14:55:37 2011 [VMM][D]: Message received: LOG - 272 error:
>> Cannot access CA certificate '/etc/pki/CA/cacert.pem': No such file or
>> directory
>>
>> Tue Jun  7 14:55:37 2011 [VMM][D]: Message received: LOG - 272 ExitCode: 1
>>
>> Tue Jun  7 14:55:37 2011 [VMM][D]: Message received: MIGRATE FAILURE 272
>> Connecting to uri: qemu:///system
>>
>> Tue Jun  7 14:55:37 2011 [VMM][D]: Message received: error: Cannot access
>> CA certificate '/etc/pki/CA/cacert.pem': No such file or directory
>>
>> Tue Jun  7 14:55:37 2011 [VMM][D]: Message received: ExitCode: 1
>>
>> Please help me?
>> Thank you
>>
>>
>> --
>> 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