[one-users] Does one support Windows guest on a DHCP network?

2011-06-09 Thread Ou, Yan
Hi All

Can anyone tell me wether one support Windows guest with a host on a DHCP 
network? We are not up to the level to control the DHCP server for the whole 
network (which means we can't define the MAC/IP association by FIXED 
networking), the host will be assigned an IP automatically. Is it possible to 
make the Windows guest to get IP leased from the DHCP server as well?

Many thanks
Yan


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


Re: [one-users] Help with VM launch

2011-06-09 Thread Héctor Sanjuán
Now it is seems a different problem: a policyKit - libvirt permissions
problem.

The answers are here:

http://libvirt.org/auth.html
http://wiki.libvirt.org/page/SSHPolicyKitSetup

Personally, on an OpenSuse 11.3 machine I have a file:
/var/lib/polkit-1/localauthority/10-vendor.d/org.libvirt.unix.manage.pkla

with the contents:

[org.libvirt.unix.manage]
Identity=unix-user:*
Action=org.libvirt.unix.manage
ResultAny=auth_admin_keep
ResultInactive=auth_admin_keep
ResultActive=auth_admin_keep


but that's a bit relaxed security as It seems I allow every unix user to
manage via libvirt.

Hope it helps,

Hector




El 09/06/11 20:32, Robert Schweikert escribió:
> 
> 
> On 06/09/2011 12:40 PM, Héctor Sanjuán wrote:
>> Hi,
>>
>> I think the deployment is failing because the host is en error state.
>>
>> It seems that when ONE is trying to monitor it, the 192.168.1.5 host
>> closes the connection.
>>
>> You should make sure that you are running OpenNebula commands with the
>> 'oneadmin' user and that this user has passwordless ssh access to the
>> host. You can assign a password to the oneadmin unix user with 'passwd
>> oneadmin' as root. Then you should be able to login with it and test if
>> 'ssh 192.168.1.5' is working well.
> 
> OK, I created a password for the oneadmin user and was able to use ssh
> interactively to get to the 192.168.1.5 host without using a password.
> It was a bit slow but it worked.
> 
> I also played around with the onehost command, deleting the previously
> added host and using
> 
> # onehost create 192.168.1.5 im_kvm vmm_kvm tm_nfs
> 
> used this when logged in as oneadmin and with "sudo -u oneadmin" prefix
> when logged in as root. With both approaches I get the same result,
> initially when I create the host the state shown by onehost list is
> "on". But after a while it changes to "err"
> 
> Monitoring the log I found the following message:
> 
> Thu Jun  9 14:18:05 2011 [InM][I]: Command execution fail: 'if [ -x
> "/var/tmp/one/im/run_probes" ]; then /var/tmp/one/im/run_probes kvm
> 192.168.1.5; else  exit 42; fi'
> Thu Jun  9 14:18:05 2011 [InM][I]: STDERR follows.
> Thu Jun  9 14:18:05 2011 [InM][I]: error: authentication failed
> Thu Jun  9 14:18:05 2011 [InM][I]: error: failed to connect to the
> hypervisor
> Thu Jun  9 14:18:05 2011 [InM][I]: Error executing kvm.rb
> Thu Jun  9 14:18:05 2011 [InM][I]: ExitCode: 255
> Thu Jun  9 14:18:05 2011 [InM][E]: Error monitoring host 4 : MONITOR
> FAILURE 4 Could not monitor host 192.168.1.5.
> 
> And on the cloud node in the system log I get:
> 
> Jun 10 22:18:03 node1 sshd[4387]: Accepted publickey for oneadmin from
> 192.168.1.2 port 60835 ssh2
> Jun 10 22:18:03 node1 sshd[4389]: Received disconnect from 192.168.1.2:
> 11: disconnected by user
> Jun 10 22:18:13 node1 sshd[4413]: Accepted publickey for oneadmin from
> 192.168.1.2 port 60836 ssh2
> Jun 10 22:18:13 node1 libvirtd: 22:18:13.366: error :
> remoteDispatchAuthPolkit:3797 : Policy kit denied action
> org.libvirt.unix.manage from pid 4453, uid 1000, result: 512
> 
> 
> Thus I'd say my issue is on the cloud node side. The passwordless ssh
> connection is clearly working, based on the "Accepted" message, but then
> it looks like policykit get in the way.
> 
> The oneadmin user is part of the kvm and the root group on the cloud
> node (libvirtd runs as root on SUSE).
> 
> Any ideas what I need to do to beat policy kit into submission?
> 
> Thanks,
> Robert
> 
> 


-- 
Héctor Sanjuán
OpenNebula Sunstone Developer
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Help with VM launch

2011-06-09 Thread Robert Schweikert



On 06/09/2011 12:33 PM, Carlos Martín Sánchez wrote:

Hi Robert,

The only thing I can think of is that you correctly configured the
passwordless ssh access to the Host, but then started OpenNebula as root
instead of oneadmin.


Well, oned runs as a process owned by oneadmin. I start oned (and the 
scheduler) using an init script that is based on the "one" script 
supplied in the source tarball. I use


starproc -u oneadmin -g cloud $ONED 

This works as advertised as

# ps -u oneadmin | grep one

returns a list of processes, including the scheduler and oned, while

# ps -u root | grep one

returns an empty list

Thus it appears that the process ownership is correct.

Any other ideas?

Thanks,
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


Re: [one-users] Help with VM launch

2011-06-09 Thread Robert Schweikert



On 06/09/2011 12:40 PM, Héctor Sanjuán wrote:

Hi,

I think the deployment is failing because the host is en error state.

It seems that when ONE is trying to monitor it, the 192.168.1.5 host
closes the connection.

You should make sure that you are running OpenNebula commands with the
'oneadmin' user and that this user has passwordless ssh access to the
host. You can assign a password to the oneadmin unix user with 'passwd
oneadmin' as root. Then you should be able to login with it and test if
'ssh 192.168.1.5' is working well.


OK, I created a password for the oneadmin user and was able to use ssh 
interactively to get to the 192.168.1.5 host without using a password. 
It was a bit slow but it worked.


I also played around with the onehost command, deleting the previously 
added host and using


# onehost create 192.168.1.5 im_kvm vmm_kvm tm_nfs

used this when logged in as oneadmin and with "sudo -u oneadmin" prefix 
when logged in as root. With both approaches I get the same result, 
initially when I create the host the state shown by onehost list is 
"on". But after a while it changes to "err"


Monitoring the log I found the following message:

Thu Jun  9 14:18:05 2011 [InM][I]: Command execution fail: 'if [ -x 
"/var/tmp/one/im/run_probes" ]; then /var/tmp/one/im/run_probes kvm 
192.168.1.5; else  exit 42; fi'

Thu Jun  9 14:18:05 2011 [InM][I]: STDERR follows.
Thu Jun  9 14:18:05 2011 [InM][I]: error: authentication failed
Thu Jun  9 14:18:05 2011 [InM][I]: error: failed to connect to the 
hypervisor

