[one-users] distributed frontend with raft consensus algorithm

2014-02-05 Thread Sharuzzaman Ahmat Raslan
Hi all,

My last interaction with Opennebula is with the version 3.8

In that version, the frontend can only be running by a single node. To have
a redundancy, it was advised to have the frontend to be configured using HA
tools, such as Red Hat cluster suite. See
http://archives.opennebula.org/documentation:archives:rel4.2:oneha

I believe that kind of setup is not optimal, as you have to bolt in another
subsystem, that could potentially become another head ache to maintain.

As alternative to external clustering system, I would like to highlight to
the developers the availability of Raft Consensus Algorithm. See
http://raftconsensus.github.io/

This algorithm can help to maintain the availability of the frontend, in a
fault-tolerant distributed system. With this algorithm, frontend can be run
on the VM nodes itself, where at any given time, one of the nodes will act
as a frontend for the whole cluster. If that "leader" node goes down, any
other node will step up to become the next leader, and maintaining the
availability of the frontend

This can help simplify deployment, and reduce the requirement to have a
dedicated frontend machine, with another failover machine in standby

I hope this idea could be discussed futher, and implemented on the future
release of Opennebula.

thanks.

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


Re: [one-users] Creating images how to

2013-11-12 Thread Sharuzzaman Ahmat Raslan
Hi all,

Alternative to Martin's way:

Launch virt-manager on any Linux system (you can install virt-manager on
CentOS)

In the virt-manager, create a new VM, customize the disk size, select the
CentOS installer ISO image, and start performing the installation.

Note where you save the virtual disk for this VM.

Once installation finish, you will have a fully installed VM. You will use
this virtual disk (usually qcow format) and upload it into Opennebula. This
is your gold image.

After that, you need to configure your VM template in Opennebula. Here you
need to define your NIC, memory, and point the disk information to your
gold image that you have uploaded. You need to know if you are using
persistence or non-persistence. Persistence will modify your gold image.
Non-persistence will create a clone of your gold image, and changes will be
written to that clone. That depends on your Opennebula storage architecture
too.

Amier, I'm Malaysian, and working in Cyberjaya.

If you want, maybe we can have a face-to-face knowledge sharing session, so
that we can discuss this further.

Thanks.













On Fri, Nov 8, 2013 at 6:09 PM, Martin Alfke  wrote:

> Hi Amier,
>
> we create Images in the following way:
>
> 1. create qcow2 disk:
> qemu-img create -f qcow2 base_centos.img 10G
>
> 2. fetch installer image:
> wget /centos6/6/os/x86_64/images/install.img
>
> 3. install image:
> qemu-system-x86_46 -m 4096 -hda centos_base.img -cdrom install.img -boot d
>
> 4. post install vm preparation:
> qemu-system-x86_46 -m 4096 -hda centos_base.img
>
> Within image:
> install acpid (needed to reboot/shutdown vm from open nebula management
> node)
> install one-context package
>
> 5. upload image to opennebula
> attn: do not use sunstone for large images copied over network.
> copy image to open nebula management host (scp,..) and use local directory
> and image name.
>
> hth,
>
> Martin
>
>
> On 07 Nov 2013, at 18:21, Amier Anis  wrote:
>
> > Dear Guys,
> >
> > I'm still new with opennebula. I would like to know how to create images
> for my 100 vm using centos 6.4. In the images i need to install a few
> component and add a few users.
> >
> > any ideas?
> >
> > Thanks you.
> >
> > Regards & Best Wishes,
> >
> >
> > .: Amier Anis :.
> > Mobile: +6012-260-0819
> >
> > IMPORTANT:
> > This e-mail (including any attachment hereto) is intended solely for the
> addressee and is confidential and privileged. If this should have been sent
> to you in error, you are not to reproduce, distribute or take any action in
> reliance on it. Kindly notify us and delete the e-mail and all attachments
> immediately.
> >
> > As e-mail and/or attachments may contain viruses and other interfering
> or damaging elements, the receipt and/or downloading of e-mail and/or
> attachments will be at your own risk and we accept no liability for any
> damage sustained as a result of any such viruses; you should carry out your
> own virus checks before opening any attachment.
> > ___
> > 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
>



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


Re: [one-users] How to manage vm created by opennebula by virsh tools?

2013-11-11 Thread Sharuzzaman Ahmat Raslan
Hi Dennis,

