[one-users] Dynamic attach CD to VM

2015-01-08 Thread Daniel Dehennin
Hello,

I'm trying to attach a CD to a running VM without success.

I saw that IDE hotplug does not work.

I found that we can predefine a  without source[1] but it does
not seems to work on 4.8.

How are you doing to attach CD on running VM?

Regards.

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

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


Re: [one-users] Sunstone comes up but nothing happens

2015-01-08 Thread Daniel Molina
Hi Steven,

Could you check if there is any error in the browser developer console?

Cheers

On 31 December 2014 at 22:47, Steven C Timm  wrote:

>  I have recently installed and configured sunstone on my open nebula 4.8
> installation.
> I get the login screen and it recognizes me as a user and lets me log in,
> but only shows the five
> menu bars at the left of the screen  (dashboard, system, virtual
> resources, infrastructure, one flow).
> Nothing else after that, and none of those buttons do anything.  The
> browser (firefox) keeps reloading
> the main page every 5-10 seconds or so.  Safari can't bring it up at all.
>
>  Any common failure mode that might lead to that?
>
>  In addition, after 20-25 minutes the sunstone daemon just exits for no
> good reason.
> (This is an improvement over before when it was exiting after 2-3
> minutes.. what got me this far
> was installing all the required *-devel dependencies.)
>
>  Steve Timm
>
>
> ___
> 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] Bulk delete of vCenter VM's leaves stray VM's

2015-01-08 Thread Javier Fontan
The deletion code worked like this:

* Get the list of VMs
* Search the list of a VM with an specific UUID

When several VMs are being deleted it could happen that one VM marked for
deletion is in the list of all VMs but by the time it checks its UUID it is
already deleted. There is another patch for that problem [1] that you can
apply to fix it.

Still, we have made some other changes to deal with VMs and templates in
folders so I think it is better to use the version 4.10.1 that comes with
all these fixes.

Cheers

[1]
http://dev.opennebula.org/projects/opennebula/repository/revisions/e2886255464e666c6a62d91cc1d016da6ab1a643/diff/

On Mon Jan 05 2015 at 12:56:49 PM Sebastiaan Smit  wrote:

>  Hi Javier,
>
>
>
> The bug concerning the bulk creation of VM’s works as expected now. Do you
> have an idea of what the problem is while bulk deleting vm’s?
>
>
>
> Best regards,
>
>
>
> Sebastiaan Smit
>
>
>
> *Van:* Javier Fontan [mailto:jfon...@opennebula.org]
> *Verzonden:* vrijdag 14 november 2014 15:44
> *Aan:* Sebastiaan Smit; users@lists.opennebula.org
> *Onderwerp:* Re: [one-users] Bulk delete of vCenter VM's leaves stray VM's
>
>
>
> There was a bug in the driver that caused error when deploying several VMs
> at the same time. To fix it change the file
> /var/lib/one/remotes/vmm/vcenter/vcenter_driver.rb at line 120 from this
> code:
>
>
>
> def find_vm_template(uuid)
>
> vms = @dc.vmFolder.childEntity.grep(RbVmomi::VIM::VirtualMachine)
>
>
>
> return vms.find{ |v| v.config.uuid == uuid }
>
> end
>
>
>
> to this other one:
>
>
>
> def find_vm_template(uuid)
>
> vms = @dc.vmFolder.childEntity.grep(RbVmomi::VIM::VirtualMachine)
>
>
>
> return vms.find{ |v| v.config && v.config.uuid == uuid }
>
> end
>
>
>
> We are still looking into the problem when deleting several VMs.
>
>
>
> Thanks for telling us.
>
>
>
> On Thu Nov 13 2014 at 12:59:55 PM Javier Fontan 
> wrote:
>
> Hi,
>
>
>
> We have opened an issue to track this problem:
>
>
>
> http://dev.opennebula.org/issues/3334
>
>
>
> Meanwhile you can decrease the number of actions sent changing in
> /etc/one/oned.conf the parameter -t (number of threads) for VM driver. For
> example:
>
>
>
> VM_MAD = [
>
> name   = "vcenter",
>
> executable = "one_vmm_sh",
>
> arguments  = "-p -t 2 -r 0 vcenter -s sh",
>
> type   = "xml" ]
>
>
>
> Cheers
>
>
>
> On Wed Nov 12 2014 at 5:40:00 PM Sebastiaan Smit  wrote:
>
> Hi list,
>
> We're testing the vCenter functionality in version 4.10 and see some
> strange behaviour while doing bulk actions.
>
> Deleting VM's sometimes leave stray VM's on our cluster. We see the
> following in de VM log:
>
> Sun Nov  9 15:51:34 2014 [Z0][LCM][I]: New VM state is RUNNING
> Wed Nov 12 17:30:36 2014 [Z0][LCM][I]: New VM state is CLEANUP.
> Wed Nov 12 17:30:36 2014 [Z0][VMM][I]: Driver command for 60 cancelled
> Wed Nov 12 17:30:36 2014 [Z0][DiM][I]: New VM state is DONE
> Wed Nov 12 17:30:41 2014 [Z0][VMM][W]: Ignored: LOG I 60 Command execution
> fail: /var/lib/one/remotes/vmm/vcenter/cancel
> '423cdcae-b6b3-07c1-def6-96b9f3f4b7b3' 'demo-01' 60 demo-01
> Wed Nov 12 17:30:41 2014 [Z0][VMM][W]: Ignored: LOG I 60 Cancel of VM
> 423cdcae-b6b3-07c1-def6-96b9f3f4b7b3 on host demo-01 failed due to
> "ManagedObjectNotFound: The object has already been deleted or has not been
> completely created"
> Wed Nov 12 17:30:41 2014 [Z0][VMM][W]: Ignored: LOG I 60 ExitCode: 255
> Wed Nov 12 17:30:41 2014 [Z0][VMM][W]: Ignored: LOG I 60 Failed to execute
> virtualization driver operation: cancel.
> Wed Nov 12 17:30:41 2014 [Z0][VMM][W]: Ignored: LOG I 60 Successfully
> execute network driver operation: clean.
> Wed Nov 12 17:30:41 2014 [Z0][VMM][W]: Ignored: CLEANUP SUCCESS 60
>
> We see it in a different manner while bulk creating VM's (20+ at a time):
>
> Sun Nov  9 16:01:34 2014 [Z0][DiM][I]: New VM state is ACTIVE.
> Sun Nov  9 16:01:34 2014 [Z0][LCM][I]: New VM state is PROLOG.
> Sun Nov  9 16:01:34 2014 [Z0][LCM][I]: New VM state is BOOT
> Sun Nov  9 16:01:34 2014 [Z0][VMM][I]: Generating deployment file:
> /var/lib/one/vms/81/deployment.0
> Sun Nov  9 16:01:34 2014 [Z0][VMM][I]: Successfully execute network driver
> operation: pre.
> Sun Nov  9 16:01:36 2014 [Z0][VMM][I]: Command execution fail:
> /var/lib/one/remotes/vmm/vcenter/deploy '/var/lib/one/vms/81/deployment.0'
> 'demo-01' 81 demo-01
> Sun Nov  9 16:01:36 2014 [Z0][VMM][I]: Deploy of VM 81 on host demo-01
> with /var/lib/one/vms/81/deployment.0 failed due to "undefined method
> `uuid' for nil:NilClass"
> Sun Nov  9 16:01:36 2014 [Z0][VMM][I]: ExitCode: 255
> Sun Nov  9 16:01:36 2014 [Z0][VMM][I]: Failed to execute virtualization
> driver operation: deploy.
> Sun Nov  9 16:01:36 2014 [Z0][VMM][E]: Error deploying virtual machine
> Sun Nov  9 16:01:36 2014 [Z0][DiM][I]: New VM state is FAILED
> Wed Nov 12 17:30:19 2014 [Z0][DiM][I]: New VM state is DONE.
> Wed Nov 12 17:30:19 2014 [Z0][LCM][E]: epilog_success_action, VM i

Re: [one-users] How can I allow members of a group to RUN a persistent vm?

2015-01-08 Thread Carlos Martín Sánchez
Hi,

On Mon, Dec 22, 2014 at 7:46 PM, Mr Sensible 
wrote:

> So, the question. How can I allow members of a group to RUN a persistent
> vm?
>
> Current Setup
>
> OpenNebula 4.10.1
>
> SO I have a VM, that :
> - is running in an SSH system datastore.
> - has an image marked as persistent
> - set to group infAdmins
>
> Current permissions
> - imageUse : NOManage : YESAdmin : YES
> - networkUse : YESManage : YESAdmin : YES
> - template  Use : YESManage : YESAdmin : YES
> - vm Use : YESManage : YESAdmin : YES
>
>
> I find that admins in the group can not run this VM. I checked the vm
> permissions, and yes, group run permission was unchecked. However, I am
> unable to allow Group Run privilege, as "A persistent image cannot be made
> public".
>
> So I am a bit stuck. I need the vm to be persistent (in case of hardware
> failure) but I need the ssh local system datastore  for performance, and I
> really need a small group other than me to be able to run up VMs, either
> pre-created by me, or from scratch. I also create VMs for project teams,
> and need them to be able to run up their own VMs (at the group level).
>
>
> Apologies if I am trying to do something stupid (or missing something
> obvious).
>
> Thanks and seasons greetings
>
> Peter
>

This limitation is there for legacy reasons, and because of your mail we
have decided to remove it in the next maintenance release [1].
Meanwhile, you can give USE permissions to the group through an ACL rule
[2].

In any case, please be aware that a persistent Image can only be used by 1
VM at a time.

Best regards.

[1] http://dev.opennebula.org/issues/3494
[2]
http://docs.opennebula.org/4.10/administration/users_and_groups/manage_acl.html

--
Carlos Martín, MSc
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org  | cmar...@opennebula.org |
@OpenNebula  
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] error: internal error: protocol 'gluster' accepts only one host

2015-01-08 Thread Javier Fontan
Most probably you have more than one host defined in the parameter
"GLUSTER_HOST" from the gluster datastore.

http://docs.opennebula.org/4.10/administration/storage/gluster_ds.html#configuring-glusterfs-datastore

Cheers

On Wed Dec 31 2014 at 10:44:59 AM hansz  wrote:

> hi man
> today i meet a new question
> i use centos7 glusterfs 3.5 opennebula 4.10
> Wed Dec 31 17:31:26 2014 [Z0][DiM][I]: New VM state is ACTIVE.
> Wed Dec 31 17:31:26 2014 [Z0][LCM][I]: New VM state is PROLOG.
> Wed Dec 31 17:31:27 2014 [Z0][LCM][I]: New VM state is BOOT
> Wed Dec 31 17:31:27 2014 [Z0][VMM][I]: Generating deployment file:
> /var/lib/one/vms/37/deployment.0
> Wed Dec 31 17:31:28 2014 [Z0][VMM][I]: ExitCode: 0
> Wed Dec 31 17:31:28 2014 [Z0][VMM][I]: Successfully execute network driver
> operation: pre.
> Wed Dec 31 17:31:28 2014 [Z0][VMM][I]: Command execution fail: cat << EOT
> | /var/lib/one/remotes/vmm/kvm/deploy
> '/var/lib/one//datastores/101/37/deployment.0' '10.24.101.29' 37
> 10.24.101.29
> Wed Dec 31 17:31:28 2014 [Z0][VMM][I]: error: Failed to create domain from
> /var/lib/one//datastores/101/37/deployment.0
> Wed Dec 31 17:31:28 2014 [Z0][VMM][I]: error: internal error: protocol
> 'gluster' accepts only one host
> Wed Dec 31 17:31:28 2014 [Z0][VMM][E]: Could not create domain from
> /var/lib/one//datastores/101/37/deployment.0
> Wed Dec 31 17:31:28 2014 [Z0][VMM][I]: ExitCode: 255
> Wed Dec 31 17:31:28 2014 [Z0][VMM][I]: Failed to execute virtualization
> driver operation: deploy.
> Wed Dec 31 17:31:28 2014 [Z0][VMM][E]: Error deploying virtual machine:
> Could not create domain from /var/lib/one//datastores/101/37/deployment.0
> Wed Dec 31 17:31:28 2014 [Z0][DiM][I]: New VM state is FAILED
>
> where is wrong? pls give me some help!
>
>
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] How to fix status manually from SUSPENDED to RUNNING

2015-01-08 Thread Carlos Martín Sánchez
Hi,

On Tue, Jan 6, 2015 at 7:25 AM, Steve @ MyEvolve  wrote:

> Hello List,
>
> I did something stupid.
>
> I moved data centers and then after exhaustion and not thinking clearly...
>
> I dumped the database and did a find/replace to change the IP space after
> I had manually ssh into each vm and changed.
>
> The problem is that the version of the DB I reimported had each vm in
> suspended mode.
>
> Each VM is running correctly.  How do I update the db/one to know this
> without disrupting the running vms?
>
> Thanks in advance for any help!
>
> Steve
>

The VM state cannot be changed easily. I think the safest way to fix your
problem would be to edit the driver to exit 0, and then "false-resume" your
VMs. This can be done with the following steps:

- In the front-end, edit the /var/lib/one/remotes/vmm//restore
file.
- To send the update file to each host, execute ''onehost sync --force".
- Then you can run "onevm resume" on the suspended VMs, and they should
move to the running state.
- After that, restore the original driver script and use the onehost sync
command again.

Regards
--
Carlos Martín, MSc
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org  | cmar...@opennebula.org |
@OpenNebula  
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org