Thu Jun  9 14:18:05 2011 [InM][I]: Error executing kvm.rb
Thu Jun  9 14:18:05 2011 [InM][I]: ExitCode: 255
Thu Jun  9 14:18:05 2011 [InM][E]: Error monitoring host 4 : MONITOR 
FAILURE 4 Could not monitor host 192.168.1.5.


And on the cloud node in the system log I get:

Jun 10 22:18:03 node1 sshd[4387]: Accepted publickey for oneadmin from 
192.168.1.2 port 60835 ssh2
Jun 10 22:18:03 node1 sshd[4389]: Received disconnect from 192.168.1.2: 
11: disconnected by user
Jun 10 22:18:13 node1 sshd[4413]: Accepted publickey for oneadmin from 
192.168.1.2 port 60836 ssh2
Jun 10 22:18:13 node1 libvirtd: 22:18:13.366: error : 
remoteDispatchAuthPolkit:3797 : Policy kit denied action 
org.libvirt.unix.manage from pid 4453, uid 1000, result: 512



Thus I'd say my issue is on the cloud node side. The passwordless ssh 
connection is clearly working, based on the "Accepted" message, but then 
it looks like policykit get in the way.


The oneadmin user is part of the kvm and the root group on the cloud 
node (libvirtd runs as root on SUSE).


Any ideas what I need to do to beat policy kit into submission?

Thanks,
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


Re: [one-users] Unable to Ping Migrated VM

2011-06-09 Thread Koushik Annapureddy
Hello,

After migrating the VM the CPU consumed by VM is showing as 99.
 ID USER NAME STAT CPU MEMHOSTNAMETIME
  155 oneadmin koushik_ runn  99600M 192.168.2.5 00 00:53:38
  156 oneadmin koushik_ runn   1600M 192.168.2.4 00 00:30:26

When I tried to access the migrated VM ( on host 192.168.2.5) using
Virt-Viewer I got a screen with message Connected to VNC Server and it
remained in the same state( similar to hanged state). vncviewer too didnt
work..

Here is the qemu log info for migrated VM
LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin
QEMU_AUDIO_DRV=none /usr/bin/kvm -S -M pc-0.12 -enable-kvm -m 600 -smp
1,sockets=1,cores=1,threads=1 -name one-155 -uuid
fcdee899-98c5-7e42-69d0-2084d8556791 -nodefaults -chardev
socket,id=monitor,path=/var/lib/libvirt/qemu/one-155.monitor,server,nowait
-mon chardev=monitor,mode=readline -rtc base=utc -boot c -device
lsi,id=scsi0,bus=pci.0,addr=0x4 -drive
file=/srv/cloud/one/var//155/images/disk.0,if=none,id=drive-scsi0-0-0,boot=on,format=qcow2
-device scsi-disk,bus=scsi0.0,scsi-id=0,drive=drive-scsi0-0-0,id=scsi0-0-0
-device rtl8139,vlan=0,id=net0,mac=02:00:c0:a8:02:08,bus=pci.0,addr=0x3 -net
tap,fd=56,vlan=0,name=hostnet0 -usb -vnc 0.0.0.0:69 -vga cirrus -incoming
exec:cat -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5
cat: -: Permission denied
load of migration failed
lsi_scsi: error: Unimplemented message 0x0d
lsi_scsi: error: Unimplemented message 0x0d
lsi_scsi: error: Unimplemented message 0x0d
lsi_scsi: error: Unimplemented message 0x0d
lsi_scsi: error: Unimplemented message 0x0d
lsi_scsi: error: Unimplemented message 0x0d
lsi_scsi: error: Unimplemented message 0x0d
lsi_scsi: error: Unimplemented message 0x0d
lsi_scsi: error: Unimplemented message 0x0d


On Mon, Jun 6, 2011 at 1:33 PM, Koushik Annapureddy
wrote:

> Hello Steffen,
>
>  There is no firewall between front end , node1 and node2. Since I am
> trying to ping from frontend.
>
> 1) Does ping work when you migrate back ?
>
> When I tried to migrate back the VM from node2 to node1 .. It got stuck in
> SAVE_MIGRATE state and from the virsh list (node1) its empty.. while in
> node2 (virsh list) its showing vm as running.
>
> 2) 2) Can you deploy a VM directly to node2 ?
>   (You may have to disable node1 so that subsequent onevm create
>go directly to node2)
>
> I tried to deploy another VM directly on node2 ( by disabling node1) and
> the deployed VM got stuck in BOOT mode in node2.
>
>
>
> On Mon, Jun 6, 2011 at 1:19 PM, Steffen Neumann wrote:
>
>> Hi,
>>
>> On Mon, 2011-06-06 at 11:59 +0300, Koushik Annapureddy wrote:
>> > Can any one help in debugging this problem.
>>
>> First idea is bridge setup, or maybe firewall rules.
>>
>> 1) Does ping work when you migrate back ?
>>
>> 2) Can you deploy a VM directly to node2 ?
>>   (You may have to disable node1 so that subsequent onevm create
>>go directly to node2)
>>
>> 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
>>
>>
>>
>
>
> --
> Thanks
> Koushik Annapureddy
>



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


Re: [one-users] Help with VM launch

2011-06-09 Thread Héctor Sanjuán
Hi,

I think the deployment is failing because the host is en error state.

It seems that when ONE is trying to monitor it, the 192.168.1.5 host
closes the connection.

You should make sure that you are running OpenNebula commands with the
'oneadmin' user and that this user has passwordless ssh access to the
host. You can assign a password to the oneadmin unix user with 'passwd
oneadmin' as root. Then you should be able to login with it and test if
'ssh 192.168.1.5' is working well.

Hope it helps,

Hector



