Quoting Fabio Marconi (fabiomarc...@ubuntu.com): > Hallo Serge > I've added the cache=none at the kvm testdrive parameters, but seems not > affecting the settings: > > njin@quantic:~$ ps -ef | grep kvm > root 562 2 0 19:06 ? 00:00:00 [kvm-irqfd-clean] > njin 3533 3496 0 20:34 ? 00:00:00 /bin/sh -c kvm -uuid > e75dba4a-1fa8-4ee7-9c67-13c7a0439800 -m 1024 -smp 4 -cdrom > /home/njin/Ubuntu/quantal-desktop-amd64.iso -drive > file=/home/njin/.cache/testdrive/img/testdrive-disk-2gXmzk.img,if=virtio,cache=writeback,index=0,boot=on > -usb -usbdevice tablet -net nic,model=virtio -net user -soundhw es1370 -vga > cirrus > njin 3534 3533 99 20:34 ? 00:00:27 kvm -uuid > e75dba4a-1fa8-4ee7-9c67-13c7a0439800 -m 1024 -smp 4 -cdrom > /home/njin/Ubuntu/quantal-desktop-amd64.iso -drive > file=/home/njin/.cache/testdrive/img/testdrive-disk-2gXmzk.img,if=virtio,cache=writeback,index=0,boot=on > -usb -usbdevice tablet -net nic,model=virtio -net user -soundhw es1370 -vga > cirrus > root 3540 2 0 20:34 ? 00:00:00 [kvm-pit/3534] > njin 3605 3551 0 20:34 pts/1 00:00:00 grep --color=auto kvm > > As I'm not an expert in the use of qemu, can you please tell me the command > to run a live session in qemu passing the cache=none command ? > Thanks in advance
Hm, it looks like this is hardcoded into testdrive. The file /usr/share/pyshared/testdrive/virt/kvm.py has: cmd = "kvm -m %s -smp %s -cdrom %s -drive file=%s,if=virtio,cache=writeback,index=0,boot=on %s" % (self.MEM, self.SMP, self.PATH_TO_ISO, self.DISK_FILE, self.KVM_ARGS) (roughly line 67). You would want to change that to: cmd = "kvm -m %s -smp %s -cdrom %s -drive file=%s,if=virtio,cache=none,index=0,boot=on %s" % (self.MEM, self.SMP, self.PATH_TO_ISO, self.DISK_FILE, self.KVM_ARGS) If this works, then we should open a bug against testdrive-common to make that configurable and perhaps change the default. (Please let me know if you have trouble making this change) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1039166 Title: high use of resource To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1039166/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs