BOSH and KVM

238 views
Skip to first unread message

gandalf.co...@gmail.com

unread,
Jan 18, 2013, 8:53:18 AM1/18/13
to vcap...@cloudfoundry.org
Is possible to use BOSH with KVM hosts instead ESX ?

By the way, with a standard BOSH deployment, BOSH automatically span VMs across any hosts in the cluster? For example, if I create a Virtual Datacenter made with 10 servers, is BOSH smart enough to place VMs across multiple servers in the same cluster?

Yongkun Anfernee Gui

unread,
Jan 18, 2013, 5:03:09 PM1/18/13
to vcap...@cloudfoundry.org
It's more like a bosh-dev question. but i would try to answer it here. 




On Fri, Jan 18, 2013 at 5:53 AM, <gandalf.co...@gmail.com> wrote:
Is possible to use BOSH with KVM hosts instead ESX ?

By the way, with a standard BOSH deployment, BOSH automatically span VMs across any hosts in the cluster? For example, if I create a Virtual Datacenter made with 10 servers, is BOSH smart enough to place VMs across multiple servers in the same cluster?



--
Cheers,
Anfernee

Yongkun Anfernee Gui

unread,
Jan 18, 2013, 5:08:48 PM1/18/13
to vcap...@cloudfoundry.org
On Fri, Jan 18, 2013 at 2:03 PM, Yongkun Anfernee Gui <ag...@rbcon.com> wrote:
It's more like a bosh-dev question. but i would try to answer it here. 
 
On Fri, Jan 18, 2013 at 5:53 AM, <gandalf.co...@gmail.com> wrote:
Is possible to use BOSH with KVM hosts instead ESX ?
In theory, yes. You can use bosh with openstack as CPI, and configure KVM in openstack. That's an easy way. A hard way is to write KVM CPI, which needs a lot of hacking.
 

By the way, with a standard BOSH deployment, BOSH automatically span VMs across any hosts in the cluster? For example, if I create a Virtual Datacenter made with 10 servers, is BOSH smart enough to place VMs across multiple servers in the same cluster?
Simple answer is no. Bosh wouldn't know the underlining implementation details of IaaS. That's more like a cluster resource management thing, and it's hard to have an abstraction across various implementation of IaaS, which bosh needs to be support. 
 



--
Cheers,
Anfernee



--
Cheers,
Anfernee

Dr Nic Williams

unread,
Jan 18, 2013, 5:28:09 PM1/18/13
to vcap...@cloudfoundry.org
From a quick read of bosh source code, it looks like AZs are changable per resource pool; or put another way, one AZ per resource pool.



Nic

gandalf.co...@gmail.com

unread,
Jan 18, 2013, 5:58:59 PM1/18/13
to vcap...@cloudfoundry.org
Il giorno venerdì 18 gennaio 2013 23:08:48 UTC+1, Anfernee Gui ha scritto:
In theory, yes. You can use bosh with openstack as CPI, and configure KVM in openstack. That's an easy way. A hard way is to write KVM CPI, which needs a lot of hacking.

Any guide about writing custom CPI?
I don't use openstack, esx or aws but OpenNebula 

gandalf.co...@gmail.com

unread,
Jan 18, 2013, 5:59:57 PM1/18/13
to vcap...@cloudfoundry.org, gandalf.co...@gmail.com
Il giorno venerdì 18 gennaio 2013 23:58:59 UTC+1, gandalf.co...@gmail.com ha scritto:
I don't use openstack, esx or aws but OpenNebula 

... by the way, opennebula has some api with AWS compatibility, probably i can use AWS module 

Yongkun Anfernee Gui

unread,
Jan 18, 2013, 7:31:53 PM1/18/13
to vcap...@cloudfoundry.org, gandalf.co...@gmail.com
Take a look at https://github.com/cloudfoundry/bosh/blob/master/cpi/lib/cloud.rb for the CPI interface. It is straight-forward. 

Also probably some changes in agent and stemcell builder are needed as well: 

Post in bosh-dev, you'll have more clue :) 

Thanks,
Anfernee
--
Cheers,
Anfernee

Matt Reider

unread,
Jan 19, 2013, 2:00:05 AM1/19/13
to vcap...@cloudfoundry.org

Ali Moghadam

unread,
Jan 19, 2013, 2:31:32 AM1/19/13
to vcap...@cloudfoundry.org
KVM is a hypervisor. BOSH works with an IaaS API via It's CPI. An open source IaaS you can use on KVM would be openstack. BOSH has a openstack CPI implementation available.

Here is how the setup would go:

Hypervisor (KVM, ESX) ---> IaaS (openstack, vsphere) ---> BOSH ( which deploys Cloud Foundry)

gandalf.co...@gmail.com

unread,
Jan 19, 2013, 5:35:37 AM1/19/13
to vcap...@cloudfoundry.org
With 'vSphere' do you mean this?

is possible to use the free version?

Any plans to support XCP/XenServer as IaaS infrastructure or OCCI API ? 
Reply all
Reply to author
Forward
0 new messages