Hi,<br><br>Thanks for the reply.<br><br>So Target can be any name like hda1 sda1 etc right?<br><br>You mean  "virtualDiskFilePath" is a blank disk created on Node using dd command<br><br>or is it the .img created uisng virt-install.<br>
<br>Thanks,<br>Anoop<br><br><div class="gmail_quote">On Tue, Feb 1, 2011 at 6:10 PM,  <span dir="ltr"><<a href="mailto:Daniel.MOLDOVAN@cs.utcluj.ro">Daniel.MOLDOVAN@cs.utcluj.ro</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hy,<br>
The target is the virtual target for the virtual disk. I have no used the<br>
images repository until now and i am using KVM so i'm not entirely sure<br>
what DISK types XEN supports . However, this might be useful so : using an<br>
already existing virtual machine virtual disk i declare<br>
<br>
DISK   = [<br>
   type = disk,<br>
   clone=no,<br>
   size =4096,<br>
   format = ext3,<br>
   source= "virtualDiskFilePath",<br>
   target   = hda,<br>
   readonly = "no"<br>
   ]<br>
. Then, i have in the OS section<br>
OS     = [<br>
   boot = hd,<br>
   ROOT = hda<br>
  ]<br>
Note that hda is just the target inside the virtual machine.<br>
<br>
And for booting a XEN kernel located on the Host computer, NOT in the<br>
virtual machine, use<br>
OS     = [<br>
   boot = hd,<br>
   ROOT = hda,<br>
   kernel = "/boot/vmlinuz-2.6.35-22-server",<br>
   initrd = "/boot/initrd.img-2.6.35-22-server",<br>
  ]<br>
