[one-users] issue with connection from C to OpenNebula

2016-06-06 Thread Алексей Шалин
Hello

Here is my code:



string const serverUrl("http://IP:2633/RPC2";);

string const methodName("one.user.info");

xmlrpc_c::clientSimple myClient;

xmlrpc_c::value result;

myClient.call(serverUrl, methodName, "ss", &result,
"oneadmin","one_admin_pass");



 

 

in oned.log : i'm getting: 

Tue Jun  7 10:15:56 2016 [Z0][ReM][D]: Req:1120 UID:0 UserInfo invoked , "
one_admin_pass "

Tue Jun  7 10:15:56 2016 [Z0][ReM][E]: Req:1120 UID:0 UserInfo result
FAILURE [UserInfo] User couldn't be authenticated, aborting call.

 

 

Any one have example code ? or can any one help with it ? how pass to server
RPC2 login and password from C ?

 

Thx

 

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


Re: [one-users] Issue with Gluster DataStore

2014-12-09 Thread vincent

Hi,

What is the content of /var/lib/one//datastores/0/53/deployment.0.
Can you also post the settigns of the Gluster Datastore.

Vincent

On 2014-12-09 04:16, Alexey Shalin wrote:

Hello
I added Gluster DS via docs:
http://docs.opennebula.org/4.6/administration/storage/gluster_ds.html#glusterfs-volume-configuration

It's  attached  without  any  issues,  but when i tried start VM i got
error:
Mon Dec 8 09:25:47 2014 [VMM][I]: error: Failed to create domain from
/var/lib/one//datastores/0/53/deployment.0
Mon Dec 8 09:25:47 2014 [VMM][I]: error: internal error unknown
protocol type 'gluster'
on node3 .. gluster volume already mounted
---
node1:/opennebula   280G   14G
266G   5% /var/lib/one
---

Can you please help me to resolve this issue ?

---
Старший Системный Администратор
Алексей Шалин
ОсОО "Хостер kg" - http://www.hoster.kg
ул. Ахунбаева 123 (здание БГТС)
h...@hoster.kg

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

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


[one-users] Issue with Gluster DataStore

2014-12-08 Thread Alexey Shalin
Hello
I added Gluster DS via docs:
http://docs.opennebula.org/4.6/administration/storage/gluster_ds.html#glusterfs-volume-configuration

It's  attached  without  any  issues,  but when i tried start VM i got
error:
Mon Dec 8 09:25:47 2014 [VMM][I]: error: Failed to create domain from 
/var/lib/one//datastores/0/53/deployment.0
Mon Dec 8 09:25:47 2014 [VMM][I]: error: internal error unknown protocol type 
'gluster'
on node3 .. gluster volume already mounted
---
node1:/opennebula   280G   14G  266G   5% 
/var/lib/one
---

Can you please help me to resolve this issue ?

---
Старший Системный Администратор
Алексей Шалин
ОсОО "Хостер kg" - http://www.hoster.kg
ул. Ахунбаева 123 (здание БГТС)
h...@hoster.kg

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


Re: [one-users] Issue with adding CDROM and boot it

2014-12-03 Thread Daniel Dehennin
Alexey Shalin  writes:

> Hello
> I set up a cluster of 3 nodes Opennebula and NFS.
>

[...]

> /var/lib/one//datastores/0/38/disk.0 - points to iso file
>
> I  do  not  know, why in deployment.0 having 2 cdroms, in the template
> only 1 disk added
>
> because of it .. i can not boot VM via CDROM

The second CDROM is CONTEXT.

We report an issue[1] to avoid adding TARGET=hda on boot ISO.

Regards.

Footnotes: 
[1]  http://dev.opennebula.org/issues/3158

-- 
Daniel Dehennin
Récupérer ma clef GPG: gpg --recv-keys 0xCC1E9E5B7A6FE2DF
Fingerprint: 3E69 014E 5C23 50E8 9ED6  2AAD CC1E 9E5B 7A6F E2DF


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


[one-users] Issue with adding CDROM and boot it

2014-12-03 Thread Alexey Shalin
Hello
I set up a cluster of 3 nodes Opennebula and NFS.

deployment.0

one-38

1024

1048576

hvm



/usr/bin/kvm
























/var/lib/one//datastores/0/38/disk.0 - points to iso file

I  do  not  know, why in deployment.0 having 2 cdroms, in the template
only 1 disk added

because of it .. i can not boot VM via CDROM


---
Старший Системный Администратор
Алексей Шалин
ОсОО "Хостер kg" - http://www.hoster.kg
ул. Ахунбаева 123 (здание БГТС)
h...@hoster.kg

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


Re: [one-users] Issue with Cloud View

2014-02-21 Thread kiran ranjane
Hi Daniel,

I was going to ask you if we can add this ability in Sunstone, However as
you informed that it going to be in next release then I will get my hands
dirty when it is released :)

Thanks
Kiran Ranjane


On Fri, Feb 21, 2014 at 3:37 PM, Daniel Molina wrote:

> Hi Kiran,
>
> The problem is how you define the view for the new group. In the
> sunstone-views.yaml you can define views in three different ways, per user,
> per group and the default one; and they will be selected in that order:
>
> https://github.com/OpenNebula/one/blob/master/src/sunstone/models/SunstoneViews.rb#L51
>
> Therefore you have three sections in the sunstone-view.yaml:
>
> groups:
> users:
> default:
>
> inside the groups and users section you can define more than one user or
> group
>
> groups:
> developers:
> testers:
> users:
> dev_admin:
> dev_user:
>
> and inside each user, group or default key you have to add the views
> available:
>
> groups:
> developers:
> - admin
> testers:
> - cloud
> users:
> dev_admin:
> - admin
> dev_user:
> - user
> default:
> - user
>
> Hope this helps. We are changing this behaviour for the next release, and
> you will be able to assign views from sunstone when you create a new group
> or user.
>
> Cheers
>
> On 18 February 2014 16:57, kiran ranjane  wrote:
>
>> Hi Everyone,
>>
>> It seems that the document is not updated or I am missing something while
>> configuring Cloud View in Sunstone.
>>
>> I followed this link to setup cloud view and it do not work, there are
>> few things missing on the document
>>
>>
>> http://docs.opennebula.org/stable/administration/sunstone_gui/cloud_view.html
>>
>> If I open the file sunstone-views.yaml, there seems to be a group called
>> as default and it that the user view.
>>
>> When I create a new group and give that view cloud view in the above
>> file, then restart sunstone, create new user and add that user to the new
>> group created and login with the new user By Default it goes to USER VIEW
>>
>> Example of the entry
>>
>> groups:
>> oneadmin:
>> - admin
>> - vdcadmin
>> - user
>> - cloud
>> default:
>> - user
>> clouduser
>> - cloud
>>
>> Now when I remove -user from the default view and add cloud in there and
>> then login with the new user it goes to cloud view.
>>
>> -- I have added the new user to clouduser group and removed user group
>> from new user, restarted sunstone and still it goes to user view.
>>
>> I tried above document 2 twice and it seems that there is something
>> missing in the document and something has changed between 4.0 to 4.4
>> version.
>>
>>
>> Thanks and Regards
>> Kiran Ranjane
>>
>>
>> ___
>> Users mailing list
>> Users@lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>
>
> --
> --
> Daniel Molina
> Project Engineer
> OpenNebula - Flexible Enterprise Cloud Made Simple
> www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Issue with Cloud View

2014-02-21 Thread Daniel Molina
Hi Kiran,

The problem is how you define the view for the new group. In the
sunstone-views.yaml you can define views in three different ways, per user,
per group and the default one; and they will be selected in that order:
https://github.com/OpenNebula/one/blob/master/src/sunstone/models/SunstoneViews.rb#L51

Therefore you have three sections in the sunstone-view.yaml:

groups:
users:
default:

inside the groups and users section you can define more than one user or
group

groups:
developers:
testers:
users:
dev_admin:
dev_user:

and inside each user, group or default key you have to add the views
available:

groups:
developers:
- admin
testers:
- cloud
users:
dev_admin:
- admin
dev_user:
- user
default:
- user

Hope this helps. We are changing this behaviour for the next release, and
you will be able to assign views from sunstone when you create a new group
or user.

Cheers

On 18 February 2014 16:57, kiran ranjane  wrote:

> Hi Everyone,
>
> It seems that the document is not updated or I am missing something while
> configuring Cloud View in Sunstone.
>
> I followed this link to setup cloud view and it do not work, there are few
> things missing on the document
>
>
> http://docs.opennebula.org/stable/administration/sunstone_gui/cloud_view.html
>
> If I open the file sunstone-views.yaml, there seems to be a group called
> as default and it that the user view.
>
> When I create a new group and give that view cloud view in the above file,
> then restart sunstone, create new user and add that user to the new group
> created and login with the new user By Default it goes to USER VIEW
>
> Example of the entry
>
> groups:
> oneadmin:
> - admin
> - vdcadmin
> - user
> - cloud
> default:
> - user
> clouduser
> - cloud
>
> Now when I remove -user from the default view and add cloud in there and
> then login with the new user it goes to cloud view.
>
> -- I have added the new user to clouduser group and removed user group
> from new user, restarted sunstone and still it goes to user view.
>
> I tried above document 2 twice and it seems that there is something
> missing in the document and something has changed between 4.0 to 4.4
> version.
>
>
> Thanks and Regards
> Kiran Ranjane
>
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>


-- 
--
Daniel Molina
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] Issue with Cloud View

2014-02-18 Thread kiran ranjane
Hi Everyone,

It seems that the document is not updated or I am missing something while
configuring Cloud View in Sunstone.

I followed this link to setup cloud view and it do not work, there are few
things missing on the document

http://docs.opennebula.org/stable/administration/sunstone_gui/cloud_view.html

If I open the file sunstone-views.yaml, there seems to be a group called as
default and it that the user view.

When I create a new group and give that view cloud view in the above file,
then restart sunstone, create new user and add that user to the new group
created and login with the new user By Default it goes to USER VIEW

Example of the entry

groups:
oneadmin:
- admin
- vdcadmin
- user
- cloud
default:
- user
clouduser
- cloud

Now when I remove -user from the default view and add cloud in there and
then login with the new user it goes to cloud view.

-- I have added the new user to clouduser group and removed user group from
new user, restarted sunstone and still it goes to user view.

I tried above document 2 twice and it seems that there is something missing
in the document and something has changed between 4.0 to 4.4 version.


Thanks and Regards
Kiran Ranjane
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Issue with picking up proper ulimits during contextualization

2013-07-29 Thread Richard Bettridge
Thanks, I did try sudo with those args instead of su with no luck. I also put 
the ulimit in /etc/profile outside of the if statements all together with no 
luck. Pretty confused, possible I'm over looking something obvious.

In the mean time my colleague added ulimits in init.sh of our contextualization 
and that seems to have actually worked. Not sure if I like that as a solution 
permanently however.

I think I should continue to do some investigation, I'll mess around in one of 
our labs and see if I can document the changes and results for each suggestion.

Thanks,


Richard

From: users-boun...@lists.opennebula.org 
[mailto:users-boun...@lists.opennebula.org] On Behalf Of Jaime Melis
Sent: Monday, July 29, 2013 9:30 AM
To: Jon
Cc: users@lists.opennebula.org
Subject: Re: [one-users] Issue with picking up proper ulimits during 
contextualization

Hi Richard,

did you manage to get it working?

regards,
Jaime

On Fri, Jul 26, 2013 at 3:00 PM, Jon 
mailto:three1...@gmail.com>> wrote:
Hello Richard,

What you are running into is the difference between an interactive shell (e.g. 
an ssh session) and a non-interactive shell (e.g. a startup shell).  [Depending 
on the distro] A default profile will check if your shell is interactive, and 
if so, load bashrc.

>From the first line of my /etc/profile (ubuntu 13.04):

>> if [ "$PS1" ]; then

So when your context script is executed, your .bashrc is never loaded.

In the past, I've had trouble with upstart jobs not starting Catalyst websites 
properly because the environment variables weren't being loaded.  The solution 
there was to use sudo instead of sudo:

Instead of
>> su foo -l -c starman /some/app.psgi

I used:
>> sudo -u foo -i starman /some/app.psgi

Also, I recently ran into something similar in my day job, where I was 
attempting to execute a script over ssh:

>> ssh root@hostname sudo somescript.pl<http://somescript.pl>

The problem I was running into was the environment variables were not being 
loaded (because the shell detected it was running non-interactively), so I 
invoked bash directly, which loaded the environment variables, so my ssh 
command became:

>> ssh -t x0319t62 '/usr/bin/bash -l -c "/usr/local/bin/sudo -u foo 
>> /path/to/somescript.pl<http://somescript.pl> "'

