2017-03-17 01:02:03 +05:30 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								Here are the steps to follow for running opennebula-integration correctly.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-04-22 10:52:19 +05:30 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								1.  Install [python-oca ](https://github.com/python-oca/python-oca )
							 
						 
					
						
							
								
									
										
										
										
											2017-03-17 01:02:03 +05:30 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								This is the library that allows sending XMLRPC commands to OpenNebula. Unfortunately, the latest version of oca available in Python package index is not compatible with python 3.5. Hence, one would need to download the latest version from the above github link and install it from there.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Assuming virtualenv is located at ~/python/env
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								~/python/env/bin/python setup.py build
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								sudo ~/python/env/bin/python setup.py install
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-04-26 10:40:52 +05:30 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								2.  Setup opennebula parameters in the `.env`  file.
							 
						 
					
						
							
								
									
										
										
										
											2017-03-17 01:02:03 +05:30 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
									
										
										
										
											2017-04-26 10:40:52 +05:30 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								#############################################
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# configurations for opennebula-integration #
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								#############################################
 
							 
						 
					
						
							
								
									
										
										
										
											2017-03-17 01:02:03 +05:30 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-04-26 10:40:52 +05:30 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								# The oneadmin user name of the OpenNebula infrastructure
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								OPENNEBULA_USERNAME='oneadmin'
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# The oneadmin password of the OpenNebula infrastructure
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# The default credentials of the Sandbox OpenNebula VM is
 
							 
						 
					
						
							
								
									
										
										
										
											2017-03-17 01:02:03 +05:30 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								# oneadmin:opennebula
 
							 
						 
					
						
							
								
									
										
										
										
											2017-04-26 10:40:52 +05:30 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								OPENNEBULA_PASSWORD='opennebula'
							 
						 
					
						
							
								
									
										
										
										
											2017-03-17 01:02:03 +05:30 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# The protocol is generally http or https
 
							 
						 
					
						
							
								
									
										
										
										
											2017-04-26 10:40:52 +05:30 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								OPENNEBULA_PROTOCOL='http'
							 
						 
					
						
							
								
									
										
										
										
											2017-03-17 01:02:03 +05:30 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# The ip address or the domain name of the opennebula infrastructure
 
							 
						 
					
						
							
								
									
										
										
										
											2017-04-26 10:40:52 +05:30 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								OPENNEBULA_DOMAIN='192.168.182.124'
							 
						 
					
						
							
								
									
										
										
										
											2017-03-17 01:02:03 +05:30 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-04-26 10:40:52 +05:30 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								# The port to connect in order to send an xmlrpc request. The default
 
							 
						 
					
						
							
								
									
										
										
										
											2017-03-17 01:02:03 +05:30 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								# port is 2633
 
							 
						 
					
						
							
								
									
										
										
										
											2017-04-26 10:40:52 +05:30 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								OPENNEBULA_PORT='2633'
							 
						 
					
						
							
								
									
										
										
										
											2017-03-17 01:02:03 +05:30 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-04-26 10:40:52 +05:30 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								# The endpoint to which the XML RPC request needs to be sent to. The
 
							 
						 
					
						
							
								
									
										
										
										
											2017-03-17 01:02:03 +05:30 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								# default value is /RPC2
 
							 
						 
					
						
							
								
									
										
										
										
											2017-04-26 10:40:52 +05:30 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								OPENNEBULA_ENDPOINT='/RPC2'
							 
						 
					
						
							
								
									
										
										
										
											2017-03-17 01:02:03 +05:30 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								```