Re: [Qemu-devel] No video for Windows 2000 guest
> On Aug 10, 2017, at 3:37 AM, Michael Tokarevwrote: > > 10.08.2017 06:51, Thomas Huth wrote: > [] > >> I guess you'll end up with QEMU 2.1 as good version and 2.2 as the first >> "bad" version. According the qemu-doc: >> >> -vga type >> >>Select type of VGA card to emulate. Valid values for type are >> >>cirrus >> >>Cirrus Logic GD5446 Video card. All Windows versions starting >>from Windows 95 should recognize and use this graphic card. For >>optimal performances, use 16 bit color depth in the guest and >>the host OS. (This card was the default before QEMU 2.2) >> >>std >> >>Standard VGA card with Bochs VBE extensions. If your guest OS >>supports the VESA 2.0 VBE extensions (e.g. Windows XP) and if >>you want to use high resolution modes (>= 1280x1024x16) then you >>should use this option. (This card is the default since QEMU >>2.2) > > Both cirrus and stdvga worked in Win2k not-so-recently. Cirrus, IIRC, > required a driver install, stdvga used "standard vga controller" which, > in win2k, was always marked with yellow exclamation mark, just because > the driver itself always sets that mark, "thinking" it is always wrong > driver. > > So no, it's not the switch from cirrus to std, it's something else. > > /mjt Here is the commit that causes Windows 2000 video problems: commit 94ef4f337fb614f18b765a8e0e878a4c23cdedcd Author: Gerd Hoffmann Date: Tue May 17 10:54:54 2016 +0200 vga: add sr_vbe register set Commit "fd3c136 vga: make sure vga register setup for vbe stays intact (CVE-2016-3712)." causes a regression. The win7 installer is unhappy because it can't freely modify vga registers any more while in vbe mode.
Re: [Qemu-devel] No video for Windows 2000 guest
10.08.2017 06:51, Thomas Huth wrote: [] > I guess you'll end up with QEMU 2.1 as good version and 2.2 as the first > "bad" version. According the qemu-doc: > > -vga type > > Select type of VGA card to emulate. Valid values for type are > > cirrus > > Cirrus Logic GD5446 Video card. All Windows versions starting > from Windows 95 should recognize and use this graphic card. For > optimal performances, use 16 bit color depth in the guest and > the host OS. (This card was the default before QEMU 2.2) > > std > > Standard VGA card with Bochs VBE extensions. If your guest OS > supports the VESA 2.0 VBE extensions (e.g. Windows XP) and if > you want to use high resolution modes (>= 1280x1024x16) then you > should use this option. (This card is the default since QEMU > 2.2) Both cirrus and stdvga worked in Win2k not-so-recently. Cirrus, IIRC, required a driver install, stdvga used "standard vga controller" which, in win2k, was always marked with yellow exclamation mark, just because the driver itself always sets that mark, "thinking" it is always wrong driver. So no, it's not the switch from cirrus to std, it's something else. /mjt
Re: [Qemu-devel] No video for Windows 2000 guest
On 09.08.2017 20:12, Programmingkid wrote: > >> On Aug 9, 2017, at 12:37 PM, Paolo Bonziniwrote: >> >> On 09/08/2017 16:56, Programmingkid wrote: >>> The default vga card not longer works with a Windows 2000 guest. All I see >>> is a black screen after a the Windows splash screen. >>> >>> This is the command-line I used: >>> >>> qemu-system-i386 -hda Windows2000HD.qcow2 -boot c -m 512 >>> >>> When using the -vga cirrus option video works. Testing was done with QEMU >>> v2.10.0 rc2. >> >> Did it work in 2.9? >> >> Paolo > > I haven't test version QEMU 2.9.0 but I did test version 2.8.0 and it has the > same problem. Starting up Windows 2000 in VGA mode allowed me to access the > operating system. Found out QEMU's default video controller is not > recognized. In the Device Manager I can see a yellow question mark for Video > Controller (VGA Compatible). I remember Windows 2000 being able to use the > default video card in QEMU in the past. I may be able to bisect this issue > after all. I guess you'll end up with QEMU 2.1 as good version and 2.2 as the first "bad" version. According the qemu-doc: -vga type Select type of VGA card to emulate. Valid values for type are cirrus Cirrus Logic GD5446 Video card. All Windows versions starting from Windows 95 should recognize and use this graphic card. For optimal performances, use 16 bit color depth in the guest and the host OS. (This card was the default before QEMU 2.2) std Standard VGA card with Bochs VBE extensions. If your guest OS supports the VESA 2.0 VBE extensions (e.g. Windows XP) and if you want to use high resolution modes (>= 1280x1024x16) then you should use this option. (This card is the default since QEMU 2.2) Everything is in the documentation ;-) Thomas
Re: [Qemu-devel] No video for Windows 2000 guest
> On Aug 9, 2017, at 6:42 PM, Paolo Bonziniwrote: > > >> I haven't test version QEMU 2.9.0 but I did test version 2.8.0 and it has the >> same problem. Starting up Windows 2000 in VGA mode allowed me to access the >> operating system. Found out QEMU's default video controller is not >> recognized. In the Device Manager I can see a yellow question mark for Video >> Controller (VGA Compatible). I remember Windows 2000 being able to use the >> default video card in QEMU in the past. I may be able to bisect this issue >> after all. > > Try going back to 2.7.0 and so on... > > Paolo I went back all the way to 2.4.1 to find a version that works. I've ran into problems with compiling QEMU a little beyond that. I'm seeing this error: fatal error: 'epoxy/egl.h' file not found #include It will take me a while to figure out how to fix this issue. I did see some very interesting commits up ahead that involve VGA. If you look at this page: https://github.com/qemu/qemu/commits/stable-2.5, there are five patches that effect VGA. I'm thinking one of them might be the problem.
Re: [Qemu-devel] No video for Windows 2000 guest
> I haven't test version QEMU 2.9.0 but I did test version 2.8.0 and it has the > same problem. Starting up Windows 2000 in VGA mode allowed me to access the > operating system. Found out QEMU's default video controller is not > recognized. In the Device Manager I can see a yellow question mark for Video > Controller (VGA Compatible). I remember Windows 2000 being able to use the > default video card in QEMU in the past. I may be able to bisect this issue > after all. Try going back to 2.7.0 and so on... Paolo
Re: [Qemu-devel] No video for Windows 2000 guest
On Wed, Aug 09, 2017 at 09:05:54PM +0300, Michael S. Tsirkin wrote: > On Wed, Aug 09, 2017 at 01:54:23PM -0400, Programmingkid wrote: > > > > > On Aug 9, 2017, at 1:18 PM, Michael S. Tsirkinwrote: > > > > > > On Wed, Aug 09, 2017 at 06:37:12PM +0200, Paolo Bonzini wrote: > > >> On 09/08/2017 16:56, Programmingkid wrote: > > >>> The default vga card not longer works with a Windows 2000 guest. All I > > >>> see is a black screen after a the Windows splash screen. > > >>> > > >>> This is the command-line I used: > > >>> > > >>> qemu-system-i386 -hda Windows2000HD.qcow2 -boot c -m 512 > > >>> > > >>> When using the -vga cirrus option video works. Testing was done with > > >>> QEMU v2.10.0 rc2. > > >> > > >> Did it work in 2.9? > > >> > > >> Paolo > > > > > > Generally bisect is extremely helpful to debug these issues. > > > > I tried but the acpi issue kept Windows 2000 from booting. > > You can just revert that on top of each bisect. IOW after each bisect go git revert 77af8a2b test it then reset back and continue with bisect
Re: [Qemu-devel] No video for Windows 2000 guest
> On Aug 9, 2017, at 12:37 PM, Paolo Bonziniwrote: > > On 09/08/2017 16:56, Programmingkid wrote: >> The default vga card not longer works with a Windows 2000 guest. All I see >> is a black screen after a the Windows splash screen. >> >> This is the command-line I used: >> >> qemu-system-i386 -hda Windows2000HD.qcow2 -boot c -m 512 >> >> When using the -vga cirrus option video works. Testing was done with QEMU >> v2.10.0 rc2. > > Did it work in 2.9? > > Paolo I haven't test version QEMU 2.9.0 but I did test version 2.8.0 and it has the same problem. Starting up Windows 2000 in VGA mode allowed me to access the operating system. Found out QEMU's default video controller is not recognized. In the Device Manager I can see a yellow question mark for Video Controller (VGA Compatible). I remember Windows 2000 being able to use the default video card in QEMU in the past. I may be able to bisect this issue after all.
Re: [Qemu-devel] No video for Windows 2000 guest
On Wed, Aug 09, 2017 at 01:54:23PM -0400, Programmingkid wrote: > > > On Aug 9, 2017, at 1:18 PM, Michael S. Tsirkinwrote: > > > > On Wed, Aug 09, 2017 at 06:37:12PM +0200, Paolo Bonzini wrote: > >> On 09/08/2017 16:56, Programmingkid wrote: > >>> The default vga card not longer works with a Windows 2000 guest. All I > >>> see is a black screen after a the Windows splash screen. > >>> > >>> This is the command-line I used: > >>> > >>> qemu-system-i386 -hda Windows2000HD.qcow2 -boot c -m 512 > >>> > >>> When using the -vga cirrus option video works. Testing was done with QEMU > >>> v2.10.0 rc2. > >> > >> Did it work in 2.9? > >> > >> Paolo > > > > Generally bisect is extremely helpful to debug these issues. > > I tried but the acpi issue kept Windows 2000 from booting. You can just revert that on top of each bisect.
Re: [Qemu-devel] No video for Windows 2000 guest
> On Aug 9, 2017, at 1:18 PM, Michael S. Tsirkinwrote: > > On Wed, Aug 09, 2017 at 06:37:12PM +0200, Paolo Bonzini wrote: >> On 09/08/2017 16:56, Programmingkid wrote: >>> The default vga card not longer works with a Windows 2000 guest. All I see >>> is a black screen after a the Windows splash screen. >>> >>> This is the command-line I used: >>> >>> qemu-system-i386 -hda Windows2000HD.qcow2 -boot c -m 512 >>> >>> When using the -vga cirrus option video works. Testing was done with QEMU >>> v2.10.0 rc2. >> >> Did it work in 2.9? >> >> Paolo > > Generally bisect is extremely helpful to debug these issues. I tried but the acpi issue kept Windows 2000 from booting.
Re: [Qemu-devel] No video for Windows 2000 guest
On Wed, Aug 09, 2017 at 06:37:12PM +0200, Paolo Bonzini wrote: > On 09/08/2017 16:56, Programmingkid wrote: > > The default vga card not longer works with a Windows 2000 guest. All I see > > is a black screen after a the Windows splash screen. > > > > This is the command-line I used: > > > > qemu-system-i386 -hda Windows2000HD.qcow2 -boot c -m 512 > > > > When using the -vga cirrus option video works. Testing was done with QEMU > > v2.10.0 rc2. > > Did it work in 2.9? > > Paolo Generally bisect is extremely helpful to debug these issues. -- MST
Re: [Qemu-devel] No video for Windows 2000 guest
On 09/08/2017 16:56, Programmingkid wrote: > The default vga card not longer works with a Windows 2000 guest. All I see is > a black screen after a the Windows splash screen. > > This is the command-line I used: > > qemu-system-i386 -hda Windows2000HD.qcow2 -boot c -m 512 > > When using the -vga cirrus option video works. Testing was done with QEMU > v2.10.0 rc2. Did it work in 2.9? Paolo