[one-users] How to get the OCCI self-services templates to make the system disk use the virtio drivers?

Gerry O'Brien gerry at scss.tcd.ie
Wed Mar 13 04:43:56 PDT 2013


Hi Daniel,


  That worked! Thanks for all your help.

         Regards,
           Gerry

On 13/03/2013 10:56, Daniel Molina wrote:
> On 13 March 2013 11:51, Gerry O'Brien <gerry at scss.tcd.ie> wrote:
>> Hi Daniel,
>>
>>    Thanks for the reply but unfortunately it will not solve our problem. Yes,
>> if I define the DEV_PREFIX  parameter in the template using the Sunstone GUI
>> then everything works fine. But how do I do it for the OCCI self-service
>> individual templates? Also, if I define it as a default value then I'm not
>> sure our Windows images will work. We supply Windows 7, 8 & Server 2008 R2
>> images and well as Debian in the self-service. Virtio is not by default
>> built into Windows images.
> You have to include it in the Image (Debian-Selfservice [ver R1.1])
> template not in the VM template. When the VM is created it will check
> the image attributes and will include it in the DISK definition.
>
>>      The reason we want to use the virtio drivers is that sometimes delays in
>> the underlying NFS infrastructure may cause SCSI timeouts  in Debian images.
>> It doesn't cause any real problems but it is disconcerting to our users. We
>> hope that using the virtio drivers will be more forgiving.
>>
>>          Regards,
>>            Gerry
>>
>>
>>
>> On 13/03/2013 10:18, Daniel Molina wrote:
>>
>> Hi Gerry,
>>
>> On 12 March 2013 18:04, Gerry O'Brien <gerry at scss.tcd.ie> wrote:
>>
>>   Hi,
>>
>>      How do you get the OCCI self-services templates to make an existing
>> system disk use the virtio drivers? If I put an entry in the template for
>> DISK it tries to create a second data disk, even when I explicitly try to
>> set the DISK_ID to 0 (see OOCI template and resulting template from
>> Sunstone below).
>>
>> You can define that parameter in the image template and the virtual machine
>> disk will use it.
>> http://opennebula.org/documentation:rel3.8:img_template#template_attributes
>>
>> Also you can define default paremeters for kvm in the driver configuration
>> file.
>> http://opennebula.org/documentation:rel3.8:kvmg#default_attributes
>>
>> Cheers
>>
>>
>>              Regards,
>>                  Gerry
>>
>>
>>
>> CPU    = 1
>> VCPU   = 2
>> MEMORY = 1024
>>
>> GRAPHICS = [    type    = vnc,
>>                              listen  = 0.0.0.0 ]
>>
>> DISK    = [     disk_id         = 0,
>>                      type            = fs,
>>                     dev_prefix      = vd,
>>                      driver          = qcow2 ]
>>
>>
>>
>>     DISK
>>
>>
>>    0
>>
>>
>>    READONLY NO  CLUSTER_ID 100  IMAGE Debian-Selfservice [ver R1.1]
>> DATASTORE users  TYPE FILE  SOURCE
>> /var/lib/one/datastores/102/72ce4e42a590c42e79c298652b33df46  SAVE NO
>> DISK_ID 0  DATASTORE_ID 102  TARGET hda  DRIVER qcow2  DEV_PREFIX hd
>> IMAGE_ID 237  CLONE YES  TM_MAD shared
>>
>>    1
>>
>>
>>    TYPE fs  DISK_ID 1  TARGET vda  DRIVER qcow2  DEV_PREFIX vd
>>
>> --
>> Gerry O'Brien
>>
>> Systems Manager
>> School of Computer Science and Statistics
>> Trinity College Dublin
>> Dublin 2
>> IRELAND
>> 00 353 1 896 1341
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>>
>>
>>
>> --
>> Gerry O'Brien
>>
>> Systems Manager
>> School of Computer Science and Statistics
>> Trinity College Dublin
>> Dublin 2
>> IRELAND
>>
>> 00 353 1 896 1341
>
>


-- 
Gerry O'Brien

Systems Manager
School of Computer Science and Statistics
Trinity College Dublin
Dublin 2
IRELAND

00 353 1 896 1341




More information about the Users mailing list