1
Sets up nova-compute using vCenter driver for spawning instances on a VMWare
6
- Create a new datacenter.
7
- Create a new cluster, eg "NovaCluster"
8
* Enable DRS for the cluster.
9
- Add ESX host(s) to the new cluster.
12
- In the 'Configuration' tab of the ESX host(s), a port group news to be
13
created that matches the flat_network_bridge value in nova.conf. This
14
is set to br100 by default, but is configurable in the charm config. The
15
port group should be associated with a valid vSwitch.
23
Currently, the nova-vmware charm is a subordinate that can be with the
24
nova-cloud-controller service, eliminating the need to deply a dedicated
25
compute node just to act as a proxy to vCenter. This is okay for a small
26
installation, but we may wish to allow a relation to nova-compute nodes as
27
well. This would better address scalability issues and allow for segmenting
30
The following assumes a vCenter cluster running @ http://192.168.25.100
31
with default credentials and a cluster named NovaCluster with appropriate
32
networking resources setup.
34
Deploy the minimal basics:
37
$ juju deploy rabbitmq-server
39
$ juju deploy keystone
40
$ juju deploy nova-cloud-controller
41
$ juju add-relation nova-cloud-controller mysql
42
$ juju add-relation nova-cloud-controller rabbitmq-server
43
$ juju add-relation nova-cloud-controller glance
44
$ juju add-relation nova-cloud-controller keystone
45
$ juju add-relation glance keystone
47
Deploy the subordinate with appropriate config for the envirnoment:
49
$ cat >vmware.cfg <<END
50
vmwareapi_ip: 192.168.25.100
51
vmwareapi_username: root
52
vmwareapi_password: vmware
53
vmwareapi_cluster_name: testcluster
55
$ juju deploy --repository=. --config=vmware.cfg local:nova-vmware
56
$ juju add-relation nova-vmware nova-cloud-controller
58
Upload VMDK to Glance:
60
Images need to published to glance with special format and parameters. Nicira
61
currently hosts a debian image for testing (as of Fri Aug 2 17:27:09 PDT 2013)
63
$ wget https://www.dropbox.com/s/utvri5bw3zztty6/Debian-flat.vmdk
64
glance image-create --name Debian --is-public=True \
65
--container-format=bare --disk-format=vmdk --property \
66
vmware-disktype="preallocated" < ~/Debian-flat.vmdk
70
Login to a nova node, create the network:
71
$ sudo nova-manage network create private \
72
192.168.21.0/24 1 256 --bridge=br100
73
$ sudo nova-manage floating create 192.168.20.224/27
81
$ nova boot --image <image-id> --flavor 1 test1
83
You should see activity in the 'Recent Tasks' section of the vCenter Client.
84
Note that spawning the image for the first time takes a *long time*. The
85
image gets streamed from glance -> nova -> vCenter and can take ~10 mins for
88
Note as of Grizzly 2013.1.3, https://bugs.launchpad.net/nova/+bug/1180044.
89
Instances will fail if you have more than 1 data center setup / DRS disabled.
92
http://docs.openstack.org/trunk/openstack-compute/admin/content/vmware.html
93
https://wiki.openstack.org/wiki/NovaVMware/DeveloperGuide