[one-users] virtio setup

Jaime Melis jmelis at opennebula.org
Wed Nov 6 07:30:06 PST 2013


Hi Olivier,

target=vda means it's using virtio. You are actually probably using virtio.

what happens if you do from inside the VM:
# /sbin/lsmod | grep virtio
# find /sys/devices/virtio*

cheers,
Jaime


On Thu, Oct 24, 2013 at 11:03 AM, Olivier Sallou <olivier.sallou at irisa.fr>wrote:

>
> On 10/22/2013 09:49 AM, Olivier Sallou wrote:
> > Hi
> > I have set up virtio on a Debian recent image (and guest has drivers
> > loaded) but I face some perf issues (frequent freezes with kernel
> errors).
> >
> > I looked at open nebula generated template and I see in deployment file:
> >
> >         <disk type='file' device='disk'>
> >             <source file='/var/lib/one//datastores/0/697/disk.0'/>
> >             <target dev='vda'/>
> >             <driver name='qemu' type='raw' cache='none'/>
> >         </disk>
> >
> > My disk is correctly mounted as vda, but I do not see any "virtio"
> > reference in the VM template, is it fine ?
> >
> > In kvm command line I see drive related info:
> >
> > ...  -drive
> >
> file=/var/lib/one//datastores/0/697/disk.0,if=none,id=drive-virtio-disk0,boot=on,format=raw,cache=none
> > -device
> >
> virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0
> Loooking at KVM/virtio doc, it seems that we should have for disk:
> file=...,if=virtio
>
> I wonder why open nebula does not set it while target is correctly set
> to vda ? Where/what should I check in my config/setup to get virtio
> working correctly?
>
> Thanks
>
> Olivier
> >
> > Is configuration ok (and I should investigue somewhere else) or is there
> > an issue with my config ?
> >
> > In Image template I have DEV_PREFIX=vd.
> >
> > I use OpenNebula 4.2.0
> >
> >
> > Thanks
> >
> > Olivier
> >
>
> --
> Olivier Sallou
> IRISA / University of Rennes 1
> Campus de Beaulieu, 35000 RENNES - FRANCE
> Tel: 02.99.84.71.95
>
> gpg key id: 4096R/326D8438  (keyring.debian.org)
> Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



-- 
Jaime Melis
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | jmelis at opennebula.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20131106/38915ff2/attachment.htm>


More information about the Users mailing list