Hi Dan,<div><br></div><div>Try using $NAME instead of ${NAME} in the files attribute definition:</div><div><br></div><div><div>   files      = "      /srv/cloud/one/one-templates/k5login \</div><div>                       /srv/cloud/one/one-templates/$NAME-krb5.keytab \</div>

<div>                       /srv/cloud/one/one-templates/ssh_host_dsa_key \</div><div>                       /srv/cloud/one/one-templates/ssh_host_dsa_key.pub \</div><div>                       /srv/cloud/one/one-templates/init.sh \</div>

<div>                       /srv/cloud/one/.ssh/id_dsa.pub",</div><div><br></div><div>This should get the CONTEXT section correctly parsed. </div><div><br></div><div>What is strange, though, is that it seems that OpenNebula allowed the VM through but removing the CONTEXT section, and I don't see how did that happen. Would you mind sending your oned.log file over so I can take a look?</div>

<div><br></div><div>Regards,</div><div><br></div><div>-Tino</div><div><br></div>--<br>Constantino Vázquez Blanco | <a href="http://dsa-research.org/tinova">dsa-research.org/tinova</a><br>Virtualization Technology Engineer / Researcher<br>

OpenNebula Toolkit | <a href="http://opennebula.org">opennebula.org</a><br>
<br><br><div class="gmail_quote">On Mon, Jul 19, 2010 at 10:35 PM, Dan Yocum <span dir="ltr"><<a href="mailto:yocum@fnal.gov">yocum@fnal.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Tino,<br>
<br>
Here's the template I'm using - there is a CONTEXT section, so I'm confused.<br>
<br>
Thanks,<br>
Dan<br>
<br>
<br>
####################################################<br>
NAME   = fermicloud012<br>
CPU    = 0.2<br>
MEMORY = 1024<br>
<br>
DISK   = [<br>
  source   = "/scratch/images/fclvm01.img",<br>
  target   = "vda",<br>
  readonly = "no" ]<br>
<br>
NIC    = [ NETWORK = "FermiCloud" ]<br>
<br>
FEATURES=[ acpi="no" ]<br>
<br>
GRAPHICS = [<br>
  type    = "vnc",<br>
  listen  = "127.0.0.1",<br>
  port    = "5900"]<br>
<br>
CONTEXT = [<br>
    hostname    = "$NAME",<br>
    ip_public   = "131.225.154.145",<br>
    netmask     = "255.255.254.0",<br>
    gateway     = "131.225.154.1",<br>
    ns          = "131.225.8.120",<br>
    files      = "      /srv/cloud/one/one-templates/k5login \<br>
                        /srv/cloud/one/one-templates/${NAME}-krb5.keytab \<br>
                        /srv/cloud/one/one-templates/ssh_host_dsa_key \<br>
                        /srv/cloud/one/one-templates/ssh_host_dsa_key.pub \<br>
                        /srv/cloud/one/one-templates/init.sh \<br>
                        /srv/cloud/one/.ssh/id_dsa.pub",<br>
    target      = "hdc",<br>
    root_pubkey = "id_dsa.pub",<br>
    username    = "opennebula",<br>
    user_pubkey = "id_dsa.pub"<br>
]<br>
<br>
####################################################<div class="im"><br>
<br>
On 07/19/2010 02:27 PM, Tino Vazquez wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Dan,<br>
<br><div class="im">
Sorry for the delay, kind of hectic this days.<br>
<br>
It seems at first sight that you are not including in the VM template<br>
the CONTEXT section [1], which will explain why you are not getting the<br>
block device attached to your VM.<br>
<br>
Best regards,<br>
<br>
-Tino<br>
<br>
[1] <a href="http://opennebula.org/documentation:rel1.4:template#context_section" target="_blank">http://opennebula.org/documentation:rel1.4:template#context_section</a><br>
<br>
--<br>
Constantino Vázquez Blanco | <a href="http://dsa-research.org/tinova" target="_blank">dsa-research.org/tinova</a><br></div><div class="im">
<<a href="http://dsa-research.org/tinova" target="_blank">http://dsa-research.org/tinova</a>><br>
Virtualization Technology Engineer / Researcher<br>
OpenNebula Toolkit | <a href="http://opennebula.org" target="_blank">opennebula.org</a> <<a href="http://opennebula.org" target="_blank">http://opennebula.org</a>><br>
<br>
<br></div><div class="im">
On Mon, Jul 19, 2010 at 9:15 PM, Dan Yocum <<a href="mailto:yocum@fnal.gov" target="_blank">yocum@fnal.gov</a><br></div><div class="im">
<mailto:<a href="mailto:yocum@fnal.gov" target="_blank">yocum@fnal.gov</a>>> wrote:<br>
<br></div><div><div></div><div class="h5">
    Hi Tino,<br>
