[one-users] setup for virtio disk use

Olivier Sallou olivier.sallou at irisa.fr
Thu Jan 31 02:58:54 PST 2013


Hi,
I"d like to know how to setup my conf to use virtio for disks.

For the moment, my conf and templates where set to DISK BUS = IDE. But I
found that my disk accesses are quite slow.

I tried to change my template to:
DISK 	

	
BUS 	virtio


But I see no difference.

Looking at kmv process I see:
111        904     1 26 11:49 ?        00:00:51 /usr/bin/kvm -S -M
pc-0.12 -enable-kvm -m 2048 -smp 1,sockets=1,cores=1,threads=1 -name
one-570 -uuid b4178b7d-1b4c-7bd0-992e-bcecc5cef875 -nodefaults -chardev
socket,id=charmonitor,path=/var/lib/libvirt/qemu/one-570.monitor,server,nowait
-mon chardev=charmonitor,id=monitor,mode=readline -rtc base=utc -boot c
-drive
file=/var/lib/one//datastores/0/570/disk.0,if=none,id=drive-ide0-0-0,format=raw
-device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0
-drive
file=/var/lib/one//datastores/0/570/disk.1,if=none,media=cdrom,id=drive-ide0-0-1,readonly=on,format=raw
-device ide-drive,bus=ide.0,unit=1,drive=drive-ide0-0-1,id=ide0-0-1
-device rtl8139,vlan=0,id=net0,mac=00:04:c0:a8:02:14,bus=pci.0,addr=0x3
-net tap,fd=20,vlan=0,name=hostnet0 -usb -vnc 0.0.0.0:570 -k fr -vga
cirrus -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4


I see that the drive definition is always if=none  (-drive
file=/var/lib/one//datastores/0/570/disk.0,if=none). Should not it be
set to if=virtio ?

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130131/de5aa3e5/attachment.htm>


More information about the Users mailing list