As Tino said, adding your directives to /etc/profile would cause them to be 
loaded whenever someone logs in.  Based on your e-mail, I don't think that's 
exactly what you are looking for (correct me if I'm wrong), so I think one of 
the above solutions might work for you.

e.g.:

Instead of:
>> su tomcatA -l -c "/var/jakarta-tomcatA/bin/startup.sh"

try:
>> sudo -u tomcatA -i "/var/jakarta-tomcatA/bin/startup.sh"

or:
>> bash -l -c 'sudo tomcatA -l "/var/jakarta-tomcatA/bin/startup.sh"'

Anyway, hope that helps.

Best Regards,
Jon A

On Fri, Jul 26, 2013 at 11:43 AM, Richard Bettridge 
mailto:rbettri...@blackberry.com>> wrote:
I'll give it a shot, still a little confused about why it doesn't work in the 
contextualization's shell but works with an ssh login.  Kind of new at this 
stuff.


Richard


-Original Message-
From: Tino Vazquez [mailto:cvazq...@c12g.com<mailto:cvazq...@c12g.com>]
Sent: Friday, July 26, 2013 12:40 PM
To: Richard Bettridge
Cc: users@lists.opennebula.org<mailto:users@lists.opennebula.org>
Subject: Re: [one-users] Issue with picking up proper ulimits during 
contextualization

Hi Richard,

Reading .bashrc with 'su' (even with -l) can be sometimes a difficult
task. Any chance of setting it in /etc/profile?

Regards,

-Tino
--
Constantino Vázquez Blanco, PhD, MSc
Senior Infrastructure Architect at C12G Labs
www.c12g.com<http://www.c12g.com> | @C12G | 
es.linkedin.com/in/tinova<http://es.linkedin.com/in/tinova>

--
Confidentiality Warning: The information contained in this e-mail and
any accompanying documents, unless otherwise expressly indicated, is
confidential and privileged, and is intended solely for the person
and/or entity to whom it is addressed (i.e. those identified in the
"To" and "cc" box). They are the property of C12G Labs S.L..
Unauthorized distribution, review, use, disclosure, or copying of this
communication, or any part thereof, is strictly prohibited and may be
unlawful. If you have received this e-mail in error, please notify us
immediately by e-mail at ab...@c12g.com<mailto:ab...@c12g.com> and delete the 
e-mail and
attachments and any copy from your system. C12G thanks you for your
cooperation.


On Fri, Jul 26, 2013 at 5:11 PM, Richard Bettridge
mailto:rbettri...@blackberry.com>> wrote:
> Hey,
>
>
>
> I'm having an issue where the ulimit for open files isn't being set properly
> when I spin up a process for a user during contextualiz

Re: [one-users] Issue with picking up proper ulimits during contextualization

2013-07-29 Thread Jaime Melis
Hi Richard,

did you manage to get it working?

regards,
Jaime


On Fri, Jul 26, 2013 at 3:00 PM, Jon  wrote:

> Hello Richard,
>
> What you are running into is the difference between an interactive shell
> (e.g. an ssh session) and a non-interactive shell (e.g. a startup shell).
>  [Depending on the distro] A default profile will check if your shell is
> interactive, and if so, load bashrc.
>
> From the first line of my /etc/profile (ubuntu 13.04):
>
> >> if [ "$PS1" ]; then
>
> So when your context script is executed, your .bashrc is never loaded.
>
> In the past, I've had trouble with upstart jobs not starting Catalyst
> websites properly because the environment variables weren't being loaded.
>  The solution there was to use sudo instead of sudo:
>
> Instead of
> >> su foo -l -c starman /some/app.psgi
>
> I used:
> >> sudo -u foo -i starman /some/app.psgi
>
> Also, I recently ran into something similar in my day job, where I was
> attempting to execute a script over ssh:
>
> >> ssh root@hostname sudo somescript.pl
>
> The problem I was running into was the environment variables were not
> being loaded (because the shell detected it was running non-interactively),
> so I invoked bash directly, which loaded the environment variables, so my
> ssh command became:
>
> >> ssh -t x0319t62 '/usr/bin/bash -l -c "/usr/local/bin/sudo -u foo
> /path/to/somescript.pl "'
>
> As Tino said, adding your directives to /etc/profile would cause them to
> be loaded whenever someone logs in.  Based on your e-mail, I don't think
> that's exactly what you are looking for (correct me if I'm wrong), so I
> think one of the above solutions might work for you.
>
> e.g.:
>
> Instead of:
> >> su tomcatA -l -c "/var/jakarta-tomcatA/bin/startup.sh"
>
> try:
> >> sudo -u tomcatA -i "/var/jakarta-tomcatA/bin/startup.sh"
>
> or:
> >> bash -l -c 'sudo tomcatA -l "/var/jakarta-tomcatA/bin/startup.sh"'
>
> Anyway, hope that helps.
>
> Best Regards,
> Jon A
>
> On Fri, Jul 26, 2013 at 11:43 AM, Richard Bettridge <
> rbettri...@blackberry.com> wrote:
>
>> I'll give it a shot, still a little confused about why it doesn't work in
>> the contextualization's shell but works with an ssh login.  Kind of new at
>> this stuff.
>>
>>
>> Richard
>>
>>
>> -Original Message-
>> From: Tino Vazquez [mailto:cvazq...@c12g.com]
>> Sent: Friday, July 26, 2013 12:40 PM
>> To: Richard Bettridge
>> Cc: users@lists.opennebula.org
>> Subject: Re: [one-users] Issue with picking up proper ulimits during
>> contextualization
>>
>> Hi Richard,
>>
>> Reading .bashrc with 'su' (even with -l) can be sometimes a difficult
>> task. Any chance of setting it in /etc/profile?
>>
>> Regards,
>>
>> -Tino
>> --
>> Constantino Vázquez Blanco, PhD, MSc
>> Senior Infrastructure Architect at C12G Labs
>> www.c12g.com | @C12G | es.linkedin.com/in/tinova
>>
>> --
>> Confidentiality Warning: The information contained in this e-mail and
>> any accompanying documents, unless otherwise expressly indicated, is
>> confidential and privileged, and is intended solely for the person
>> and/or entity to whom it is addressed (i.e. those identified in the
>> "To" and "cc" box). They are the property of C12G Labs S.L..
>> Unauthorized distribution, review, use, disclosure, or copying of this
>> communication, or any part thereof, is strictly prohibited and may be
>> unlawful. If you have received this e-mail in error, please notify us
>> immediately by e-mail at ab...@c12g.com and delete the e-mail and
>> attachments and any copy from your system. C12G thanks you for your
>> cooperation.
>>
>>
>> On Fri, Jul 26, 2013 at 5:11 PM, Richard Bettridge
>>  wrote:
>> > Hey,
>> >
>> >
>> >
>> > I'm having an issue where the ulimit for open files isn't being set
>> properly
>> > when I spin up a process for a user during contextualization.
>> >
>> >
>> >
>> > Upon start up of the non-persistent ubuntu 12 image, I am setting
>> > limits.conf to what I want and I'm explicitly adding ulimit -n 65536 to
>> the
>> > user's .bashrc. However at the end of my 90_tomcat script when I
>> execute the
>> > tomcat process the ulimit is not being picked up and is set to 1024
>> instead
>> >
>> >
>&

Re: [one-users] Issue with picking up proper ulimits during contextualization

2013-07-26 Thread Jon
Hello Richard,

What you are running into is the difference between an interactive shell
(e.g. an ssh session) and a non-interactive shell (e.g. a startup shell).
 [Depending on the distro] A default profile will check if your shell is
interactive, and if so, load bashrc.

>From the first line of my /etc/profile (ubuntu 13.04):

>> if [ "$PS1" ]; then

So when your context script is executed, your .bashrc is never loaded.

In the past, I've had trouble with upstart jobs not starting Catalyst
websites properly because the environment variables weren't being loaded.
 The solution there was to use sudo instead of sudo:

Instead of
>> su foo -l -c starman /some/app.psgi

I used:
>> sudo -u foo -i starman /some/app.psgi

Also, I recently ran into something similar in my day job, where I was
attempting to execute a script over ssh:

>> ssh root@hostname sudo somescript.pl

The problem I was running into was the environment variables were not being
loaded (because the shell detected it was running non-interactively), so I
invoked bash directly, which loaded the environment variables, so my ssh
command became:

>> ssh -t x0319t62 '/usr/bin/bash -l -c "/usr/local/bin/sudo -u foo
/path/to/somescript.pl "'

As Tino said, adding your directives to /etc/profile would cause them to be
loaded whenever someone logs in.  Based on your e-mail, I don't think
that's exactly what you are looking for (correct me if I'm wrong), so I
think one of the above solutions might work for you.

e.g.:

Instead of:
>> su tomcatA -l -c "/var/jakarta-tomcatA/bin/startup.sh"

try:
>> sudo -u tomcatA -i "/var/jakarta-tomcatA/bin/startup.sh"

or:
>> bash -l -c 'sudo tomcatA -l "/var/jakarta-tomcatA/bin/startup.sh"'

Anyway, hope that helps.

Best Regards,
Jon A

On Fri, Jul 26, 2013 at 11:43 AM, Richard Bettridge <
rbettri...@blackberry.com> wrote:

> I'll give it a shot, still a little confused about why it doesn't work in
> the contextualization's shell but works with an ssh login.  Kind of new at
> this stuff.
>
>
> Richard
>
>
> -----Original Message-
> From: Tino Vazquez [mailto:cvazq...@c12g.com]
> Sent: Friday, July 26, 2013 12:40 PM
> To: Richard Bettridge
> Cc: users@lists.opennebula.org
> Subject: Re: [one-users] Issue with picking up proper ulimits during
> contextualization
>
> Hi Richard,
>
> Reading .bashrc with 'su' (even with -l) can be sometimes a difficult
> task. Any chance of setting it in /etc/profile?
>
> Regards,
>
> -Tino
> --
> Constantino Vázquez Blanco, PhD, MSc
> Senior Infrastructure Architect at C12G Labs
> www.c12g.com | @C12G | es.linkedin.com/in/tinova
>
> --
> Confidentiality Warning: The information contained in this e-mail and
> any accompanying documents, unless otherwise expressly indicated, is
> confidential and privileged, and is intended solely for the person
> and/or entity to whom it is addressed (i.e. those identified in the
> "To" and "cc" box). They are the property of C12G Labs S.L..
> Unauthorized distribution, review, use, disclosure, or copying of this
> communication, or any part thereof, is strictly prohibited and may be
> unlawful. If you have received this e-mail in error, please notify us
> immediately by e-mail at ab...@c12g.com and delete the e-mail and
> attachments and any copy from your system. C12G thanks you for your
> cooperation.
>
>
> On Fri, Jul 26, 2013 at 5:11 PM, Richard Bettridge
>  wrote:
> > Hey,
> >
> >
> >
> > I'm having an issue where the ulimit for open files isn't being set
> properly
> > when I spin up a process for a user during contextualization.
> >
> >
> >
> > Upon start up of the non-persistent ubuntu 12 image, I am setting
> > limits.conf to what I want and I'm explicitly adding ulimit -n 65536 to
> the
> > user's .bashrc. However at the end of my 90_tomcat script when I execute
> the
> > tomcat process the ulimit is not being picked up and is set to 1024
> instead
> >
> >
> >
> > As a test in my 90_tomcat script I'm running ulimit -a >>
> /tmp/tomcatsu.txt
> >
> >
> >
> > root@host002:/mnt# cat 90_tomcat |grep "su tomcatA"
> >
> > su tomcatA -l -c "ulimit -a >> /tmp/tomcatsu.txt"
> >
> >
> >
> >
> >
> > So this gets run at the end of 90_tomcat:
> >
> > su tomcatA -l -c "ulimit -a >> /tmp/tomcatsu.txt"
> >
> > su tomcatA -l -c "/var/jakarta-tomcatA/bin/startup.sh&qu

Re: [one-users] Issue with picking up proper ulimits during contextualization

2013-07-26 Thread Richard Bettridge
I'll give it a shot, still a little confused about why it doesn't work in the 
contextualization's shell but works with an ssh login.  Kind of new at this 
stuff.


Richard


-Original Message-
From: Tino Vazquez [mailto:cvazq...@c12g.com] 
Sent: Friday, July 26, 2013 12:40 PM
To: Richard Bettridge
Cc: users@lists.opennebula.org
Subject: Re: [one-users] Issue with picking up proper ulimits during 
contextualization

Hi Richard,

Reading .bashrc with 'su' (even with -l) can be sometimes a difficult
task. Any chance of setting it in /etc/profile?

Regards,

-Tino
--
Constantino Vázquez Blanco, PhD, MSc
Senior Infrastructure Architect at C12G Labs
www.c12g.com | @C12G | es.linkedin.com/in/tinova

--
Confidentiality Warning: The information contained in this e-mail and
any accompanying documents, unless otherwise expressly indicated, is
confidential and privileged, and is intended solely for the person
and/or entity to whom it is addressed (i.e. those identified in the
"To" and "cc" box). They are the property of C12G Labs S.L..
Unauthorized distribution, review, use, disclosure, or copying of this
communication, or any part thereof, is strictly prohibited and may be
unlawful. If you have received this e-mail in error, please notify us
immediately by e-mail at ab...@c12g.com and delete the e-mail and
attachments and any copy from your system. C12G thanks you for your
cooperation.


On Fri, Jul 26, 2013 at 5:11 PM, Richard Bettridge
 wrote:
> Hey,
>
>
>
> I'm having an issue where the ulimit for open files isn't being set properly
> when I spin up a process for a user during contextualization.
>
>
>
> Upon start up of the non-persistent ubuntu 12 image, I am setting
> limits.conf to what I want and I'm explicitly adding ulimit -n 65536 to the
> user's .bashrc. However at the end of my 90_tomcat script when I execute the
> tomcat process the ulimit is not being picked up and is set to 1024 instead
>
>
>
> As a test in my 90_tomcat script I'm running ulimit -a >> /tmp/tomcatsu.txt
>
>
>
> root@host002:/mnt# cat 90_tomcat |grep "su tomcatA"
>
> su tomcatA -l -c "ulimit -a >> /tmp/tomcatsu.txt"
>
>
>
>
>
> So this gets run at the end of 90_tomcat:
>
> su tomcatA -l -c "ulimit -a >> /tmp/tomcatsu.txt"
>
> su tomcatA -l -c "/var/jakarta-tomcatA/bin/startup.sh"
>
>
>
> When I cat the txt file it says 1024:
>
>
>
> root@host002:/etc/pam.d# cat /tmp/tomcatsu.txt |grep open
>
> open files  (-n) 1024
>
>
>
> But when I log in manually as root and run /mnt/90_tomcat by hand I end up
> getting the proper ulimit:
>
>
>
> root@host002:/etc/pam.d# cat /tmp/tomcatsu.txt |grep open
>
> open files  (-n) 65536
>
>
>
>
>
> Not sure what the issue but I'd appreciate any input.
>
>
>
> Thanks,
>
>
>
>
>
> Richard Bettridge
>
> Systems Engineering Specialist
> BlackBerry
>
>
>
> -
> This transmission (including any attachments) may contain confidential
> information, privileged material (including material protected by the
> solicitor-client or other applicable privileges), or constitute non-public
> information. Any use of this information by anyone other than the intended
> recipient is prohibited. If you have received this transmission in error,
> please immediately reply to the sender and delete this information from your
> system. Use, dissemination, distribution, or reproduction of this
> transmission by unintended recipients is not authorized and may be unlawful.
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>

