Hello Ruben

that's right....  TARGET doesn't seem to be working (at least with SCSI)

here's a quick example:

------------- open-nebula template:
..........
DISK=[
  DRIVER="raw",
  IMAGE_ID="82",
  READONLY="no",
  TARGET="sda" ]
DISK=[
  DRIVER="raw",
  IMAGE_ID="83",
  READONLY="no",
  TARGET="sdb" ]

------------- libvirt generated  template:
..............
                <disk type='file' device='disk'>
                        <source file='/var/lib/one//datastores/0/931/disk.1'/>
                        <target dev='sda' bus='scsi'/>
                        <driver name='qemu' type='raw' cache='default'/>
                </disk>
                <disk type='file' device='disk'>
                        <source file='/var/lib/one//datastores/0/931/disk.2'/>
                        <target dev='sdb' bus='scsi'/>
                        <driver name='qemu' type='raw' cache='default'/>
                </disk>

-------------- error:
......
process exited while connecting to monitor: kvm: -device
lsi,id=scsi0,bus=pci.0,addr=0x4: Parameter 'driver' expects a driver
name


best regards,
João





On Wed, Oct 17, 2012 at 10:56 AM, Ruben S. Montero
<rsmont...@opennebula.org> wrote:
> Hi  João
>
> Yes you are right, some additional work is needed to get raw content on
> specific sections. RAW will just append the content to the end of the
> generated XML document.
>
> BTW the section you are adding is related to DISK layout, is TARGET not
> working for you? Something similar is added by libvirt for each disk based
> on the target (when specified)....
>
>
> Best
>
> Ruben
>
>
> On Tue, Oct 16, 2012 at 7:42 PM, João Pagaime <joao.paga...@gmail.com>
> wrote:
>>
>> thanks for the reply
>>
>> didn't say the full story, sorry...
>>
>> the extra parameters that I need aren't "root" parameters, but instead
>> must be inside a "<disk>" section, on libvirt's vm description
>>
>> I guess the RAW section can't be inside a DISK section
>>
>> best regards,
>> João
>>
>> On Tue, Oct 16, 2012 at 6:29 PM, André Monteiro <andre.mont...@gmail.com>
>> wrote:
>> > Hello,
>> >
>> > Just put on RAW section:
>> >
>> > RAW     = [
>> >       TYPE  = "kvm",
>> >       DATA  = "<alias name='ide0-1-0'/>
>> >        <address type='drive' controller='0' bus='1' target='0'
>> > unit='0'/>"]
>> >
>> > --
>> > André Monteiro
>> >
>> >
>> >
>> >
>> > On Tue, Oct 16, 2012 at 6:06 PM, João Pagaime <joao.paga...@gmail.com>
>> > wrote:
>> >>
>> >> Hello all
>> >>
>> >> I'm trying to start a VM with 2 IDE ou SCSI disks on KVM. Can't use
>> >> virtio, since this is a physical to virtual operation,  of an old
>> >> system that doesn't support virtio
>> >>
>> >> ths problem is that KVM/QEMU gives out an error
>> >>
>> >> after simulating the situation with virt-manager, it seems that
>> >> libvirt XML needs to indicate the  following two extra parameters
>> >> (example):
>> >>       <alias name='ide0-1-0'/>
>> >>       <address type='drive' controller='0' bus='1' target='0'
>> >> unit='0'/>
>> >>
>> >> is there some way to put this on open-nebula template?
>> >>
>> >> thanks, best regards,
>> >> João
>> >> _______________________________________________
>> >> Users mailing list
>> >> Users@lists.opennebula.org
>> >> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>> >
>> >
>> _______________________________________________
>> Users mailing list
>> Users@lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
>
>
> --
> Ruben S. Montero, PhD
> Project co-Lead and Chief Architect
> OpenNebula - The Open Source Solution for Data Center Virtualization
> www.OpenNebula.org | rsmont...@opennebula.org | @OpenNebula
_______________________________________________
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to