[one-users] Can't resume a VM after suspending or stopping it.

2011-05-05 Thread Khoa Nguyen
Hj all.
I have a problem when i resume a VM after suspending or stopping.
Some information in oned.log file.
Sat May  7 16:45:20 2011 [LCM][I]: New VM state is SAVE_SUSPEND
Sat May  7 16:50:04 2011 [DiM][I]: New VM state is SUSPENDED
Sat May  7 17:46:12 2011 [DiM][I]: New VM state is ACTIVE.
Sat May  7 17:46:12 2011 [LCM][I]: Restoring VM
Sat May  7 17:46:13 2011 [LCM][I]: New state is BOOT
Sat May  7 17:46:33 2011 [VMM][I]: Command execution fail: 'if [ -x
"/var/tmp/one/vmm/kvm/restore" ]; then /var/tmp/one/vmm/kvm/restore
/srv/cloud/one/var//160/images/checkpoint; else
exit 42; fi'
Sat May  7 17:46:33 2011 [VMM][I]: STDERR follows.
Sat May  7 17:46:33 2011 [VMM][I]: Connecting to uri: qemu:///system
Sat May  7 17:46:33 2011 [VMM][I]: error: Failed to restore domain from
/srv/cloud/one/var//160/images/checkpoint
Sat May  7 17:46:33 2011 [VMM][I]: error: internal error Timed out while
reading monitor startup output
Sat May  7 17:46:33 2011 [VMM][I]: ExitCode: 1
Sat May  7 17:46:33 2011 [VMM][E]: Error restoring VM, Connecting to uri:
qemu:///system
Sat May  7 17:46:34 2011 [DiM][I]: New VM state is FAILED
Anyone know? Please help me?
Thank you in advance.
-- 
Nguyễn Vũ Văn Khoa
Đại học Khoa Học Tự Nhiên TP HCM
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] sunstone configuration issues

2011-05-05 Thread Peter Farič

Hi!


Shantanu Pavgi wrote:

I am having couple of issues with sunstone-server configuration.

1. The server is listening for localhost connections only. Is there any way we can change it to listen for different address and on different port number? I tried changing it using command line options '-H and -P', but it didn't have any effect. The server starts with following command anyway: 
{{{

/usr/bin/ruby /usr/bin/rackup /srv/cloud/one/lib/sunstone/config.ru -s thin -p 
4567 -o 127.0.0.1 -P /srv/cloud/one/var/sunstone.pid
}}}

  
Interesting, I also have the server running on CentOS 5.5 but on i686 
and the -H switch works for me ("sunstone-server -H 192.168.20.228 
start"). Anyway you can change the listening address in 
"/usr/bin/sunstone-server" and change "HOST=127.0.0.1" to whatever you 
need and restart sunstone.


2. I configured sunstone-server with reverse proxy config with both - apache-httpd and lighttpd. The proxy config works fine and I can view existing resources details - VMs, hosts, vnets etc. However the sunstone-server crashes after receiving any create request. The sunstone-server PID file is not cleared but the server process quits abruptly. I am not using ssl config here. Also, I am not seeing any related log messages in the sunstone.log file. Is there any way I can increase the debugging level? 

Any hints or configuration details will be really helpful. 

System Info: OpenNebula install 2.2 on CentOS 5.5 x86_64. 

  
I have found, that for a working (in that I mean creating VMs, users, 
...) sunstone frontend in CentOS 5.X, it is very important to have at 
least "ruby-1.8.6.383-6.el5.kb.i386.rpm" from Karan repo (in your case 
it should probably be the x86_64 version). After installing this rpm you 
should probably reinstall  "json" with  "gem uninstall json" and then 
"gem install json" so it recognizes the new ruby version.


Hope it helps.


Sincerely,
Peter F.

--
Thanks,
Shantanu.

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

  


--

LP,
---
Peter Farič
Sistemski administrator
Tel.:  +386 2 613 00 79
Fax :  +386 2 613 00 60
Email: peter.fa...@ledinek.com
WWW:   http://www.ledinek.com
Ledinek Engineering d.o.o.
Bohovska cesta 19 A
SI-2311 HOČE
Slovenija
---

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


[one-users] having a problem when shut down a VM

2011-05-05 Thread Khoa Nguyen
hj all
I'm working with opennebula and KVM.
In file template of VM
FEATURES=[

acpi={yes|no} ]

When i put "yes" into acpi, VM don't shut down,
It display
at May  7 16:13:35 2011 [LCM][I]: New VM state is BOOT
Sat May  7 16:13:35 2011 [VMM][I]: Generating deployment file:
/srv/cloud/one/var/160/deployment.0
Sat May  7 16:13:46 2011 [LCM][I]: New VM state is RUNNING
Sat May  7 16:14:40 2011 [LCM][I]: New VM state is SHUTDOWN
Sat May  7 16:15:14 2011 [VMM][I]: Command execution fail: 'if [ -x
"/var/tmp/one/vmm/kvm/shutdown" ]; then /var/tmp/one/vmm/kvm/shutdown
one-160; else  exit 42; fi'
Sat May  7 16:15:14 2011 [VMM][I]: STDERR follows.
Sat May  7 16:15:14 2011 [VMM][I]: Connecting to uri: qemu:///system
Sat May  7 16:15:14 2011 [VMM][I]: Timeout reached
Sat May  7 16:15:14 2011 [VMM][I]: ExitCode: 1
Sat May  7 16:15:14 2011 [VMM][E]: Error shuting down VM, Connecting to uri:
qemu:///system
Sat May  7 16:15:14 2011 [LCM][I]: Fail to shutdown VM. Assuming that the VM
is still RUNNING (will poll VM).
Sat May  7 16:15:25 2011 [VMM][D]: Monitor Information:
CPU   : -1
Memory: 262144
Net_TX: -1
Net_RX: -1

Howerver when i put "no" into acpi .It shut down sucessfully . I don't know
why? please help me.
thank you in advance
-- 
Nguyễn Vũ Văn Khoa
Đại học Khoa Học Tự Nhiên TP HCM
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] How config Windows vm template?

2011-05-05 Thread ddd
 hi,all
   now,my winxp vm is running.but,config's ip and hostname is not right.
   now,windows vm's cd-rom is existing context.sh. 
   This is my vm config file:
NAME=WinVista
CPU=1
MEMORY=1024
OS=[boot=hd]
DISK =[source="/root/images/winxp_test.img", clone=yes, 
target=hda, readonly=no]
NIC=[network ="Small network"]
CONTEXT=[
   hostname   = "$NAME$VMID",
   ip_public  = "$NIC[IP, NETWORK=\"Small network\"]",
   target ="hdb"
]
GRAPHICS =[type ="vnc",listen ="127.0.0.1", port = "1"]
   windows template  need config?how?
   Please help me.
---Rong  Xiong






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


[one-users] sunstone configuration issues

2011-05-05 Thread Shantanu Pavgi

I am having couple of issues with sunstone-server configuration.

1. The server is listening for localhost connections only. Is there any way we 
can change it to listen for different address and on different port number? I 
tried changing it using command line options '-H and -P', but it didn't have 
any effect. The server starts with following command anyway: 
{{{
/usr/bin/ruby /usr/bin/rackup /srv/cloud/one/lib/sunstone/config.ru -s thin -p 
4567 -o 127.0.0.1 -P /srv/cloud/one/var/sunstone.pid
}}}

2. I configured sunstone-server with reverse proxy config with both - 
apache-httpd and lighttpd. The proxy config works fine and I can view existing 
resources details - VMs, hosts, vnets etc. However the sunstone-server crashes 
after receiving any create request. The sunstone-server PID file is not cleared 
but the server process quits abruptly. I am not using ssl config here. Also, I 
am not seeing any related log messages in the sunstone.log file. Is there any 
way I can increase the debugging level? 

Any hints or configuration details will be really helpful. 

System Info: OpenNebula install 2.2 on CentOS 5.5 x86_64. 

--
Thanks,
Shantanu.

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


Re: [one-users] Using Opennebula with a uncommon Xen-configuration

2011-05-05 Thread Jaime Melis
Hi Andreas,

I think what you're suggesting can be adapted fairly easily. Try reading
this [1] guide, it might clarify some concepts.

[1] http://opennebula.org/documentation:rel2.2:template

Is there any particular step you would like help with?

regards,
Jaime

On Mon, Apr 18, 2011 at 2:05 PM, Andreas  wrote:

> Hi Jaime,
>
> thanks for reading and answering.  I read the article about the the CERN
> use
> case, but in IMHO it's not the same.
> They use complete partition images for the VMs.
> The difference is, they make a dd of the VM-partition and i mount the VM-
> partition in the Dom0 and tar the files in the VM-partition. The
> tar-archive
> is my VM-image.
> The last days i looked  at the scripts of the LVM Transfer Manager. Maybe
> it's
> possible to change these scripts that they do a mount&tar instead of a dd.
> But
> i don't know how the processes work in detail.
>
> All suggestion are welcome.
>
>
> Regards
> Andreas
>
>
> > Hi Andreas,
> >
> > it seems that you have a similar use case as CERN does. Take a look at
> >  these links to see if this is what you're looking for:
> >
> > The storage setup is explained here: http://blog.opennebula.org/?p=620
> > A preliminary version of the TM drivers:
> > https://twiki.cern.ch/twiki/bin/view/FIOgroup/OpenNebula
> > and http://opennebula.org/software:ecosystem:scp-wave
> >
> > Regards,
> > Jaime
> >
> > On Wed, Apr 13, 2011 at 8:16 AM, Andreas  wrote:
> > > Hi,
> > >
> > > since i hear a  speech from Tino Vazquez on the OSDC in Germany (which
> > > was really good), im very interested in opennebula.
> > > After reading documentation und testing some parts there seems to be a
> > > problem
> > > with our uncommon Xen-configuration.
> > >
> > > We have no central storage for the images. The images are copied over
> ssh
> > > to
> > > the hosts (Dom0).
> > > Our DomUs based on LVM-partitions, which are directly mounted in the
> > > DomU. They appear as a partition and not as a disk in the DomU.
> > > The disk configuration for a DomU is like following:
> > >
> > >  'phy:/dev/system/helios-1_root,hda1,w'
> > >
> > > To save a DomU we mount the LVM-Partition in the Dom0 and make a
> > > tar-archive
> > > of the files and directories in the partition. A copy of the kernel and
> > > the initrd  is provided in the Dom0 to start the DomU with the
> > > Xen-bootloader.
> > >
> > > Does support Opennebula such a type of configuration and if not, how
> > > difficult
> > > it is to adjust it? Where i must start, if i want integrate these
> > > configuration?
> > >
> > >
> > > Thanks,
> > > Andreas
> > > ___
> > > 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
>



-- 
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] ebtables-kvm issue

2011-05-05 Thread Jaime Melis
Hi Kees,

you are right, the hook was broken. You can find the bug report here [1] and
the patch here [2].

[1] http://dev.opennebula.org/issues/617
[2]
http://dev.opennebula.org/projects/opennebula/repository/revisions/0e88d4248ac55aaba2cefcec8e28bb808b9b8a1c

Regards,
Jaime

On Thu, Apr 14, 2011 at 9:12 PM, Kees Verstoep  wrote:

> Hi,
>
> Like others on this list I am also experimenting with setting
> up ebtables for KVM and ran into the issue that the ebtables-kvm
> script does not appear to add rules.
>
> After some debugging there turns out to be a relevant difference
> between this version on the site:
> http://opennebula.org/documentation:archives:rel2.0:nm
> and the version included with 2.2.
> The 2.2 version does not flatten the hash-of-arrays containing
> the bridging interfaces, and as a result the condition
>if interfaces.include? tap
> never succeeds it seems, so activation never occurs.
> Note I am not a Ruby expert, maybe someone can have a look.
>
> Regards,
> Kees Verstoep
> ___
> 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] Can't boot with Windows XP image

2011-05-05 Thread Jaime Melis
Hi,

apparently the virtual hardware that libvirt generates doesn't match the one
created with:
qemu -m 512 -hda centos5.5.img -cdrom centos.iso -boot d
therefore windows detects a hardware change and it won't boot.

I suggest using a different technique, use a template similar to this one:

--8<--
[...]
OS = [
BOOT = "cdrom",
ARCH = "x86_64"
]

DISK = [
source = "/path/to/windows.iso",
type= "cdrom",
target  = "hdc"
]

DISK = [ TYPE   = block,
 SIZE   = 10240,
 SAVE   = yes,
 TARGET = sda ]

GRAPHICS = [
TYPE= "vnc",
LISTEN  = "0.0.0.0",
PORT= "5900"
]

[...]
-->8--

Once the VM is running you can install the OS with VNC. After that you will
be able to run the image.

Hope this helps.

cheers,
Jaime

On Fri, Apr 15, 2011 at 4:29 AM, Hoang Dinh Phuc  wrote:

> Hi all,
>
> My LAB is total 3 physical server
>
>- OpenNebula version 2.2 (CentOS 5.5)
>- KVM host ( Ubuntu Server 10.10)
>- VMWARE ESX4.0
>
> In KVM host, i've installed 2 images: centos5.5.img and winxp.img by the
> following command:
>
>- cd /srv/cloud/images (Repository images of OpenNebula)
>- qemu-img create -f raw centos5.5.img 4G
>- qemu -m 512 -hda centos5.5.img -cdrom centos.iso -boot d
>- (the same with windows xp)
>
> After finish installation, i made 2 vm template:
> vm_centos.one
> NAME   = centos_raw.img
> CPU= 0.3
> MEMORY = 512
>
> DISK   = [
>   source   = "/srv/cloud/images/centos_raw.img",
>   type  = disk,
>   target   = "hda",
>   bus = ide,
>   driver = raw,
>   readonly = "no" ]
>
> NIC= [ NETWORK = "DMZ LAN" ]
>
> FEATURES=[ acpi="no" ]
>
> GRAPHICS = [
>   type = "vnc",
>   listen = "127.0.0.1",
>   port = "5917"]
>
> vm_winxp.oneNAME   = winxp_raw.img
> CPU= 0.3
> MEMORY = 512
>
> DISK   = [
>   source   = "/srv/cloud/images/winxp_raw.img",
>   type  = disk,
>   target   = "hda",
>   bus = ide,
>   driver = raw,
>   readonly = "no" ]
>
> NIC= [ NETWORK = "DMZ LAN" ]
>
> FEATURES=[ acpi="no" ]
>
> GRAPHICS = [
>   type = "vnc",
>   listen = "127.0.0.1",
>   port = "5916"]
>
> Then, I deploy 2 images to OpenNebula.
> The centos VM is running and booting sucessfully.
> Thhe windowsXP is running but it can't boot. It make an error:
> "We apologize for the convenience, but the Windows can not start
> sucessfully. A recent hardware or software chage has caused this."
>
> Please show me the solution
>
> Thanks
>
> ---
> F:  Hoang Dinh Phuc
> E:  hdp...@gmail.com
> M: +84909398700
>
>
> ___
> 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] Installation Problem, CentOS 5.5 x86_64, opennebula 2.0.1 / 2.2