-
This transmission (including any attachments) may contain confidential 
information, privileged material (including material protected by the 
solicitor-client or other applicable privileges), or constitute non-public 
information. Any use of this information by anyone other than the intended 
recipient is prohibited. If you have received this transmission in error, 
please immediately reply to the sender and delete this information from your 
system. Use, dissemination, distribution, or reproduction of this transmission 
by unintended recipients is not authorized and may be unlawful.
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Issue with picking up proper ulimits during contextualization

2013-07-26 Thread Tino Vazquez
Hi Richard,

Reading .bashrc with 'su' (even with -l) can be sometimes a difficult
task. Any chance of setting it in /etc/profile?

Regards,

-Tino
--
Constantino Vázquez Blanco, PhD, MSc
Senior Infrastructure Architect at C12G Labs
www.c12g.com | @C12G | es.linkedin.com/in/tinova

--
Confidentiality Warning: The information contained in this e-mail and
any accompanying documents, unless otherwise expressly indicated, is
confidential and privileged, and is intended solely for the person
and/or entity to whom it is addressed (i.e. those identified in the
"To" and "cc" box). They are the property of C12G Labs S.L..
Unauthorized distribution, review, use, disclosure, or copying of this
communication, or any part thereof, is strictly prohibited and may be
unlawful. If you have received this e-mail in error, please notify us
immediately by e-mail at ab...@c12g.com and delete the e-mail and
attachments and any copy from your system. C12G thanks you for your
cooperation.


On Fri, Jul 26, 2013 at 5:11 PM, Richard Bettridge
 wrote:
> Hey,
>
>
>
> I’m having an issue where the ulimit for open files isn’t being set properly
> when I spin up a process for a user during contextualization.
>
>
>
> Upon start up of the non-persistent ubuntu 12 image, I am setting
> limits.conf to what I want and I’m explicitly adding ulimit –n 65536 to the
> user’s .bashrc. However at the end of my 90_tomcat script when I execute the
> tomcat process the ulimit is not being picked up and is set to 1024 instead
>
>
>
> As a test in my 90_tomcat script I’m running ulimit –a >> /tmp/tomcatsu.txt
>
>
>
> root@host002:/mnt# cat 90_tomcat |grep "su tomcatA"
>
> su tomcatA -l -c "ulimit -a >> /tmp/tomcatsu.txt"
>
>
>
>
>
> So this gets run at the end of 90_tomcat:
>
> su tomcatA -l -c "ulimit -a >> /tmp/tomcatsu.txt"
>
> su tomcatA -l -c "/var/jakarta-tomcatA/bin/startup.sh"
>
>
>
> When I cat the txt file it says 1024:
>
>
>
> root@host002:/etc/pam.d# cat /tmp/tomcatsu.txt |grep open
>
> open files  (-n) 1024
>
>
>
> But when I log in manually as root and run /mnt/90_tomcat by hand I end up
> getting the proper ulimit:
>
>
>
> root@host002:/etc/pam.d# cat /tmp/tomcatsu.txt |grep open
>
> open files  (-n) 65536
>
>
>
>
>
> Not sure what the issue but I’d appreciate any input.
>
>
>
> Thanks,
>
>
>
>
>
> Richard Bettridge
>
> Systems Engineering Specialist
> BlackBerry
>
>
>
> -
> This transmission (including any attachments) may contain confidential
> information, privileged material (including material protected by the
> solicitor-client or other applicable privileges), or constitute non-public
> information. Any use of this information by anyone other than the intended
> recipient is prohibited. If you have received this transmission in error,
> please immediately reply to the sender and delete this information from your
> system. Use, dissemination, distribution, or reproduction of this
> transmission by unintended recipients is not authorized and may be unlawful.
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] Issue with picking up proper ulimits during contextualization

2013-07-26 Thread Richard Bettridge
Hey,

I'm having an issue where the ulimit for open files isn't being set properly 
when I spin up a process for a user during contextualization.

Upon start up of the non-persistent ubuntu 12 image, I am setting limits.conf 
to what I want and I'm explicitly adding ulimit -n 65536 to the user's .bashrc. 
However at the end of my 90_tomcat script when I execute the tomcat process the 
ulimit is not being picked up and is set to 1024 instead

As a test in my 90_tomcat script I'm running ulimit -a >> /tmp/tomcatsu.txt

root@host002:/mnt# cat 90_tomcat |grep "su tomcatA"
su tomcatA -l -c "ulimit -a >> /tmp/tomcatsu.txt"


So this gets run at the end of 90_tomcat:
su tomcatA -l -c "ulimit -a >> /tmp/tomcatsu.txt"
su tomcatA -l -c "/var/jakarta-tomcatA/bin/startup.sh"

When I cat the txt file it says 1024:

root@host002:/etc/pam.d# cat /tmp/tomcatsu.txt |grep open
open files  (-n) 1024

But when I log in manually as root and run /mnt/90_tomcat by hand I end up 
getting the proper ulimit:

root@host002:/etc/pam.d# cat /tmp/tomcatsu.txt |grep open
open files  (-n) 65536


Not sure what the issue but I'd appreciate any input.

Thanks,


Richard Bettridge
Systems Engineering Specialist
BlackBerry


-
This transmission (including any attachments) may contain confidential 
information, privileged material (including material protected by the 
solicitor-client or other applicable privileges), or constitute non-public 
information. Any use of this information by anyone other than the intended 
recipient is prohibited. If you have received this transmission in error, 
please immediately reply to the sender and delete this information from your 
system. Use, dissemination, distribution, or reproduction of this transmission 
by unintended recipients is not authorized and may be unlawful.
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Issue is caused in the process of building the Open Nebula I'd appreciate it if you could help

2012-10-17 Thread Tino Vazquez
Hi,

comments inline,


On Fri, Oct 12, 2012 at 3:45 AM, 최동식  wrote:
> Hello, Want to build a time to build the cloud computing development
> environment using Open Nebula.
> When building a PDF reference guide in the official site of the Open Nebula
>
> Open Nebula hypervisors using KVM, Xen, and VMWare on attempted linkage
> occurs, the following issues have been The answers in the next issue would
> be appreciated.
>
> Thank you
> - DATASTORE_LOCATION of change - where the capacity is ample to move
> / etc / one / oned.conf from DATASTORE_LOCATION to change the change does
> not

In the latest version of opennebula (3.8 beta) you can define
DATASTORE_LOCATION in the datastore template. Earlier versions obey
what is in /etc/one/oned.conf (you need to restart oned)

>
> - OpenNebula direct access to non-vCenter Host VMWARE when approached

Sorry, not sure what this means

>
> - Not to control vCenter any problems emerge because of "Unknown

Are you referring by any chance to VMs in "Unknown"? Not sure of the
vCenter relation anyway

>
> - VMWare Host information but the monitor does not have a Used .. Not all
> monitoring

This is the info inferred from the VMware host

TOTALCPU
FREECPU
CPUSPEED
TOTALMEMORY
FREEMEMORY

>
> - VM used in the existing list does not import (Only the newly added VM
> import)

OpenNebula doesn't support import of existing VMs

>
> - Open Nebula to pop up a VNC console window when you click a permissions
> issue causing vnc proxy not configured 403

Looks like the install_novnc.sh script didn't work properly. This may
due to changes in the novnc repo (not our call, sorry!). This is fixed
in the master branch of OpenNebula repository
(http://dev.opennebula.org/), please update and try the installer
again

>
> - VM generated from simultaneous infinite lock when every state in more than
> three

Could you elaborate a bit more please?

>
> - Supported hypervisor Xen, VMWare (esxi), KVM is .. Others consider that
> the hypervisor (ex: XenServer, vCenter, IBM PowserVM, HP VM...)

There are alternatives in the ecosystem (like XenServer integration).
You may want to have a look here:
http://opennebula.org/software:ecosystem

>
> - Vmware from one file vmwarerc do not know what to do with the settings if
> you access to multiple ESXi
> (ex : ESXi1 user:admin, password:1234, ESXi2 user:admin, password:0987)

All the ESXi should have a homogeneous configuration, including the same user.

>
> - Vmware datastore approach Unknown (Ex) Type : VMFS)

Latest OpenNebula comes with VMFS support

>
> - When configuring the KVM host two different data store does not generate
> VM error in the command (cp Error)

Can you please detail the process you are following, and send the
relevant bits in the oned.log?

>
> - Mount the GlusterFS to / var / lib / one to be shared by the installation.
> sunstone Not Working, one works, however, errors in image registration

Can you send the sunstone.log file?

> - Attempt has been made to create a VM using the VMWare image.Seemed to
> generate a completed, but the following error has occurred
>
> Thu Oct 11 15:00:26 2012 [DiM][I]: New VM state is ACTIVE.
> Thu Oct 11 15:00:26 2012 [LCM][I]: New VM state is PROLOG.
> Thu Oct 11 15:00:26 2012 [VM][I]: Virtual Machine has no context
> Thu Oct 11 15:00:26 2012 [TM][I]: clone: Cloning
> kvm.watchtek.com:/var/lib/one/datastores/105/7587a3b312238f6de0c53cd1784ff971
> in /var/lib/one/datastores/0/20/disk.0
> Thu Oct 11 15:00:26 2012 [TM][I]: ExitCode: 0
> Thu Oct 11 15:00:26 2012 [LCM][I]: New VM state is BOOT
> Thu Oct 11 15:00:26 2012 [VMM][I]: Generating deployment file:
> /var/lib/one/20/deployment.1
> Thu Oct 11 15:00:26 2012 [VMM][I]: ExitCode: 0
> Thu Oct 11 15:00:26 2012 [VMM][I]: Successfully execute network driver
> operation: pre.
> Thu Oct 11 15:00:31 2012 [VMM][I]: Command execution fail:
> /var/lib/one/remotes/vmm/vmware/deploy /var/lib/one/20/deployment.1
> 192.168.20.11 20 192.168.20.11
> Thu Oct 11 15:00:31 2012 [VMM][E]: deploy: Error executing: virsh -c
> 'esx://192.168.20.11/?no_verify=1&auto_answer=1' define
> /var/lib/one/20/deployment.1 err: ExitCode: 1
> Thu Oct 11 15:00:31 2012 [VMM][I]: out:
> Thu Oct 11 15:00:31 2012 [VMM][I]: error: Failed to define domain from
> /var/lib/one/20/deployment.1
> Thu Oct 11 15:00:31 2012 [VMM][I]: error: internal error Could not find
> datastore with name '0'
> Thu Oct 11 15:00:31 2012 [VMM][I]:
> Thu Oct 11 15:00:31 2012 [VMM][I]: ExitCode: 255
> Thu Oct 11 15:00:31 2012 [VMM][I]: Failed to execute virtualization driver
> operation: deploy.
> Thu Oct 11 15:00:31 2012 [VMM][E]: Error deploying virtual machine
> Thu Oct 11 15:00:31 2012 [DiM][I]: New VM state is FAILED

Looks like datastore 0 is not mounted in the ESX.

Regards,

-Tino


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


--
Constantino Vázquez Blanco, MSc
Project Engineer
OpenNe

[one-users] Issue is caused in the process of building the Open Nebula I'd appreciate it if you could help

2012-10-11 Thread 최동식
*Hello, Want to build a time to build the cloud computing development
environment using Open Nebula.
*
*When building a PDF reference guide in the official site of the Open Nebula
*

*Open Nebula hypervisors using KVM, Xen, and VMWare on attempted linkage
occurs, the following issues have been The answers in the next issue would
be appreciated.

Thank you*
 - DATASTORE_LOCATION of change - where the capacity is ample to move
/ etc / one / oned.conf from DATASTORE_LOCATION to change the change does
not

- OpenNebula direct access to non-vCenter Host VMWARE when approached

- Not to control vCenter any problems emerge because of "Unknown

- VMWare Host information but the monitor does not have a Used .. Not all
monitoring

- VM used in the existing list does not import (Only the newly added VM
import)

- Open Nebula to pop up a VNC console window when you click a permissions
issue causing vnc proxy not configured 403

- VM generated from simultaneous infinite lock when every state in more
than three

- Supported hypervisor Xen, VMWare (esxi), KVM is .. Others consider that
the hypervisor (ex: XenServer, vCenter, IBM PowserVM, HP VM...)

- Vmware from one file vmwarerc do not know what to do with the settings if
you access to multiple ESXi
(ex : ESXi1 user:admin, password:1234, ESXi2 user:admin, password:0987)

- Vmware datastore approach Unknown (Ex) Type : VMFS)

- When configuring the KVM host two different data store does not generate
VM error in the command (cp Error)
- Mount the GlusterFS to / var / lib / one to be shared by the
installation. sunstone Not Working, one works, however, errors in image
registration
 - Attempt has been made to create a VM using the VMWare image.Seemed to
generate a completed, but the following error has occurred

Thu Oct 11 15:00:26 2012 [DiM][I]: New VM state is ACTIVE.
Thu Oct 11 15:00:26 2012 [LCM][I]: New VM state is PROLOG.
Thu Oct 11 15:00:26 2012 [VM][I]: Virtual Machine has no context
Thu Oct 11 15:00:26 2012 [TM][I]: clone: Cloning
kvm.watchtek.com:/var/lib/one/datastores/105/7587a3b312238f6de0c53cd1784ff971
in /var/lib/one/datastores/0/20/disk.0
Thu Oct 11 15:00:26 2012 [TM][I]: ExitCode: 0
Thu Oct 11 15:00:26 2012 [LCM][I]: New VM state is BOOT
Thu Oct 11 15:00:26 2012 [VMM][I]: Generating deployment file:
/var/lib/one/20/deployment.1
Thu Oct 11 15:00:26 2012 [VMM][I]: ExitCode: 0
Thu Oct 11 15:00:26 2012 [VMM][I]: Successfully execute network driver
operation: pre.
Thu Oct 11 15:00:31 2012 [VMM][I]: Command execution fail:
/var/lib/one/remotes/vmm/vmware/deploy /var/lib/one/20/deployment.1
192.168.20.11 20 192.168.20.11Thu Oct 11 15:00:31 2012 [VMM][E]:
deploy: Error executing: virsh -c
'esx://192.168.20.11/?no_verify=1&auto_answer=1' define
/var/lib/one/20/deployment.1 err: ExitCode: 1
Thu Oct 11 15:00:31 2012 [VMM][I]: out:
Thu Oct 11 15:00:31 2012 [VMM][I]: error: Failed to define domain from
/var/lib/one/20/deployment.1
Thu Oct 11 15:00:31 2012 [VMM][I]: error: internal error Could not
find datastore with name '0'
Thu Oct 11 15:00:31 2012 [VMM][I]:
Thu Oct 11 15:00:31 2012 [VMM][I]: ExitCode: 255
Thu Oct 11 15:00:31 2012 [VMM][I]: Failed to execute virtualization
driver operation: deploy.Thu Oct 11 15:00:31 2012 [VMM][E]: Error
deploying virtual machine
Thu Oct 11 15:00:31 2012 [DiM][I]: New VM state is FAILED
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Issue

