<div dir="ltr">Hello<div><br></div><div style>I have installed opennebula within sunstone and rbd (ceph)</div><div style>I have one problem </div><div style><br></div><div style>I create an image in rbd datastore (through sunstone or command line, no difference)</div>
<div style><br></div><div style><b>- Case 1 command line</b></div><div style>I create a VM from command line </div><div style><b>onevm create --name vm1 --cpu 1 --mem 1024 --disk image1 --vnc --nic 1</b><br></div><div style>
the VM uses the image (image1) for disk which is in rbd</div><div style>Live migrate works perfect</div><div style>Failover works perfect</div><div style><br></div><div style>the command line for this vm is</div><div style>
/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 style><br></div><div style>So the disk is the rbd block device and only that, which is distributed to all physical hosts through ceph</div>
<div style><br></div><div style><br></div><div style><b>- Case 2 though sunstone</b></div><div style>I create a VM template using the same image (image1) (persistent or not)</div><div style>I create a VM with that template</div>
<div style>and the command line is</div><div style>/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 style><br></div><div style>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 style>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 style>
<br></div><div style><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 style><b>Is it a bug or lack of feature?</b></div><div style><br></div><div style>
Thank you</div><div style>George Kissandrakis</div></div>