<div dir="ltr"><div><div><div>Just for the record:<br></div>You must disable requiretty in /etc/sudoers file (Default !requiretty)<br><br></div>1. Nope, the image size is predefined (as far as I know).<br></div>2. Never tried, so there are maybe smarter people to answer that.<br>
<div class="gmail_extra"><br clear="all"><div><br>Cheers,<br>tmarlok<br></div>
<br><br><div class="gmail_quote">On Tue, May 28, 2013 at 5:17 PM, Denis J. Cirulis <span dir="ltr"><<a href="mailto:denis.cirulis@gmail.com" target="_blank">denis.cirulis@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">Two more questions:<div><br></div><div>1. Can I predefine the size of the vm disk in template, so that if ttylinux is 40MB big virtual machine disk would be 10G not 40MB ?</div><div>2. I have a bunch of already running virtual machines libvirt/kvm, how can I migrate them to opennebula ?</div>

<div><br></div><div>Thanks a lot for you help!</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 28, 2013 at 6:02 PM, Denis J. Cirulis <span dir="ltr"><<a href="mailto:denis.cirulis@gmail.com" target="_blank">denis.cirulis@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"><div>Tue May 28 18:02:03 2013 [ImG][D]: Message received: LOG I 8 sudo lvcreate -L40M prod-vm -n lv-one-8" failed: sudo: sorry, you must have a tty to run sudo</div>

<div><br></div><div>Tue May 28 18:02:03 2013 [ImM][I]: sudo lvcreate -L40M prod-vm -n lv-one-8" failed: sudo: sorry, you must have a tty to run sudo</div>
<div>Tue May 28 18:02:03 2013 [ImG][D]: Message received: LOG E 8 Error registering compute01:/dev/prod-vm/lv-one-8</div><div><br></div><div>Tue May 28 18:02:03 2013 [ImM][E]: Error registering compute01:/dev/prod-vm/lv-one-8</div>


<div>Tue May 28 18:02:03 2013 [ImG][D]: Message received: LOG I 8 ExitCode: 1</div><div><br></div><div>Tue May 28 18:02:03 2013 [ImM][I]: ExitCode: 1</div><div>Tue May 28 18:02:03 2013 [ImG][D]: Message received: CP FAILURE 8 Error registering compute01:/dev/prod-vm/lv-one-8</div>


<div><br></div><div><br></div><div>I think I've got the solution :)</div></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 28, 2013 at 5:33 PM, Marlok Tamás <span dir="ltr"><<a href="mailto:tmarlok@sztaki.hu" target="_blank">tmarlok@sztaki.hu</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">Hi Denis,<br><div><br>Can you give us the relevant output from the oned.log?<br></div><div>(with log level=3)<br>


</div><div class="gmail_extra"><br clear="all"><div><br>Cheers,<br>tmarlok<br></div>
<br><br><div class="gmail_quote"><div><div>On Tue, May 28, 2013 at 4:21 PM, Denis J. Cirulis <span dir="ltr"><<a href="mailto:denis.cirulis@gmail.com" target="_blank">denis.cirulis@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
<div dir="ltr">Hi Marlok,<div>maybe I'm giving too few details of the problem:</div><div><br></div><div>lvm datastore:</div><div><div>[oneadmin@master ~]$ onedatastore show 104</div><div>DATASTORE 104 INFORMATION                                                       </div>




<div>ID             : 104                 </div><div>NAME           : production-ds       </div><div>USER           : oneadmin            </div><div>GROUP          : oneadmin            </div><div>CLUSTER        : production          </div>




<div>TYPE           : IMAGE               </div><div>DS_MAD         : lvm                 </div><div>TM_MAD         : lvm                 </div><div>BASE PATH      : /var/lib/one/datastores/104</div><div>DISK_TYPE      : BLOCK               </div>




<div><br></div><div>PERMISSIONS                                                                     </div><div>OWNER          : um-                 </div><div>GROUP          : u--                 </div><div>OTHER          : ---                 </div>




<div><br></div><div>DATASTORE TEMPLATE                                                              </div><div>CLUSTER="production"</div><div>DS_MAD="lvm"</div><div>HOST="compute01"</div><div>




TM_MAD="lvm"</div><div>VG_NAME="prod-vm"</div><div><br></div><div>IMAGES         </div><div>[oneadmin@master ~]$ </div></div><div><br></div><div>compute01 is a kvm node where lvm operations will be held, cause backing storage for that is fibre channel lun, which then will be accessible on all compute nodes.<br>




</div><div><br></div><div>Then, I imported ttylinux image to production-ds datastore and all I got in Images section of the Sunstone UI is :</div><div>   Tue May 28 17:19:53 2013 : Error copying image in the datastore: Error registering compute01:/dev/prod-vm/lv-one-7<br>




</div><div>User oneadmin is in sudoers and is able to launch any lv* command through sudo.</div><div><br></div><div><br></div><div><br></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div>


<div><div><div>
On Tue, May 28, 2013 at 5:08 PM, Marlok Tamás <span dir="ltr"><<a href="mailto:tmarlok@sztaki.hu" target="_blank">tmarlok@sztaki.hu</a>></span> wrote:<br>
</div></div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Hi Denis,<br><br></div>You should first create, the lvm datasore in opennebula. After that, when you import the image from marketplace, you can select this lvm datastore (instead of default ds).<br>




<div class="gmail_extra">
<br></div><div class="gmail_extra">Hope this helps.<br></div></div></div></div></div><div class="gmail_extra"><br clear="all"><div>Cheers,<br>tmarlok<br></div>
<br><br><div class="gmail_quote"><div><div><div><div><div><div>On Tue, May 28, 2013 at 3:24 PM, Denis J. Cirulis <span dir="ltr"><<a href="mailto:denis.cirulis@gmail.com" target="_blank">denis.cirulis@gmail.com</a>></span> wrote:<br>




</div></div></div></div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div><div><div><div>
<div dir="ltr">Hello list,<div>I imported predefined lvm vg to opennebula using lvm driver and lvm transfer driver. Adjusted HOST variable with hostname of compute node where all lvm operations will be held. oneadmin can login via ssh without password and is in sudoers group to execure all lvm related commands.</div>






<div>I downloaded CentOS KVM ready-made image from marketplace, imported with default settings (default datastore).</div><div><br></div><div>When I'm trying to create template for this image I can not see where should I mention datastore (in my case lvm ds) where virtual machine images will be created.</div>






<div>What I'm doing wrong ? I see no lv-one-ID volumes in vg.</div></div>
<br></div></div>_______________________________________________<br>
Users mailing list<br>
</div></div></div></div><a href="mailto:Users@lists.opennebula.org" target="_blank">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></div></div>
</blockquote></div><br></div>
</blockquote></div><br></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>