[one-users] Problem Creating VM on fresh install

Giovanni Toraldo me at gionn.net
Sun Oct 21 22:52:31 PDT 2012


Hello Jon,

please always use the Reply-to-all function of your email client when
using public mailing lists.

2012/10/22 Jon <three18ti at gmail.com>:
> Hello Giovanni,
>
> Thanks for your quick reply.
>
> Actually, the only error I see is,
>
>>> Sun Oct 21 22:13:04 2012 [AuM][E]: Auth Error: Could not find
>>> Authorization driver
>
> So I googled the error which brought me to:
> http://lists.opennebula.org/pipermail/users-opennebula.org/2011-August/006282.html
>
> Where they ask if AUTH_MAD is uncommented, in my case it was, but the path
> was not specified:
>
>>  AUTH_MAD = [
>>      executable = "one_auth_mad",
>>      authn = "ssh,x509,ldap,server_cipher,server_x509"
>>  ]
>
> So I set it to the full path:
>
>>  AUTH_MAD = [
>>      executable = "/usr/lib/one/mads/one_auth_mad",
>>      authn = "ssh,x509,ldap,server_cipher,server_x509"
>>  ]
>
> Now authentication is successful, however, I get the following in my
> oned.log logs.
>
> Sun Oct 21 22:47:22 2012 [TM][D]: Message received: LOG I 2 mkimage: Making
> filesystem of 10240M and type ext4 at
> 10.42.0.68:/var/lib/one//datastores/0/2/disk.0
> Sun Oct 21 22:47:22 2012 [TM][D]: Message received: LOG I 2 ExitCode: 0
> Sun Oct 21 22:47:23 2012 [TM][D]: Message received: LOG I 2 mkimage: Making
> filesystem of 1024M and type swap at
> 10.42.0.68:/var/lib/one//datastores/0/2/disk.1
> Sun Oct 21 22:47:23 2012 [TM][D]: Message received: LOG I 2 ExitCode: 0
> Sun Oct 21 22:47:23 2012 [TM][D]: Message received: TRANSFER SUCCESS 2 -
> Sun Oct 21 22:47:24 2012 [VMM][D]: Message received: LOG I 2 ExitCode: 0
> Sun Oct 21 22:47:24 2012 [VMM][D]: Message received: LOG I 2 Successfully
> execute network driver operation: pre.
> Sun Oct 21 22:47:26 2012 [VMM][D]: Message received: LOG I 2 Command
> execution fail: cat << EOT | /var/tmp/one/vmm/kvm/deploy
> /var/lib/one//datastores/0/2/deployment.0 10.42.0.68 2 10.42.0.68
> Sun Oct 21 22:47:26 2012 [VMM][D]: Message received: LOG I 2 error: failed
> to get domain '/var/lib/one//datastores/0/2/deployment.0'
> Sun Oct 21 22:47:26 2012 [VMM][D]: Message received: LOG I 2 error: Domain
> not found: no domain with matching name
> '/var/lib/one//datastores/0/2/deployment.0'
> Sun Oct 21 22:47:26 2012 [VMM][D]: Message received: LOG I 2 error: Failed
> to create domain from /var/lib/one//datastores/0/2/deployment.0
> Sun Oct 21 22:47:26 2012 [VMM][D]: Message received: LOG I 2 error: internal
> error process exited while connecting to monitor: kvm: -drive
> file=/var/lib/one//datastores/0/2/disk.0,if=none,id=drive-ide0-0-0,format=qcow2:
> could not open disk image /var/lib/one//datastores/0/2/disk.0: Permission
> denied
> Sun Oct 21 22:47:26 2012 [VMM][D]: Message received: LOG I 2
> Sun Oct 21 22:47:26 2012 [VMM][D]: Message received: LOG E 2 Could not
> create domain from /var/lib/one//datastores/0/2/deployment.0
> Sun Oct 21 22:47:26 2012 [VMM][D]: Message received: LOG I 2 ExitCode: 255
> Sun Oct 21 22:47:26 2012 [VMM][D]: Message received: LOG I 2 Failed to
> execute virtualization driver operation: deploy.
> Sun Oct 21 22:47:26 2012 [VMM][D]: Message received: DEPLOY FAILURE 2 Could
> not create domain from /var/lib/one//datastores/0/2/deployment.0
> Sun Oct 21 22:47:39 2012 [AuM][D]: Message received: LOG I 3 ExitCode: 0
>
> What it looks like is it's still failing to get a domain -named-
> "/var/lib/one//datastores/0/2/deployment.0".  This file does exist.
>
> The two disks however, belong to user and group root and root.
>
> I also see IM_MAD set without a path for the executable.
>
> IM_MAD = [
>       name       = "im_kvm",
>       executable = "one_im_ssh",
>       arguments  = "-r 0 -t 15 kvm" ]
>
> I set the full path here (is there a better way to resolve the lack of
>
> But I'm still getting the same error:
>
>>> Sun Oct 21 23:02:28 2012 [VMM][D]: Message received: LOG I 4 error:
>>> internal error process exited while connecting to monitor: kvm: -drive
>>> file=/var/lib/one//datastores/0/4/disk.0,if=none,id=drive-ide0-0-0,format=qcow2:
>>> could not open disk image /var/lib/one//datastores/0/4/disk.0: Permission
>>> denied
>
> googling that error brought me back to here:
> http://lists.opennebula.org/pipermail/users-opennebula.org/2010-September/002848.html
>
> Which indicates that I should set the user and group for libvirt to
> oneadmin:cloud.  Problem is, the disk images are owned by root:root.


There are some configuration requirements for KVM hosts, that you
should read on the documentation page and apply them:

http://opennebula.org/documentation:rel3.6:kvmg#kvm_configuration


> I created the template via Sunstone, so there really isn't a template per
> se...  I did a little digging, and it looks like sunstone does store the
> template in the sqlite database.  The following mess of XML looks to be the
> template, I don't see anything that sticks out as a Xen specific.  I did use
> the KVM template in Sunstone to generate this template.
>
> sqlite> select body from template_pool;
> <VMTEMPLATE>
>     <ID>1</ID>
>     <UID>0</UID>
>     <GID>0</GID>
>     <UNAME>oneadmin</UNAME>
>     <GNAME>oneadmin</GNAME>
>     <NAME>Ubuntu Test</NAME>
>     <PERMISSIONS>
>         <OWNER_U>1</OWNER_U>
>         <OWNER_M>1</OWNER_M>
>         <OWNER_A>0</OWNER_A>
>         <GROUP_U>0</GROUP_U>
>         <GROUP_M>0</GROUP_M>
>         <GROUP_A>0</GROUP_A>
>         <OTHER_U>0</OTHER_U>
>         <OTHER_M>0</OTHER_M>
>         <OTHER_A>0</OTHER_A>
>     </PERMISSIONS>
>     <REGTIME>1350791903</REGTIME>
>     <TEMPLATE>
>         <CPU><![CDATA[1]]></CPU>
>         <DISK>
>             <DRIVER><![CDATA[qcow2]]></DRIVER>
>             <FORMAT><![CDATA[ext4]]></FORMAT>
>             <SIZE><![CDATA[10240]]></SIZE>
>             <TYPE><![CDATA[fs]]></TYPE>
>         </DISK>
>         <DISK>
>             <DRIVER><![CDATA[raw]]>
>             </DRIVER>
>             <SIZE><![CDATA[1024]]></SIZE>
>             <TYPE><![CDATA[swap]]></TYPE>
>         </DISK>
>         <GRAPHICS>
>             <LISTEN><![CDATA[0.0.0.0]]></LISTEN>
>             <TYPE><![CDATA[vnc]]></TYPE>
>         </GRAPHICS>
>         <MEMORY><![CDATA[512]]></MEMORY>
>         <NAME><![CDATA[Ubuntu Test]]></NAME>
>         <OS>
>             <ARCH><![CDATA[x86_64]]></ARCH>
>             <BOOT><![CDATA[hd]]></BOOT>
>         </OS>
>         <RAW>
>             <TYPE><![CDATA[kvm]]></TYPE>
>         </RAW>
>         <TEMPLATE_ID><![CDATA[1]]></TEMPLATE_ID>
>         <VCPU><![CDATA[4]]></VCPU>
>     </TEMPLATE>
> </VMTEMPLATE>
>
>
> At this point I'm a little stumped so any help is greatly appreciated.
>
> Thanks Again,
> Jon A
>

-- 
Giovanni Toraldo
http://gionn.net



More information about the Users mailing list