<div dir="ltr">Same as context, use TARGET in the DISK attribute<div><br></div><div>DISK = [ IMAGE="CentOS-root" , TARGET="sda1" ]</div><div><br></div><div>Probably, setting it at the image level is a better idea as the TARGET value is inherited from there. So update the image template and simply add </div>
<div><br></div><div>TARGET=sda1</div><div><br></div><div>to it.</div><div><br></div><div>Cheers</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Sep 9, 2013 at 7:06 PM, <span dir="ltr"><<a href="mailto:kenny.kenny@bol.com.br" target="_blank">kenny.kenny@bol.com.br</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Thanks Ruben.<br> <br><br></div>
<div>Do you know what i need to do in the template file to have sda1 and sda2 (like my xen.cfg) in the deployment.0 ?</div>
<div> </div>
<div> </div>
<hr style="border-top:1px solid #ccc">
<div>Em 09/09/2013 13:22, <strong>Ruben S. Montero < <a href="mailto:rsmontero@opennebula.org" target="_blank">rsmontero@opennebula.org</a> ></strong> escreveu:</div>
<div dir="ltr">That's the context device, either add a target for it (as part of CONTEXT definition) or remove the context section <a href="http://opennebula.org/documentation:rel4.2:template#context_section" target="_blank">http://opennebula.org/documentation:rel4.2:template#context_section</a>
<div> </div>
<div>CONTEXT=[NETWORK="YES",SSH_PUBLIC_KEY="$USER[SSH_PUBLIC_KEY]"]</div>
<div> </div>
<div>Cheers</div>
</div>
<div class="gmail_extra"><br><br>
<div class="gmail_quote">On Mon, Sep 9, 2013 at 6:19 PM, <span dir="ltr"><<a href="http://../../../undefined/compose?to=kenny.kenny@bol.com.br" target="_blank">kenny.kenny@bol.com.br</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>Thanks for the reply.<br> <br>I take a look at the deployment.0 and i see that:</div>
<div><em>name = 'one-45'</em><br><em>#O CPU_CREDITS = 256</em><br><em>memory = '256'</em><br><em>vcpus = '1'</em><br><em>bootloader = "/usr/lib/xen/bin/pygrub"</em><br><em>disk = [</em><br>
<em> 'file:/var/lib/one//datastores/0/45/disk.0,sda,w',</em><br><em> 'file:/var/lib/one//datastores/0/45/disk.1,sdb,w',</em><br><em> <strong>'tap:aio:/var/lib/one//datastores/0/45/disk.2,hda,r',</strong></em><br>
<em>]</em><br><em>vif = [</em><br><em> ' mac=02:00:0a:00:03:6a,ip=10.0.3.106,bridge=virbr0',</em><br><em>]</em><br><em>vfb = ['type=vnc,vnclisten=0.0.0.0,vncdisplay=45,vncpasswd=123456']</em><br><br></div>
<div>I didŽnt configure the disk in bold. Whyy opennebula created this?</div>
<div> </div>
<div>My template:</div>
<div><br><em>CLUSTER_100="100"</em><br><em>CONTEXT=[NETWORK="YES",SSH_PUBLIC_KEY="$USER[SSH_PUBLIC_KEY]"]</em><br><em>CPU="1"</em><br><em>DISK=[DEV_PREFIX="sd",DRIVER="file:",IMAGE_ID="7",READONLY="no"]</em><br>
<em>DISK=[DEV_PREFIX="sd",DRIVER="file:",READONLY="no",SIZE="256",TYPE="swap"]</em><br><em>GRAPHICS=[LISTEN="0.0.0.0",PASSWD="123456",TYPE="VNC"]</em><br>
<em>MEMORY="256"</em><br><em>NIC=[NETWORK_ID="1"]</em><br><em>OS=[BOOTLOADER="/usr/lib/xen/bin/pygrub",ROOT="sda"]</em><br><em>REQUIREMENTS="CLUSTER_ID=\"100\""</em><br>
<em>VCPU="1"</em></div>
<div> </div>
<div>Thanks.</div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<hr style="border-top:1px solid #ccc">
<div>Em 09/09/2013 05:25, <strong>Ruben S. Montero < <a href="http://../../../undefined/compose?to=rsmontero@opennebula.org" target="_blank">rsmontero@opennebula.org</a> ></strong> escreveu:</div>
<div dir="ltr">Hi
<div> </div>
<div>Take a look at a file named "deployment.0", it is the .cfg file generated by OpenNebula. Compare this file with your working cfg file, probably you are not using the right bus/mapping. OpenNebula uses a disk approach to automatically set targets (sda, sdb,...) while your template uses a partition based layout (sda1, sda2...). So probably you'll need to set TARGET attribute in the Image template or in the VM template in the DISK attribute.</div>
<div> </div>
<div>Cheers</div>
<div> </div>
<div>Ruben</div>
</div>
<div class="gmail_extra"><br><br>
<div class="gmail_quote">On Sun, Sep 8, 2013 at 9:33 PM, <span dir="ltr"><<a href="http://../../../undefined/compose?to=kenny.kenny@bol.com.br" target="_blank">kenny.kenny@bol.com.br</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>Hello,</div>
<div>I have a xen 4.2 , running ok on a ubuntu 12.10 machine.</div>
<div> </div>
<div>When i create the virtual machine by xm create ubuntu.cfg , it is ok.</div>
<div>But when i create the virtual machine, with the same image disk by opennebula (4.2) i get this error in domU ( i see the error by xm console in xen host):</div>
<div> </div>
<div> <em>1.274565] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: <a href="http://../../../undefined/compose?to=dm-devel@redhat.com" target="_blank">dm-devel@redhat.com</a></em><br><em>[ 1.274590] EFI Variables Facility v0.08 2004-May-17</em><br>
<em>[ 1.274975] TCP cubic registered</em><br><em>[ 1.275354] NET: Registered protocol family 10</em><br><em>[ 1.276538] NET: Registered protocol family 17</em><br><em>[ 1.276557] Registering the dns_resolver key type</em><br>
<em>[ 1.276762] registered taskstats version 1</em><br><em>[ 6.388086] XENBUS: Waiting for devices to initialise: 25s...20s...15s...10s...5s...0s...235s...230s...225s...220s...215s...210s...205s...200s...195s...190s...185s...180s...175s...170s...165s...160s...155s...150s...145s...140s...135s...130s...125s...120s...115s...110s...105s...100s...</em><br>
<em>Gave up waiting for root device. Common problems:</em><br><em> - Boot args (cat
/proc/ cmdline)</em><br><em> - Check rootdelay= (did the system wait long enough?)<br><em> - Check root= (did the system wait for the right device?)</em><br> <em> - Missing modules (cat /proc/modules; ls /dev)</em><br>
<em>ALERT! /dev/xvda2 does not exist. Dropping to a shell!</em><br> <br></em></div>
<div>my ubuntu.cfg :</div>
<div><em>#kernel = "/vmlinuz"</em><br><em>#ramdisk = "/initrd.gz"</em><br><em>bootloader ='/usr/lib/xen/bin/pygrub'</em><br><em>name = "ubuntu3"</em><br><em>memory = '512'</em><br>
<em>dhcp = 'dhcp'</em><br><em>vif = ['mac=00:00:00:8F:D9:46']</em><br><br><em>disk = [</em><br><em> 'file:/vms/images/ubuntu3/disk.img,sda2,w',</em><br><em> 'file:/vms/images/ubuntu3/swap.img,sda1,w',</em><br>
<em> ]</em><br><em>on_poweroff = 'destroy'</em><br><em>on_reboot = 'restart'</em><br><em>on_crash = 'restart'</em><br><br></div>
<div>Anybody knows what is the problem ?</div>
<div>How can i "convert" a xen .cfg to a opennebula template ?</div>
<div> </div>
<div>Thanks.</div>
<div> </div>
<br>_______________________________________________<br> Users mailing list<br> <a href="http://../../../undefined/compose?to=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></blockquote>
</div>
<br><br>
<div> </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="http://../../../undefined/compose?to=rsmontero@opennebula.org" target="_blank">rsmontero@opennebula.org</a> | @OpenNebula</div>
</div>
<div> </div>
</blockquote>
</div>
<br><br>
<div> </div>
-- <br><span class="HOEnZb"><font color="#888888">
<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="http://../../../undefined/compose?to=rsmontero@opennebula.org" target="_blank">rsmontero@opennebula.org</a> | @OpenNebula</div>
</font></span></div>
<div> </div>
</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>