<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Has anyone ever created a VM in opennebula? I tried millions of times, but allways in vain. I suppose it is the problem of my templates. </DIV>
<DIV>Here is my vm template:</DIV>
<DIV> </DIV>
<DIV>######### ######the start of the template#####################</DIV>
<DIV>CPU     = 1<BR>MEMORY  = 128</DIV>
<DIV>DISK = [<BR>        source = "/home/xen/domains/xen1/disk.img", # this is the file system disk image</DIV>
<DIV>        target = "sda"        ]</DIV>
<DIV><BR>OS      = [<BR>        KERNEL  = "/home/srv/cloud/template/vm/vmlinuz.img",<BR>        INITRD  = "/home/srv/cloud/template/vm/initrd.img"        ]</DIV>
<DIV> </DIV>
<DIV>NIC     = [NETWORK = "private lan" ]</DIV>
<DIV> </DIV>
<DIV>CONTEXT = [<BR>        HOSTNAME        = "$NAME",<BR>        IP_PUBLIC       = "$NIC[IP, NETWORK=\"private lan\"]",<BR>        USERNAME        = "$NAME",<BR>        FILE    = "/home/srv/cloud/template/vm/init.sh",<BR>        target  = sdb ]<BR>######### ######the end of the template##############</DIV>
<DIV> </DIV>
<DIV>in the NIC section, I connect this vm to a network named "private lan", which is registered with a net template, below is the details of this net template:</DIV>
<DIV> </DIV>
<DIV>######### ######the start of the net template##############</DIV>
<DIV>NAME = "private lan"<BR>TYPE = FIXED<BR>PUBLIC = NO<BR>BRIDGE = eth0  #the bridge is created by xen<BR>LEASES = [IP=10.214.0.250]<BR>LEASES = [IP=10.214.0.251]<BR>LEASES = [IP=10.214.0.252]<BR>LEASES = [IP=10.214.0.253]<BR>LEASES = [IP=10.214.0.254]<BR>######### ######the end of the net template##############</DIV>
<DIV> </DIV>
<DIV>I create a VM using the "onevm create" command, and it finally turns out that the new VM is in running state</DIV>
<DIV><A href="mailto:root@ccnt:/home/srv/cloud/template/vm">root@ccnt:/home/srv/cloud/template/vm</A># onevm list</DIV>
<DIV>   ID     USER     NAME STAT CPU     MEM        HOSTNAME        TIME<BR>   42    cloud   one-42 <FONT color=#ff0000>runn</FONT>   0         0K          cloud55      00   00:01:14</DIV>
<DIV> </DIV>
<DIV>and we can see this VM(one-42) with "xm list" command as well</DIV>
<DIV><A href="mailto:root@ccnt:/home/srv/cloud/template/vm">root@ccnt:/home/srv/cloud/template/vm</A># xm list<BR>Name                                        ID   Mem VCPUs      State   Time(s)<BR>Domain-0                                     0 22676    16     r-----  11604.5<BR>one-42                                      30   128     1      -b----      1.0<BR></DIV>
<DIV>but when I use "xm console one-42" to login it, the screen pasts a hell lot of message, whitch contains some error message bellow:</DIV>
<DIV> </DIV>
<DIV>[    0.168687] XENBUS: Device with no driver: device/vbd/2048<BR>[    0.168693] XENBUS: Device with no driver: device/vbd/2064<BR>[    0.168699] XENBUS: Device with no driver: device/vif/0<BR>[    0.168705] XENBUS: Device with no driver: device/console/0<BR>[    0.168726] /build/buildd-linux-2.6_2.6.32-30-amd64-d4MbNM/linux-2.6-2.6.32/debian/build/source_amd64_none/drivers/rtc/hctosys.c: unable to open rtc device (rtc0)<BR>[    0.168751] Initalizing network drop monitor service<BR>[    0.168834] Freeing unused kernel memory: 592k freed<BR>[    0.169023] Write protecting the kernel read-only data: 4236k<BR>[    0.212211] udev[46]: starting version 164<BR>[    0.288008] Initialising Xen virtual ethernet driver.<BR>[    5.396019] XENBUS: Waiting for devices to initialise:
 295s...290s...285s...280s...275s...270s...265s...260s...255s...250s...245s...240s...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...95s...90s...85s...80s...75s...70s...65s...60s...55s...50s...45s...40s...35s...30s...25s...20s...15s...10s...5s...0s...<BR>[  300.396162] XENBUS: Timeout connecting to device: device/vbd/2048 (local state 3, remote state 1)<BR>[  300.396255] XENBUS: Timeout connecting to device: device/vbd/2064 (local state 3, remote state 1)<BR><BR>It seems that we lack some device driver. Is it because I used the wrong format or wrong variables of VM template?</DIV>
<DIV>Who knows?</DIV>
<DIV> </DIV>
<DIV>Above all are my problems. I think it is because I didn't get the right template format.</DIV>
<DIV> </DIV>
<DIV>Who has ever created VM successfully? Can anybody share your templates here?</DIV></td></tr></table>