El 09/06/11 17:44, Robert Schweikert escribió:
> Hi,
> 
> Still working on packaging things properly for openSUSE and trying to
> get OpenNebula running. I've managed to get most things up and running
> but am now stuck with a failure when I try to launch a VM.
> 
> I have one host registered:
> # onhost list
>   ID NAME  CLUSTER  RVM   TCPU   FCPU   ACPUTMEM FMEM STAT
>0 192.168.1.5   default0  0  0100  0K 0K  err
> 
> Not sure what to make of the "err" state/status
> 
> After I run
> 
> # onevm create testVM.vmd
> 
> The VM is created and shows as pending (sits there for quite a long
> time, thus I suspect there is something going on that I am not aware
> of). When I force the deployment
> 
> # onevm deploy 0 0
> 
> I end up with the fail state
> 
> # onevm list
>ID USER NAME STAT CPU MEMHOSTNAMETIME
> 0 oneadmin suse-tes fail   0  0K 192.168.1.5 00 00:22:47
> 
> The log contains the following information:
> 
> Thu Jun  9 10:58:23 2011 [ReM][D]: VirtualMachineDeploy invoked
> Thu Jun  9 10:58:23 2011 [ReM][E]: [VirtualMachineDeploy] Error getting
> HOST [0].
> 
> Thu Jun  9 11:15:37 2011 [InM][I]: Command execution fail: scp -r
> /var/lib/one/remotes/. 192.168.1.5:/var/tmp/one
> Thu Jun  9 11:15:37 2011 [InM][I]: STDERR follows.
> Thu Jun  9 11:15:37 2011 [InM][I]: Warning: Permanently added
> '192.168.1.5' (RSA) to the list of known hosts.
> Thu Jun  9 11:15:37 2011 [InM][I]: Connection closed by 192.168.1.5
> Thu Jun  9 11:15:37 2011 [InM][I]: lost connection
> Thu Jun  9 11:15:37 2011 [InM][I]: ExitCode: 1
> Thu Jun  9 11:15:47 2011 [InM][I]: Command execution fail: 'if [ -x
> "/var/tmp/one/im/run_probes" ]; then /var/tmp/one/im/run_probes kvm
> 192.168.1.5; else  exit 42; fi'
> Thu Jun  9 11:15:47 2011 [InM][I]: STDERR follows.
> Thu Jun  9 11:15:47 2011 [InM][I]: Connection closed by 192.168.1.5
> Thu Jun  9 11:15:47 2011 [InM][I]: ExitCode: 255
> Thu Jun  9 11:15:47 2011 [InM][E]: Error monitoring host 0 : MONITOR
> FAILURE 0 Could not monitor host 192.168.1.5.
> Thu Jun  9 11:16:20 2011 [DiM][D]: Deploying VM 0
> Thu Jun  9 11:16:23 2011 [TM][D]: Message received: LOG - 0 tm_clone.sh:
> SUSENebula-Head:/var/lib/one//images/44833e18c42179d7012a9229ade7aad049399aef
> 192.168.1.5:/var/lib/one//0/images/disk.0
> 
> Thu Jun  9 11:16:23 2011 [TM][D]: Message received: LOG - 0 tm_clone.sh:
> DST: /var/lib/one//0/images/disk.0
> 
> Thu Jun  9 11:16:23 2011 [TM][D]: Message received: LOG - 0 tm_clone.sh:
> Creating directory /var/lib/one//0/images
> 
> Thu Jun  9 11:16:23 2011 [TM][D]: Message received: LOG - 0 tm_clone.sh:
> Executed "mkdir -p /var/lib/one//0/images".
> 
> Thu Jun  9 11:16:23 2011 [TM][D]: Message received: LOG - 0 tm_clone.sh:
> Executed "chmod a+w /var/lib/one//0/images".
> 
> Thu Jun  9 11:16:23 2011 [TM][D]: Message received: LOG - 0 tm_clone.sh:
> Cloning /var/lib/one//images/44833e18c42179d7012a9229ade7aad049399aef
> 
> Thu Jun  9 11:16:23 2011 [TM][D]: Message received: LOG - 0 tm_clone.sh:
> Executed "cp -r
> /var/lib/one//images/44833e18c42179d7012a9229ade7aad049399aef
> /var/lib/one//0/images/disk.0".
> 
> Thu Jun  9 11:16:23 2011 [TM][D]: Message received: LOG - 0 tm_clone.sh:
> Executed "chmod a+rw /var/lib/one//0/images/disk.0".
> 
> Thu Jun  9 11:16:23 2011 [TM][D]: Message received: TRANSFER SUCCESS 0 -
> 
> Thu Jun  9 11:16:26 2011 [ReM][D]: HostPoolInfo method invoked
> Thu Jun  9 11:16:26 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
> Thu Jun  9 11:16:28 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
> Thu Jun  9 11:16:38 2011 [VMM][D]: Message received: LOG - 0 Command
> execution fail: 'if [ -x "/var/tmp/one/vmm/kvm/deploy" ]; then
> /var/tmp/one/vmm/kvm/deploy /var/lib/one//0/images/deployment.0; else
>exit 42; fi'
> 
> Thu Jun  9 11:16:38 2011 [VMM][D]: Message received: LOG - 0 STDERR
> follows.
> 
> Thu Jun  9 11:16:38 2011 [VMM][D]: Message received: LOG - 0 Connection
> closed by 192.168.1.5
> 
> Thu Jun  9 11:16:38 2011 [VMM][D]: Message received: LOG - 0 ExitCode: 255
> 
> Thu Jun  9 11:16:38 2011 [VMM][D]: Message received: DEPLOY FAILURE 0
> Connection closed by 192.168.1.5
> 
> Thu Jun  9 11:16:38 2011 [VMM][D]: Message received: ExitCode: 255
> 
> Thu Jun  9 11:16:39 2011 [TM][D]: Message received: LOG - 0
> tm_delete.sh: Deleting /var/lib/one//0/images
> 
> Thu Jun  9 11:16:39 2011 [TM][D]: M

Re: [one-users] Help with VM launch

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

The only thing I can think of is that you correctly configured the
passwordless ssh access to the Host, but then started OpenNebula as root
instead of oneadmin.
Command 'one start' should be run as oneadmin [1]. And although you can use
the oneadmin's one_auth credentials in your root account, we prefer to
execute the one* commands as oneadmin.

Best regards,
Carlos.

[1] http://opennebula.org/documentation:rel2.2:cg#start_stop_opennebula

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


On Thu, Jun 9, 2011 at 5:44 PM, Robert Schweikert wrote:

> Hi,
>
> Still working on packaging things properly for openSUSE and trying to get
> OpenNebula running. I've managed to get most things up and running but am
> now stuck with a failure when I try to launch a VM.
>
> I have one host registered:
> # onhost list
>  ID NAME  CLUSTER  RVM   TCPU   FCPU   ACPUTMEM FMEM STAT
>   0 192.168.1.5   default0  0  0100  0K 0K  err
>
> Not sure what to make of the "err" state/status
>
> After I run
>
> # onevm create testVM.vmd
>
> The VM is created and shows as pending (sits there for quite a long time,
> thus I suspect there is something going on that I am not aware of). When I
> force the deployment
>
> # onevm deploy 0 0
>
> I end up with the fail state
>
> # onevm list
>   ID USER NAME STAT CPU MEMHOSTNAMETIME
>0 oneadmin suse-tes fail   0  0K 192.168.1.5 00 00:22:47
>
> The log contains the following information:
>
> Thu Jun  9 10:58:23 2011 [ReM][D]: VirtualMachineDeploy invoked
> Thu Jun  9 10:58:23 2011 [ReM][E]: [VirtualMachineDeploy] Error getting
> HOST [0].
> 
> Thu Jun  9 11:15:37 2011 [InM][I]: Command execution fail: scp -r
> /var/lib/one/remotes/. 192.168.1.5:/var/tmp/one
> Thu Jun  9 11:15:37 2011 [InM][I]: STDERR follows.
> Thu Jun  9 11:15:37 2011 [InM][I]: Warning: Permanently added '192.168.1.5'
> (RSA) to the list of known hosts.
> Thu Jun  9 11:15:37 2011 [InM][I]: Connection closed by 192.168.1.5
> Thu Jun  9 11:15:37 2011 [InM][I]: lost connection
> Thu Jun  9 11:15:37 2011 [InM][I]: ExitCode: 1
> Thu Jun  9 11:15:47 2011 [InM][I]: Command execution fail: 'if [ -x
> "/var/tmp/one/im/run_probes" ]; then /var/tmp/one/im/run_probes kvm
> 192.168.1.5; else  exit 42; fi'
> Thu Jun  9 11:15:47 2011 [InM][I]: STDERR follows.
> Thu Jun  9 11:15:47 2011 [InM][I]: Connection closed by 192.168.1.5
> Thu Jun  9 11:15:47 2011 [InM][I]: ExitCode: 255
> Thu Jun  9 11:15:47 2011 [InM][E]: Error monitoring host 0 : MONITOR
> FAILURE 0 Could not monitor host 192.168.1.5.
> Thu Jun  9 11:16:20 2011 [DiM][D]: Deploying VM 0
> Thu Jun  9 11:16:23 2011 [TM][D]: Message received: LOG - 0 tm_clone.sh:
> SUSENebula-Head:/var/lib/one//images/44833e18c42179d7012a9229ade7aad049399aef
> 192.168.1.5:/var/lib/one//0/images/disk.0
>
> Thu Jun  9 11:16:23 2011 [TM][D]: Message received: LOG - 0 tm_clone.sh:
> DST: /var/lib/one//0/images/disk.0
>
> Thu Jun  9 11:16:23 2011 [TM][D]: Message received: LOG - 0 tm_clone.sh:
> Creating directory /var/lib/one//0/images
>
> Thu Jun  9 11:16:23 2011 [TM][D]: Message received: LOG - 0 tm_clone.sh:
> Executed "mkdir -p /var/lib/one//0/images".
>
> Thu Jun  9 11:16:23 2011 [TM][D]: Message received: LOG - 0 tm_clone.sh:
> Executed "chmod a+w /var/lib/one//0/images".
>
> Thu Jun  9 11:16:23 2011 [TM][D]: Message received: LOG - 0 tm_clone.sh:
> Cloning /var/lib/one//images/44833e18c42179d7012a9229ade7aad049399aef
>
> Thu Jun  9 11:16:23 2011 [TM][D]: Message received: LOG - 0 tm_clone.sh:
> Executed "cp -r
> /var/lib/one//images/44833e18c42179d7012a9229ade7aad049399aef
> /var/lib/one//0/images/disk.0".
>
> Thu Jun  9 11:16:23 2011 [TM][D]: Message received: LOG - 0 tm_clone.sh:
> Executed "chmod a+rw /var/lib/one//0/images/disk.0".
>
> Thu Jun  9 11:16:23 2011 [TM][D]: Message received: TRANSFER SUCCESS 0 -
>
> Thu Jun  9 11:16:26 2011 [ReM][D]: HostPoolInfo method invoked
> Thu Jun  9 11:16:26 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
> Thu Jun  9 11:16:28 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
> Thu Jun  9 11:16:38 2011 [VMM][D]: Message received: LOG - 0 Command
> execution fail: 'if [ -x "/var/tmp/one/vmm/kvm/deploy" ]; then
> /var/tmp/one/vmm/kvm/deploy /var/lib/one//0/images/deployment.0; else
>  exit 42; fi'
>
> Thu Jun  9 11:16:38 2011 [VMM][D]: Message received: LOG - 0 STDERR
> follows.
>
> Thu Jun  9 11:16:38 2011 [VMM][D]: Message received: LOG - 0 Connection
> closed by 192.168.1.5
>
> Thu Jun  9 11:16:38 2011 [VMM][D]: Message received: LOG - 0 ExitCode: 255
>
> Thu Jun  9 11:16:38 2011 [VMM][D]: Message received: DEPLOY FAILURE 0
> Connection closed by 192.168.1.5
>
> Thu Jun  9 11:16:38 2011 [VMM][D]: Message received: ExitCode: 255
>
> Thu Jun  9 11:16:39 2011 [TM][D]: Message received: 

[one-users] Help with VM launch

2011-06-09 Thread Robert Schweikert

Hi,

Still working on packaging things properly for openSUSE and trying to 
get OpenNebula running. I've managed to get most things up and running 
but am now stuck with a failure when I try to launch a VM.


I have one host registered:
# onhost list
  ID NAME  CLUSTER  RVM   TCPU   FCPU   ACPUTMEM 
FMEM STAT
   0 192.168.1.5   default0  0  0100  0K 
0K  err


Not sure what to make of the "err" state/status

After I run

# onevm create testVM.vmd

The VM is created and shows as pending (sits there for quite a long 
time, thus I suspect there is something going on that I am not aware 
of). When I force the deployment


# onevm deploy 0 0

I end up with the fail state

# onevm list
   ID USER NAME STAT CPU MEMHOSTNAMETIME
0 oneadmin suse-tes fail   0  0K 192.168.1.5 00 00:22:47

The log contains the following information:

Thu Jun  9 10:58:23 2011 [ReM][D]: VirtualMachineDeploy invoked
Thu Jun  9 10:58:23 2011 [ReM][E]: [VirtualMachineDeploy] Error getting 
HOST [0].


Thu Jun  9 11:15:37 2011 [InM][I]: Command execution fail: scp -r 
/var/lib/one/remotes/. 192.168.1.5:/var/tmp/one

Thu Jun  9 11:15:37 2011 [InM][I]: STDERR follows.
Thu Jun  9 11:15:37 2011 [InM][I]: Warning: Permanently added 
'192.168.1.5' (RSA) to the list of known hosts.

Thu Jun  9 11:15:37 2011 [InM][I]: Connection closed by 192.168.1.5
Thu Jun  9 11:15:37 2011 [InM][I]: lost connection
Thu Jun  9 11:15:37 2011 [InM][I]: ExitCode: 1
Thu Jun  9 11:15:47 2011 [InM][I]: Command execution fail: 'if [ -x 
"/var/tmp/one/im/run_probes" ]; then /var/tmp/one/im/run_probes kvm 
192.168.1.5; else  exit 42; fi'

Thu Jun  9 11:15:47 2011 [InM][I]: STDERR follows.
Thu Jun  9 11:15:47 2011 [InM][I]: Connection closed by 192.168.1.5
Thu Jun  9 11:15:47 2011 [InM][I]: ExitCode: 255
Thu Jun  9 11:15:47 2011 [InM][E]: Error monitoring host 0 : MONITOR 
FAILURE 0 Could not monitor host 192.168.1.5.

Thu Jun  9 11:16:20 2011 [DiM][D]: Deploying VM 0
Thu Jun  9 11:16:23 2011 [TM][D]: Message received: LOG - 0 tm_clone.sh: 
SUSENebula-Head:/var/lib/one//images/44833e18c42179d7012a9229ade7aad049399aef 
192.168.1.5:/var/lib/one//0/images/disk.0


Thu Jun  9 11:16:23 2011 [TM][D]: Message received: LOG - 0 tm_clone.sh: 
DST: /var/lib/one//0/images/disk.0


Thu Jun  9 11:16:23 2011 [TM][D]: Message received: LOG - 0 tm_clone.sh: 
Creating directory /var/lib/one//0/images


Thu Jun  9 11:16:23 2011 [TM][D]: Message received: LOG - 0 tm_clone.sh: 
Executed "mkdir -p /var/lib/one//0/images".


Thu Jun  9 11:16:23 2011 [TM][D]: Message received: LOG - 0 tm_clone.sh: 
Executed "chmod a+w /var/lib/one//0/images".


Thu Jun  9 11:16:23 2011 [TM][D]: Message received: LOG - 0 tm_clone.sh: 
Cloning /var/lib/one//images/44833e18c42179d7012a9229ade7aad049399aef


Thu Jun  9 11:16:23 2011 [TM][D]: Message received: LOG - 0 tm_clone.sh: 
Executed "cp -r 
/var/lib/one//images/44833e18c42179d7012a9229ade7aad049399aef 
/var/lib/one//0/images/disk.0".


Thu Jun  9 11:16:23 2011 [TM][D]: Message received: LOG - 0 tm_clone.sh: 
Executed "chmod a+rw /var/lib/one//0/images/disk.0".


Thu Jun  9 11:16:23 2011 [TM][D]: Message received: TRANSFER SUCCESS 0 -

Thu Jun  9 11:16:26 2011 [ReM][D]: HostPoolInfo method invoked
Thu Jun  9 11:16:26 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
Thu Jun  9 11:16:28 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
Thu Jun  9 11:16:38 2011 [VMM][D]: Message received: LOG - 0 Command 
execution fail: 'if [ -x "/var/tmp/one/vmm/kvm/deploy" ]; then 
/var/tmp/one/vmm/kvm/deploy /var/lib/one//0/images/deployment.0; else 
   exit 42; fi'


Thu Jun  9 11:16:38 2011 [VMM][D]: Message received: LOG - 0 STDERR follows.

Thu Jun  9 11:16:38 2011 [VMM][D]: Message received: LOG - 0 Connection 
closed by 192.168.1.5


Thu Jun  9 11:16:38 2011 [VMM][D]: Message received: LOG - 0 ExitCode: 255

Thu Jun  9 11:16:38 2011 [VMM][D]: Message received: DEPLOY FAILURE 0 
Connection closed by 192.168.1.5


Thu Jun  9 11:16:38 2011 [VMM][D]: Message received: ExitCode: 255

Thu Jun  9 11:16:39 2011 [TM][D]: Message received: LOG - 0 
tm_delete.sh: Deleting /var/lib/one//0/images


Thu Jun  9 11:16:39 2011 [TM][D]: Message received: LOG - 0 
tm_delete.sh: Executed "rm -rf /var/lib/one//0/images".


Thu Jun  9 11:16:39 2011 [TM][D]: Message received: TRANSFER SUCCESS 0 -

This doesn't tell me a hole lot, but I am hoping this has some meaning 
to someone on the list.


The only thing I can suspect is that the oneadmin user is not allowed 
for interactive login, which is in accordance to the documentation given 
here:


http://opennebula.org/documentation:rel2.2:plan

This page does not state that the oneadmin user needs a password for 
interactive login, and the user is distinctly created without a password:


# useradd -d /srv/cloud/one -g cloud -m oneadmin

The /var/lib/one home directory is NFS mounted on the node and the ssh

Re: [one-users] Failed to login in Sunstone NameError OpenNebula 2.2.1

2011-06-09 Thread Nick Zhu
Thanks for the quick response guys. So when I tried running sunstone server
directly from ruby it worked and did not complain about the name error,
maybe something wrong with the rackup? My rackup and thin version:

rackup -v
Rack 1.1
thin -v
thin 1.2.4 codename Flaming Astroboy

I believe these were installed from ubuntu 'apt-get install thin'. However I
also noticed different version of rack and thin in gem:

rack (1.3.0)
thin (1.2.11)

Is there a conflict or am I totally mixing things up here.


Matthias, you mentioned the log file could be truncated, is there a way to
see the full log? My ONE_AUTH is configured as the following:

export PATH=$PATH:/srv/cloud/one/bin
export ONE_LOCATION=/srv/cloud/one
export ONE_XMLRPC=http://localhost:2633/RPC2
export ONE_AUTH=/srv/cloud/one/.one/one_auth


Thanks,

Nick

On Wed, Jun 8, 2011 at 6:53 PM, Héctor Sanjuán wrote:

> Hi,
>
> I cannot reproduce this :(. Ubuntu does not usually handle gem paths
> very well. Can you check make sure that the gems correspond to the ruby
> version you are using? Also, can you make sure you're not missing any
> previous error in the log file. Can you also try to run "ruby
> sunstone-server.rb" and see if it works like that? This file is in
> /srv/cloud/one/lib/sunstone/ or /usr/lib/one/sunstone depending on
> System-wide or self-contained installation.
>
> Hope it helps,
>
> Hector
>
> El 08/06/11 22:47, Nick Zhu escribió:
> > Hi,
> >
> > I downloaded and installed OpenNebula 2.2.1 from the tar. Went through
> > the installation alright and the cli interface is working now, however
> > having problem login into sunstone. Here is the error I am getting:
> >
> > NameError: uninitialized constant Rack::Multipart
> > /var/lib/gems/1.8/gems/rack-1.3.0/lib/rack/request.rb:306:in
> > `parse_multipart'
> > /var/lib/gems/1.8/gems/rack-1.3.0/lib/rack/request.rb:182:in
> `POST'
> >
> > /var/lib/gems/1.8/gems/rack-1.3.0/lib/rack/methodoverride.rb:15:in `call'
> > /var/lib/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:1272:in
> > `call'
> > /var/lib/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:1303:in
> > `synchronize'
> > /var/lib/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:1272:in
> > `call'
> > /var/lib/gems/1.8/gems/rack-1.3.0/lib/rack/lint.rb:48:in `_call'
> > /var/lib/gems/1.8/gems/rack-1.3.0/lib/rack/lint.rb:36:in `call'
> >
> > /var/lib/gems/1.8/gems/rack-1.3.0/lib/rack/showexceptions.rb:24:in `call'
> > /var/lib/gems/1.8/gems/rack-1.3.0/lib/rack/commonlogger.rb:18:in
> > `call'
> > /usr/lib/ruby/1.8/rack/content_length.rb:13:in `call'
> > /usr/lib/ruby/1.8/rack/chunked.rb:15:in `call'
> > /usr/lib/ruby/1.8/thin/connection.rb:76:in `pre_process'
> > /usr/lib/ruby/1.8/thin/connection.rb:74:in `catch'
> > /usr/lib/ruby/1.8/thin/connection.rb:74:in `pre_process'
> > /usr/lib/ruby/1.8/thin/connection.rb:57:in `process'
> > /usr/lib/ruby/1.8/thin/connection.rb:42:in `receive_data'
> > /usr/lib/ruby/1.8/eventmachine.rb:257:in `run_machine'
> > /usr/lib/ruby/1.8/eventmachine.rb:257:in `run'
> > /usr/lib/ruby/1.8/thin/backends/base.rb:57:in `start'
> > /usr/lib/ruby/1.8/thin/server.rb:156:in `start'
> > /usr/lib/ruby/1.8/rack/handler/thin.rb:14:in `run'
> > /usr/lib/ruby/1.8/rack/server.rb:155:in `start'
> > /usr/lib/ruby/1.8/rack/server.rb:83:in `start'
> > /usr/bin/rackup:4
> >
> > I am running on Ubuntu 11.04 server with:
> >
> > ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux]
> >
> > *** LOCAL GEMS ***
> >
> > daemons (1.1.3)
> > eventmachine (0.12.10)
> > json (1.5.1)
> > mkrf (0.2.3)
> > multipart-post (1.1.2)
> > rack (1.3.0)
> > rake (0.9.2)
> > sequel (3.24.1)
> > sinatra (1.2.6)
> > thin (1.2.11)
> > tilt (1.3.2)
> >
> > Tried reinstall ruby and rack as suggested online and no luck. Also
> > checked all the log files and did not find any problem other than this
> > error. Does somebody have any idea how to fix this?
> >
> >
> > Thanks,
> >
> > Nick
> >
> >
> >
> > ___
> > Users mailing list
> > Users@lists.opennebula.org
> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
> --
> Héctor Sanjuán
> OpenNebula Sunstone Developer
>