2011-12-20 Thread Jaime Melis
Hello Hutson,

Actually that's the expected behaviour of the 8021Q network drivers. We
decided to keep the bridge and the physical device with the vlan tag in the
host for the following reasons:

1) It doesn't hurt to leave the bridge and the tagged interface. It won't
eat up system's resources.
2) If another VM with the same network ID is launched in the same host, you
don't need to create it again, therefore (slightly) speeding up boot times

Do you agree with this? Do you think the default behaviour should be to
remove the bridge and tagged interface?

Of course this behaviour can be modified by enhancing the clean script [1].
Take a look at the ebtables clean script [2]. You will probably need to
develop a "deactivate" method in the ruby class that handles the 8021q
network drivers [3].

[1]
https://github.com/OpenNebula/one/blob/master/src/vnm_mad/remotes/802.1Q/clean
[2]
https://github.com/OpenNebula/one/blob/master/src/vnm_mad/remotes/ebtables/clean
[3]
https://github.com/OpenNebula/one/blob/master/src/vnm_mad/remotes/802.1Q/HostManaged.rb

Regards,
Jaime

On Wed, Dec 14, 2011 at 10:54 PM, Hutson Betts  wrote:

> I have been testing Host-managed VLANs, but I'm having an issue with
> cleanup.
>
> After creating a VNET and VM, I have the following:
> oneadmin@opennebula-server:~$ onevm show 5
> VIRTUAL MACHINE 5
> INFORMATION
> ID  : 5
> NAME: vm-example
> USER: oneadmin
> GROUP   : oneadmin
> STATE   : ACTIVE
> LCM_STATE   : RUNNING
> HOSTNAME: 10.1.0.101
> START TIME  : 12/14 15:40:51
> END TIME: -
> DEPLOY ID   : one-5
>
> VIRTUAL MACHINE
> MONITORING
> NET_TX  : 0
> NET_RX  : 390
> USED MEMORY : 524288
> USED CPU: 66
>
> VIRTUAL MACHINE
> TEMPLATE
> CPU=1
> DISK=[
>  CLONE=YES,
>  DISK_ID=0,
>  IMAGE="Machine A",
>  IMAGE_ID=1,
>  READONLY=NO,
>  SAVE=NO,
>  SOURCE=/var/lib/one/images/643c79fb423c71730ffb84b1a88f06d0,
>  TARGET=hda,
>  TYPE=DISK ]
> MEMORY=512
> NAME=vm-example
> NIC=[
>  BRIDGE=onebr2,
>  IP=192.168.0.1,
>  MAC=02:00:c0:a8:00:01,
>  NETWORK="VLAN Test",
>  NETWORK_ID=2,
>  PHYDEV=eth2 ]
> OS=[
>  INITRD=/initrd.img,
>  KERNEL=/vmlinuz,
>  ROOT=sda ]
> VMID=5
> oneadmin@opennebula-server:~$ onevnet show 2
> VIRTUAL NETWORK 2
> INFORMATION
> ID : 2
> USER   : oneadmin
> GROUP  : oneadmin
> PUBLIC : No
> USED LEASES: 1
>
> VIRTUAL NETWORK
> TEMPLATE
> BRIDGE=onebr2
> NAME="VLAN Test"
> NETWORK_ADDRESS=192.168.0.0
> NETWORK_SIZE=C
> PHYDEV=eth2
> TYPE=RANGED
>
> LEASES
> INFORMATION
> LEASE=[ IP=192.168.0.1, MAC=02:00:c0:a8:00:01, USED=1, VID=5 ]
>
>
> On the host system, I have the following, created as a result of the
> Host-managed VLAN script:
>
> eth2.502  Link encap:Ethernet  HWaddr 00:1b:21:b8:cf:3d
>  inet6 addr: fe80::21b:21ff:feb8:cf3d/64 Scope:Link
>  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>  TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
>  collisions:0 txqueuelen:0
>  RX bytes:0 (0.0 B)  TX bytes:390 (390.0 B)\
>
> onebr2Link encap:Ethernet  HWaddr 00:1b:21:b8:cf:3d
>  inet6 addr: fe80::9820:dff:fe31:9aab/64 Scope:Link
>  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>  TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
>  collisions:0 txqueuelen:0
>  RX bytes:0 (0.0 B)  TX bytes:390 (390.0 B)
>
> vnet1 Link encap:Ethernet
>
> Next, I proceed to delete the VM and VNET using the following:
>
> oneadmin@opennebula-server:~$ onevm delete 5
> oneadmin@opennebula-server:~$ onevnet delete 2
>
>
> The "vnet0" tap was removed along with the VM, but the bridge and
> VLAN-tagged virtual interface are still there. Am I missing a
> configuration step to insure that those are removed when all remnants of
> the VM and VNET are deleted?
>
> --
> Hutson Betts
> Computer Science and Engineering
> Texas A&M University
>
>
>
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>


-- 
Jaime Melis
Project Engineer
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] Issue

2011-12-14 Thread Hutson Betts
I have been testing Host-managed VLANs, but I'm having an issue with
cleanup.

After creating a VNET and VM, I have the following:
oneadmin@opennebula-server:~$ onevm show 5
VIRTUAL MACHINE 5
INFORMATION   
ID  : 5   
NAME: vm-example  
USER: oneadmin
GROUP   : oneadmin
STATE   : ACTIVE  
LCM_STATE   : RUNNING 
HOSTNAME: 10.1.0.101  
START TIME  : 12/14 15:40:51  
END TIME: -   
DEPLOY ID   : one-5   

VIRTUAL MACHINE
MONITORING  
NET_TX  : 0   
NET_RX  : 390 
USED MEMORY : 524288  
USED CPU: 66  

VIRTUAL MACHINE
TEMPLATE
CPU=1
DISK=[
  CLONE=YES,
  DISK_ID=0,
  IMAGE="Machine A",
  IMAGE_ID=1,
  READONLY=NO,
  SAVE=NO,
  SOURCE=/var/lib/one/images/643c79fb423c71730ffb84b1a88f06d0,
  TARGET=hda,
  TYPE=DISK ]
MEMORY=512
NAME=vm-example
NIC=[
  BRIDGE=onebr2,
  IP=192.168.0.1,
  MAC=02:00:c0:a8:00:01,
  NETWORK="VLAN Test",
  NETWORK_ID=2,
  PHYDEV=eth2 ]
OS=[
  INITRD=/initrd.img,
  KERNEL=/vmlinuz,
  ROOT=sda ]
VMID=5
oneadmin@opennebula-server:~$ onevnet show 2
VIRTUAL NETWORK 2
INFORMATION   
ID : 2   
USER   : oneadmin
GROUP  : oneadmin
PUBLIC : No  
USED LEASES: 1   

VIRTUAL NETWORK
TEMPLATE
BRIDGE=onebr2
NAME="VLAN Test"
NETWORK_ADDRESS=192.168.0.0
NETWORK_SIZE=C
PHYDEV=eth2
TYPE=RANGED

LEASES
INFORMATION  
LEASE=[ IP=192.168.0.1, MAC=02:00:c0:a8:00:01, USED=1, VID=5 ]


On the host system, I have the following, created as a result of the
Host-managed VLAN script:

eth2.502  Link encap:Ethernet  HWaddr 00:1b:21:b8:cf:3d  
  inet6 addr: fe80::21b:21ff:feb8:cf3d/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0 
  RX bytes:0 (0.0 B)  TX bytes:390 (390.0 B)\

onebr2Link encap:Ethernet  HWaddr 00:1b:21:b8:cf:3d  
  inet6 addr: fe80::9820:dff:fe31:9aab/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0 
  RX bytes:0 (0.0 B)  TX bytes:390 (390.0 B)

vnet1 Link encap:Ethernet

Next, I proceed to delete the VM and VNET using the following:

oneadmin@opennebula-server:~$ onevm delete 5
oneadmin@opennebula-server:~$ onevnet delete 2


The "vnet0" tap was removed along with the VM, but the bridge and
VLAN-tagged virtual interface are still there. Am I missing a
configuration step to insure that those are removed when all remnants of
the VM and VNET are deleted?

-- 
Hutson Betts
Computer Science and Engineering
Texas A&M University





signature.asc
Description: This is a digitally signed message part
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] issue with LVM storage

2011-10-27 Thread Jaime Melis
Hello Prakhar,

are you still experiencing this issue? It looks like a system setup problem.
Do you have any further information on this problem?

Regards,
Jaime

On Tue, Jun 21, 2011 at 5:28 PM, Prakhar Srivastava
wrote:

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

[one-users] issue with LVM storage

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

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

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

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

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

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

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

Hope someone could throw some light on this error.

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

Re: [one-users] issue: VM can't boot up from network

2011-03-13 Thread GONG YONGJIE A
Thanks Héctor.

I will use "onevm" command firstly for further tests.

-Original Message-
From: Héctor Sanjuán [mailto:hsanj...@opennebula.org] 
Sent: Friday, March 11, 2011 6:22 PM
To: GONG YONGJIE A
Cc: users@lists.opennebula.org
Subject: Re: [one-users] issue: VM can't boot up from network

Hi,


I think this is related to:

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

The OS Section is not being created properly in Sunstone. Therefore the
BOOT option is not recognised and takes the default value in ONE.

The patch is ready and should be available in the 2.2 branch soon.

Héctor



El 11/03/11 04:07, GONG YONGJIE A escribió:
> Hi,
> 
> I just test to create one VM to boot from PXEbut
> from"deployment.0"the"boot"parameter is still"hd".
> 
> Please correct me if my configuration is wrong.
> 
> Thanks a lot.
> 
> Logs:
> 
> [root@cloudmanager images]# onevm list
> 
>ID USER NAME STAT CPU MEMHOSTNAMETIME
> 
>14 root linux-0. runn   1512M   172.24.178.38 00 21:01:46
> 
>19 rootOMCP1 runn  10  2G   172.24.178.38 00 17:29:33
> 
>23 root CCP5 runn  13  2G   172.24.178.38 00 01:06:19
> 
> [root@cloudmanager images]#
> 
> [root@cloudmanager images]# onevm show 23
> 
> VIRTUAL MACHINE 23
> INFORMATION 
> 
> ID : 23 
> 
> NAME   : CCP5   
> 
> STATE  : ACTIVE 
> 
> LCM_STATE  : RUNNING
> 
> START TIME : 03/11 11:12:00 
> 
> END TIME   : -  
> 
> DEPLOY ID: : one-23 
> 
> VIRTUAL MACHINE
> MONITORING 
> 
> USED MEMORY: 2097152
> 
> USED CPU   : 13 
> 
> NET_TX : 0  
> 
> NET_RX : 0  
> 
> VIRTUAL MACHINE
> TEMPLATE   
> 
> ARCH=i686
> 
> BOOT=network
> 
> CPU=1
> 
> EMULATOR=/usr/libexec/qemu-kvm
> 
> GRAPHICS=[
> 
>   LISTEN=127.0.0.1,
> 
>   PORT=5915,
> 
>   TYPE=vnc ]
> 
> MEMORY=2048
> 
> NAME=CCP5
> 
> NIC=[
> 
>   BRIDGE=br0,
> 
>   MAC=08:80:42:03:17:8a,
> 
>   MODEL=e1000 ]
> 
> NIC=[
> 
>   BRIDGE=br1,
> 
>   MAC=08:80:42:03:18:8a,
> 
>   MODEL=e1000 ]
> 
> VCPU=1
> 
> VMID=23
> 
> =
> 
> [root@host1 /]# cat /var/lib/one/23/images/deployment.0
> 
> 
> 
> one-23
> 
> 1
> 
> 2097152
> 
> 
> 
> hvm
> 
> 
> 
> 
> 
> 
> 
> /usr/libexec/qemu-kvm
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> ===
> 
> [root@cloudmanager images]# cat vm-CCP5.conf
> 
> NAME = CCP5
> 
> MEMORY = 2048
> 
> CPU = 1
> 
> VCPU = 1
> 
> EMULATOR = /usr/libexec/qemu-kvm
> 
> ARCH = i686
> 
> BOOT = network
> 
> NIC = [ MAC = "08:80:42:03:17:8a", MODEL ="e1000", BRIDGE = "br0" ]
> 
> NIC = [ MAC = "08:80:42:03:18:8a", MODEL ="e1000", BRIDGE = "br1" ]
> 
> GRAPHICS = [
> 
> TYPE = "vnc",
> 
> LISTEN = "127.0.0.1",
> 
> PORT = "5915" ]
> 
> 
> 
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


-- 
Héctor Sanjuan
OpenNebula.org
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] issue: sunstone can't attach OS disk

2011-03-11 Thread Héctor Sanjuán
Hi, so far we haven't been able to reproduce this or to find the cause.

Is it possible that you simply forgot to click on the "add" button after
you filled in the fields in the add disk/image section of the kvm
wizard, so the disk appears in the "current disks" box?

Héctor

