[one-users] additional parameters for the DISK section

André Monteiro andre.monteir at gmail.com
Wed Oct 17 06:25:36 PDT 2012


Hello João,

Be aware that some OS don't have a libvirt version that support SCSI, like
RHEL and CentOS.

--
André Monteiro




On Wed, Oct 17, 2012 at 2:19 PM, João Pagaime <joao.pagaime at gmail.com>wrote:

> Hello Ruben
>
> got it to work with IDE, with 3 disks (the remaining IDE device is the
> cd-rom, and that was the problem: the cd-rom and one of the disks were
> both using the hdc hint target
>
> couldn't make it work with SCSI
>
> thanks
> João
>
>
> On Wed, Oct 17, 2012 at 1:33 PM, João Pagaime <joao.pagaime at gmail.com>
> wrote:
> > 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
> > <rsmontero at 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.pagaime at 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.monteir at 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.pagaime at 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 at lists.opennebula.org
> >>> >> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> >>> >
> >>> >
> >>> _______________________________________________
> >>> Users mailing list
> >>> Users at 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 | rsmontero at opennebula.org | @OpenNebula
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20121017/c4255dbd/attachment-0002.htm>


More information about the Users mailing list