-- 
*
This is my new main consolidated gmail account. You can still reach me by
all my old email address from yahoo.ca and hotmail.com, however you will
receive all my response from this email nick.qi@gmail.com. Do not be
alarmed this is not a phishing attack :)*
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] OpenNebula 2.2.1 Released!

2011-06-09 Thread Tino Vazquez
Dear OpenNebula users,

A potential security vulnerability was found in the contextualization
image creation code. This feature lets the user add files to the
context image created before VM startup. The feature is very handy to
modify the behavior or configuration of the VM without modifying the
disk image. As you can specify any file readable by  user
(the user that runs oned daemon) some sensible files can be added to
the context image and then be retrieved connecting to the newly
created VM.

In order to deal with this issue, the OpenNebula Team announces an
asynchronous release of the OpenNebula 2.2 series, version 2.2.1,
which comes with a fix for the security issue found in the OCCI and
econe cloud servers.

 - Release Notes:http://opennebula.org/software:rnotes:rn-rel2.2.1
 - Software Download: http://opennebula.org/software:software
 - Security Issue Ticket:  http://dev.opennebula.org/issues/670

We would like to thank Vivien Bernet-Rollande
 for noticing the bug and
for providing a patch to fix it. We are working on a more robust and
flexible fix, we will maintain you informed on the developments.

With kind regards,

The OpenNebula Project

--
Constantino Vázquez Blanco, MSc
OpenNebula Major Contributor
www.OpenNebula.org | @tinova79
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] VM doesn't get network configuration

2011-06-09 Thread Christoph Raible

Hi @all

I have a problem in configuring the network from a "copied" VM in 
OpenNebula.


I wan't to give a specific IP-Adress to a VM. My network configuration 
in ON is:


http://pastebin.com/4PVU8uQx

Now I create a VM with the following template:

http://pastebin.com/rPZ9cZTG

All works fine. Contextualization, Creation, Starting and so on...
But the network interface isn't up an doesn't get an IP-address.

My VM operating system is Scientific Linux (free redhat clone).

Do I need something special on SL / RedHat or do I have an "error" in my 
VM config?



I hope someone can help me :)

Regards,

Chr.Raible

--
Vorstand/Board of Management:
Dr. Bernd Finkbeiner, Dr. Roland Niemeier, 
Dr. Arno Steitz, Dr. Ingrid Zech

Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Philippe Miltin
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196 



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


Re: [one-users] DB handling issue

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

OpenNebula uses the DB only for persistence, all information is cached in
memory. You can't modify the stored data and expect the core to update the
memory representation.

If you really need to modify the DB contents, stop OpenNebula, perform any
queries and then restart. This way OpenNebula will reload information from
the DB to build the cache.

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


On Thu, Jun 9, 2011 at 11:29 AM, Zeeshan Ali Shah  wrote:

> Hi,
> We are using Mysql with One. How sync the data from DB to One is ?  since
> if we change lets say leases table of IP , it does not show on onevnet list
> ?  do you have a cache some where ?
>
> or is there any cache between DB and ONE ?
>
> --
>
> --
> Regards
>
> Zeeshan Ali Shah
> System Administrator
> PDC-Center for High Performance Computing
> CSC School of Computer Science and Communication
> 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] onevm saveas : [ImageAllocate] Error trying to CREATE IMAGE No PATH in template.

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

That error message was not present in OpenNebula 2.2. It looks like you are
using a 2.2 'onevm' and a development branch 'oned'.
Can you please check that you are indeed using 2.2 and not the development
version?

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 4:00 PM,  wrote:

> 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
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


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

2011-06-09 Thread Jaime Melis
Hi Vivien,

first of all thanks a lot for your ideas and for your patch. This feature
seems quite interesting, we have created a new feature issue in Redmine:
http://dev.opennebula.org/issues/673

As for the RAW section under an attribute, that's actually a very good idea,
and with xen it's easily achievable, but adding support for it with libvirt
should be a little bit trickier, since it needs to be rendered as XML (a
libvirt domain file). We will study this further to see how could we support
it.

cheers,
Jaime

On Tue, Jun 7, 2011 at 2:00 PM, Vivien Bernet-Rollande <
vivien.bernet-rolla...@nexen.alterway.fr> wrote:

> 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
>



-- 
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] Get Virtual network IP problem When it creates VM

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

The NETWORK_ADDRESS is not the first IP of the range, it is the base
address.
This is explained in detail in this thread:
http://lists.opennebula.org/htdig.cgi/users-opennebula.org/2011-April/005021.html

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 6:19 AM, liudewei  wrote:

>
> Hi,
> Get Virtual network  IP problem When it creates VM
>
> "onevnet list" command execute the belowing:
>
>
> VIRTUAL NETWORK 127 INFORMATION
> ID:   : 127
> UID:  : 0
>
> VIRTUAL NETWORK TEMPLATE
> BRIDGE=xenbr.eth0
> NAME=10.100.23.0
> NETWORK_ADDRESS=10.100.23.20
> NETWORK_SIZE=5
> TYPE=RANGED
>
> LEASES INFORMATION
> LEASE=[ IP=10.100.23.17, MAC=00:03:0a:64:17:11, USED=1, VID=127 ]
>
> after create the VM template
> #onevm show 127
>  NIC=[
>   BRIDGE=xenbr.eth0,
>   IP=10.100.23.17,
>   MAC=00:03:0a:64:17:11,
>   NETWORK=10.100.23.0,
>   VNID=127 ]
>
> if it used TYPE=FIXED,the VM could allocate right IP from it(fixed).
> Why?
>
> regars
> thanks!
> 2011-06-07
> --
>  david
>
> ---
> Confidentiality Notice: The information contained in this e-mail and any
> accompanying attachment(s)
> is intended only for the use of the intended recipient and may be
> confidential and/or privileged of
> Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader
> of this communication is
> not the intended recipient, unauthorized use, forwarding, printing,
> storing, disclosure or copying
> is strictly prohibited, and may be unlawful.If you have received this
> communication in error,please
> immediately notify the sender by return e-mail, and delete the original
> message and all copies from
> your system. Thank you.
>
> ---
>
> ___
> 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] $SCRIPTS_REMOTE_DIR in tm_*.sh scripts

