<div dir="ltr"><div><div>Hi,<br><br></div><div>First of all, think dis question did no get answered:<br><span class="im">
<br>
</span><span style="color:rgb(116,27,71)">-I'll try that thanx. How do you do that with the "openstack" command?</span><br><br></div><div>If not, the command is: openstack volume create --size (size in GB) --image (image name or id) volume_name<br></div><div><br><div>Just for info the cinder command was not exact, it should be: <span class="im"> cinder create --image<b>-id </b><IMAGE-ID> <b>--display-name</b> <NAME> <SIZE></span></div><br><br></div><div>I agree with Eugen that you should make sure you can create a volume and attach to a VM to help understand what your problem is.<br></div><div>This guide explains about ephemeral storage options: <a href="https://platform9.com/support/openstack-tutorial-storage-options-and-use-cases/">https://platform9.com/support/openstack-tutorial-storage-options-and-use-cases/</a><br><br></div><div>By default you should be able to create VMs with ephemeral disks (not cinder one).<br></div><div>Usually you can specify the directory where VM instances disks will be stored in the compute node on nova.conf option 'instances_path' in [DEFAULT] session. By default it should point to '/var/lib/nova/instances/'. It is default option so, even if it is not there, this should work.<br></div><div>Nova compute config options: <a href="http://docs.openstack.org/liberty/config-reference/content/list-of-compute-config-options.html">http://docs.openstack.org/liberty/config-reference/content/list-of-compute-config-options.html</a><br><br></div><div><br></div><div>The command to create the VM with an ephemeral disk (nova local storage and not cinder) is:<br></div><div>openstack server create --image (image id or name) --flavor (flavor id or name) vm_name<br><br><br></div><div>Concerning the flavor, I think the flavor you use should have the same disk size as the disk. At least, for me when I try to boot a VM from a volume that is not the same size of the flavor, I get BadRequest error.<br><br></div><div>Let us know if you manage to boot a VM so you can try to attach a volume to it.<br><br></div><div>Good luck with all that.<br><br></div><div>Kind regards,<br></div><div>Cynthia<br></div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-06-21 13:36 GMT+01:00 Eugen Block <span dir="ltr"><<a href="mailto:eblock@nde.ag" target="_blank">eblock@nde.ag</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If it was the flavor, you would get different errors, something like "flavor disk too small" or "out of memory". Again, I recommend to launch an instance on local disk to see if that is working, then fix the iscsi issue to be able to create volumes at all, first empty volumes, then from an image and so on.<span class="im HOEnZb"><br>
<br>
<br>
Zitat von Turbo Fredriksson <<a href="mailto:turbo@bayour.com" target="_blank">turbo@bayour.com</a>>:<br>
<br>
</span><div class="HOEnZb"><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Jun 21, 2016, at 12:19 PM, Abhishek Shrivastava wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
​Have you tried any other flavors?<br>
</blockquote>
<br>
No, I never saw the point. The resources I specified was well within<br>
the flavors rules. And the error was "Block Device Mapping is Invalid"<br>
I can not see how changing the flavor would change that.<br>
--<br>
System administrators motto:<br>
You're either invisible or in trouble.<br>
- Unknown<br>
<br>
<br>
_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
</blockquote>
<br>
<br>
<br></div></div><span class="im HOEnZb">
-- <br>
Eugen Block                             voice   : <a href="tel:%2B49-40-559%2051%2075" value="+49405595175" target="_blank">+49-40-559 51 75</a><br>
NDE Netzdesign und -entwicklung AG      fax     : <a href="tel:%2B49-40-559%2051%2077" value="+49405595177" target="_blank">+49-40-559 51 77</a><br>
Postfach 61 03 15<br>
D-22423 Hamburg                         e-mail  : <a href="mailto:eblock@nde.ag" target="_blank">eblock@nde.ag</a><br>
<br>
        Vorsitzende des Aufsichtsrates: Angelika Mozdzen<br>
          Sitz und Registergericht: Hamburg, HRB 90934<br>
                  Vorstand: Jens-U. Mozdzen<br>
                   USt-IdNr. DE 814 013 983<br>
<br>
<br></span><div class="HOEnZb"><div class="h5">
_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
</div></div></blockquote></div><br></div>