Can i host fiware image in premises or can i host it on any other cloud as aws etc.
Urgent, I cannot host it on cloud and my requirements are such that i want to host in premises. can i do it usig fiware, please reply.
Urgent, I cannot host it on cloud and my requirements are such that i want to host in premises. can i do it usig fiware, please reply.
The answer is yes --- You can dowload your images to your own premises and start any instance using some other hipervisors (although this is another thing). You should be able to host your images in any other cloud although you should ask your cloud administrator about the facilities they give you in order tor upload your own images.
Imagine you want your VM running in your own copy of Virtual Box. Let's imagine the name of your running instance is "mysqlhost".
Start by installing an Openstack Client in your own Python Virtual environment (let's do this using bash):
$ virtualenv osdemo
.....
$ source osdemo/bin/activate
(osdemo)$ pip install python-openstackclient
....
Once you have this done, you can set a few configuration variables in order to communicate with your account:
export OS_USERNAME=yourcloudaccout@wherever.is
echo Password:
read -s OS_PASSWORD
export OS_PASSWORD
export OS_TENANT_NAME="yourtenantname"
export OS_REGION_NAME="Spain2" ## Or whatever region you are using.
export OS_AUTH_URL=http://cloud.lab.fiware.org:4730/v2.0
You can get your OSUSERNAME, your OSTENANTNAME and your OSREGIONNAME from the Cloud Portal (there's an "info" button which opens a popup window with a "downrload openrc file" button). The value for OSAUTHURL is the one shown beforn and for OSPASSWORD you should know ;)
Now we are ready to proceed:
The name of our running instance was "mysqlhost" and the name for my snapshot will be "snp-mysql". This step is slow because it is internally compound by a large set of procedures. The best way to do this is stoping the VM before running this step.
<source>(osdemo)$ nova image-create mysqlhost snp-mysql </source>
One your snapshot is active (you can check this way):
(osdemo)$ openstack image show snp-mysql
....
| checksum | d149c222fc7e0cd4941605c319d34fc8
...
| disk_format | qcow2
...
| id | 21748c3e-85f0-449b-8f4d-6e78f1d46617
....
| name | snp-mysql
...
| status | active
...
Now you can download your image (a file with a size of a few GBs):
(osdemo)$ openstack image save snp-mysql > ~/VirtualBox\ VMs/snp-mysql.qcow2
One last step is converting you qcow2 image to whatever format you want to use --- As an example, let's show how to convert to VDI (virtual box image)
$ qemu-img convert -f qcow2 ~/VirtualBox\ VMs/snp-mysql.qcow2 -O vdi ~/VirtualBox\ VMs/snp-mysql.vdi
Now you can start one VM from your image using VirtualBox (you set your dist to the one you converted), you can use KVM (You can use the qcow2 image you downloaded)... Whatever
Asked: 2016-12-03 06:57:13 +0100
Seen: 4,941 times
Last updated: Dec 07 '16