2011-06-09 Thread Tino Vazquez
Hi Nikolai,

There are several ways to achieve this. If you need this var for
development, the shortcut would be to duplicate that value in the rc
file for the TM ssh ($ONE_LOCATION/etc/tm_ssh/tm_sshrc).

If you confirm me the need for this variable to be available to the
tm_commands, I'll open a feature request to do this more elegantly
(without duplicating), and to be fulfilled in the upcoming 3.0
release.

Regards,

-Tino

--
Constantino Vázquez Blanco, MSc
OpenNebula Major Contributor
www.OpenNebula.org | @tinova79



On Sun, Jun 5, 2011 at 8:29 AM,   wrote:
> SCRIPTS_REMOTE_DIR
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] DB handling issue

2011-06-09 Thread Zeeshan Ali Shah
Hi,
We are using Mysql with One. How sync the data from DB to One is ?  since if
we change lets say leases table of IP , it does not show on onevnet list ?
 do you have a cache some where ?

or is there any cache between DB and ONE ?

-- 

-- 
Regards

Zeeshan Ali Shah
System Administrator
PDC-Center for High Performance Computing
CSC School of Computer Science and Communication
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


Re: [one-users] Problem with ldap authentication

2011-06-09 Thread Carlos A.

Hello,

first of all, thank you for your response.

Once I have managed to make ldap_auth work, I found the following issue:

root@keo01:/srv/cloud/one# onevm list
execution expired

I cannot manage to athenticate against my ldap server. I have tried the 
ldap authentication that is carried out by ONE


require 'rubygems'
require 'net/ldap'
ldap = Net::LDAP.new
ldap.host = "my.ldap.server"
ldap.port = 389
ldap.auth "my-dn", "my-pass"
print ldap.bind

It is properly working, as my server authenticates me. I have (of 
course) tried changing the password and it works as expected.


Diving in the code It seems that there is some problem in the file 
"src/um/UserPool.cc", at

authm->trigger(AuthManager::AUTHENTICATE,&ar);
ar.wait();

Any idea?


El 09/06/11 00:51, carsten.friedr...@csiro.au escribió:

The official OpenNebula installation instructions for the ldap driver are 
incomplete and miss to mention some software packages that you have to install 
first. I don't remember which ones they were, but you can find out as follows:

* cd to .../lib/ruby
* execute 'ruby ldap_auth.rb'.
* Ruby will complain about any missing packages. Install those until ruby is 
happy.

Carsten


Carsten Friedrich
Research Team leader
ICT Centre, GPO Box 664,Canberra, ACT 2601
Phone: +61 2 6216 7019
Email: carsten.friedr...@csiro.au
Web:   http://www.csiro.au/org/ICT.html



-Original Message-
From: users-boun...@lists.opennebula.org 
[mailto:users-boun...@lists.opennebula.org] On Behalf Of Carlos A.
Sent: Wednesday, 8 June 2011 18:17
To: users@lists.opennebula.org
Subject: Re: [one-users] Problem with ldap authentication

any help on this?

El 02/06/11 16:55, Carlos A. escribió:

More information on this:

in /srv/cloud/one/var/oned.log I can see
Thu Jun  2 16:52:09 2011 [ONE][I]: Init OpenNebula Log system
Thu Jun  2 16:52:09 2011 [ONE][I]: Log Level: 3
[0=ERROR,1=WARNING,2=INFO,3=DEBUG]
Thu Jun  2 16:52:09 2011 [ONE][I]:

Thu Jun  2 16:52:09 2011 [ONE][I]:  OpenNebula Configuration File
Thu Jun  2 16:52:09 2011 [ONE][I]:

Thu Jun  2 16:52:09 2011 [ONE][I]:
--
AUTH_MAD=EXECUTABLE=/srv/cloud/one/lib/mads/one_auth_mad
DB=BACKEND=sqlite
DEBUG_LEVEL=3
DEFAULT_DEVICE_PREFIX=hd
DEFAULT_IMAGE_TYPE=OS
HM_MAD=EXECUTABLE=one_hm
HOST_MONITORING_INTERVAL=600
IMAGE_REPOSITORY_PATH=/srv/cloud/one/var//images
IM_MAD=ARGUMENTS=-r 0 -t 15 kvm,EXECUTABLE=one_im_ssh,NAME=im_kvm
MAC_PREFIX=02:00
MANAGER_TIMER=15
NETWORK_SIZE=254
PORT=2633
SCRIPTS_REMOTE_DIR=/var/tmp/one
TM_MAD=ARGUMENTS=tm_nfs/tm_nfs.conf,EXECUTABLE=one_tm,NAME=tm_nfs
VM_DIR=/srv/cloud/one/var/
VM_HOOK=ARGUMENTS=$VMID,COMMAND=image.rb,NAME=image,ON=DONE
VM_MAD=ARGUMENTS=-t 15 -r 0
kvm,DEFAULT=vmm_ssh/vmm_ssh_kvm.conf,EXECUTABLE=one_vmm_ssh,NAME=vmm_kvm,TYPE=kvm
VM_POLLING_INTERVAL=600
VNC_BASE_PORT=5900
--
Thu Jun  2 16:52:09 2011 [ONE][I]: Bootstraping OpenNebula database.
Thu Jun  2 16:52:09 2011 [VMM][I]: Starting Virtual Machine Manager...
Thu Jun  2 16:52:09 2011 [LCM][I]: Starting Life-cycle Manager...
Thu Jun  2 16:52:09 2011 [VMM][I]: Virtual Machine Manager started.
Thu Jun  2 16:52:09 2011 [InM][I]: Starting Information Manager...
Thu Jun  2 16:52:09 2011 [InM][I]: Information Manager started.
Thu Jun  2 16:52:09 2011 [LCM][I]: Life-cycle Manager started.
Thu Jun  2 16:52:09 2011 [TrM][I]: Starting Transfer Manager...
Thu Jun  2 16:52:09 2011 [DiM][I]: Starting Dispatch Manager...
Thu Jun  2 16:52:09 2011 [TrM][I]: Transfer Manager started.
Thu Jun  2 16:52:09 2011 [DiM][I]: Dispatch Manager started.
Thu Jun  2 16:52:09 2011 [ReM][I]: Starting Request Manager...
Thu Jun  2 16:52:09 2011 [ReM][I]: Starting XML-RPC server, port 2633 ...
Thu Jun  2 16:52:09 2011 [ReM][I]: Request Manager started.
Thu Jun  2 16:52:09 2011 [HKM][I]: Starting Hook Manager...
Thu Jun  2 16:52:09 2011 [AuM][I]: Starting Auth Manager...
Thu Jun  2 16:52:09 2011 [AuM][I]: Authorization Manager started.
Thu Jun  2 16:52:09 2011 [HKM][I]: Hook Manager started.
Thu Jun  2 16:52:11 2011 [VMM][I]: Loading Virtual Machine Manager
drivers.
Thu Jun  2 16:52:11 2011 [VMM][I]:  Loading driver: vmm_kvm (KVM)
Thu Jun  2 16:52:11 2011 [VMM][I]:  Driver vmm_kvm loaded.
Thu Jun  2 16:52:11 2011 [InM][I]: Loading Information Manager drivers.
Thu Jun  2 16:52:11 2011 [InM][I]:  Loading driver: im_kvm
Thu Jun  2 16:52:11 2011 [InM][I]:  Driver im_kvm loaded
Thu Jun  2 16:52:11 2011 [TM][I]: Loading Transfer Manager drivers.
Thu Jun  2 16:52:11 2011 [VMM][I]:  Loading driver: tm_nfs
Thu Jun  2 16:52:11 2011 [TM][I]:   Driver tm_nfs loaded.
Thu Jun  2 16:52:11 2011 [HKM][I]: Loading Hook Manager driver.
Thu Jun  2 16:52:11 2011 [HKM][I]:  Hook Manager loaded
Thu Jun  2 16:52:11 2011 [AuM][I]: Loading Auth. Manager driver.
Thu Jun  2 16:52:11 2011 [MAD][E]: MAD did not answer INIT command
Thu Jun  2 16:52:12 2011 [ReM][D]