When Opennebula shutdown a VM, it will destroy the XML file on the host,
and unregister the VM from KVM.

If you just want it to stop, so that you can do something to the image, eg.
making a backup, you can use the command

onevm suspend 

then the VM will still be available in the host, and can be queried by
virsh list command.

Read more at:

http://opennebula.org/documentation:rel4.2:vm_guide_2
http://opennebula.org/doc/4.2/cli/onevm.1.html






On Tue, Nov 12, 2013 at 12:33 PM, caohf  wrote:

>
> Thanks
>
> But when i use  virsh  list --all command
>
>
> -
>  [root@opennebula-node1 ~]# virsh  list --all
>  IdName   State
> 
>  43one-111running
>  44one-104running
>  48one-123running
>  - centos5.6.kvm  shut off
> 
>
>
> if the vm managed by one  is runnning ,it can be list by virsh list --all
> command
>
> when I destory a vm.
>
>
> -
> [root@opennebula-node1 ~]# virsh  destroy 44
> Domain 44 destroyed
> 
>
>
> It can't be display by virsh command
>
>
> 
> [root@opennebula-node1 ~]# virsh  list --all
>  IdName   State
> 
>  43one-111running
>  48one-123running
>  - centos5.6.kvm  shut off
> -----------
>
> How to fix this
> --
> Best Wishes!
> Dennis
>
>  *From:* Sharuzzaman Ahmat Raslan 
> *Date:* 2013-11-12 11:48
> *To:* caohf 
> *CC:* users@lists.opennebula.org 
> *Subject:* Re: Re: [one-users] How to manage vm created by opennebula by
> virsh tools?
>Hi Dennis,
>
> Opennebula is still using libvirt for KVM-based nodes.
>
> You can still stop/start the VM using normal virsh command, such as virsh
> stop, virsh start, virsh attach-device etc.
>
> But doing so directly to the VM, will cause your VM to not shutting down
> properly if you onevm shutdown from Opennebula later. That's what I have
> experience before.
>
> Thanks.
>
>
>
>
> On Tue, Nov 12, 2013 at 11:34 AM, caohf  wrote:
>
>>  Hi :
>>  I have another  system use virsh(libvirt) manage the kvm vms,when i use
>> opennebula ,I also want to use my old system.
>>  Opennebula provide the libvirt drivers in the old version.
>> --
>>
>> Best Wishes!
>> Dennis
>>
>>  *From:* Sharuzzaman Ahmat Raslan 
>> *Date:* 2013-11-12 11:13
>> *To:* caohf 
>> *CC:* users@lists.opennebula.org 
>> *Subject:* Re: [one-users] How to manage vm created by opennebula by
>> virsh tools?
>>Hi Dennis,
>>
>> What actually that you want to achieve?
>>
>> Thanks.
>>
>>
>>
>>
>> On Tue, Nov 12, 2013 at 9:58 AM, caohf  wrote:
>>
>>>  Dear All:
>>> How to manage vm created by opennebula by virsh tool?
>>>
>>> --
>>>  Best Wishes!
>>> Dennis
>>>
>>>
>>> ___
>>> Users mailing list
>>> Users@lists.opennebula.org
>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>
>>>
>>
>>
>> --
>> Sharuzzaman Ahmat Raslan
>>
>
>
>
> --
> Sharuzzaman Ahmat Raslan
>



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


Re: [one-users] How to manage vm created by opennebula by virsh tools?

2013-11-11 Thread Sharuzzaman Ahmat Raslan
Hi Dennis,

Opennebula is still using libvirt for KVM-based nodes.

You can still stop/start the VM using normal virsh command, such as virsh
stop, virsh start, virsh attach-device etc.

But doing so directly to the VM, will cause your VM to not shutting down
properly if you onevm shutdown from Opennebula later. That's what I have
experience before.

Thanks.




On Tue, Nov 12, 2013 at 11:34 AM, caohf  wrote:

>  Hi :
>  I have another  system use virsh(libvirt) manage the kvm vms,when i use
> opennebula ,I also want to use my old system.
>  Opennebula provide the libvirt drivers in the old version.
> --
>
> Best Wishes!
> Dennis
>
>  *From:* Sharuzzaman Ahmat Raslan 
> *Date:* 2013-11-12 11:13
> *To:* caohf 
> *CC:* users@lists.opennebula.org 
> *Subject:* Re: [one-users] How to manage vm created by opennebula by
> virsh tools?
>   Hi Dennis,
>
> What actually that you want to achieve?
>
> Thanks.
>
>
>
>
> On Tue, Nov 12, 2013 at 9:58 AM, caohf  wrote:
>
>>  Dear All:
>> How to manage vm created by opennebula by virsh tool?
>>
>> --
>>  Best Wishes!
>> Dennis
>>
>>
>> ___
>> Users mailing list
>> Users@lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>
>
> --
> Sharuzzaman Ahmat Raslan
>



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


Re: [one-users] How to manage vm created by opennebula by virsh tools?

2013-11-11 Thread Sharuzzaman Ahmat Raslan
Hi Dennis,

What actually that you want to achieve?

Thanks.




On Tue, Nov 12, 2013 at 9:58 AM, caohf  wrote:

>  Dear All:
> How to manage vm created by opennebula by virsh tool?
>
> --
>  Best Wishes!
> Dennis
>
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>


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


Re: [one-users] Shutting down a VM from within the VM

2013-10-03 Thread Sharuzzaman Ahmat Raslan
Hi Parag,

I believe OpenNebula need to have human intervention to really determine
whether to remove or not the VM that it has deployed.

I also think that you can write a script that signal or call OpenNebula
command as soon as the task finish, to shutdown the VM. Or if direct
calling command not possible, maybe your application can write some status
in a database, and a script in OpenNebula read that status and make
decision from it.

Thanks.


On Thu, Oct 3, 2013 at 11:38 PM, Parag Mhashilkar  wrote:

> Hi,
>
> Does OpenNebula EC2 interface support shutting down a VM from with in the
> VM itself and have the scheduler recognize that VM has been
> stopped/shutdown? How do we enable this feature? At Fermi, we have
> OpenNebula v3.2 and when the VM is shutdown it stays in the UNKNOWN state.
> Can OpenNebula get this ACPI shutdown info from virsh and handle the
> situation more gracefully rather than putting the VM in UKNOWN state?
>
> Here is an example why I think something like this is useful:
>
> When VMs are launched to perform certain tasks (classical equivalent of
> batch nodes), only the processes running in the VM know when the task is
> done and can shutdown the VM freeing up the resources. Running VM past the
> task life is wasted resources and controlling the lifetime of VM from
> outside is not always possible.
>
> In case of AWS, it supports following which is very good feature to have
> when controlling the VMs in above scenario.
> ec2-run-instaces --instance-initiated-shutdown-behavior 
>
> How do we achieve this with Opennebula?
>
> Thanks & Regards
> +==
> | Parag Mhashilkar
> | Fermi National Accelerator Laboratory, MS 120
> | Wilson & Kirk Road, Batavia, IL - 60510
> |--
> | Phone: 1 (630) 840-6530 Fax: 1 (630) 840-2783
> |--
> | Wilson Hall, 806E (Nov 8, 2012 - To date)
> | Wilson Hall, 867E (Nov 17, 2010 - Nov 7, 2012)
> | Wilson Hall, 863E (Apr 24, 2007 - Nov 16, 2010)
> | Wilson Hall, 856E (Mar 21, 2005 - Apr 23, 2007)
> +==
>
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>


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


Re: [one-users] listing assigned vm ip

2013-09-30 Thread Sharuzzaman Ahmat Raslan
In "onevnet list", the last column will be the VMID. With that VMID, you
can search your VM in "onevm list"


On Mon, Sep 30, 2013 at 2:18 PM,  wrote:

> Hello.
>
> Anybody knows how can i list vms with respective ip (like in sunstone)?.
>
> the onevm list dont show the assigned ip.
>
> the onevm show doesnt show the vm ip.
>
> Im using ranged network.
> thanks.
>
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>


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


[one-users] Setting CPU overcommit globally

2013-05-22 Thread Sharuzzaman Ahmat Raslan
Hi all,

In our environment, we need to overcommit the CPU in every host.

We have 6 host running KVM, on Ubuntu 12.04

Our Opennebula is 3.8.1

Previous discussion about CPU overcommit is suggesting that I have to put
CPU=0.5 and VCPU=2 to get 1 real CPU overcommit as 2 CPU, to each VM
template.

Is there any way that I can just set it once, and when I launch/relaunch a
VM, it will be automatically CPU overcommit, without having to change the
VM template?

Thanks.

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


