<div dir="ltr">Hi <div><br></div><div style>Can you verify that in the second case the image is stored in a datastore with DISK_TYPE = RBD?</div><div style><br></div><div style>Could you send the output for VM template (onetemplate -x show), the datastore (onedatastore -x show) and the resulting vm (onevm -x show)?</div>
<div style><br></div><div style>Thanks</div><div style><br></div><div style>Ruben</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 17, 2013 at 5:36 PM, George Kissandrakis <span dir="ltr"><<a href="mailto:gkissand@gmail.com" target="_blank">gkissand@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello<div><br></div><div>I have installed opennebula within sunstone and rbd (ceph)</div><div>I have one problem </div>
<div><br></div><div>I create an image in rbd datastore (through sunstone or command line, no difference)</div>
<div><br></div><div><b>- Case 1 command line</b></div><div>I create a VM from command line </div><div><b>onevm create --name vm1 --cpu 1 --mem 1024 --disk image1 --vnc --nic 1</b><br></div><div>
the VM uses the image (image1) for disk which is in rbd</div><div>Live migrate works perfect</div><div>Failover works perfect</div><div><br></div><div>the command line for this vm is</div><div>
/usr/bin/kvm -name one-36 [blah...blah] <b>-drive file=rbd:one/one-9:auth_supported=none,if=none,id=drive-ide0-0-0,format=raw,cache=none</b> [blah...blah]<br></div><div><br></div><div>So the disk is the rbd block device and only that, which is distributed to all physical hosts through ceph</div>
<div><br></div><div><br></div><div><b>- Case 2 though sunstone</b></div><div>I create a VM template using the same image (image1) (persistent or not)</div><div>I create a VM with that template</div>
<div>and the command line is</div><div>/usr/bin/kvm -name one-35 [blah...blah] <b>-drive file=/var/lib/one//datastores/0/35/disk.1,if=none,media=cdrom,id=drive-ide0-0-0,readonly=on,format=raw</b> [blah...blah] <b>-drive file=rbd:one/one-8:auth_supported=none,if=none,id=drive-ide0-0-1,format=raw,cache=none</b> [blah...blah]<br>
</div><div><br></div><div>As you see in the second case there is a file as drive, so when i try to migrate or to failover by crashing the server, the VM does not migrate/failover because is missing the file </div>
<div>If i do a shared storage, it migrates the VM but it does not failover because it tryies to copy the file from the crashed server(?) and even if it migrates it will loose all data which are in file</div><div>
<br></div><div><b>So is there a way to create a VM which reads and writes in the rbd directly and not on a file with sunstone?</b></div><div><b>Is it a bug or lack of feature?</b></div><div><br></div><div>
Thank you</div><span class="HOEnZb"><font color="#888888"><div>George Kissandrakis</div></font></span></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div><div><div>-- </div><div>Join us at OpenNebulaConf2013 in Berlin, 24-26 September, 2013</div></div><div>-- </div></div>Ruben S. Montero, PhD<br>
Project co-Lead and Chief Architect<br>OpenNebula - The Open Source Solution for Data Center Virtualization<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:rsmontero@opennebula.org" target="_blank">rsmontero@opennebula.org</a> | @OpenNebula</div>
</div>