<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-family: Calibri, sans-serif;">
<div style="font-size: 14px;"><span style="font-size: 11pt; font-family: Calibri;">> </span><span style="font-size: 11pt; font-family: Calibri;">Has anyone create an image that can be installed into other hypervisors than openstack? </span></div>
<div style="font-size: 14px;"><span style="font-size: 11pt; font-family: Calibri;">> I mean that I have the image, (let’s say a Cirros image), on an instance and I make some changes there. </span></div>
<div style="font-size: 14px;"><span style="font-size: 11pt; font-family: Calibri;">> How can I take that image together with my changes, produce a new image including the original one and the changes of course, </span></div>
<div style="font-size: 14px;"><span style="font-size: 11pt; font-family: Calibri;">> and load it into other hypervisors like VMware sphere, for instance?</span></div>
<div style="font-size: 14px;"><span style="font-size: 11pt; font-family: Calibri;"><br>
</span></div>
<div style="font-size: 14px;">You can simply convert the image (make a snapshot) and convert it with e.g. Qemu-img to vmdk format:</div>
<div style="font-size: 14px;"><a href="http://docs.openstack.org/image-guide/content/ch_converting.html">http://docs.openstack.org/image-guide/content/ch_converting.html</a></div>
<div style="font-size: 14px;">However, if you want to create a standard image for multiple platforms I’d highly suggest to look at tools like packer:</div>
<div style="font-size: 14px;"> <a href="https://www.packer.io/docs/builders/openstack.html">https://www.packer.io/docs/builders/openstack.html</a> which can output to different formats.</div>
<div style="font-size: 14px;"><br>
</div>
<span id="OLK_SRC_BODY_SECTION"><font face="Calibri">
<div>> <font size="3">If I want to take an image from an instance from openstack cloud A and load  it into a VM into another openstack cloud B, will it work?</font><span style="font-family: Calibri, sans-serif;"> </span>And how?
</div>
</font></span>
<div>
<div>> <span style="font-family: Calibri;">Just by loading it to the new VM or do I have to process/change it somehow?</span></div>
</div>
<div><span style="font-family: Calibri;"><br>
</span></div>
<div>Yes you can. Make a snapshot and import it. </div>
<div>(assuming you are allowed to snapshot and upload your own images.)</div>
<div><br>
</div>
<div><span style="font-family: Calibri;">> I’m afraid this would mix up the IPs of the two clouds, (internal and external IPs), </span></div>
<div><span style="font-family: Calibri;">> and in general the network configuration would be different on the two openstack cloud environments, so how this can be done?</span></div>
<div><br>
</div>
<div>
<div>Usually IP’s are coming from DHCP in some way so it should just pick a IP from the DHCP pool.</div>
<div>If you have exactly the same IP space you could (in theory) boot them with the same IP:</div>
</div>
<div>Using the nova boot with "v4-fixed-<wbr>ip” argument to boot it with a specific IP.</div>
<div>In general I would highly recommend to make it work with whatever DHCP gives you and fix resolving of services with the appropriate tools (DNS / Zookeeper /etcd... )</div>
<div><span style="font-size: 11pt; font-family: Calibri;"> </span></div>
<span id="OLK_SRC_BODY_SECTION"><font face="Calibri">
<div><span style="font-size: 15px;">> </span>I tried to implement this by taking snapshots on my VMs I want the image to be transferred.
</div>
</font></span>
<div>> <span style="font-family: Calibri;">The result was to take a backup of my volume, the one that it is used by the VM. </span></div>
<div><span style="font-family: Calibri;">> The problem here is that if my VM uses, for instance, the xlarge flavor, it means it will take a snapshot of 160GB for an OS only of 12.5 MB, which is really TRAGIC!!!!</span></div>
<div><span style="font-family: Calibri;">> So, under what situations it is preferable to use snapshots? </span></div>
<div><span style="font-family: Calibri;">> This is an extreme example to understand my thought/question and the reason why I cannot use snapshot.</span></div>
<div><span style="font-family: Calibri;"><br>
</span></div>
<div>It al depends on what you actually want to achieve what makes the most sense.</div>
<div>A onetime migration from cloud A to B? DR scenario? Running by default with 2 cloud providers?</div>
<div>e.g. it might make more sense to just spawn an instance in the second cloud and e.g. Rsync the data from within the 2 instances.</div>
<span id="OLK_SRC_BODY_SECTION"><font face="Calibri">
<div style="font-size: 11pt; padding-left: 36pt;"> </div>
<div><span style="font-size: 15px;">> </span>By taking a snapshot from a VM as I said it will take a snapshot of the volume used on the specific flavor for a VM. This will take the NFS file as well, right?
</div>
</font></span>
<div>><span style="font-family: Calibri;">There is no any special volume other than the one used on the flavor storing the > NFS details, correct? Of course, by default openstack installation/configuration</span></div>
<div><span style="font-family: Calibri;"><br>
</span></div>
<div>Not sure what you mean by NFS. You can implement nfs in many ways.</div>
<div>Iirc if it is a “separate” cinder volume you need to snapshot that separately. </div>
<div><span style="font-family: Calibri;"><br>
</span></div>
<span id="OLK_SRC_BODY_SECTION"><font face="Calibri">
<div style="font-size: 11pt;"><span style="font-size: 11pt;">Cheers,</span></div>
</font></span>
<div>Robert van Leeuwen</div>
<span id="OLK_SRC_BODY_SECTION"><font face="Calibri">
<div style="font-size: 11pt;"><span style="font-size: 11pt;"> </span></div>
<div style="font-size: 11pt;"> </div>
<div style="font-size: 11pt;"> </div>
</font></span><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</body>
</html>