where "boot/vmlinuz-2.6.35-22-server" should be replaced by the path to<br>
your kernel and its name,<br>
as shown in <a href="http://opennebula.org/documentation:rel2.0:template" target="_blank">http://opennebula.org/documentation:rel2.0:template</a> OS section.<br>
<br>
Hope this helps.<br>
<br>
Regards<br>
<br>
În Mar, Februarie 1, 2011 1:16 pm, anoop Lekshmanan a scris:<br>
<div><div></div><div class="h5">> Thanks Daniel.<br>
><br>
><br>
> I have Xen installed and XenDom0 running on a node and I have<br>
> successfully connected to the Node.<br>
><br>
> ID NAME              CLUSTER  RVM   TCPU   FCPU   ACPU    TMEM    FMEM<br>
> STAT<br>
> 0 node-0                 default        0        400      395 400<br>
> 7.9G      1024K  off<br>
> 1 node1                  default        0        400      398     400<br>
> 7.9G      7.2G   on<br>
><br>
><br>
> I have created an image template of CentOS DVD ISO:<br>
> NAME          = "CentOS 5.5 Base"<br>
> PATH          = /opt/cloud/one/images/CentOS-5.5-x86_64-bin-DVD-1of2.iso<br>
> PUBLIC        = YES<br>
> DESCRIPTION   = "CentOS 5.5 for testing"<br>
><br>
><br>
> Then registered the template and oneimage lsited it:<br>
><br>
><br>
> oneimage list ID     USER                 NAME TYPE              REGTIME<br>
> PUB PER STAT<br>
> #VMS<br>
> 1 oneadmin      CentOS 5.5 Base   OS   Jan 31, 2011 11:14 Yes  No<br>
> rdy     0<br>
><br>
> I have created vnet using onevnet with name LAN2.<br>
><br>
><br>
> Now I am trying to start a VM on the node using this image.<br>
><br>
><br>
> I have created the vm template as:<br>
><br>
><br>
> CPU    = 1<br>
> MEMORY = 2056<br>
><br>
><br>
> DISK = [ image  = "CentOS 5.5 Base" ]<br>
><br>
><br>
> DISK = [ type   = swap,<br>
> size   = 3072 ]<br>
><br>
> #swap of 3 GB<br>
> DISK = [ type   = swap,<br>
> size   = 3072 ] #/ root file system of 10 GB<br>
><br>
><br>
> DISK = [ TYPE   = fs,<br>
> SIZE   = 10240,<br>
> FORMAT = ext3,<br>
> SAVE   = yes,<br>
> TARGET = ? ]<br>
> NIC    = [ NETWORK = "LAN2" ]<br>
><br>
><br>
> GRAPHICS = [type="vnc",listen="0.0.0.0",port="1"]<br>
><br>
><br>
> What could be the Target, I have /vm on hda3 ( not a separate partition<br>
> but / of my Xen Host)<br>
> I am trying to have a 10 GB / mount and 3 GB swap space. How can I set the<br>
>  rest  like kernel etc....<br>
><br>
> I have no idea how to create the disk,  I have no separate partitions for<br>
>  Xen guest, partitions I have are / /boot and swap. I have a /vm<br>
> directory for keeping Guests.  Should I re-instal the machine with<br>
> separate /vm partition?<br>
><br>
> I am stuck on this for some time. It would be great if some one can help<br>
> me.<br>
><br>
> Thanks,<br>
> Anoop<br>
><br>
><br>
><br>
><br>
> On Tue, Feb 1, 2011 at 12:42 PM, <<a href="mailto:Daniel.MOLDOVAN@cs.utcluj.ro">Daniel.MOLDOVAN@cs.utcluj.ro</a>> wrote:<br>
><br>
><br>
>> Hello,<br>
>> Look at <a href="http://www.opennebula.org/documentation:rel2.0:template" target="_blank">http://www.opennebula.org/documentation:rel2.0:template</a> . And<br>
>> depending on your needs you can create both swap partitions and disk and<br>
>>  so on. You need at least one boot partition which is the root for the<br>
>> OS<br>
>> in the case you are using KVM. For XEN you can use a kernel located on<br>
>> the host to boot the VM. Regarding the disk concepts,think at each disk<br>
>> as a separate storage drive, depending on the storage type(cdrom, disk,<br>
>> swap, etc).<br>
>><br>
>> P.S. Is ONE not ON :P<br>
>><br>
>><br>
>><br>
>> În Lun, Ianuarie 31, 2011 10:27 pm, anoop Lekshmanan a scris:<br>
>><br>
>>> Thanks Nikolay.<br>
>>><br>
>>><br>
>>><br>
>>> One more question, on deploying like this how can I choose/customize<br>
>>> disk for thus deployed VMs like /, swap, boot etc. I had gone through<br>
>>> ON<br>
>>> docs, but I dont understand the disk concepts, should we create<br>
>> partitions<br>
>>> /,swap,<br>
>>> boot on the node for VM. What does Target means, should we create<br>
>>> target partitions before running the deploy commands.<br>
>>><br>
>>> Sorry for bothering you, I am totally confused on this part.<br>
>>><br>
>>><br>
>>><br>
>>> Thanks,<br>
>>> Anoop<br>
>>><br>
>>><br>
>>><br>
>>> On Tue, Feb 1, 2011 at 1:42 AM, <<a href="mailto:knawnd@gmail.com">knawnd@gmail.com</a>> wrote:<br>
>>><br>
>>><br>
>>><br>
>>>> anoop Lekshmanan wrote on 31/01/11 23:04:<br>
>>>><br>
>>>> Hi Nikolay,<br>
>>>><br>
>>>><br>
>>>>><br>
>>>>> Thanks!<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> I have used the registered image with VM template but on onevm<br>
>>>>> create template-name the vm state continues be on pending.<br>
>>>>><br>
>>>> To run VM it needs to be deployed apart from creating VM<br>
>>>> $ onevm deploy <VM_id> <Host_id><br>
>>>><br>
>>>><br>
>>>><br>
>>>> VM_id is virtual machine id  (specified in first column on 'onevm<br>
>>>> list') Host_id is registered in ON host id ('onehost list') E.g.<br>
>>>> $ onevm deploy 9 3<br>
>>>><br>
>>>><br>
>>>><br>
>>>> Hope it helps,<br>
>>>> Nikolay.<br>
>>>><br>
>>>><br>
>>>><br>
>>>> _______________________________________________<br>
>>>> Users mailing list<br>
>>>> <a href="mailto:Users@lists.opennebula.org">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>
>>>><br>
>>>><br>
>>> _______________________________________________<br>
>>> Users mailing list<br>
>>> <a href="mailto:Users@lists.opennebula.org">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>
>>><br>
>>><br>
>><br>
>><br>
>><br>
><br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">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>
</div></div></blockquote></div><br>