Re: [Qemu-devel] Boot Problems Windows XP guest

2013-08-29 Thread Erik Rull
> On August 29, 2013 at 4:55 PM Paolo Bonzini wrote: > > > Il 29/08/2013 16:51, Erik Rull ha scritto: > > > > > >> On August 29, 2013 at 11:25 AM Benoît Canet > >> wrote: > >> > >> > >>> My commandline section is (I played with bps between 0.5 and 2.0 MB/sec > >>> and > >>> iops > >>> with 1000 a

Re: [Qemu-devel] Boot Problems Windows XP guest

2013-08-29 Thread Paolo Bonzini
Il 29/08/2013 16:51, Erik Rull ha scritto: > > >> On August 29, 2013 at 11:25 AM Benoît Canet wrote: >> >> >>> My commandline section is (I played with bps between 0.5 and 2.0 MB/sec and >>> iops >>> with 1000 and 500): >>> -drive file=/dev/sda2,cache=none,bps=548576,bps_max=1,iops_max=1000 >>>

Re: [Qemu-devel] Boot Problems Windows XP guest

2013-08-29 Thread Erik Rull
> On August 29, 2013 at 11:25 AM Benoît Canet wrote: > > > > My commandline section is (I played with bps between 0.5 and 2.0 MB/sec and > > iops > > with 1000 and 500): > > -drive file=/dev/sda2,cache=none,bps=548576,bps_max=1,iops_max=1000 > > Within qemu it looks like that: > > QEMU 1.6.50 mo

Re: [Qemu-devel] Boot Problems Windows XP guest

2013-08-29 Thread Benoît Canet
> My commandline section is (I played with bps between 0.5 and 2.0 MB/sec and > iops > with 1000 and 500): > -drive file=/dev/sda2,cache=none,bps=548576,bps_max=1,iops_max=1000 > Within qemu it looks like that: > QEMU 1.6.50 monitor - type 'help' for more information > (qemu) info block > ide0-hd0

Re: [Qemu-devel] Boot Problems Windows XP guest

2013-08-29 Thread Erik Rull
> On August 28, 2013 at 9:22 PM Erik Rull wrote: > > > Benoît Canet wrote: > >> thanks for your help. I cloned the git and compiled it - but I'm not > >> completely sure how to enable the throttling finally - there were > >> several mails regarding averages and max values... And the "unit" of > >>

Re: [Qemu-devel] Boot Problems Windows XP guest

2013-08-28 Thread Erik Rull
Benoît Canet wrote: thanks for your help. I cloned the git and compiled it - but I'm not completely sure how to enable the throttling finally - there were several mails regarding averages and max values... And the "unit" of the values would be interesting. Hi Erik, The main settings are bps, b

Re: [Qemu-devel] Boot Problems Windows XP guest

2013-08-28 Thread Benoît Canet
> thanks for your help. I cloned the git and compiled it - but I'm not > completely sure how to enable the throttling finally - there were > several mails regarding averages and max values... And the "unit" of > the values would be interesting. Hi Erik, The main settings are bps, bps_rd and bps_w

Re: [Qemu-devel] Boot Problems Windows XP guest

2013-08-28 Thread Erik Rull
Benoît Canet wrote: Can you whip up a patch to avoid that? Or to honor bps_max if it is specified (making avg/10 simply the default)? Pushed in the same branch (it honor bps_max if specified). Best regards Benoît Hi all, thanks for your help. I cloned the git and compiled it - but I'm no

Re: [Qemu-devel] Boot Problems Windows XP guest

2013-08-28 Thread Benoît Canet
> Can you whip up a patch to avoid that? Or to honor bps_max if it is > specified (making avg/10 simply the default)? Pushed in the same branch (it honor bps_max if specified). Best regards Benoît

Re: [Qemu-devel] Boot Problems Windows XP guest

2013-08-28 Thread Paolo Bonzini
Il 28/08/2013 16:05, Benoît Canet ha scritto: >> Yes, I'm afraid that the burst is problematic here since the current >> > throttling algorithm doesn't help (and IIUC it behaves as if it had >> > max=avg/10 due to the 100ms slice time). This is Windows so no CFQ >> > here. Do you need to set bps_

Re: [Qemu-devel] Boot Problems Windows XP guest

2013-08-28 Thread Benoît Canet
> Yes, I'm afraid that the burst is problematic here since the current > throttling algorithm doesn't help (and IIUC it behaves as if it had > max=avg/10 due to the 100ms slice time). This is Windows so no CFQ > here. Do you need to set bps_max=1 or will bps_max=0 work too? In it's current state

Re: [Qemu-devel] Boot Problems Windows XP guest

2013-08-28 Thread Paolo Bonzini
Il 28/08/2013 15:51, Benoît Canet ha scritto: >> What is the command line to use for avg bps = 1MB/s, max bps = 0? > On the monitor it would be: > > block_set_io_throttle 1048576 0 0 0 0 0 > > When configuring throttle on the command line it would be: > > -drive file=foo.raw,if=virtio,cache=none

Re: [Qemu-devel] Boot Problems Windows XP guest

2013-08-28 Thread Benoît Canet
> What is the command line to use for avg bps = 1MB/s, max bps = 0? On the monitor it would be: block_set_io_throttle 1048576 0 0 0 0 0 When configuring throttle on the command line it would be: -drive file=foo.raw,if=virtio,cache=none,bps=1048576 Also remember that the code is setting bps_max

Re: [Qemu-devel] Boot Problems Windows XP guest

2013-08-28 Thread Paolo Bonzini
Il 28/08/2013 15:34, Benoît Canet ha scritto: >> On second thought that is expected. Until throttling kicks in, I/O will >> complete just as fast as without throttling. Maybe limiting the number >> of bytes per second instead of I/O ops would be better. Can you try >> -drive ...,bps=1048576 (pos

Re: [Qemu-devel] Boot Problems Windows XP guest

2013-08-28 Thread Benoît Canet
Le Wednesday 28 Aug 2013 à 15:14:41 (+0200), Paolo Bonzini a écrit : > Il 28/08/2013 11:07, Erik Rull ha scritto: > >>> It could be a real difference, actually. An unexpectedly fast disk > >>> might screw a sloppy driver. IIRC you're not the first person reporting > >>> it. Stefan, do you think

Re: [Qemu-devel] Boot Problems Windows XP guest

2013-08-28 Thread Stefan Hajnoczi
On Wed, Aug 28, 2013 at 11:07:55AM +0200, Erik Rull wrote: > To exclude a damage of the image meanwhile, I went back to 1.2.0 and it boots > perfectly. If you have any doubts about image corruption or differences, try: $ qemu-img compare /spinning-disk/vm.img /ssd/vm.img Their contents should

Re: [Qemu-devel] Boot Problems Windows XP guest

2013-08-28 Thread Paolo Bonzini
Il 28/08/2013 11:07, Erik Rull ha scritto: >>> It could be a real difference, actually. An unexpectedly fast disk >>> might screw a sloppy driver. IIRC you're not the first person reporting >>> it. Stefan, do you think using block throttling could fix it (with some >>> trial and error)? >> >> Th

Re: [Qemu-devel] Boot Problems Windows XP guest

2013-08-28 Thread Paolo Bonzini
Il 27/08/2013 23:37, Anthony Liguori ha scritto: > On Aug 27, 2013 4:32 PM, "Paolo Bonzini" > wrote: >> >> Il 27/08/2013 22:26, Erik Rull ha scritto: >> > Hi Stefan, >> > >> > which BIOS is selected by default? >> >> QEMU only ships with SeaBIOS. >> >> > It's more a gue

Re: [Qemu-devel] Boot Problems Windows XP guest

2013-08-28 Thread Erik Rull
> On August 28, 2013 at 9:50 AM Stefan Hajnoczi wrote: > > > On Tue, Aug 27, 2013 at 11:31:28PM +0200, Paolo Bonzini wrote: > > Il 27/08/2013 22:26, Erik Rull ha scritto: > > > It's more a guess, there must be a > > > change between 1.2.0 and 1.6.0 that prevents a simple Windows XP from > > > boot

Re: [Qemu-devel] Boot Problems Windows XP guest

2013-08-28 Thread Erik Rull
> On August 27, 2013 at 11:37 PM Anthony Liguori wrote: > > > On Aug 27, 2013 4:32 PM, "Paolo Bonzini" wrote: > > > > Il 27/08/2013 22:26, Erik Rull ha scritto: > > > Hi Stefan, > > > > > > which BIOS is selected by default? > > > > QEMU only ships with SeaBIOS. > > > > > It's more a guess, there

Re: [Qemu-devel] Boot Problems Windows XP guest

2013-08-28 Thread Stefan Hajnoczi
On Tue, Aug 27, 2013 at 11:31:28PM +0200, Paolo Bonzini wrote: > Il 27/08/2013 22:26, Erik Rull ha scritto: > > It's more a guess, there must be a > > change between 1.2.0 and 1.6.0 that prevents a simple Windows XP from > > booting completely, if the guest HDD image is placed on a SSD. On a > > ro

Re: [Qemu-devel] Boot Problems Windows XP guest

2013-08-27 Thread Anthony Liguori
On Aug 27, 2013 4:32 PM, "Paolo Bonzini" wrote: > > Il 27/08/2013 22:26, Erik Rull ha scritto: > > Hi Stefan, > > > > which BIOS is selected by default? > > QEMU only ships with SeaBIOS. > > > It's more a guess, there must be a > > change between 1.2.0 and 1.6.0 that prevents a simple Windows XP f

Re: [Qemu-devel] Boot Problems Windows XP guest

2013-08-27 Thread Paolo Bonzini
Il 27/08/2013 22:26, Erik Rull ha scritto: > Hi Stefan, > > which BIOS is selected by default? QEMU only ships with SeaBIOS. > It's more a guess, there must be a > change between 1.2.0 and 1.6.0 that prevents a simple Windows XP from > booting completely, if the guest HDD image is placed on a SS

Re: [Qemu-devel] Boot Problems Windows XP guest

2013-08-27 Thread Erik Rull
Stefan Hajnoczi wrote: On Mon, Aug 26, 2013 at 11:52:26AM +0200, Erik Rull wrote: is it possible to get back to the "legacy" BIOS instead of the (u)efi based BIOS? I have problems booting the guest on a SSD HDD, there it reboots infinitely, when running the guest on a rotating HDD, it works. On

Re: [Qemu-devel] Boot Problems Windows XP guest

2013-08-27 Thread Stefan Hajnoczi
On Mon, Aug 26, 2013 at 11:52:26AM +0200, Erik Rull wrote: > is it possible to get back to the "legacy" BIOS instead of the (u)efi based > BIOS? I have problems booting the guest on a SSD HDD, there it reboots > infinitely, when running the guest on a rotating HDD, it works. On qemu 1.2.0 > both di

[Qemu-devel] Boot Problems Windows XP guest

2013-08-26 Thread Erik Rull
Hi all, is it possible to get back to the "legacy" BIOS instead of the (u)efi based BIOS? I have problems booting the guest on a SSD HDD, there it reboots infinitely, when running the guest on a rotating HDD, it works. On qemu 1.2.0 both disks work properly. I didn't find a way to select the BIOS