El 10/03/11 07:53, GONG YONGJIE A escribió:
> Hi Hector,
> 
>   I didn't use "advanced mode" but just "Wizard KVM", snapshot attached 
> in the mail. Please correct me if my operation is wrong.
> 
> Following are "onevm" command and no disk argument included.
> [root@cloudmanager images]# onevm show 16
> VIRTUAL MACHINE 16 INFORMATION
>   
> ID : 16  
> NAME   : test-OMCP   
> STATE  : ACTIVE  
> LCM_STATE  : RUNNING 
> START TIME : 03/10 15:56:14  
> END TIME   : -   
> DEPLOY ID: : one-16  
> 
> VIRTUAL MACHINE MONITORING
>   
> USED MEMORY: 524288  
> USED CPU   : 12  
> NET_TX : 0   
> NET_RX : 0   
> 
> VIRTUAL MACHINE TEMPLATE  
>   
> ARCH=i686
> BOOT=hd
> CPU=1
> GRAPHICS=[
>   LISTEN=172.24.178.38,
>   PORT=5923,
>   TYPE=vnc ]
> MEMORY=512
> NAME=test-OMCP
> RAW=[
>   TYPE=kvm ]
> VCPU=1
> VMID=16
> =
> [root@cloudmanager one]# cat 16.log 
> Thu Mar 10 15:56:44 2011 [DiM][I]: New VM state is ACTIVE.
> Thu Mar 10 15:56:44 2011 [LCM][I]: New VM state is PROLOG.
> Thu Mar 10 15:56:44 2011 [VM][I]: Virtual Machine has no context
> Thu Mar 10 15:56:44 2011 [LCM][I]: New VM state is BOOT
> Thu Mar 10 15:56:44 2011 [VMM][I]: Generating deployment file: 
> /var/lib/one/16/deployment.0
> Thu Mar 10 15:56:44 2011 [LCM][I]: New VM state is RUNNING
> Thu Mar 10 15:57:05 2011 [VMM][D]: Monitor Information:
> CPU   : 14
> Memory: 524288
> Net_TX: -1
> Net_RX: -1
> ===
> [root@host1 ~]# cat /var/lib/one/16/images/deployment.0
> 
> one-16
> 1
> 524288
> 
> hvm
> 
> 
> 
> /usr/libexec/qemu-kvm
> 
>     
>     
> 
> 
> 
> 
> 
> 
> -Original Message-
> From: Héctor Sanjuán [mailto:hsanj...@opennebula.org] 
> Sent: Wednesday, March 09, 2011 5:19 PM
> To: GONG YONGJIE A
> Cc: users@lists.opennebula.org
> Subject: Re: [one-users] issue: sunstone can't attach OS disk
> 
> Hi,
> 
> I understand that you created the first VM pasting the template in the
> "advanced mode" tab for VM creation in sunstone. (or did you use the kvm
> wizard?)
> 
> In order to look better into it, I would need the Opennebula templates
> showing up on both machines after you run:
> 
> onevm show VMID
> 
> or from the VM information panel in Sunstone. I could also be helpful if
> you attach the full VM logs (they are as well on the information panel
> in Sunstone).
> 
> Hector
> 
> 
> 
> El 09/03/11 04:27, GONG YONGJIE A escribió:
>> Hi,
>>
>>
>>
>> I encountered one problem during VM creation tests.
>>
>> Problem: VM machine created by"sunstone"with registeredOS imageis
>> running without disk image.
>>
>> Workaround: use"onevm create"insteadly.
>>
>> From deployment file,no disk argument existed.
>>
>> === VM created by sunstoneweb interface==
>>
>> [root@host1 bin]# cat /var/lib/one/6/images/deployment.0
>>
>> 
>>
>> one-6
>>
>> 1
>>
>> 524288
>>
>> 
>>
>> hvm
>>
>> 
>>
>> 
>>
>> 
>>
>> /usr/libexec/qemu-kvm
>>
>> 
>>
>> 
>>
>> 
>>
>> 
>>
>> 
>>
>> 
>>
>>
>> === VM created by onevm command==
>>
>> [root@host1 bin]# cat /var/lib/one/7/images/deployment.0
>>
>> 
>>
>> one-7
>>
>> 524288
>>
>> 
>>
>> hvm
>>
>>  

Re: [one-users] issue: VM can't boot up from network

2011-03-11 Thread Héctor Sanjuán
Hi,


I think this is related to:

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

The OS Section is not being created properly in Sunstone. Therefore the
BOOT option is not recognised and takes the default value in ONE.

The patch is ready and should be available in the 2.2 branch soon.

Héctor



El 11/03/11 04:07, GONG YONGJIE A escribió:
> Hi,
> 
> I just test to create one VM to boot from PXEbut
> from“deployment.0”the“boot”parameter is still“hd”.
> 
> Please correct me if my configuration is wrong.
> 
> Thanks a lot.
> 
> Logs:
> 
> [root@cloudmanager images]# onevm list
> 
>ID USER NAME STAT CPU MEMHOSTNAMETIME
> 
>14 root linux-0. runn   1512M   172.24.178.38 00 21:01:46
> 
>19 rootOMCP1 runn  10  2G   172.24.178.38 00 17:29:33
> 
>23 root CCP5 runn  13  2G   172.24.178.38 00 01:06:19
> 
> [root@cloudmanager images]#
> 
> [root@cloudmanager images]# onevm show 23
> 
> VIRTUAL MACHINE 23
> INFORMATION 
> 
> ID : 23 
> 
> NAME   : CCP5   
> 
> STATE  : ACTIVE 
> 
> LCM_STATE  : RUNNING
> 
> START TIME : 03/11 11:12:00 
> 
> END TIME   : -  
> 
> DEPLOY ID: : one-23 
> 
> VIRTUAL MACHINE
> MONITORING 
> 
> USED MEMORY: 2097152
> 
> USED CPU   : 13 
> 
> NET_TX : 0  
> 
> NET_RX : 0  
> 
> VIRTUAL MACHINE
> TEMPLATE   
> 
> ARCH=i686
> 
> BOOT=network
> 
> CPU=1
> 
> EMULATOR=/usr/libexec/qemu-kvm
> 
> GRAPHICS=[
> 
>   LISTEN=127.0.0.1,
> 
>   PORT=5915,
> 
>   TYPE=vnc ]
> 
> MEMORY=2048
> 
> NAME=CCP5
> 
> NIC=[
> 
>   BRIDGE=br0,
> 
>   MAC=08:80:42:03:17:8a,
> 
>   MODEL=e1000 ]
> 
> NIC=[
> 
>   BRIDGE=br1,
> 
>   MAC=08:80:42:03:18:8a,
> 
>   MODEL=e1000 ]
> 
> VCPU=1
> 
> VMID=23
> 
> =
> 
> [root@host1 /]# cat /var/lib/one/23/images/deployment.0
> 
> 
> 
> one-23
> 
> 1
> 
> 2097152
> 
> 
> 
> hvm
> 
> 
> 
> 
> 
> 
> 
> /usr/libexec/qemu-kvm
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> ===
> 
> [root@cloudmanager images]# cat vm-CCP5.conf
> 
> NAME = CCP5
> 
> MEMORY = 2048
> 
> CPU = 1
> 
> VCPU = 1
> 
> EMULATOR = /usr/libexec/qemu-kvm
> 
> ARCH = i686
> 
> BOOT = network
> 
> NIC = [ MAC = "08:80:42:03:17:8a", MODEL ="e1000", BRIDGE = "br0" ]
> 
> NIC = [ MAC = "08:80:42:03:18:8a", MODEL ="e1000", BRIDGE = "br1" ]
> 
> GRAPHICS = [
> 
> TYPE = "vnc",
> 
> LISTEN = "127.0.0.1",
> 
> PORT = "5915" ]
> 
> 
> 
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


-- 
Héctor Sanjuan
OpenNebula.org
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] issue: VM can't boot up from network

2011-03-11 Thread Daniel Molina
Hi,

You should try
OS = [
   BOOT = network
]

instead of
BOOT = network

in your VM template.

Hope this helps

http://www.opennebula.org/documentation:rel2.2:template

On 11 March 2011 04:07, GONG YONGJIE A
 wrote:
>
> Hi,
>
> I just test to create one VM to boot from PXE but from "deployment.0" 
> the "boot" parameter is still "hd".
>
> Please correct me if my configuration is wrong.
>
> Thanks a lot.
>
> Logs:
>
> [root@cloudmanager images]# onevm list
>
>ID USER NAME STAT CPU MEMHOSTNAMETIME
>
>14 root linux-0. runn   1512M   172.24.178.38 00 21:01:46
>
>19 rootOMCP1 runn  10  2G   172.24.178.38 00 17:29:33
>
>23 root CCP5 runn  13  2G   172.24.178.38 00 01:06:19
>
> [root@cloudmanager images]#
>
> [root@cloudmanager images]# onevm show 23
>
> VIRTUAL MACHINE 23 INFORMATION
>
> ID : 23
>
> NAME   : CCP5
>
> STATE  : ACTIVE
>
> LCM_STATE  : RUNNING
>
> START TIME : 03/11 11:12:00
>
> END TIME   : -
>
> DEPLOY ID: : one-23
>
> VIRTUAL MACHINE MONITORING
>
> USED MEMORY: 2097152
>
> USED CPU   : 13
>
> NET_TX : 0
>
> NET_RX : 0
>
> VIRTUAL MACHINE TEMPLATE
>
> ARCH=i686
>
> BOOT=network
>
> CPU=1
>
> EMULATOR=/usr/libexec/qemu-kvm
>
> GRAPHICS=[
>
>   LISTEN=127.0.0.1,
>
>   PORT=5915,
>
>   TYPE=vnc ]
>
> MEMORY=2048
>
> NAME=CCP5
>
> NIC=[
>
>   BRIDGE=br0,
>
>   MAC=08:80:42:03:17:8a,
>
>   MODEL=e1000 ]
>
> NIC=[
>
>   BRIDGE=br1,
>
>   MAC=08:80:42:03:18:8a,
>
>   MODEL=e1000 ]
>
> VCPU=1
>
> VMID=23
>
> =
>
> [root@host1 /]# cat /var/lib/one/23/images/deployment.0
>
> 
>
> one-23
>
> 1
>
> 2097152
>
> 
>
> hvm
>
> 
>
> 
>
> 
>
> /usr/libexec/qemu-kvm
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> ===
>
> [root@cloudmanager images]# cat vm-CCP5.conf
>
> NAME = CCP5
>
> MEMORY = 2048
>
> CPU = 1
>
> VCPU = 1
>
> EMULATOR = /usr/libexec/qemu-kvm
>
> ARCH = i686
>
> BOOT = network
>
> NIC = [ MAC = "08:80:42:03:17:8a", MODEL ="e1000", BRIDGE = "br0" ]
>
> NIC = [ MAC = "08:80:42:03:18:8a", MODEL ="e1000", BRIDGE = "br1" ]
>
> GRAPHICS = [
>
> TYPE = "vnc",
>
> LISTEN = "127.0.0.1",
>
> PORT = "5915" ]
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



--
Daniel Molina, Cloud Technology Engineer/Researcher
Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org | dmol...@opennebula.org
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] issue: VM can't boot up from network

2011-03-10 Thread GONG YONGJIE A
Hi,

I just test to create one VM to boot from PXE but from
"deployment.0" the "boot" parameter is still "hd".
Please correct me if my configuration is wrong.

Thanks a lot.

Logs:
[root@cloudmanager images]# onevm list
   ID USER NAME STAT CPU MEMHOSTNAMETIME
   14 root linux-0. runn   1512M   172.24.178.38 00 21:01:46
   19 rootOMCP1 runn  10  2G   172.24.178.38 00 17:29:33
   23 root CCP5 runn  13  2G   172.24.178.38 00 01:06:19
[root@cloudmanager images]# 
[root@cloudmanager images]# onevm show 23
VIRTUAL MACHINE 23 INFORMATION

ID : 23  
NAME   : CCP5
STATE  : ACTIVE  
LCM_STATE  : RUNNING 
START TIME : 03/11 11:12:00  
END TIME   : -   
DEPLOY ID: : one-23  

VIRTUAL MACHINE MONITORING

USED MEMORY: 2097152 
USED CPU   : 13  
NET_TX : 0   
NET_RX : 0   

VIRTUAL MACHINE TEMPLATE

ARCH=i686
BOOT=network
CPU=1
EMULATOR=/usr/libexec/qemu-kvm
GRAPHICS=[
  LISTEN=127.0.0.1,
  PORT=5915,
  TYPE=vnc ]
MEMORY=2048
NAME=CCP5
NIC=[
  BRIDGE=br0,
  MAC=08:80:42:03:17:8a,
  MODEL=e1000 ]
NIC=[
  BRIDGE=br1,
  MAC=08:80:42:03:18:8a,
  MODEL=e1000 ]
VCPU=1
VMID=23

=
[root@host1 /]# cat /var/lib/one/23/images/deployment.0

one-23
1
2097152

hvm



/usr/libexec/qemu-kvm


















===
[root@cloudmanager images]# cat vm-CCP5.conf 
NAME = CCP5 
MEMORY = 2048
CPU = 1
VCPU = 1

EMULATOR = /usr/libexec/qemu-kvm

ARCH = i686

BOOT = network

NIC = [ MAC = "08:80:42:03:17:8a", MODEL ="e1000", BRIDGE = "br0" ]
NIC = [ MAC = "08:80:42:03:18:8a", MODEL ="e1000", BRIDGE = "br1" ]

GRAPHICS = [
TYPE = "vnc",
LISTEN = "127.0.0.1",
PORT = "5915" ]

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


Re: [one-users] issue: VM instance can't shut down through "sunstone" command

2011-03-10 Thread GONG YONGJIE A
Hi Héctor,

Got it. Thanks very much :)

-Original Message-
From: Héctor Sanjuán [mailto:hsanj...@opennebula.org] 
Sent: Thursday, March 10, 2011 6:49 PM
To: GONG YONGJIE A
Cc: users@lists.opennebula.org
Subject: Re: [one-users] issue: VM instance can't shut down through "sunstone" 
command

Ok,

My mistake, KVM driver is not plugging the VM off after the timeout
occurs. var/remotes/vmm/kvm/shutdown:

if [ "$count" -gt "$TIMEOUT" ]
then
echo "Timeout reached" >&2
exit 1
fi

ttylinux is just ignoring the shutdown signal, so the script fails with
the "Timeout reached" message as expected.