Re: [one-users] Failed to login in Sunstone NameError OpenNebula 2.2.1

2011-06-09 Thread Wojciech Piatek

Hi,

You can also try installing older version of rack. I had the similar  
issues with sunstone and downgrading this gem to version 1.2.1 solved  
the problem. Afterwards, probably you'll have to change the config.ru  
file in $LIB_LOCATION/sunstone/directory by providing "::" before  
File.dirname(__FILE__) statement. An appropriate line should look then  
like this:

$: << ::File.dirname(__FILE__)

Regards,
Wojtek


Quoting Matthias Pauer :


On Thursday, June 09, 2011 12:53:56 AM Héctor Sanjuán wrote:

Hi,

I cannot reproduce this :(. Ubuntu does not usually handle gem paths
very well. Can you check make sure that the gems correspond to the ruby
version you are using? Also, can you make sure you're not missing any
previous error in the log file. Can you also try to run "ruby
sunstone-server.rb" and see if it works like that? This file is in
/srv/cloud/one/lib/sunstone/ or /usr/lib/one/sunstone depending on
System-wide or self-contained installation.

Hope it helps,

Hector

El 08/06/11 22:47, Nick Zhu escribió:
> Hi,
>
> I downloaded and installed OpenNebula 2.2.1 from the tar. Went through
> the installation alright and the cli interface is working now, however
> having problem login into sunstone. Here is the error I am getting:
>
> NameError: uninitialized constant Rack::Multipart
>
> /var/lib/gems/1.8/gems/rack-1.3.0/lib/rack/request.rb:306:in
>
> `parse_multipart'
>
> /var/lib/gems/1.8/gems/rack-1.3.0/lib/rack/request.rb:182:in
> `POST'
>
> /var/lib/gems/1.8/gems/rack-1.3.0/lib/rack/methodoverride.rb:15:in `call'
>
> /var/lib/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:1272:in
>
> `call'
>
> /var/lib/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:1303:in
>
> `synchronize'
>
> /var/lib/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:1272:in
>
> `call'
>
> /var/lib/gems/1.8/gems/rack-1.3.0/lib/rack/lint.rb:48:in `_call'
> /var/lib/gems/1.8/gems/rack-1.3.0/lib/rack/lint.rb:36:in `call'
>
> /var/lib/gems/1.8/gems/rack-1.3.0/lib/rack/showexceptions.rb:24:in `call'
>
> /var/lib/gems/1.8/gems/rack-1.3.0/lib/rack/commonlogger.rb:18:in
>
> `call'
>
> /usr/lib/ruby/1.8/rack/content_length.rb:13:in `call'
> /usr/lib/ruby/1.8/rack/chunked.rb:15:in `call'
> /usr/lib/ruby/1.8/thin/connection.rb:76:in `pre_process'
> /usr/lib/ruby/1.8/thin/connection.rb:74:in `catch'
> /usr/lib/ruby/1.8/thin/connection.rb:74:in `pre_process'
> /usr/lib/ruby/1.8/thin/connection.rb:57:in `process'
> /usr/lib/ruby/1.8/thin/connection.rb:42:in `receive_data'
> /usr/lib/ruby/1.8/eventmachine.rb:257:in `run_machine'
> /usr/lib/ruby/1.8/eventmachine.rb:257:in `run'
> /usr/lib/ruby/1.8/thin/backends/base.rb:57:in `start'
> /usr/lib/ruby/1.8/thin/server.rb:156:in `start'
> /usr/lib/ruby/1.8/rack/handler/thin.rb:14:in `run'
> /usr/lib/ruby/1.8/rack/server.rb:155:in `start'
> /usr/lib/ruby/1.8/rack/server.rb:83:in `start'
> /usr/bin/rackup:4
>
> I am running on Ubuntu 11.04 server with:
>
> ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux]
>
> *** LOCAL GEMS ***
>
> daemons (1.1.3)
> eventmachine (0.12.10)
> json (1.5.1)
> mkrf (0.2.3)
> multipart-post (1.1.2)
> rack (1.3.0)
> rake (0.9.2)
> sequel (3.24.1)
> sinatra (1.2.6)
> thin (1.2.11)
> tilt (1.3.2)
>
> Tried reinstall ruby and rack as suggested online and no luck. Also
> checked all the log files and did not find any problem other than this
> error. Does somebody have any idea how to fix this?
>
>
> Thanks,
>
> Nick
>
>
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


When I had exactly the same problem, ONE_AUTH was missing for the   
user running

sunstone.
The message was truncated in the log.


--
_

iqundu GmbH
Kronstadter Straße 8
81677 München

Phone: +49 (0)   89 / 800 440 22
Mobile: +49 (0) 176 / 450 405 09
Fax:   +49 (0) 3212 / 13 25 292

matthias.pa...@iqundu.com
http://www.iqundu.com

iqundu GmbH, Sitz: München
Amtsgericht München HRB 186525

Geschäftsführer: Michael Rau, Andreas Kretschmer

Die in dieser E-Mail enthaltenen Informationen sind vertraulich und können
rechtlich bedeutsam sein. Sie sind ausschließlich für den Adressaten bestimmt
und jeglicher Zugriff durch andere Personen ist unzulässig. Falls Sie nicht
der beabsichtigte Empfänger sind, ist jegliche Veröffentlichung, Verteilung
oder sonstige in diesem Zusammenhang stehende Handlung untersagt und unter
Umständen rechtswidrig. Herkömmliche E-Mails sind zudem nicht gegen Zugriff
geschützt und können mit und ohne Einfluss von Dritten verloren gehen,
verändert oder verfälscht werden. Eine Haftung für die Unversehrtheit von E-
Mails oder hieraus entstandene Schäden kann daher nicht übernommen werden.

The information in this e-mail is confidential and may be legally p