<br>
    Do you seen anything in here where I've made a mistake?<br>
<br>
    Thanks,<br>
    Dan<br>
<br>
<br>
<br>
    On 07/16/2010 02:58 PM, Dan Yocum wrote:<br>
<br>
        Tino,<br>
<br>
        Sorry for the delay - we're doing a bunch of upgrades over the last<br>
        couple of days. Here's the output you requested:<br>
<br>
        $ onevm show 21<br>
        VIRTUAL MACHINE 21 INFORMATION<br>
        ID : 21<br>
        NAME : fermicloud012<br>
        STATE : ACTIVE<br>
        LCM_STATE : RUNNING<br>
        START TIME : 07/08 09:25:49<br>
        END TIME : -<br>
        DEPLOY ID: : one-21<br>
<br>
        VIRTUAL MACHINE TEMPLATE<br>
        CPU=0.2<br>
        DISK=[<br>
        READONLY=no,<br>
        SOURCE=/scratch/images/fclvm01.img,<br>
        TARGET=vda ]<br>
        FEATURES=[<br>
        ACPI=no ]<br>
        GRAPHICS=[<br>
        LISTEN=127.0.0.1,<br>
        PORT=5900,<br>
        TYPE=vnc ]<br>
        MEMORY=1024<br>
        NAME=fermicloud012<br>
        NIC=[<br>
        BRIDGE=br0,<br>
        IP=131.225.154.145,<br>
        MAC=54:52:83:e1:9a:91,<br>
        NETWORK=Small network,<br>
        VNID=0 ]<br>
        VMID=21<br>
<br>
<br>
        Did I send you the command that is being sent to the workernode<br>
        from the<br>
        /var/log/libvirtd/qemu/one-21.log file? I can't recall. Here it is:<br>
<br>
        LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin /usr/bin/kvm -S -M<br>
        rhel5.4.0<br>
        -m 1024 -smp 1 -name one-21 -uuid<br>
        3bab90ea-1dcf-9601-8819-7e0cbdc9eb46<br>
        -no-kvm-pit-reinjection -monitor pty -pidfile<br>
        /var/run/libvirt/qemu//one-21.pid -no-acpi -boot c -drive<br>
        file=/srv/cloud/one/var//21/images/disk.0,if=virtio,index=0,boot=on<br>
        -net<br>
        nic,macaddr=54:52:83:e1:9a:91,vlan=0 -net<br>
        tap,fd=16,script=,vlan=0,ifname=vnet0 -serial none -parallel<br>
        none -usb<br></div></div>
        -vnc <a href="http://127.0.0.1:0" target="_blank">127.0.0.1:0</a> <<a href="http://127.0.0.1:0" target="_blank">http://127.0.0.1:0</a>><div class="im"><br>
        char device redirected to /dev/pts/0<br>
<br>
        I notice that there is nothing in the -drive options like<br>
        'if=ide,media=cdrom,index=2'. Do you know why?<br>
<br>
        Thanks,<br>
        Dan<br>
<br>
<br>
        On 07/14/2010 08:45 AM, Tino Vazquez wrote:<br>
<br>
            Hi Dan,<br>
<br>
             From the log file provided, it looks like OpenNebula<br>
            doesn't think it<br>
            needs to create a context for this VM.<br>
<br>
            Thu Jul 8 09:25:53 2010 [VM][I]: Virtual Machine has no context<br>
<br>
            which is weird. Could you provide also with<br>
<br>
            onevm show 21<br>
<br>
            ?<br>
<br>
            Regards,<br>
<br>
            -Tino<br>
<br>
            --<br>
            Constantino Vázquez Blanco | <a href="http://dsa-research.org/tinova" target="_blank">dsa-research.org/tinova</a><br>
            <<a href="http://dsa-research.org/tinova" target="_blank">http://dsa-research.org/tinova</a>><br></div><div class="im">
            <<a href="http://dsa-research.org/tinova" target="_blank">http://dsa-research.org/tinova</a>><br>
            Virtualization Technology Engineer / Researcher<br>
            OpenNebula Toolkit | <a href="http://opennebula.org" target="_blank">opennebula.org</a> <<a href="http://opennebula.org" target="_blank">http://opennebula.org</a>><br>
            <<a href="http://opennebula.org" target="_blank">http://opennebula.org</a>><br>
<br>
<br></div><div class="im">
            On Mon, Jul 12, 2010 at 11:14 PM, Dan Yocum <<a href="mailto:yocum@fnal.gov" target="_blank">yocum@fnal.gov</a><br>
            <mailto:<a href="mailto:yocum@fnal.gov" target="_blank">yocum@fnal.gov</a>><br></div><div class="im">
            <mailto:<a href="mailto:yocum@fnal.gov" target="_blank">yocum@fnal.gov</a> <mailto:<a href="mailto:yocum@fnal.gov" target="_blank">yocum@fnal.gov</a>>>> wrote:<br>
<br></div><div><div></div><div class="h5">
            Tino,<br>
<br>
            They are attached.<br>
<br>
            Thanks!<br>
            Dan<br>
<br>
<br>
<br>
            On 07/10/2010 01:01 PM, Tino Vazquez wrote:<br>
<br>
            Hi Dan,<br>
<br>
            Could you send us the $ONE_LOCATION/var/<vid>/deployment.0 file?<br>
<br>
            Regards,<br>
<br>
            -Tino<br>
<br>
            --<br>
            Constantino Vázquez Blanco | <a href="http://dsa-research.org/tinova" target="_blank">dsa-research.org/tinova</a><br>
            <<a href="http://dsa-research.org/tinova" target="_blank">http://dsa-research.org/tinova</a>><br>
            <<a href="http://dsa-research.org/tinova" target="_blank">http://dsa-research.org/tinova</a>><br>
            <<a href="http://dsa-research.org/tinova" target="_blank">http://dsa-research.org/tinova</a>><br>
            Virtualization Technology Engineer / Researcher<br>
            OpenNebula Toolkit | <a href="http://opennebula.org" target="_blank">opennebula.org</a> <<a href="http://opennebula.org" target="_blank">http://opennebula.org</a>><br>
            <<a href="http://opennebula.org" target="_blank">http://opennebula.org</a>><br>
            <<a href="http://opennebula.org" target="_blank">http://opennebula.org</a>><br>
<br>
<br>
<br>
            On Thu, Jul 8, 2010 at 11:06 PM, Dan Yocum <<a href="mailto:yocum@fnal.gov" target="_blank">yocum@fnal.gov</a><br>
            <mailto:<a href="mailto:yocum@fnal.gov" target="_blank">yocum@fnal.gov</a>><br>
            <mailto:<a href="mailto:yocum@fnal.gov" target="_blank">yocum@fnal.gov</a> <mailto:<a href="mailto:yocum@fnal.gov" target="_blank">yocum@fnal.gov</a>>><br>
            <mailto:<a href="mailto:yocum@fnal.gov" target="_blank">yocum@fnal.gov</a> <mailto:<a href="mailto:yocum@fnal.gov" target="_blank">yocum@fnal.gov</a>><br>
            <mailto:<a href="mailto:yocum@fnal.gov" target="_blank">yocum@fnal.gov</a> <mailto:<a href="mailto:yocum@fnal.gov" target="_blank">yocum@fnal.gov</a>>>>> wrote:<br>
<br>
            Well, I've run across something interesting - I don't see any<br>
            reference to a cdrom in the /var/log/libvirt/qemu/one-NN.log<br>
            file<br>
            for this VM.<br>
<br>
            Why not? I specified an hdc device in the CONTEXT section<br>
            of the<br>
            template file...<br>
<br>
            Dan<br>
<br>
<br>
            On 07/08/2010 03:29 PM, Dan Yocum wrote:<br>
<br>
            Hi All,<br>
<br>
            I've finally got a VM booting on KVM and Scientific<br>
            Linux Fermi v55<br>
            (RHEL binary compatible), but for some strange reason it<br>
            doesn't<br>
            want to<br>
            mount the hdc device to run the init.sh script to set up the<br>
            context.<br>
<br>
            Trying to mount it manually, I get the classic "no<br>
            medium found"<br>
            error<br>
            and dmesg says:<br>
<br>
            hdc: drive_cmd: status=0x41 { DriveReady Error }<br>
            hdc: drive_cmd: error=0x04 { AbortedCommand }<br>
<br>
            I'm sure this is a simple problem but I just can't see<br>
            what I'm<br>
            doing<br>
            wrong.<br>
<br>
            Any ideas?<br>
<br>
            Thanks!<br>
            Dan<br>
<br>
<br>
<br>
            --<br>
            Dan Yocum<br>
            Fermilab 630.840.6509<br>
            <a href="mailto:yocum@fnal.gov" target="_blank">yocum@fnal.gov</a> <mailto:<a href="mailto:yocum@fnal.gov" target="_blank">yocum@fnal.gov</a>><br>
            <mailto:<a href="mailto:yocum@fnal.gov" target="_blank">yocum@fnal.gov</a> <mailto:<a href="mailto:yocum@fnal.gov" target="_blank">yocum@fnal.gov</a>>><br>
            <mailto:<a href="mailto:yocum@fnal.gov" target="_blank">yocum@fnal.gov</a> <mailto:<a href="mailto:yocum@fnal.gov" target="_blank">yocum@fnal.gov</a>><br></div></div>
            <mailto:<a href="mailto:yocum@fnal.gov" target="_blank">yocum@fnal.gov</a> <mailto:<a href="mailto:yocum@fnal.gov" target="_blank">yocum@fnal.gov</a>>>>,<div class="im"><br>
            <a href="http://fermigrid.fnal.gov" target="_blank">http://fermigrid.fnal.gov</a><br>
<br>
            "I fly because it releases my mind from the tyranny of petty<br>
            things."<br>
            _______________________________________________<br>
            Users mailing list<br>
            <a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
            <mailto:<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a>><br>
            <mailto:<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
            <mailto:<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a>>><br>
            <mailto:<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
            <mailto:<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a>><br>
            <mailto:<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
            <mailto:<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a>>>><br>
<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>
<br>
<br>
            --<br>
            Dan Yocum<br>
            Fermilab 630.840.6509<br>
            <a href="mailto:yocum@fnal.gov" target="_blank">yocum@fnal.gov</a> <mailto:<a href="mailto:yocum@fnal.gov" target="_blank">yocum@fnal.gov</a>><br>
            <mailto:<a href="mailto:yocum@fnal.gov" target="_blank">yocum@fnal.gov</a> <mailto:<a href="mailto:yocum@fnal.gov" target="_blank">yocum@fnal.gov</a>>>,<br>
            <a href="http://fermigrid.fnal.gov" target="_blank">http://fermigrid.fnal.gov</a><br>
            "I fly because it releases my mind from the tyranny of petty<br>
            things."<br>
<br>
<br>
<br>
<br></div><div class="im">
    --<br>
    Dan Yocum<br>
    Fermilab  630.840.6509<br>
    <a href="mailto:yocum@fnal.gov" target="_blank">yocum@fnal.gov</a> <mailto:<a href="mailto:yocum@fnal.gov" target="_blank">yocum@fnal.gov</a>>, <a href="http://fermigrid.fnal.gov" target="_blank">http://fermigrid.fnal.gov</a><br>


    "I fly because it releases my mind from the tyranny of petty things."<br>
<br>
<br>
</div></blockquote><div><div></div><div class="h5">
<br>
-- <br>
Dan Yocum<br>
Fermilab  630.840.6509<br>
<a href="mailto:yocum@fnal.gov" target="_blank">yocum@fnal.gov</a>, <a href="http://fermigrid.fnal.gov" target="_blank">http://fermigrid.fnal.gov</a><br>
"I fly because it releases my mind from the tyranny of petty things."<br>
</div></div></blockquote></div><br></div>