I guess the way to power off ttylinux is either using 'onevm cancel',
modifying the poweroff script so it destroys the VM if the TIMEOUT is
reached or getting the VM to understand the acpi poweroff signal.

Héctor


El 10/03/11 07:36, GONG YONGJIE A escribió:
> Thanks Hector.
> 
> Just try to reproduce it. Status of VM becomes "shutdown" and then is 
> recovered to "running".
> 
> "
> Thu Mar 10 15:23:31 2011 [VMM][E]: Error shuting down VM, Timeout reached
> Thu Mar 10 15:23:31 2011 [LCM][I]: Fail to shutdown VM. Assuming that the VM 
> is still RUNNING (will poll VM).
> "
> 
> [root@cloudmanager images]# cat vm-linux-0.2.conf 
> NAME = linux-0.2 
> MEMORY = 512 
> CPU = 1
> VCPU = 1
> 
> EMULATOR = /usr/libexec/qemu-kvm
> 
> ARCH = i686
> 
> BOOT = hd
> 
> DISK = [ IMAGE= "linux-0.2" ]
> 
> NIC = [ MAC = "05:80:42:03:17:86", MODLE ="e1000", BRIDGE = "br0" ]
> NIC = [ MAC = "05:80:42:03:18:86", MODLE ="e1000", BRIDGE = "br1" ]
> 
> GRAPHICS = [
> TYPE = "vnc",
> LISTEN = "127.0.0.1",
> PORT = "5914" ]
> 
> -Original Message-
> From: Héctor Sanjuán [mailto:hsanj...@opennebula.org] 
> Sent: Wednesday, March 09, 2011 5:08 PM
> To: GONG YONGJIE A
> Cc: users@lists.opennebula.org
> Subject: Re: [one-users] issue: VM instance can't shut down through 
> "sunstone" command
> 
> Hi,
> 
> 
> Shutdown is a transitory state indicating that the shutdown script has
> started. This script tries to send and shutdown ACPI signal to the VM
> and regularly checks if the VM has shut down until the TIMEOUT occurs
> (defined in the shutdown remotes script as far as i know).
> 
> If the VM has not been shutdown after that time, the script will try to
> directly "power off" the VM. After that the VM is deleted [1]
> 
> Does your VM stay in shutdown state indefinitely? If you are using
> ttylinux it might be ignoring the ACPI shutdown signal and therefore it
> would take the TIMEOUT to power it off.
> 
> The stop state is meant to freeze a vm in running state by saving its
> state. Can you ellaborate on how "onevm stop" is failing?
> 
> I hope it helps, if not you can send the full VM log and template.
> 
> Hector
> 
> [1] VM State diagram: http://opennebula.org/documentation:rel2.0:vm_guide
> 
> El 09/03/11 04:58, GONG YONGJIE A escribió:
>> Hi,
>>
>> I encountered another issue that after shutdown VM instance
>> from"sunstone",the VM is still alive even status of this VM
>> becomes"SHUTDOWN".
>>
>> Also from"onevm"command, itis failed to use"onevm stop".
>>
>> [root@cloudmanager one]# onevm list
>>
>>ID USER NAME STAT CPU MEMHOSTNAMETIME
>>
>> 9 root   test-8 shut   2512M   172.24.178.38 00 00:18:29
>>
>> qemu 30740 1  2 07:35 ?00:00:24 /usr/libexec/qemu-kvm -S
>> -M rhel6.0.0 -cpu qemu32 -enable-kvm -m 512 -smp
>> 1,sockets=1,cores=1,threads=1 -name one-9 -uuid
>> 064aecf7-a857-222f-8121-5d47facf5eef -nodefconfig -nodefaults -chardev
>> socket,id=monitor,path=/var/lib/libvirt/qemu/one-9.monitor,server,nowait
>> -mon chardev=monitor,mode=control -rtc base=utc -boot c -drive
>> file=/var/lib/one//9/images/disk.0,if=none,id=drive-ide0-0-0,boot=on,format=raw
>> -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0
>> -netdev tap,fd=23,id=hostnet0 -device
>> rtl8139,netdev=hostnet0,id=net0,mac=00:11:22:33:44:55,bus=pci.0,addr=0x3
>> -usb -vnc 127.0.0.1:8 -vga cirrus
>> -devicevirtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4
>>
>> [root@cloudmanager one]# cat 9.log
>>
>> ...
>>
>> Wed Mar  9 12:01:55 2011 [LCM][I]: New VM state is SHUTDOWN
>>
>> [root@cloudmanager one]# rpm -q

Re: [one-users] issue: VM instance can't shut down through "sunstone" command

2011-03-10 Thread Héctor Sanjuán
Ok,

My mistake, KVM driver is not plugging the VM off after the timeout
occurs. var/remotes/vmm/kvm/shutdown:

if [ "$count" -gt "$TIMEOUT" ]
then
echo "Timeout reached" >&2
exit 1
fi

ttylinux is just ignoring the shutdown signal, so the script fails with
the "Timeout reached" message as expected.

I guess the way to power off ttylinux is either using 'onevm cancel',
modifying the poweroff script so it destroys the VM if the TIMEOUT is
reached or getting the VM to understand the acpi poweroff signal.

Héctor


El 10/03/11 07:36, GONG YONGJIE A escribió:
> Thanks Hector.
> 
> Just try to reproduce it. Status of VM becomes "shutdown" and then is 
> recovered to "running".
> 
> "
> Thu Mar 10 15:23:31 2011 [VMM][E]: Error shuting down VM, Timeout reached
> Thu Mar 10 15:23:31 2011 [LCM][I]: Fail to shutdown VM. Assuming that the VM 
> is still RUNNING (will poll VM).
> "
> 
> [root@cloudmanager images]# cat vm-linux-0.2.conf 
> NAME = linux-0.2 
> MEMORY = 512 
> CPU = 1
> VCPU = 1
> 
> EMULATOR = /usr/libexec/qemu-kvm
> 
> ARCH = i686
> 
> BOOT = hd
> 
> DISK = [ IMAGE= "linux-0.2" ]
> 
> NIC = [ MAC = "05:80:42:03:17:86", MODLE ="e1000", BRIDGE = "br0" ]
> NIC = [ MAC = "05:80:42:03:18:86", MODLE ="e1000", BRIDGE = "br1" ]
> 
> GRAPHICS = [
> TYPE = "vnc",
>     LISTEN = "127.0.0.1",
> PORT = "5914" ]
> 
> -Original Message-
> From: Héctor Sanjuán [mailto:hsanj...@opennebula.org] 
> Sent: Wednesday, March 09, 2011 5:08 PM
> To: GONG YONGJIE A
> Cc: users@lists.opennebula.org
> Subject: Re: [one-users] issue: VM instance can't shut down through 
> "sunstone" command
> 
> Hi,
> 
> 
> Shutdown is a transitory state indicating that the shutdown script has
> started. This script tries to send and shutdown ACPI signal to the VM
> and regularly checks if the VM has shut down until the TIMEOUT occurs
> (defined in the shutdown remotes script as far as i know).
> 
> If the VM has not been shutdown after that time, the script will try to
> directly "power off" the VM. After that the VM is deleted [1]
> 
> Does your VM stay in shutdown state indefinitely? If you are using
> ttylinux it might be ignoring the ACPI shutdown signal and therefore it
> would take the TIMEOUT to power it off.
> 
> The stop state is meant to freeze a vm in running state by saving its
> state. Can you ellaborate on how "onevm stop" is failing?
> 
> I hope it helps, if not you can send the full VM log and template.
> 
> Hector
> 
> [1] VM State diagram: http://opennebula.org/documentation:rel2.0:vm_guide
> 
> El 09/03/11 04:58, GONG YONGJIE A escribió:
>> Hi,
>>
>> I encountered another issue that after shutdown VM instance
>> from"sunstone",the VM is still alive even status of this VM
>> becomes"SHUTDOWN".
>>
>> Also from"onevm"command, itis failed to use"onevm stop".
>>
>> [root@cloudmanager one]# onevm list
>>
>>ID USER NAME STAT CPU MEMHOSTNAMETIME
>>
>> 9 root   test-8 shut   2512M   172.24.178.38 00 00:18:29
>>
>> qemu 30740 1  2 07:35 ?00:00:24 /usr/libexec/qemu-kvm -S
>> -M rhel6.0.0 -cpu qemu32 -enable-kvm -m 512 -smp
>> 1,sockets=1,cores=1,threads=1 -name one-9 -uuid
>> 064aecf7-a857-222f-8121-5d47facf5eef -nodefconfig -nodefaults -chardev
>> socket,id=monitor,path=/var/lib/libvirt/qemu/one-9.monitor,server,nowait
>> -mon chardev=monitor,mode=control -rtc base=utc -boot c -drive
>> file=/var/lib/one//9/images/disk.0,if=none,id=drive-ide0-0-0,boot=on,format=raw
>> -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0
>> -netdev tap,fd=23,id=hostnet0 -device
>> rtl8139,netdev=hostnet0,id=net0,mac=00:11:22:33:44:55,bus=pci.0,addr=0x3
>> -usb -vnc 127.0.0.1:8 -vga cirrus
>> -devicevirtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4
>>
>> [root@cloudmanager one]# cat 9.log
>>
>> ...
>>
>> Wed Mar  9 12:01:55 2011 [LCM][I]: New VM state is SHUTDOWN
>>
>> [root@cloudmanager one]# rpm -qa | grep -i openNebula
>>
>> opennebula-2.1.80-1
>>
>> [root@cloudmanager one]# cat /etc/one/oned.conf
>>
>> #***
>>
>> #   OpenNebula Configuration file
>>
>> #

Re: [one-users] issue: can't specify NIC hardware type duirng VM creating

2011-03-10 Thread GONG YONGJIE A
Ooops.. I will try it later J

 

Thanks for great support.

 

From: Carlos Martín Sánchez [mailto:cmar...@opennebula.org] 
Sent: Thursday, March 10, 2011 4:26 PM
To: GONG YONGJIE A
Cc: users@lists.opennebula.org
Subject: Re: [one-users] issue: can't specify NIC hardware type duirng VM 
creating

 

Hi there,

 

There's a typo in your template, you are using MODLE instead of MODEL.

 

Regards,

Carlos

 

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



On 10 March 2011 08:02, GONG YONGJIE A  
wrote:

Hi,

I'd like to create one VM with "e1000" hardware type for Ethernet 
interface. But after VM boots up, it still use default "realtek" type.

From "deployment.0", there is no "model=e1000" parameter for NIC.

Could you help me check this or correct me if my configuration isn't 
right.

Thanks.

Logs:

[root@cloudmanager one]# onevm list

   ID USER NAME STAT CPU MEMHOSTNAMETIME

   12 rootOMCP1 runn   7  2G   172.24.178.38 00 22:00:52

   14 root linux-0. runn   1512M   172.24.178.38 00 00:47:07

   16 root test-OMC runn  12512M   172.24.178.38 00 00:07:26

[root@cloudmanager one]# 

[root@cloudmanager one]# onevm show 12

VIRTUAL MACHINE 12 INFORMATION  

ID : 12  

NAME   : OMCP1   

STATE  : ACTIVE  

LCM_STATE  : RUNNING 

START TIME : 03/09 18:02:48  

END TIME   : -   

DEPLOY ID: : one-12  

VIRTUAL MACHINE MONITORING  

USED MEMORY: 2097152 

USED CPU   : 7   

NET_TX : 0   

NET_RX : 0   

VIRTUAL MACHINE TEMPLATE

ARCH=i686

BOOT=hd

CPU=1

DISK=[

  CLONE=NO,

  DISK_ID=0,

  IMAGE=OMCP1,

  IMAGE_ID=3,

  READONLY=NO,

  SAVE=YES,

  SAVE_AS=3,

  SOURCE=/srv/cloud/var/images/de0d6ef4e05642f928c8eae5a5a0a7b4201cfba5,

  TARGET=hda,

  TYPE=DISK ]

EMULATOR=/usr/libexec/qemu-kvm

GRAPHICS=[

  LISTEN=127.0.0.1,

  PORT=5913,

  TYPE=vnc ]

MEMORY=2048

NAME=OMCP1

NIC=[

  BRIDGE=br0,

  MAC=08:80:42:03:17:86,

  MODLE=e1000 ]

NIC=[

  BRIDGE=br1,

  MAC=08:80:42:03:18:86,

  MODLE=e1000 ]

VCPU=1

VMID=12

[root@cloudmanager one]# 

[root@cloudmanager one]# pwd

/var/log/one

[root@cloudmanager one]# cat /srv/cloud/var/images/vm-

vm-linux-0.2.conf  vm-OMCP1.conf  

[root@cloudmanager one]# cat /srv/cloud/var/images/vm-OMCP1.conf 

NAME = OMCP1 

MEMORY = 2048

CPU = 1

VCPU = 1

EMULATOR = /usr/libexec/qemu-kvm

ARCH = i686

BOOT = hd

DISK = [ IMAGE= "OMCP1" ]

NIC = [ MAC = "08:80:42:03:17:86", MODLE ="e1000", BRIDGE = "br0" ]

NIC = [ MAC = "08:80:42:03:18:86", MODLE ="e1000", BRIDGE = "br1" ]

GRAPHICS = [

TYPE = "vnc",

LISTEN = "127.0.0.1",

PORT = "5913" ]

[root@cloudmanager one]#

 

[root@host1 ~]# cat /var/lib/one/12/images/deployment.0



one-12

1

2097152



hvm







/usr/libexec/qemu-kvm







































[root@host1 ~]#


___
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] issue: can't specify NIC hardware type duirng VM creating

2011-03-10 Thread Carlos Martín Sánchez
Hi there,

There's a typo in your template, you are using MODLE instead of MODEL.

Regards,
Carlos

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


On 10 March 2011 08:02, GONG YONGJIE A
wrote:

>  Hi,
>
> I’d like to create one VM with “e1000” hardware type for Ethernet 
> interface.
> But after VM boots up, it still use default “realtek” type.
>
> From “deployment.0”, there is no “model=e1000” parameter for NIC.
>
> Could you help me check this or correct me if my configuration isn
> ’t right.
>
> Thanks.
>
> Logs:
>
> [root@cloudmanager one]# onevm list
>
>ID USER NAME STAT CPU MEMHOSTNAMETIME
>
>12 rootOMCP1 runn   7  2G   172.24.178.38 00 22:00:52
>
>14 root linux-0. runn   1512M   172.24.178.38 00 00:47:07
>
>16 root test-OMC runn  12512M   172.24.178.38 00 00:07:26
>
> [root@cloudmanager one]#
>
> [root@cloudmanager one]# onevm show 12
>
> VIRTUAL MACHINE 12 INFORMATION
>
>
> ID : 12
>
> NAME   : OMCP1
>
> STATE  : ACTIVE
>
> LCM_STATE  : RUNNING
>
> START TIME : 03/09 18:02:48
>
> END TIME   : -
>
> DEPLOY ID: : one-12
>
> VIRTUAL MACHINE
> MONITORING
>
> USED MEMORY: 2097152
>
> USED CPU   : 7
>
> NET_TX : 0
>
> NET_RX : 0
>
> VIRTUAL MACHINE
> TEMPLATE
>
> ARCH=i686
>
> BOOT=hd
>
> CPU=1
>
> DISK=[
>
>   CLONE=NO,
>
>   DISK_ID=0,
>
>   IMAGE=OMCP1,
>
>   IMAGE_ID=3,
>
>   READONLY=NO,
>
>   SAVE=YES,
>
>   SAVE_AS=3,
>
>   SOURCE=/srv/cloud/var/images/de0d6ef4e05642f928c8eae5a5a0a7b4201cfba5,
>
>   TARGET=hda,
>
>   TYPE=DISK ]
>
> EMULATOR=/usr/libexec/qemu-kvm
>
> GRAPHICS=[
>
>   LISTEN=127.0.0.1,
>
>   PORT=5913,
>
>   TYPE=vnc ]
>
> MEMORY=2048
>
> NAME=OMCP1
>
> NIC=[
>
>   BRIDGE=br0,
>
>   MAC=08:80:42:03:17:86,
>
>   MODLE=e1000 ]
>
> NIC=[
>
>   BRIDGE=br1,
>
>   MAC=08:80:42:03:18:86,
>
>   MODLE=e1000 ]
>
> VCPU=1
>
> VMID=12
>
> [root@cloudmanager one]#
>
> [root@cloudmanager one]# pwd
>
> /var/log/one
>
> [root@cloudmanager one]# cat /srv/cloud/var/images/vm-
>
> vm-linux-0.2.conf  vm-OMCP1.conf
>
> [root@cloudmanager one]# cat /srv/cloud/var/images/vm-OMCP1.conf
>
> NAME = OMCP1
>
> MEMORY = 2048
>
> CPU = 1
>
> VCPU = 1
>
> EMULATOR = /usr/libexec/qemu-kvm
>
> ARCH = i686
>
> BOOT = hd
>
> DISK = [ IMAGE= "OMCP1" ]
>
> NIC = [ MAC = "08:80:42:03:17:86", MODLE ="e1000", BRIDGE = "br0" ]
>
> NIC = [ MAC = "08:80:42:03:18:86", MODLE ="e1000", BRIDGE = "br1" ]
>
> GRAPHICS = [
>
> TYPE = "vnc",
>
> LISTEN = "127.0.0.1",
>
> PORT = "5913" ]
>
> [root@cloudmanager one]#
>
> [root@host1 ~]# cat /var/lib/one/12/images/deployment.0
>
> 
>
> one-12
>
> 1
>
> 2097152
>
> 
>
> hvm
>
> 
>
> 
>
> 
>
> /usr/libexec/qemu-kvm
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> [root@host1 ~]#
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] issue: can't specify NIC hardware type duirng VM creating

2011-03-09 Thread GONG YONGJIE A
Hi,

I'd like to create one VM with "e1000" hardware type for
Ethernet interface. But after VM boots up, it still use default
"realtek" type.

From "deployment.0", there is no "model=e1000" parameter for
NIC.

Could you help me check this or correct me if my configuration
isn't right.
Thanks.

Logs:

[root@cloudmanager one]# onevm list
   ID USER NAME STAT CPU MEMHOSTNAMETIME
   12 rootOMCP1 runn   7  2G   172.24.178.38 00 22:00:52
   14 root linux-0. runn   1512M   172.24.178.38 00 00:47:07
   16 root test-OMC runn  12512M   172.24.178.38 00 00:07:26
[root@cloudmanager one]# 
[root@cloudmanager one]# onevm show 12
VIRTUAL MACHINE 12 INFORMATION

ID : 12  
NAME   : OMCP1   
STATE  : ACTIVE  
LCM_STATE  : RUNNING 
START TIME : 03/09 18:02:48  
END TIME   : -   
DEPLOY ID: : one-12  

VIRTUAL MACHINE MONITORING

USED MEMORY: 2097152 
USED CPU   : 7   
NET_TX : 0   
NET_RX : 0   

VIRTUAL MACHINE TEMPLATE

ARCH=i686
BOOT=hd
CPU=1
DISK=[
  CLONE=NO,
  DISK_ID=0,
  IMAGE=OMCP1,
  IMAGE_ID=3,
  READONLY=NO,
  SAVE=YES,
  SAVE_AS=3,
  SOURCE=/srv/cloud/var/images/de0d6ef4e05642f928c8eae5a5a0a7b4201cfba5,
  TARGET=hda,
  TYPE=DISK ]
EMULATOR=/usr/libexec/qemu-kvm
GRAPHICS=[
  LISTEN=127.0.0.1,
  PORT=5913,
  TYPE=vnc ]
MEMORY=2048
NAME=OMCP1
NIC=[
  BRIDGE=br0,
  MAC=08:80:42:03:17:86,
  MODLE=e1000 ]
NIC=[
  BRIDGE=br1,
  MAC=08:80:42:03:18:86,
  MODLE=e1000 ]
VCPU=1
VMID=12
[root@cloudmanager one]# 
[root@cloudmanager one]# pwd
/var/log/one
[root@cloudmanager one]# cat /srv/cloud/var/images/vm-
vm-linux-0.2.conf  vm-OMCP1.conf  
[root@cloudmanager one]# cat /srv/cloud/var/images/vm-OMCP1.conf 
NAME = OMCP1 
MEMORY = 2048
CPU = 1
VCPU = 1

EMULATOR = /usr/libexec/qemu-kvm

ARCH = i686

BOOT = hd

DISK = [ IMAGE= "OMCP1" ]

NIC = [ MAC = "08:80:42:03:17:86", MODLE ="e1000", BRIDGE = "br0" ]
NIC = [ MAC = "08:80:42:03:18:86", MODLE ="e1000", BRIDGE = "br1" ]

GRAPHICS = [
TYPE = "vnc",
LISTEN = "127.0.0.1",
PORT = "5913" ]
[root@cloudmanager one]#


[root@host1 ~]# cat /var/lib/one/12/images/deployment.0

one-12
1
2097152

hvm



/usr/libexec/qemu-kvm



















[root@host1 ~]#
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] issue: sunstone can't attach OS disk

2011-03-09 Thread GONG YONGJIE A
Hi Hector,

I didn't use "advanced mode" but just "Wizard KVM", snapshot attached 
in the mail. Please correct me if my operation is wrong.

Following are "onevm" command and no disk argument included.
[root@cloudmanager images]# onevm show 16
VIRTUAL MACHINE 16 INFORMATION  
ID : 16  
NAME   : test-OMCP   
STATE  : ACTIVE  
LCM_STATE  : RUNNING 
START TIME : 03/10 15:56:14  
END TIME   : -   
DEPLOY ID: : one-16  

VIRTUAL MACHINE MONITORING  
USED MEMORY: 524288  
USED CPU   : 12  
NET_TX : 0   
NET_RX : 0   

VIRTUAL MACHINE TEMPLATE
ARCH=i686
BOOT=hd
CPU=1
GRAPHICS=[
  LISTEN=172.24.178.38,
  PORT=5923,
  TYPE=vnc ]
MEMORY=512
NAME=test-OMCP
RAW=[
  TYPE=kvm ]
VCPU=1
VMID=16
=
[root@cloudmanager one]# cat 16.log 
Thu Mar 10 15:56:44 2011 [DiM][I]: New VM state is ACTIVE.
Thu Mar 10 15:56:44 2011 [LCM][I]: New VM state is PROLOG.
Thu Mar 10 15:56:44 2011 [VM][I]: Virtual Machine has no context
Thu Mar 10 15:56:44 2011 [LCM][I]: New VM state is BOOT
Thu Mar 10 15:56:44 2011 [VMM][I]: Generating deployment file: 
/var/lib/one/16/deployment.0
Thu Mar 10 15:56:44 2011 [LCM][I]: New VM state is RUNNING
Thu Mar 10 15:57:05 2011 [VMM][D]: Monitor Information:
CPU   : 14
Memory: 524288
Net_TX: -1
Net_RX: -1
===
[root@host1 ~]# cat /var/lib/one/16/images/deployment.0

one-16
1
524288

hvm



/usr/libexec/qemu-kvm









-Original Message-
From: Héctor Sanjuán [mailto:hsanj...@opennebula.org] 
Sent: Wednesday, March 09, 2011 5:19 PM
To: GONG YONGJIE A
Cc: users@lists.opennebula.org
Subject: Re: [one-users] issue: sunstone can't attach OS disk

Hi,

I understand that you created the first VM pasting the template in the
"advanced mode" tab for VM creation in sunstone. (or did you use the kvm
wizard?)

In order to look better into it, I would need the Opennebula templates
showing up on both machines after you run:

onevm show VMID

or from the VM information panel in Sunstone. I could also be helpful if
you attach the full VM logs (they are as well on the information panel
in Sunstone).

Hector



El 09/03/11 04:27, GONG YONGJIE A escribió:
> Hi,
> 
>
> 
> I encountered one problem during VM creation tests.
> 
> Problem: VM machine created by"sunstone"with registeredOS imageis
> running without disk image.
> 
> Workaround: use"onevm create"insteadly.
> 
> From deployment file,no disk argument existed.
> 
> === VM created by sunstoneweb interface==
> 
> [root@host1 bin]# cat /var/lib/one/6/images/deployment.0
> 
> 
> 
> one-6
> 
> 1
> 
> 524288
> 
> 
> 
> hvm
> 
> 
> 
> 
> 
> 
> 
> /usr/libexec/qemu-kvm
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> === VM created by onevm command==
> 
> [root@host1 bin]# cat /var/lib/one/7/images/deployment.0
> 
> 
> 
> one-7
> 
> 524288
> 
> 
> 
> hvm
> 
> 
> 
> 
> 
> 
> 
> /usr/libexec/qemu-kvm
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Some info:
> 
> [root@cloudmanager images]# onevmlist
> 
>ID USER NAME STAT CPU MEMHOSTNAMETIME
> 
> 6 root   test-5 runn  12512M   172.24.178.38 00 00:11:12
> 
> 7 root   test-6 pend   0  0K 00 00:00:03
> 
> [root@cloudmanager images]#
> 
> [root@cloudmanager images]# oneimage list
> 
>   ID USER NAME TYPE  REGTIME PUB PER
> STAT  #VMS
> 
>2 root test_image_register_   OS   Mar 09, 2011 02:38 Yes  No
> used 1
> 
> [root@cloudmanager images]#
> 
> [root@cloudmanager images]# rpm -qa | grep -i openNe
> 
> 

Re: [one-users] issue: VM instance can't shut down through "sunstone" command

2011-03-09 Thread GONG YONGJIE A
Thanks Hector.

Just try to reproduce it. Status of VM becomes "shutdown" and then is recovered 
to "running".

"
Thu Mar 10 15:23:31 2011 [VMM][E]: Error shuting down VM, Timeout reached
Thu Mar 10 15:23:31 2011 [LCM][I]: Fail to shutdown VM. Assuming that the VM is 
still RUNNING (will poll VM).
"

[root@cloudmanager images]# cat vm-linux-0.2.conf 
NAME = linux-0.2 
MEMORY = 512 
CPU = 1
VCPU = 1

EMULATOR = /usr/libexec/qemu-kvm

ARCH = i686

BOOT = hd

DISK = [ IMAGE= "linux-0.2" ]

NIC = [ MAC = "05:80:42:03:17:86", MODLE ="e1000", BRIDGE = "br0" ]
NIC = [ MAC = "05:80:42:03:18:86", MODLE ="e1000", BRIDGE = "br1" ]

GRAPHICS = [
TYPE = "vnc",
LISTEN = "127.0.0.1",
PORT = "5914" ]

-Original Message-
From: Héctor Sanjuán [mailto:hsanj...@opennebula.org] 
Sent: Wednesday, March 09, 2011 5:08 PM
To: GONG YONGJIE A
Cc: users@lists.opennebula.org
Subject: Re: [one-users] issue: VM instance can't shut down through "sunstone" 
command

Hi,


Shutdown is a transitory state indicating that the shutdown script has
started. This script tries to send and shutdown ACPI signal to the VM
and regularly checks if the VM has shut down until the TIMEOUT occurs
(defined in the shutdown remotes script as far as i know).

If the VM has not been shutdown after that time, the script will try to
directly "power off" the VM. After that the VM is deleted [1]

Does your VM stay in shutdown state indefinitely? If you are using
ttylinux it might be ignoring the ACPI shutdown signal and therefore it
would take the TIMEOUT to power it off.

The stop state is meant to freeze a vm in running state by saving its
state. Can you ellaborate on how "onevm stop" is failing?

I hope it helps, if not you can send the full VM log and template.

Hector

[1] VM State diagram: http://opennebula.org/documentation:rel2.0:vm_guide