2011-05-05 Thread Jaime Melis
Hi,

I'm afraid we haven't been able to reproduce that bug. In our case, using a
similar environment it does compile. Are you still experiencing this? any
extra clues that might help?

regards,
Jaime

2011/4/21 蒋清野 

> Hi,
>
> I am having problem installing opennebula onto CentOS 5.5 x86_64. Please
> kindly help.
>
> First of all, this is a freshly installed CentOS 5.5 x86_64 on a 64bit
> system. The selected components are "Server" and "Virtualization".
>
> Second, I did read and followed the instructions at the following URL:
>
> *http://opennebula.org/documentation:rel2.0:notes
>
> Third, I have also followed this thread, with no luck:
>
> http://lists.opennebula.org/htdig.cgi/users-opennebula.org/2010-October/003111.html
>
> Therefore I think it would be better for me to describe my installation 
> procedures, so that you guys could help.
>
> The following operations were executed by root.
>
> (1) Install a CentOS 5.5 x86_64 system, with "Server" and "Virtualization" as 
> the selected components. Then login as root.
>
> (2) Setup CentOS Karan Depo
>
> *# cd /etc/yum.repos.d
> # wget http://centos.karan.org/kbsingh-CentOS-Extras.repo
>
> Edit kbsingh-CentOS-Extras.repo and set "enabled=1" for kbs-CentOS-Testing.
>
> # yum update
>
> (3) Install the many packages
>
> # yum install gcc gcc-c++ make openssl-devel flex bison
> # yum install ruby ruby-devel ruby-docs ruby-ri ruby-irb ruby-rdoc
> # yum install rubygems
> # gem install nokogiri rake xmlparser
> # yum install scons
> # yum install xmlrpc-c xmlrpc-c-devel
>
> (4) Install sqlite 3.6.17
>
> # wget http://www.sqlite.org/sqlite-amalgamation-3.6.17.tar.gz
> # tar xvzf sqlite-amalgamation-3.6.17.tar.gz
> # cd sqlite-3.6.17/
> # ./configure; make; make install
>
> (5) Setup directories, groups, and users
>
> # mkdir -p /srv/cloud/one
> # mkdir -p /srv/cloud/images
> # groupadd cloud
> # useradd -d /srv/cloud/one -g cloud -m oneadmin
>
> (6) Download opennebula-2.2.tar.gz, unpack into /tmp/opennebula-2.2
> directory, and compile
>
> # scons
>
> scons: Reading SConscript files ...
> Testing recipe: pkg-config
>   Error calling pkg-config xmlrpc_server_abyss++ --static --libs
> Testing recipe: xmlrpc-c-config
>   Error calling xmlrpc-c-config c++2 abyss-server --libs --cflags
> Testing recipe: mixed hardcoded libraries and xmlrpc-c-config (debian lenny)
>   Error calling xmlrpc-c-config c++2 abyss-server --libs --cflags
> Testing recipe: hardcoded libraries for Mac OS X (installed using port)
> g++ .xmlrpc_test/xmlrpc_test.28bf26.cc -o 
> .xmlrpc_test/xmlrpc_test.28bf26.cc.out
>  -I/opt/local/include -L/opt/local/lib -lwwwxml -lxmltok -lxmlparse -lwwwzip 
> -lw
> wwinit -lwwwapp -lwwwtelnet -lwwwhtml -lwwwnews -lwwwhttp -lwwwmime 
> -lwwwgopher
> -lwwwftp -lwwwfile -lwwwdir -lwwwcache -lwwwstream -lwwwmux -lwwwtrans 
> -lwwwcore
>  -lwwwutils -lmd5 -ldl -lz -lpthread -lxmlrpc_client++ -lxmlrpc_client 
> -lxmlrpc+
> + -lxmlrpc -lxmlrpc_util -lxmlrpc_xmlparse -lxmlrpc_xmltok 
> -lxmlrpc_server_abyss
> ++ -lxmlrpc_server++ -lxmlrpc_server_abyss -lxmlrpc_server -lxmlrpc_abyss 
> 1>>.xm
> lrpc_test/xmlrpc_test.28bf26.cc.log 2>&1
>
>
> Error searching for xmlrpc-c libraries. Please check this things:
>
>  * You have installed development libraries for xmlrpc-c. One way to check
>this is calling xmlrpc-c-config that is provided with the development
>package.
>  * Check that the version of xmlrpc-c is at least 1.06. You can do this also
>calling:
>$ xmlrpc-c-config --version
>  * If all this requirements are already met please send log files located in
>.xmlrpc_test to the mailing list.
>
> TypeError: 'str' object is not callable:
>   File "/tmp/opennebula-2.2/SConstruct", line 151:
> exit(-1)
>
>
> (7) Try the following resolution
>
>
> http://lists.opennebula.org/htdig.cgi/users-opennebula.org/2010-October/003118.html
>
> # wget 
> http://centos.karan.org/el5/extras/testing/SRPMS/xmlrpc-c-1.06.18-1.el5.kb.src.rpm
> # rpmbuild --rebuild xmlrpc-c-1.06.18-1.el5.kb.src.rpm
> # cd /usr/src/redhat/RPMS/x86_64/
> # rpm -i xmlrpc-c-1.06.18-1.x86_64.rpm
> # rpm -i xmlrpc-c-devel-1.06.18-1.x86_64.rpm
>
> Try again, failed with the same error messages.
>
> (8) Try the binary packages, 2.0-1 and 2.2-1 have the same problem.
>
> bash-3.2# yum localinstall --nogpgcheck opennebula-2.0-1.x86_64.rpm
> Loaded plugins: fastestmirror
> Setting up Local Package Process
> Examining opennebula-2.0-1.x86_64.rpm: opennebula-2.0-1.x86_64
> Marking opennebula-2.0-1.x86_64.rpm to be installed
> Loading mirror speeds from cached hostfile
>  * addons: ftp.monash.edu.au
>  * base: ftp.monash.edu.au
>  * epel: mirror.aarnet.edu.au
>  * extras: ftp.monash.edu.au
>  * updates: ftp.monash.edu.au
> Resolving Dependencies
> --> Running transaction check
> ---> Package opennebula.x86_64 0:2.0-1 set to be updated
> --> Processing Dependency: libxmlrpc++.so.3()(64bit) for package: opennebula
> --> Processing Dependency: libxmlrpc_client++.so.3()(64bit) for package: 
> openneb

Re: [one-users] SRPMs for 2.2-1 available?

2011-05-05 Thread Jaime Melis
Hi Töns,

there are some srpm's available in
http://dev.opennebula.org/projects/packages/files

I'll try to post the OpenNebula 2.2 srpm's. What previous versions are you
looking for? I'm afraid we haven't kept those...

regards,
Jaime

On Tue, Apr 26, 2011 at 9:48 AM, Toens Bueker <
toens.bue...@lists0903.nurfuerspam.neuroserve.de> wrote:

> Hi *,
>
> http://dev.opennebula.org/projects/packages/files has SRPMs for
> CentOS/RHEL for older versions of OpenNebula before 2.2-1. Could
> somebody make the SRPM for 2.2-1 available, as well?
>
> Thx.
>
> Kind regards,
> Töns
> --
> There is no safe distance.
> ___
> 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] OpenNebula Express Addons

2011-05-05 Thread Jaime Melis
Hi,


> I have some issues during OpenNebula installation with Express addons.
> After finishing installation on front node, I checked there was no
> /cloud/one directory on /srv/ although the installer script set installation
> to /srv/cloud/one although OpenNebula daemon succesfully started.
>
>
OpenNebula Express installs in system wide mode. You have to look for
/var/lib/one instead of /srv/cloud/one, which will be oneadmin's home
directory.


> And I still didn't know how to execute generated node-install.sh script
> from frontnode to install it at each worker nodes. Sorry, I am newbie to
> linux command and opennebula. Hope someone can help my problems. Thanks.
>

you have to copy the script to the worker node. Try doing it with scp (you
need to have an ssh server enabled in the worker node). Once it's copied run
it with sudo.

cheers,
Jaime


-- 
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] ebtables hook [CLOSED]

2011-05-05 Thread Jaime Melis
Hello Frédéric,

apologies for taking so long to get around this. You're right, the script is
broken: we have submitted a bug [1] and a patch [2] for the one-2.2 branch.

[1] http://dev.opennebula.org/issues/617
[2]
http://dev.opennebula.org/projects/opennebula/repository/revisions/0e88d4248ac55aaba2cefcec8e28bb808b9b8a1c

Regarding your concern about the ebtables hook, you're also right, it is
limited to class C networks and fixed subnets, although it's extensively
used in other cloud softwares (for example in libvirt) since it doesn't
require any special network hardware and it's easy to configure. However
we're currently working on improving the network management in OpenNebula.

Regards,
Jaime


2011/4/28 Frédéric Dreier 

> Oh ok... I understand the purpose of this hook now (and how it abuses mac
> addresses mask).
>
> I find this solution a little bit dirty and limited (fixed subnets, need
> different IP range for each virtual network, etc). Therefore I will continue
> to setup a bridge for each vnet.
>
> However the script seems broken.
>
> Regards
>
> Frederic
>
>
>
>
>
>
>
> Le 28 avril 2011 09:26, Frédéric Dreier  a
> écrit :
>
>> Hi,
>>
>> I have some problems using ebtables-kvm hooks script.
>>
>> I use the one saved in the GIT (the one from the documentation seems
>> deprecated).
>>
>> get_interfaces return this hash table:
>>
>>  >> {"br-vnets"=>["vnet1", "vnet2", "vnet3", "vnet4"],
>> "br-test"=>["vnet0"], "virbr0"=>[nil]}"
>>
>> therefor the following 'if' statement failed for tap="vnet1" (which is my
>> VM's interface):
>>
>> >> if interfaces.include? tap
>>
>>
>> Thanks for your help,
>>
>> Frederic
>>
>>
>
> ___
> 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] How to allow regular users to login to the cloud remotely, safely and using the cloud concurrently?

2011-05-05 Thread Anders Branderud
Hello again!

I solved the other problem. I was expecting that the user should be asked to
give a password when logging in to OpenNebula through the oneadmin-account,
but apparently this wasn't the case. I succeed to login as another user
through the oneadmin-account.

Could you give me any ideas of what's the best way to implement this (I am
doing a bachelor's thesis) [I know how to implement most of the below and I
will ask specifically after the following paragraphs what I need help with.
Problem description that I have written):

ICT at Royal Institute of Technology [KTH]- a university of Stockholm in
> Sweden - have 16 computers that they are not using, which they bought from
> PDC at KTH couple of years ago. One of the goals is to install OpenNebula
> [explained below] on them all, with one of the computers being the front
> end. I call this cluster of nodes Cloudelia.
>
> The system should follow the following requirements:
> In this system we have administrators and ordinary users (‘user’). The
> administrators have the right to grant other KTH users the privilege to
> become administrators. In order for a user to use the system, authentication
> needs to be done to ensure that it has a KTH-account. When an administrator
> sees an get permission-request from an user and is deciding on whether to
> approve the user or not, it must be able to rely on than an
> authentication-mechanism ensures that the user really is the user with the
> specific KTH-user name shown in the interface. This ensures that any user
> outside of KTH with an intent to use Cloudelia in a malicious way doesn’t
> get access to the system.
>
> An administrator is presented with information of all KTH-users that have
> requested and are waiting for to get permission to use OpenNebula for a
> certain course. The administrator can grant permission to any number of
> these users at a time, and upon granting permission these users will get
> access to Cloudelia as Open Nebula-’regular users’ [explained below] using
> the login details they provided upon requesting permission to Cloudelia. An
> administrator can see a list of all the users of a certain course and can
> change the permission rights of an user.
>
> The described procedure of handling the accounts reduces the work load of
> the administratiors. One advantage is that they don’t need to set up
> accounts for each user one at a time, by manually assigning them user names,
> passwords and entering the commands required in OpenNebula for creating an
> Open Nebula-regular user.



> [More information of my proposed solution is found here: 
> Link
> ]
>

* More specifically I wonder how to solve this:*
When the administrator has approved a student to get permission to access
the cloud, and his/her OpenNebula account including password has been
created: How should the student access the cloud? Could you suggest to me a
safe way that can handle multiple users at the same time?

The cloud stands in a server hall, so the user should access the cloud
through some remote access.
How do I allow the user to get access to the cloud when he/she
provides his/her username and password.
What kind of interface for the user to provide his/her username and
password is the smoothest solution?
Many users will access the cloud at the same time.

Thanks for your help!

--Kind Regards, Anders Branderud

[Personal blog] www.proofexistencegod.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] Command execution fail: 'if [ -x "" ]; then Creating; else exit 42; fi'

2011-05-05 Thread knawnd

Dear OpenNebula experts,

I am still working on implementing OpenVZ support in OpenNebula 
(unfortunately the progress is pretty slow since I am busy with many 
other things).
There are the error messages in $ONE_LOCATION/var//vm.log and 
oned.log similar to the following pattern:
Command execution fail: 'if [ -x "" ]; then 
 Creating; else exit 42; fi'


In particular
vm.log:
[...]
Thu May  5 18:16:45 2011 [VMM][I]: Command execution fail: 'if [ -x 
"/tmp/one//vmm/ovz/poll" ]; then /tmp/one//vmm/ovz/poll Creating; else 
exit 42; fi'

Thu May  5 18:16:45 2011 [VMM][I]: STDERR follows.
Thu May  5 18:16:45 2011 [VMM][I]: ExitCode: 42
Thu May  5 18:16:45 2011 [VMM][E]: Error monitoring VM, Warning: 
Permanently added '' (RSA) to the list of known 
hosts.