Re: [one-users] How to change cluster ID

2013-04-02 Thread Sharuzzaman Ahmat Raslan
Hi Carlos,

I change cluster_pool last_oid in table pool_control to 99, but when I
execute the command onecluster create Testing, it creates a new cluster
with ID 102, not 100.

Somehow the system knows that there are previously cluster ID 101, and
disregard the number set in DB table.

Appreciate explanation on this matter.

Thanks.




On Tue, Apr 2, 2013 at 5:52 PM, Carlos Martín Sánchez <
cmar...@opennebula.org> wrote:

> Hi,
>
> On Tue, Apr 2, 2013 at 10:00 AM, Sharuzzaman Ahmat Raslan <
> sharuzza...@gmail.com> wrote:
>
>> Hello,
>>
>> I'm just trying out Opennebula.
>>
>> In my installation, when I type the command
>>
>> onecluster create Testing
>>
>> it will create a new cluster named Testing with ID 100
>>
>> Why it start with 100? How do I make is start with 1, instead of 100?
>>
>
> This way we reserve the first 100 IDs for internal or default clusters we
> may add in the future.
>
>
>> If I delete the cluster, then issue the command again, it will create a
>> cluster of ID 101
>>
>> How do I change the cluster ID to 100 back?
>>
>
> This is not supported, but if it is really crucial you can fiddle with the
> database directly. Look for the pool_control table.
>
>
>> The reason is that I need it to be identical to another setup that we
>> already have in the company, created by another engineer.
>>
>
> Maybe you can clone the entire database?
>
> Regards
>
>
>>
>> Thanks.
>>
>>
>> --
>> Sharuzzaman Ahmat Raslan
>>
>> ___
>> Users mailing list
>> Users@lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>
> --
> Carlos Martín, MSc
> Project Engineer
> OpenNebula - The Open-source Solution for Data Center Virtualization
> www.OpenNebula.org <http://www.opennebula.org/> | cmar...@opennebula.org
>  | @OpenNebula <http://twitter.com/opennebula> 
>
>


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


Re: [one-users] How to change cluster ID

2013-04-02 Thread Sharuzzaman Ahmat Raslan
Hello Carlos,

Thank you for the answer.

I will try to look in the database.

Thanks.




On Tue, Apr 2, 2013 at 5:52 PM, Carlos Martín Sánchez <
cmar...@opennebula.org> wrote:

> Hi,
>
> On Tue, Apr 2, 2013 at 10:00 AM, Sharuzzaman Ahmat Raslan <
> sharuzza...@gmail.com> wrote:
>
>> Hello,
>>
>> I'm just trying out Opennebula.
>>
>> In my installation, when I type the command
>>
>> onecluster create Testing
>>
>> it will create a new cluster named Testing with ID 100
>>
>> Why it start with 100? How do I make is start with 1, instead of 100?
>>
>
> This way we reserve the first 100 IDs for internal or default clusters we
> may add in the future.
>
>
>> If I delete the cluster, then issue the command again, it will create a
>> cluster of ID 101
>>
>> How do I change the cluster ID to 100 back?
>>
>
> This is not supported, but if it is really crucial you can fiddle with the
> database directly. Look for the pool_control table.
>
>
>> The reason is that I need it to be identical to another setup that we
>> already have in the company, created by another engineer.
>>
>
> Maybe you can clone the entire database?
>
> Regards
>
>
>>
>> Thanks.
>>
>>
>> --
>> Sharuzzaman Ahmat Raslan
>>
>> ___
>> Users mailing list
>> Users@lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>
> --
> Carlos Martín, MSc
> Project Engineer
> OpenNebula - The Open-source Solution for Data Center Virtualization
> www.OpenNebula.org <http://www.opennebula.org/> | cmar...@opennebula.org
>  | @OpenNebula <http://twitter.com/opennebula> 
>
>


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


[one-users] How to change cluster ID

2013-04-02 Thread Sharuzzaman Ahmat Raslan
Hello,

I'm just trying out Opennebula.

In my installation, when I type the command

onecluster create Testing

it will create a new cluster named Testing with ID 100

Why it start with 100? How do I make is start with 1, instead of 100?

If I delete the cluster, then issue the command again, it will create a
cluster of ID 101

How do I change the cluster ID to 100 back?

The reason is that I need it to be identical to another setup that we
already have in the company, created by another engineer.

Thanks.


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