El 09/03/11 04:58, GONG YONGJIE A escribió:
> Hi,
> 
> I encountered another issue that after shutdown VM instance
> from"sunstone",the VM is still alive even status of this VM
> becomes"SHUTDOWN".
> 
> Also from"onevm"command, itis failed to use"onevm stop".
> 
> [root@cloudmanager one]# onevm list
> 
>ID USER NAME STAT CPU MEMHOSTNAMETIME
> 
> 9 root   test-8 shut   2512M   172.24.178.38 00 00:18:29
> 
> qemu 30740 1  2 07:35 ?00:00:24 /usr/libexec/qemu-kvm -S
> -M rhel6.0.0 -cpu qemu32 -enable-kvm -m 512 -smp
> 1,sockets=1,cores=1,threads=1 -name one-9 -uuid
> 064aecf7-a857-222f-8121-5d47facf5eef -nodefconfig -nodefaults -chardev
> socket,id=monitor,path=/var/lib/libvirt/qemu/one-9.monitor,server,nowait
> -mon chardev=monitor,mode=control -rtc base=utc -boot c -drive
> file=/var/lib/one//9/images/disk.0,if=none,id=drive-ide0-0-0,boot=on,format=raw
> -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0
> -netdev tap,fd=23,id=hostnet0 -device
> rtl8139,netdev=hostnet0,id=net0,mac=00:11:22:33:44:55,bus=pci.0,addr=0x3
> -usb -vnc 127.0.0.1:8 -vga cirrus
> -devicevirtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4
> 
> [root@cloudmanager one]# cat 9.log
> 
> ...
> 
> Wed Mar  9 12:01:55 2011 [LCM][I]: New VM state is SHUTDOWN
> 
> [root@cloudmanager one]# rpm -qa | grep -i openNebula
> 
> opennebula-2.1.80-1
> 
> [root@cloudmanager one]# cat /etc/one/oned.conf
> 
> #***
> 
> #   OpenNebula Configuration file
> 
> #***
> 
> #***
> 
> # Daemon configuration attributes
> 
> #---
> 
> #  MANAGER_TIMER: Time in seconds the core uses to evaluate periodical
> functions.
> 
> #  HOST_MONITORING_INTERVAL and VM_POLLING_INTERVAL can not have smaller
> values
> 
> #  than MANAGER_TIMER.
> 
> #
> 
> #  HOST_MONITORING_INTERVAL: Time in seconds between host monitorization.
> 
> #
> 
> #  VM_POLLING_INTERVAL: Time in seconds between virtual machine
> monitorization.
> 
> #  (use 0 to disable VM monitoring).
> 
> #
> 
> #  VM_DIR: Remote path to store the VM images, it should be shared
> between all
> 
> #  the cluster nodes to perform live migrations. This variable is the
> default
> 
> #  for all the hosts in the cluster. VM_DIR IS ONLY FORTHE NODES AND
> *NOT* THE
> 
> #  FRONT-END
> 
> #
> 
> #  SCRIPTS_REMOTE_DIR: Remote path

Re: [one-users] issue: sunstone can't attach OS disk

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

I understand that you created the first VM pasting the template in the
"advanced mode" tab for VM creation in sunstone. (or did you use the kvm
wizard?)

In order to look better into it, I would need the Opennebula templates
showing up on both machines after you run:

onevm show VMID

or from the VM information panel in Sunstone. I could also be helpful if
you attach the full VM logs (they are as well on the information panel
in Sunstone).

Hector



El 09/03/11 04:27, GONG YONGJIE A escribió:
> Hi,
> 
>
> 
> I encountered one problem during VM creation tests.
> 
> Problem: VM machine created by“sunstone”with registeredOS imageis
> running without disk image.
> 
> Workaround: use“onevm create”insteadly.
> 
> From deployment file,no disk argument existed.
> 
> === VM created by sunstoneweb interface==
> 
> [root@host1 bin]# cat /var/lib/one/6/images/deployment.0
> 
> 
> 
> one-6
> 
> 1
> 
> 524288
> 
> 
> 
> hvm
> 
> 
> 
> 
> 
> 
> 
> /usr/libexec/qemu-kvm
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> === VM created by onevm command==
> 
> [root@host1 bin]# cat /var/lib/one/7/images/deployment.0
> 
> 
> 
> one-7
> 
> 524288
> 
> 
> 
> hvm
> 
> 
> 
> 
> 
> 
> 
> /usr/libexec/qemu-kvm
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Some info:
> 
> [root@cloudmanager images]# onevmlist
> 
>ID USER NAME STAT CPU MEMHOSTNAMETIME
> 
> 6 root   test-5 runn  12512M   172.24.178.38 00 00:11:12
> 
> 7 root   test-6 pend   0  0K 00 00:00:03
> 
> [root@cloudmanager images]#
> 
> [root@cloudmanager images]# oneimage list
> 
>   ID USER NAME TYPE  REGTIME PUB PER
> STAT  #VMS
> 
>2 root test_image_register_   OS   Mar 09, 2011 02:38 Yes  No
> used 1
> 
> [root@cloudmanager images]#
> 
> [root@cloudmanager images]# rpm -qa | grep -i openNe
> 
> opennebula-2.1.80-1
> 
> [root@cloudmanager images]# cat vmtest.conf
> 
> NAME = test-6
> 
> MEMORY = 512
> 
> CPU = 1
> 
> EMULATOR = /usr/libexec/qemu-kvm
> 
> ARCH = i686
> 
> BOOT = hd
> 
> DISK = [ IMAGE= "test_image_register_ttylinux" ]
> 
>
> 
> 
> 
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


-- 
Héctor Sanjuan
OpenNebula.org
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] issue: VM instance can't shut down through "sunstone" command

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


Shutdown is a transitory state indicating that the shutdown script has
started. This script tries to send and shutdown ACPI signal to the VM
and regularly checks if the VM has shut down until the TIMEOUT occurs
(defined in the shutdown remotes script as far as i know).

If the VM has not been shutdown after that time, the script will try to
directly "power off" the VM. After that the VM is deleted [1]

Does your VM stay in shutdown state indefinitely? If you are using
ttylinux it might be ignoring the ACPI shutdown signal and therefore it
would take the TIMEOUT to power it off.

The stop state is meant to freeze a vm in running state by saving its
state. Can you ellaborate on how "onevm stop" is failing?

I hope it helps, if not you can send the full VM log and template.

Hector

[1] VM State diagram: http://opennebula.org/documentation:rel2.0:vm_guide

El 09/03/11 04:58, GONG YONGJIE A escribió:
> Hi,
> 
> I encountered another issue that after shutdown VM instance
> from“sunstone”,the VM is still alive even status of this VM
> becomes“SHUTDOWN”.
> 
> Also from“onevm”command, itis failed to use“onevm stop”.
> 
> [root@cloudmanager one]# onevm list
> 
>ID USER NAME STAT CPU MEMHOSTNAMETIME
> 
> 9 root   test-8 shut   2512M   172.24.178.38 00 00:18:29
> 
> qemu 30740 1  2 07:35 ?00:00:24 /usr/libexec/qemu-kvm -S
> -M rhel6.0.0 -cpu qemu32 -enable-kvm -m 512 -smp
> 1,sockets=1,cores=1,threads=1 -name one-9 -uuid
> 064aecf7-a857-222f-8121-5d47facf5eef -nodefconfig -nodefaults -chardev
> socket,id=monitor,path=/var/lib/libvirt/qemu/one-9.monitor,server,nowait
> -mon chardev=monitor,mode=control -rtc base=utc -boot c -drive
> file=/var/lib/one//9/images/disk.0,if=none,id=drive-ide0-0-0,boot=on,format=raw
> -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0
> -netdev tap,fd=23,id=hostnet0 -device
> rtl8139,netdev=hostnet0,id=net0,mac=00:11:22:33:44:55,bus=pci.0,addr=0x3
> -usb -vnc 127.0.0.1:8 -vga cirrus
> -devicevirtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4
> 
> [root@cloudmanager one]# cat 9.log
> 
> …
> 
> Wed Mar  9 12:01:55 2011 [LCM][I]: New VM state is SHUTDOWN
> 
> [root@cloudmanager one]# rpm -qa | grep -i openNebula
> 
> opennebula-2.1.80-1
> 
> [root@cloudmanager one]# cat /etc/one/oned.conf
> 
> #***
> 
> #   OpenNebula Configuration file
> 
> #***
> 
> #***
> 
> # Daemon configuration attributes
> 
> #---
> 
> #  MANAGER_TIMER: Time in seconds the core uses to evaluate periodical
> functions.
> 
> #  HOST_MONITORING_INTERVAL and VM_POLLING_INTERVAL can not have smaller
> values
> 
> #  than MANAGER_TIMER.
> 
> #
> 
> #  HOST_MONITORING_INTERVAL: Time in seconds between host monitorization.
> 
> #
> 
> #  VM_POLLING_INTERVAL: Time in seconds between virtual machine
> monitorization.
> 
> #  (use 0 to disable VM monitoring).
> 
> #
> 
> #  VM_DIR: Remote path to store the VM images, it should be shared
> between all
> 
> #  the cluster nodes to perform live migrations. This variable is the
> default
> 
> #  for all the hosts in the cluster. VM_DIR IS ONLY FORTHE NODES AND
> *NOT* THE
> 
> #  FRONT-END
> 
> #
> 
> #  SCRIPTS_REMOTE_DIR: Remote path to store the monitoring and VM management
> 
> #  scripts.
> 
> #
> 
> #  PORT: Port where oned will listen for xmlrpc calls.
> 
> #
> 
> #  DB: Configuration attributes for the database backend
> 
> #   backend : can be sqlite or mysql (default is sqlite)
> 
> #   server  : (mysql) host name or an IP address for the MySQL server
> 
> #   port: (mysql) port for the connection to the server.
> 
> # If set to 0, the default port is used.
> 
> #   user: (mysql) user's MySQL login ID
> 
> #   passwd  : (mysql) the password for user
> 
> #   db_name : (mysql) the database name
> 
> #
> 
> #  VNC_BASE_PORT: VNC ports for VMs can be automatically set to
> VNC_BASE_PORT +
> 
> #  VMID
> 
> #
> 
> #  DEBUG_LEVEL: 0 = ERROR, 1 = WARNING, 2 = INFO, 3 = DEBUG
> 
> #***
> 
> #MANAGER_TIMER=30
> 
> HOST_MONITORING_INTERVAL = 20
> 
> VM_POLLING_INTERVAL  = 10
> 
> #VM_DIR=/srv/cloud/one/var
> 
> SCRIPTS_REMOTE_DIR=/var/tmp/one
> 
> PORT=2633
> 
> #DB = [ backend = "sqlite" ]
> 
> # Sample configuration for MySQL
> 
>  DB = [ backend = "mysql",
> 
> server  = "localhost",
> 
> port= 0,
> 
> user= "root",
> 
> passwd  = "alcatel",
> 
> db_name = "opennebula" ]
> 
> VNC_BASE_PORT = 5900
> 
> DEBUG_LEVEL=3
> 
> #***
> 
> # Ph

[one-users] issue: sunstone can't attach OS disk

2011-03-08 Thread GONG YONGJIE A
Hi,

I encountered one problem during VM creation tests.

Problem: VM machine created by "sunstone" with registered OS image is
running without disk image.
Workaround: use "onevm create" insteadly.

>From deployment file, no disk argument existed.

=== VM created by sunstone web interface ==
[root@host1 bin]# cat /var/lib/one/6/images/deployment.0

one-6
1
524288

hvm



/usr/libexec/qemu-kvm









=== VM created by onevm command ==
[root@host1 bin]# cat /var/lib/one/7/images/deployment.0

one-7
524288

hvm



/usr/libexec/qemu-kvm











Some info:
[root@cloudmanager images]# onevm list
   ID USER NAME STAT CPU MEMHOSTNAMETIME
6 root   test-5 runn  12512M   172.24.178.38 00 00:11:12
7 root   test-6 pend   0  0K 00 00:00:03
[root@cloudmanager images]# 
[root@cloudmanager images]# oneimage list
  ID USER NAME TYPE  REGTIME PUB PER
STAT  #VMS
   2 root test_image_register_   OS   Mar 09, 2011 02:38 Yes  No
used 1
[root@cloudmanager images]# 
[root@cloudmanager images]# rpm -qa | grep -i openNe
opennebula-2.1.80-1
[root@cloudmanager images]# cat vmtest.conf 
NAME = test-6
MEMORY = 512
CPU = 1

EMULATOR = /usr/libexec/qemu-kvm

ARCH = i686

BOOT = hd

DISK = [ IMAGE= "test_image_register_ttylinux" ]


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


Re: [one-users] Issue with Opennebula 2.0 Authentication

2010-10-26 Thread Javier Fontan
Hello,

Could you try with the latest release? I suppose you change "user" to
the user name in "onevm login user".

It is normal that oneuser login creates one_ssh for non existing
users. That command does not check the database, just generates a
token.

Bye

On Tue, Oct 5, 2010 at 12:39 PM, herve pierre  wrote:
> Hello all,
>
> I followed this guide : http://www.opennebula.org/documentation:rel2.0:users
> to enable ssh authentication. I managed to  create the user with its public
> key but this user can't authenticate with 'oneauth login user'. When i try
> then any commands, this message appears : "User couldn't be authenticated,
> aborting call". Of Course, I exported ONE_AUTH to /home/usr/.one/one_ssh. It
> seems the token created by the autenthication login is invalid. So far
> mailing list and docs did not help me much and hope someone reading this
> thread will  !
>
> By the way, if I try to login by oneauth with a user who don't exist, the
> token /home/user/.one/one_ssh is still created, is it normal ?
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>



-- 
Javier Fontan, Grid & Virtualization Technology Engineer/Researcher
DSA Research Group: http://dsa-research.org
Globus GridWay Metascheduler: http://www.GridWay.org
OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] Issue with Opennebula 2.0 Authentication

2010-10-05 Thread herve pierre
Hello all,

I followed this guide :
http://www.opennebula.org/documentation:rel2.0:usersto enable ssh
authentication. I managed to  create the user with its public
key but this user can't authenticate with 'oneauth login user'. When i try
then any commands, this message appears : "User couldn't be authenticated,
aborting call". Of Course, I exported ONE_AUTH to /home/usr/.one/one_ssh. It
seems the token created by the autenthication login is invalid. So far
mailing list and docs did not help me much and hope someone reading this
thread will  !

By the way, if I try to login by oneauth with a user who don't exist, the
token /home/user/.one/one_ssh is still created, is it normal ?
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org