Thu May  5 18:22:45 2011 [DiM][I]: New VM state is DONE
Thu May  5 18:22:45 2011 [VMM][W]: Ignored: LOG - 26 Driver command for 
26 cancelled
Thu May  5 18:22:45 2011 [VMM][W]: Ignored: LOG - 26 Command execution 
fail: 'if [ -x "/tmp/one//vmm/ovz/cancel" ]; then 
/tmp/one//vmm/ovz/cancel Creating; else 
exit 42; fi'

Thu May  5 18:22:45 2011 [VMM][W]: Ignored: LOG - 26 STDERR follows.
Thu May  5 18:22:45 2011 [VMM][W]: Ignored: LOG - 26 Argument "Creating" 
isn't numeric in addition (+) at /tmp/one//vmm/ovz/cancel line 28.
Thu May  5 18:22:45 2011 [VMM][W]: Ignored: LOG - 26 Container config 
file does not exist
Thu May  5 18:22:45 2011 [VMM][W]: Ignored: LOG - 26 Failed to execute 
sudo /usr/sbin/vzctl stop 100 (3584):  at /tmp/one//vmm/ovz/cancel line 44.

Thu May  5 18:22:45 2011 [VMM][W]: Ignored: LOG - 26 ExitCode: 14
Thu May  5 18:22:45 2011 [HKM][I]: Hook image successfully executed.
[...]

$ONE_LOCATION/var/remotes/vmm/ovz/poll is not yet implemented (at the 
moment it is copied from $ONE_LOCATION/var/remotes/vmm/xen/poll) but 
$ONE_LOCATION/var/remotes/vmm/ovz/cancel is what already implemented for 
OpenVZ and what I am trying to test.


As far as I understand from OpenNebula development docs 
$ONE_LOCATION/var/remotes/vmm/xen/poll has to be invoked on remote host 
with argument VMID i.e.
'$SOME_PATH_TO_REMOTE_SCRIPTS/vmm/ovz/cancel ' but as one can see 
from vm.log these command is '/tmp/one//vmm/ovz/cancel Creating' 
(Creating instead of VMID).
If /tmp/one//vmm/ovz/cancel is invoked on remote machine manually with 
VMID as argument i.e.:

$ /tmp/one//vmm/ovz/cancel 26
that script works as expected (stops and deletes VM).

What can be a reason for error messages in vm.log mentioned above? Any 
hint how to debug further?


I am using OpenNebula 2.2.0 and my oned.conf is below:
$ grep -v ^# one-2.2.0/etc/oned.conf |uniq

HOST_MONITORING_INTERVAL = 600

VM_POLLING_INTERVAL  = 600

VM_DIR=/vz/one/vm

SCRIPTS_REMOTE_DIR=/tmp/one/

PORT=2633

DB = [ backend = "sqlite" ]

VNC_BASE_PORT = 5900

DEBUG_LEVEL=3

NETWORK_SIZE = 254

MAC_PREFIX   = "02:00"

DEFAULT_IMAGE_TYPE= "OS"
DEFAULT_DEVICE_PREFIX = "sd"

IM_MAD = [
name   = "im_xen",
executable = "one_im_ssh",
arguments  = "xen" ]

IM_MAD = [
  name   = "im_ovz",
  executable = "one_im_ssh",
  arguments  = "ovz" ]

VM_MAD = [
name   = "vmm_xen",
executable = "one_vmm_ssh",
arguments  = "xen",
default= "vmm_ssh/vmm_ssh_xen.conf",
type   = "xen" ]

VM_MAD = [
name   = "vmm_ovz",
executable = "one_vmm_ssh",
arguments  = "ovz",
type   = "xml" ]

TM_MAD = [
name   = "tm_ssh",
executable = "one_tm",
arguments  = "tm_ssh/tm_ssh.conf" ]

HM_MAD = [
executable = "one_hm" ]

VM_HOOK = [
name  = "image",
on= "DONE",
command   = "image.rb",
arguments = "$VMID" ]

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


Re: [one-users] MAC address spoofing

2011-05-05 Thread Jaime Melis
Hi,

yes it does. Read this for an explanation:
http://www.mail-archive.com/users@lists.opennebula.org/msg02455.html

regards,
Jaime

On Thu, May 5, 2011 at 4:10 PM, Rangababu Chakravarthula  wrote:

> Does the ebtales script given here
>
> http://opennebula.org/documentation:rel2.2:nm
>
> also address MAC address spoofing given here?
>
>
> http://publib.boulder.ibm.com/infocenter/lnxinfo/v3r0m0/index.jsp?topic=/liaat/liaatkvmsecmac.htm
>
> ___
> 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] MAC address spoofing

2011-05-05 Thread Rangababu Chakravarthula
Does the ebtales script given here

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

also address MAC address spoofing given here?

http://publib.boulder.ibm.com/infocenter/lnxinfo/v3r0m0/index.jsp?topic=/liaat/liaatkvmsecmac.htm
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] onevmware register error

2011-05-05 Thread antoni artigues
Hi

Thanks for the answer.

One more question: In my new image the "vmUbuntu-copy.vmdk" contains the
entire disc, I don't have any flat file.

Do I have to split the image in flat files to register in opennebula??
How can I do it?

Thanks in advance

Antoni Artigues

El jue, 05-05-2011 a las 15:11 +0200, Tino Vazquez escribió:
> Hi Antoni,
> 
> Yes ,it is mandatory. The plain .vmdk file is a test descriptor file,
> where the flat files are the binaries that actually contains the disk.
> 
> Regards,
> 
> -Tino
> 
> --
> Constantino Vázquez Blanco | dsa-research.org/tinova
> Virtualization Technology Engineer / Researcher
> OpenNebula Toolkit | opennebula.org
> 
> 
> 
> On Thu, May 5, 2011 at 3:08 PM, antoni artigues  wrote:
> > Hello
> >
> > I'm trying to register an vmware image with this command:
> >
> > onevmware register
> > --disk-vmdk /srv/cloud/one/var/vmUbuntu2/vmUbuntu-copy.vmdk vmUbuntu.one
> >
> > But I obtan this error:
> >
> > Error: Files not found.
> >
> > However I'm sure that the paths and file names are correct. Where is the
> > problem?
> >
> > I registered another image successfully with this comand:
> >
> > onevmware register--disk-vmdk /srv/cloud/one/var/ubuntu/ubuntu10_32.vmdk
> > --disk-flat 
> > /srv/cloud/one/var/ubuntu/ubuntu10_32_2.vmdk,/srv/cloud/one/var/ubuntu/ubuntu10_32_2-flat.vmdk
> >  ubuntu_img.one
> >
> > Is it mandatory to register a image with flat files???
> >
> > Thanks in advance
> >
> > Antoni Artigues
> >
> > ___
> > 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] Unable to Stop Running VM

2011-05-05 Thread Koushik Annapureddy
Hello Tino,

While using virsh save command I did not get any error message.

On Thu, May 5, 2011 at 2:19 PM, Koushik Annapureddy
wrote:

> Hello Tino,
>
> I am able to successfully save( using virsh) running ttylinux VM and Ubuntu
> VM  to a file and restore it.
>
> Thanks
> Koushik
>
> On Thu, May 5, 2011 at 12:49 PM, Tino Vazquez wrote:
>
>> Hi,
>>
>> Do you get the same behavior using "virsh save"?
>>
>> Regards,
>>
>> -Tino
>>
>> --
>> Constantino Vázquez Blanco, MSc
>> OpenNebula Major Contributor
>> www.OpenNebula.org | @tinova79
>>
>>
>>
>> On Thu, May 5, 2011 at 10:13 AM, Koushik Annapureddy
>>  wrote:
>> > Hello Tino,
>> > I have followed these steps as per the link mentioned
>> > 1)  edit /etc/libvirt/qemu.conf, and uncomment the line that says
>> > "dynamic_ownership = 1" and change the 1 to a 0
>> > 2) Restart libvirtd
>> >
>> >
>> >  I guess that all the disk image files are used by qemu are set to
>> proper
>> > ownership since qemu is sucessfull in launching the VM's.
>> > After performing these steps I am still facing the same issue ( When i
>> > issues onevm stop vmid ), Here is the log info
>> > Thu May  5 11:02:53 2011 [VMM][D]: Message received: LOG - 46 ExitCode:
>> 1
>> > Thu May  5 11:02:53 2011 [VMM][D]: Message received: SAVE FAILURE 46
>> error:
>> > Failed to save domain one-46 to /srv/cloud/one/var//46/images/checkpoint
>> > Thu May  5 11:02:53 2011 [VMM][D]: Message received: error: unable to
>> set
>> > user and group to '0:0' on '/srv/cloud/one/var//46/images/checkpoint':
>> > Invalid argument
>> > Thu May  5 11:02:53 2011 [VMM][D]: Message received: ExitCode: 1
>> > Thu May  5 11:02:54 2011 [VMM][D]: Message received: POLL SUCCESS 46
>> STATE=a
>> > USEDMEMORY=131072
>> > Thank you for the help..
>> > Thanks
>> > Koushik
>> >
>> >
>> > On Wed, May 4, 2011 at 4:24 PM, Tino Vazquez 
>> wrote:
>> >>
>> >> Hi,
>> >>
>> >> Yes, this is a permissions issue. Please see if this [1] provides any
>> >> hints to solve the issue.
>> >>
>> >> Regards,
>> >>
>> >> -Tino
>> >>
>> >> [1] http://osdir.com/ml/libvir-list/2011-04/msg01220.html
>> >> --
>> >> Constantino Vázquez Blanco, MSc
>> >> OpenNebula Major Contributor
>> >> www.OpenNebula.org | @tinova79
>> >>
>> >>
>> >>
>> >> On Wed, May 4, 2011 at 2:31 PM, Koushik Annapureddy
>> >>  wrote:
>> >> > unable to set user and group to '0:0' o
>> >
>> >
>> >
>> > --
>> > Thanks
>> > Koushik Annapureddy
>> >
>>
>
>
>
> --
> 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] onevmware register error

2011-05-05 Thread Tino Vazquez
Hi Antoni,

Yes ,it is mandatory. The plain .vmdk file is a test descriptor file,
where the flat files are the binaries that actually contains the disk.

Regards,

-Tino

--
Constantino Vázquez Blanco | dsa-research.org/tinova
Virtualization Technology Engineer / Researcher
OpenNebula Toolkit | opennebula.org



On Thu, May 5, 2011 at 3:08 PM, antoni artigues  wrote:
> Hello
>
> I'm trying to register an vmware image with this command:
>
> onevmware register
> --disk-vmdk /srv/cloud/one/var/vmUbuntu2/vmUbuntu-copy.vmdk vmUbuntu.one
>
> But I obtan this error:
>
> Error: Files not found.
>
> However I'm sure that the paths and file names are correct. Where is the
> problem?
>
> I registered another image successfully with this comand:
>
> onevmware register--disk-vmdk /srv/cloud/one/var/ubuntu/ubuntu10_32.vmdk
> --disk-flat 
> /srv/cloud/one/var/ubuntu/ubuntu10_32_2.vmdk,/srv/cloud/one/var/ubuntu/ubuntu10_32_2-flat.vmdk
>  ubuntu_img.one
>
> Is it mandatory to register a image with flat files???
>
> Thanks in advance
>
> Antoni Artigues
>
> ___
> 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] onevmware register error

2011-05-05 Thread antoni artigues
Hello

I'm trying to register an vmware image with this command:

onevmware register
--disk-vmdk /srv/cloud/one/var/vmUbuntu2/vmUbuntu-copy.vmdk vmUbuntu.one

But I obtan this error:

Error: Files not found.

However I'm sure that the paths and file names are correct. Where is the
problem?

I registered another image successfully with this comand:

onevmware register--disk-vmdk /srv/cloud/one/var/ubuntu/ubuntu10_32.vmdk
--disk-flat 
/srv/cloud/one/var/ubuntu/ubuntu10_32_2.vmdk,/srv/cloud/one/var/ubuntu/ubuntu10_32_2-flat.vmdk
 ubuntu_img.one

Is it mandatory to register a image with flat files???

Thanks in advance

Antoni Artigues

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


[one-users] kickstart with opennebula

2011-05-05 Thread Michaël Van de Borne

hi all,
I'd like to kickstart a centos VM from opennebula, using the 
BOOT=network option, and then launching the usual process (dhcp, tftp, 
kickstart, ...)


how should I specify the DISK section in the VM template? and how should 
I create an empty disk? using dd?


thanks,

michaël


--

Michaël Van de Borne
R&D Engineer, SOA team, CETIC
Phone: +32 (0)71 49 07 45 Mobile: +32 (0)472 69 57 16, Skype: mikemowgli
www.cetic.be, rue des Frères Wright, 29/3, B-6041 Charleroi
--
Jeudi 26 mai 2011 à 16h, ne manquez pas l'événement
des 10 ans du CETIC: "Des entreprises plus compétitives
grâce à l'ICT... découvrez comment et surtout pourquoi!"
Programme et inscriptions sur www.cetic.be

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


Re: [one-users] Unable to Stop Running VM

2011-05-05 Thread Koushik Annapureddy
Hello Tino,

I am able to successfully save( using virsh) running ttylinux VM and Ubuntu
VM  to a file and restore it.

Thanks
Koushik

On Thu, May 5, 2011 at 12:49 PM, Tino Vazquez  wrote:

> Hi,
>
> Do you get the same behavior using "virsh save"?
>
> Regards,
>
> -Tino
>
> --
> Constantino Vázquez Blanco, MSc
> OpenNebula Major Contributor
> www.OpenNebula.org | @tinova79
>
>
>
> On Thu, May 5, 2011 at 10:13 AM, Koushik Annapureddy
>  wrote:
> > Hello Tino,
> > I have followed these steps as per the link mentioned
> > 1)  edit /etc/libvirt/qemu.conf, and uncomment the line that says
> > "dynamic_ownership = 1" and change the 1 to a 0
> > 2) Restart libvirtd
> >
> >
> >  I guess that all the disk image files are used by qemu are set to proper
> > ownership since qemu is sucessfull in launching the VM's.
> > After performing these steps I am still facing the same issue ( When i
> > issues onevm stop vmid ), Here is the log info
> > Thu May  5 11:02:53 2011 [VMM][D]: Message received: LOG - 46 ExitCode: 1
> > Thu May  5 11:02:53 2011 [VMM][D]: Message received: SAVE FAILURE 46
> error:
> > Failed to save domain one-46 to /srv/cloud/one/var//46/images/checkpoint
> > Thu May  5 11:02:53 2011 [VMM][D]: Message received: error: unable to set
> > user and group to '0:0' on '/srv/cloud/one/var//46/images/checkpoint':
> > Invalid argument
> > Thu May  5 11:02:53 2011 [VMM][D]: Message received: ExitCode: 1
> > Thu May  5 11:02:54 2011 [VMM][D]: Message received: POLL SUCCESS 46
> STATE=a
> > USEDMEMORY=131072
> > Thank you for the help..
> > Thanks
> > Koushik
> >
> >
> > On Wed, May 4, 2011 at 4:24 PM, Tino Vazquez 
> wrote:
> >>
> >> Hi,
> >>
> >> Yes, this is a permissions issue. Please see if this [1] provides any
> >> hints to solve the issue.
> >>
> >> Regards,
> >>
> >> -Tino
> >>
> >> [1] http://osdir.com/ml/libvir-list/2011-04/msg01220.html
> >> --
> >> Constantino Vázquez Blanco, MSc
> >> OpenNebula Major Contributor
> >> www.OpenNebula.org | @tinova79
> >>
> >>
> >>
> >> On Wed, May 4, 2011 at 2:31 PM, Koushik Annapureddy
> >>  wrote:
> >> > unable to set user and group to '0:0' o
> >
> >
> >
> > --
> > Thanks
> > Koushik Annapureddy
> >
>



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


[one-users] driver one-claudia

2011-05-05 Thread Marco Mirabile
Do anyone has worked on the driver OpenNebulaProvisioningDriver.java?
Project CLAUDIA
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] OFG-OCCI usage example

2011-05-05 Thread Justin Cinkelj
Hi

Since I still remember:
./install.sh is intended for "not system wide" ONE installation.
Was fixed by replacing (except first three occurences):
sed -i 's.$ONE_LOCATION/etc.$ETC_LOCATION.g' install.sh
sed -i 's.$ONE_LOCATION/lib/ruby.$RUBY_LOCATION.g' install.sh
sed -i 's.$ONE_LOCATION/bin.$BIN_LOCATION.g' install.sh

With occi-client.rb it was possible to run hardcoded test code (to start
20 VMs etc). So I will play with that file.
And upgrade during next week.

Thanks for help
Justin

On Thu, 2011-05-05 at 10:06 +, florian.feldh...@tu-dortmund.de
wrote:
> Hi Justin,
> 
> the OGF-OCCI project is currently under heavy development and the
> OpenNebula integration is still in a pre alpha phase. I want to finnish
> the initial documentation / usage manual until next monday. Until then you
> can try to use the server using a REST client [1] and specify requests
> according to the OCCI 1.1 HTTP Rendering document [2]. By default, the
> OCCI server uses a dummy backend instead of the OpenNebula backend. If you
> want to experiment, you can change this in etc/occi-server.conf. The dummy
> backend is stable (consider it in a beta status), but the OpenNebula
> backend needs some work which we want to finnish over the weekend. On
> monday we will release a first (Alpha) version of the OCCI 1.1 server for
> OpenNebula.
> 
> Cheers,
> Florian
> 
> [1] http://code.google.com/p/rest-client/
> [2] 
> http://forge.ogf.org/sf/docman/do/downloadDocument/projects.occi-wg/docman.
> root.drafts.occi_specification/doc16163
> 
> Am 05.05.11 10:35 schrieb "Justin Cinkelj" unter :
> 
> >I installed ogf-occi server from git://git.opennebula.org/ogf-occi.git
> >The server is running, but I don't know hot to use it.
> >
> >Command:
> >curl -X GET -H 'Accept: text/plain' 'http://172.16.120.228:4568/-/'
> >returns listing:
> >Category: network; scheme="http://schemas.ogf.org/occi/infrastructure#";;
> >class="kind";title="Network
> >Resource";rel="http://schemas.ogf.org/occi/core#resource";location=/networ
> >k/;attributes="occi.network.label occi.network.vlan
> >occi.network.state";actions="http://schemas.ogf.org/occi/infrastructure/ne
> >twork/action#down 
> >http://schemas.ogf.org/occi/infrastructure/network/action#up";;
> >...
> >
> >At http://dev.opennebula.org/projects/ogf-occi/wiki is exemplary
> >request, but I don't know hot to send it to the server.
> >Could someone add  a complete curl command to help getting started?
> >
> >Thanks for help, Justin
> >
> >
> >___
> >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] Scaling with One

2011-05-05 Thread Zeeshan Ali Shah
Hi , Does anyone tried to have scaling like Amazon Cloud Watch with ONE ?  i
mean giving users some parameters on what basis to scaleup and down .

any suggestion ?

-- 

-- 
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] OFG-OCCI usage example

2011-05-05 Thread florian.feldhaus
Hi Justin,

the OGF-OCCI project is currently under heavy development and the
OpenNebula integration is still in a pre alpha phase. I want to finnish
the initial documentation / usage manual until next monday. Until then you
can try to use the server using a REST client [1] and specify requests
according to the OCCI 1.1 HTTP Rendering document [2]. By default, the
OCCI server uses a dummy backend instead of the OpenNebula backend. If you
want to experiment, you can change this in etc/occi-server.conf. The dummy
backend is stable (consider it in a beta status), but the OpenNebula
backend needs some work which we want to finnish over the weekend. On
monday we will release a first (Alpha) version of the OCCI 1.1 server for
OpenNebula.

Cheers,
Florian

[1] http://code.google.com/p/rest-client/
[2] 
http://forge.ogf.org/sf/docman/do/downloadDocument/projects.occi-wg/docman.
root.drafts.occi_specification/doc16163

Am 05.05.11 10:35 schrieb "Justin Cinkelj" unter :

>I installed ogf-occi server from git://git.opennebula.org/ogf-occi.git
>The server is running, but I don't know hot to use it.
>
>Command:
>curl -X GET -H 'Accept: text/plain' 'http://172.16.120.228:4568/-/'
>returns listing:
>Category: network; scheme="http://schemas.ogf.org/occi/infrastructure#";;
>class="kind";title="Network
>Resource";rel="http://schemas.ogf.org/occi/core#resource";location=/networ
>k/;attributes="occi.network.label occi.network.vlan
>occi.network.state";actions="http://schemas.ogf.org/occi/infrastructure/ne
>twork/action#down 
>http://schemas.ogf.org/occi/infrastructure/network/action#up";;
>...
>
>At http://dev.opennebula.org/projects/ogf-occi/wiki is exemplary
>request, but I don't know hot to send it to the server.
>Could someone add  a complete curl command to help getting started?
>
>Thanks for help, Justin
>
>
>___
>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] Unable to Stop Running VM

2011-05-05 Thread Tino Vazquez
Hi,

Do you get the same behavior using "virsh save"?

Regards,

-Tino

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



On Thu, May 5, 2011 at 10:13 AM, Koushik Annapureddy
 wrote:
> Hello Tino,
> I have followed these steps as per the link mentioned
> 1)  edit /etc/libvirt/qemu.conf, and uncomment the line that says
> "dynamic_ownership = 1" and change the 1 to a 0
> 2) Restart libvirtd
>
>
>  I guess that all the disk image files are used by qemu are set to proper
> ownership since qemu is sucessfull in launching the VM's.
> After performing these steps I am still facing the same issue ( When i
> issues onevm stop vmid ), Here is the log info
> Thu May  5 11:02:53 2011 [VMM][D]: Message received: LOG - 46 ExitCode: 1
> Thu May  5 11:02:53 2011 [VMM][D]: Message received: SAVE FAILURE 46 error:
> Failed to save domain one-46 to /srv/cloud/one/var//46/images/checkpoint
> Thu May  5 11:02:53 2011 [VMM][D]: Message received: error: unable to set
> user and group to '0:0' on '/srv/cloud/one/var//46/images/checkpoint':
> Invalid argument
> Thu May  5 11:02:53 2011 [VMM][D]: Message received: ExitCode: 1
> Thu May  5 11:02:54 2011 [VMM][D]: Message received: POLL SUCCESS 46 STATE=a
> USEDMEMORY=131072
> Thank you for the help..
> Thanks
> Koushik
>
>
> On Wed, May 4, 2011 at 4:24 PM, Tino Vazquez  wrote:
>>
>> Hi,
>>
>> Yes, this is a permissions issue. Please see if this [1] provides any
>> hints to solve the issue.
>>
>> Regards,
>>
>> -Tino
>>
>> [1] http://osdir.com/ml/libvir-list/2011-04/msg01220.html
>> --
>> Constantino Vázquez Blanco, MSc
>> OpenNebula Major Contributor
>> www.OpenNebula.org | @tinova79
>>
>>
>>
>> On Wed, May 4, 2011 at 2:31 PM, Koushik Annapureddy
>>  wrote:
>> > unable to set user and group to '0:0' o
>
>
>
> --
> Thanks
> Koushik Annapureddy
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Experience with OpenNebula + Ceph?

2011-05-05 Thread Toens Bueker
Christoph Raible  wrote:

> I'm searching for persons which have experience on using OpenNebula
> with Ceph filesystem.
> 
> http://ceph.newdream.net/
> 
> Is someone out there who can help me with some problems on using
> KVM/QEMU images on the Ceph filesystem?
> 
> I can create qemu / kvm Images but I can't use them (I/O Errors).
> I hope there is someone out there ;)

As everybody else you are in search of a sufficient, distributed
storage platform for virtual machines with posix capabilities.

During my last tests with cheph, I could not extract the kernel-source
into the respective filesystem and delete it afterwards without
getting errors/problems. I refrained from doing further tests with
vm-images.

Have you checked sheepdog? Have you had a look at fuse-based
filesystems? I have a few on my list (like http://www.xtreemfs.org/),
which I haven't had time to investigate further.

There were a few names on this list, too.

Kind regards,
Töns
-- 
There is no safe distance.
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] OFG-OCCI usage example

2011-05-05 Thread Justin Cinkelj
I installed ogf-occi server from git://git.opennebula.org/ogf-occi.git
The server is running, but I don't know hot to use it.

Command:
curl -X GET -H 'Accept: text/plain' 'http://172.16.120.228:4568/-/'
returns listing:
Category: network; scheme="http://schemas.ogf.org/occi/infrastructure#";;
class="kind";title="Network
Resource";rel="http://schemas.ogf.org/occi/core#resource";location=/network/;attributes="occi.network.label
 occi.network.vlan 
occi.network.state";actions="http://schemas.ogf.org/occi/infrastructure/network/action#down
 http://schemas.ogf.org/occi/infrastructure/network/action#up";;
...

At http://dev.opennebula.org/projects/ogf-occi/wiki is exemplary
request, but I don't know hot to send it to the server.
Could someone add  a complete curl command to help getting started?

Thanks for help, Justin


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


Re: [one-users] Unable to Stop Running VM

2011-05-05 Thread Koushik Annapureddy
Hello Tino,

I have followed these steps as per the link mentioned

1)  edit /etc/libvirt/qemu.conf, and uncomment the line that says
"dynamic_ownership = 1" and change the 1 to a 0

2) Restart libvirtd


 I guess that all the disk image files are used by qemu are set to proper
ownership since qemu is sucessfull in launching the VM's.

After performing these steps I am still facing the same issue ( When i
issues onevm stop vmid ), Here is the log info

Thu May  5 11:02:53 2011 [VMM][D]: Message received: LOG - 46 ExitCode: 1

Thu May  5 11:02:53 2011 [VMM][D]: Message received: SAVE FAILURE 46 error:
Failed to save domain one-46 to /srv/cloud/one/var//46/images/checkpoint

Thu May  5 11:02:53 2011 [VMM][D]: Message received: error: unable to set
user and group to '0:0' on '/srv/cloud/one/var//46/images/checkpoint':
Invalid argument

Thu May  5 11:02:53 2011 [VMM][D]: Message received: ExitCode: 1

Thu May  5 11:02:54 2011 [VMM][D]: Message received: POLL SUCCESS 46 STATE=a
USEDMEMORY=131072

Thank you for the help..

Thanks
Koushik



On Wed, May 4, 2011 at 4:24 PM, Tino Vazquez  wrote:

> Hi,
>
> Yes, this is a permissions issue. Please see if this [1] provides any
> hints to solve the issue.
>
> Regards,
>
> -Tino
>
> [1] http://osdir.com/ml/libvir-list/2011-04/msg01220.html
> --
> Constantino Vázquez Blanco, MSc
> OpenNebula Major Contributor
> www.OpenNebula.org | @tinova79
>
>
>
> On Wed, May 4, 2011 at 2:31 PM, Koushik Annapureddy
>  wrote:
> > unable to set user and group to '0:0' o
>



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


[one-users] Experience with OpenNebula + Ceph?

2011-05-05 Thread Christoph Raible

Hi @all,

I'm searching for persons which have experience on using OpenNebula with 
Ceph filesystem.


http://ceph.newdream.net/


Is someone out there who can help me with some problems on using 
KVM/QEMU images on the Ceph filesystem?


I can create qemu / kvm Images but I can't use them (I/O Errors).


I hope there is someone out there ;)


Best regards,

christoph
--
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] cpu overcommit with kvm

2011-05-05 Thread Giovanni Toraldo
Il 04/05/2011 18:39, Ruben S. Montero ha scritto:
> You can guide the overcommitment by using the CPU attribute of the
> template. For example if you want to put 16 VMs in nebula02 with 8
> cores, just define the VMs with
> 
> CPU = 0.5

I already tried CPU setting, but the guest will see half of the real
frequency of my host CPU: this isn't cpu overcommit, I am just saying to
allocate half of my 8 cpu to that VM (or not?).

What I am trying to achieve is what I already do with other KVM-based
virtualization platforms:

allocating to every VM much more cpu than actually available on the host
(ex: 16 VMs with VCPU = 4 and CPU = 1), so a single VM can get a lot of
cpu power when needed.
In the case there are many VM using a lot of cpu, it will be equally
shared among them by the Linux process scheduler on the host.

Am I missing something? Is this a bad practice?

Thanks.

-- 
Giovanni Toraldo
http://www.libersoft.it/



signature.asc
Description: OpenPGP digital signature
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org