public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* Installation of Windows 8 hangs with KVM
@ 2013-01-04 21:58 Stefan Pietsch
  2013-01-06 10:11 ` Gleb Natapov
  0 siblings, 1 reply; 9+ messages in thread
From: Stefan Pietsch @ 2013-01-04 21:58 UTC (permalink / raw)
  To: kvm

Hi all,

when I run KVM with this command the Windows 8 installation stops with
error code 0x0000005D:
kvm -m 1024 -hda win8.img -cdrom windows_8_x86.iso

After adding the option "-cpu host" the installation proceeds to a black
screen and hangs.

With Virtualbox the installation succeeds.
The host CPU is an Intel Core Duo L2400.
 
Do you have any suggestions?


Regards,
Stefan


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Installation of Windows 8 hangs with KVM
  2013-01-04 21:58 Installation of Windows 8 hangs with KVM Stefan Pietsch
@ 2013-01-06 10:11 ` Gleb Natapov
  2013-01-06 18:24   ` Stefan Pietsch
  0 siblings, 1 reply; 9+ messages in thread
From: Gleb Natapov @ 2013-01-06 10:11 UTC (permalink / raw)
  To: Stefan Pietsch; +Cc: kvm

On Fri, Jan 04, 2013 at 10:58:33PM +0100, Stefan Pietsch wrote:
> Hi all,
> 
> when I run KVM with this command the Windows 8 installation stops with
> error code 0x0000005D:
> kvm -m 1024 -hda win8.img -cdrom windows_8_x86.iso
> 
> After adding the option "-cpu host" the installation proceeds to a black
> screen and hangs.
> 
> With Virtualbox the installation succeeds.
> The host CPU is an Intel Core Duo L2400.
>  
> Do you have any suggestions?
> 
> 
What is your kernel/qemu version?

--
			Gleb.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Installation of Windows 8 hangs with KVM
  2013-01-06 10:11 ` Gleb Natapov
@ 2013-01-06 18:24   ` Stefan Pietsch
  2013-01-07  8:38     ` Ren, Yongjie
  0 siblings, 1 reply; 9+ messages in thread
From: Stefan Pietsch @ 2013-01-06 18:24 UTC (permalink / raw)
  To: Gleb Natapov; +Cc: kvm

* Gleb Natapov <gleb@redhat.com> [2013-01-06 11:11]:
> On Fri, Jan 04, 2013 at 10:58:33PM +0100, Stefan Pietsch wrote:
> > Hi all,
> > 
> > when I run KVM with this command the Windows 8 installation stops with
> > error code 0x0000005D:
> > kvm -m 1024 -hda win8.img -cdrom windows_8_x86.iso
> > 
> > After adding the option "-cpu host" the installation proceeds to a black
> > screen and hangs.
> > 
> > With Virtualbox the installation succeeds.
> > The host CPU is an Intel Core Duo L2400.
> >  
> > Do you have any suggestions?
> > 
> > 
> What is your kernel/qemu version?

I'm using Debian unstable.

qemu-kvm 1.1.2+dfsg-3
Linux version 3.2.0-4-686-pae (debian-kernel@lists.debian.org) (gcc
version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.2.35-2


Regards,
Stefan


^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: Installation of Windows 8 hangs with KVM
  2013-01-06 18:24   ` Stefan Pietsch
@ 2013-01-07  8:38     ` Ren, Yongjie
  2013-01-07  8:53       ` Gleb Natapov
  2013-01-08  9:14       ` Stefan Pietsch
  0 siblings, 2 replies; 9+ messages in thread
From: Ren, Yongjie @ 2013-01-07  8:38 UTC (permalink / raw)
  To: Stefan Pietsch, Gleb Natapov; +Cc: kvm@vger.kernel.org

> -----Original Message-----
> From: kvm-owner@vger.kernel.org [mailto:kvm-owner@vger.kernel.org]
> On Behalf Of Stefan Pietsch
> Sent: Monday, January 07, 2013 2:25 AM
> To: Gleb Natapov
> Cc: kvm@vger.kernel.org
> Subject: Re: Installation of Windows 8 hangs with KVM
> 
> * Gleb Natapov <gleb@redhat.com> [2013-01-06 11:11]:
> > On Fri, Jan 04, 2013 at 10:58:33PM +0100, Stefan Pietsch wrote:
> > > Hi all,
> > >
> > > when I run KVM with this command the Windows 8 installation stops
> with
> > > error code 0x0000005D:
> > > kvm -m 1024 -hda win8.img -cdrom windows_8_x86.iso
> > >
> > > After adding the option "-cpu host" the installation proceeds to a black
> > > screen and hangs.
> > >
> > > With Virtualbox the installation succeeds.
> > > The host CPU is an Intel Core Duo L2400.
> > >
> > > Do you have any suggestions?
> > >
> > >
> > What is your kernel/qemu version?
> 
> I'm using Debian unstable.
> 
> qemu-kvm 1.1.2+dfsg-3
> Linux version 3.2.0-4-686-pae (debian-kernel@lists.debian.org) (gcc
> version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.2.35-2
> 
you met issue only for 32bit Win8 (not 64 bit Win8), right?
I think it's the same issue as the below bug I reported.
https://bugs.launchpad.net/qemu/+bug/1007269
You can try with '-cpu coreduo' or '-cpu core2duo' in qemu-kvm command line.

This should be a known issue which is caused by missing 'SEP' CPU flag.
See another bug in Redhat bugzilla.
https://bugzilla.redhat.com/show_bug.cgi?id=821741



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Installation of Windows 8 hangs with KVM
  2013-01-07  8:38     ` Ren, Yongjie
@ 2013-01-07  8:53       ` Gleb Natapov
  2013-01-07  9:13         ` Ren, Yongjie
  2013-01-08  9:14       ` Stefan Pietsch
  1 sibling, 1 reply; 9+ messages in thread
From: Gleb Natapov @ 2013-01-07  8:53 UTC (permalink / raw)
  To: Ren, Yongjie; +Cc: Stefan Pietsch, kvm@vger.kernel.org

On Mon, Jan 07, 2013 at 08:38:59AM +0000, Ren, Yongjie wrote:
> > -----Original Message-----
> > From: kvm-owner@vger.kernel.org [mailto:kvm-owner@vger.kernel.org]
> > On Behalf Of Stefan Pietsch
> > Sent: Monday, January 07, 2013 2:25 AM
> > To: Gleb Natapov
> > Cc: kvm@vger.kernel.org
> > Subject: Re: Installation of Windows 8 hangs with KVM
> > 
> > * Gleb Natapov <gleb@redhat.com> [2013-01-06 11:11]:
> > > On Fri, Jan 04, 2013 at 10:58:33PM +0100, Stefan Pietsch wrote:
> > > > Hi all,
> > > >
> > > > when I run KVM with this command the Windows 8 installation stops
> > with
> > > > error code 0x0000005D:
> > > > kvm -m 1024 -hda win8.img -cdrom windows_8_x86.iso
> > > >
> > > > After adding the option "-cpu host" the installation proceeds to a black
> > > > screen and hangs.
> > > >
> > > > With Virtualbox the installation succeeds.
> > > > The host CPU is an Intel Core Duo L2400.
> > > >
> > > > Do you have any suggestions?
> > > >
> > > >
> > > What is your kernel/qemu version?
> > 
> > I'm using Debian unstable.
> > 
> > qemu-kvm 1.1.2+dfsg-3
> > Linux version 3.2.0-4-686-pae (debian-kernel@lists.debian.org) (gcc
> > version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.2.35-2
> > 
> you met issue only for 32bit Win8 (not 64 bit Win8), right?
> I think it's the same issue as the below bug I reported.
> https://bugs.launchpad.net/qemu/+bug/1007269
> You can try with '-cpu coreduo' or '-cpu core2duo' in qemu-kvm command line.
> 
> This should be a known issue which is caused by missing 'SEP' CPU flag.
> See another bug in Redhat bugzilla.
> https://bugzilla.redhat.com/show_bug.cgi?id=821741
> 
That was RHEL kernel bug. Doubt Debian one has it.

--
			Gleb.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: Installation of Windows 8 hangs with KVM
  2013-01-07  8:53       ` Gleb Natapov
@ 2013-01-07  9:13         ` Ren, Yongjie
  2013-01-07  9:20           ` Gleb Natapov
  0 siblings, 1 reply; 9+ messages in thread
From: Ren, Yongjie @ 2013-01-07  9:13 UTC (permalink / raw)
  To: Gleb Natapov; +Cc: Stefan Pietsch, kvm@vger.kernel.org

> -----Original Message-----
> From: kvm-owner@vger.kernel.org [mailto:kvm-owner@vger.kernel.org]
> On Behalf Of Gleb Natapov
> Sent: Monday, January 07, 2013 4:54 PM
> To: Ren, Yongjie
> Cc: Stefan Pietsch; kvm@vger.kernel.org
> Subject: Re: Installation of Windows 8 hangs with KVM
> 
> On Mon, Jan 07, 2013 at 08:38:59AM +0000, Ren, Yongjie wrote:
> > > -----Original Message-----
> > > From: kvm-owner@vger.kernel.org
> [mailto:kvm-owner@vger.kernel.org]
> > > On Behalf Of Stefan Pietsch
> > > Sent: Monday, January 07, 2013 2:25 AM
> > > To: Gleb Natapov
> > > Cc: kvm@vger.kernel.org
> > > Subject: Re: Installation of Windows 8 hangs with KVM
> > >
> > > * Gleb Natapov <gleb@redhat.com> [2013-01-06 11:11]:
> > > > On Fri, Jan 04, 2013 at 10:58:33PM +0100, Stefan Pietsch wrote:
> > > > > Hi all,
> > > > >
> > > > > when I run KVM with this command the Windows 8 installation
> stops
> > > with
> > > > > error code 0x0000005D:
> > > > > kvm -m 1024 -hda win8.img -cdrom windows_8_x86.iso
> > > > >
> > > > > After adding the option "-cpu host" the installation proceeds to a
> black
> > > > > screen and hangs.
> > > > >
> > > > > With Virtualbox the installation succeeds.
> > > > > The host CPU is an Intel Core Duo L2400.
> > > > >
> > > > > Do you have any suggestions?
> > > > >
> > > > >
> > > > What is your kernel/qemu version?
> > >
> > > I'm using Debian unstable.
> > >
> > > qemu-kvm 1.1.2+dfsg-3
> > > Linux version 3.2.0-4-686-pae (debian-kernel@lists.debian.org) (gcc
> > > version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.2.35-2
> > >
> > you met issue only for 32bit Win8 (not 64 bit Win8), right?
> > I think it's the same issue as the below bug I reported.
> > https://bugs.launchpad.net/qemu/+bug/1007269
> > You can try with '-cpu coreduo' or '-cpu core2duo' in qemu-kvm command
> line.
> >
> > This should be a known issue which is caused by missing 'SEP' CPU flag.
> > See another bug in Redhat bugzilla.
> > https://bugzilla.redhat.com/show_bug.cgi?id=821741
> >
> That was RHEL kernel bug. Doubt Debian one has it.
> 
I don't think so. It should be a qemu bug (also described in that RHEL bugzilla).
In my SandyBridge platform, 32bit Win8 guest can boot up with '-cpu SandyBridge,+sep' in qemu-kvm CLI.
But it can't boot up with '-cpu SandyBridge'.

> --
> 			Gleb.
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Installation of Windows 8 hangs with KVM
  2013-01-07  9:13         ` Ren, Yongjie
@ 2013-01-07  9:20           ` Gleb Natapov
  2013-01-10  6:30             ` Ren, Yongjie
  0 siblings, 1 reply; 9+ messages in thread
From: Gleb Natapov @ 2013-01-07  9:20 UTC (permalink / raw)
  To: Ren, Yongjie; +Cc: Stefan Pietsch, kvm@vger.kernel.org

On Mon, Jan 07, 2013 at 09:13:37AM +0000, Ren, Yongjie wrote:
> > -----Original Message-----
> > From: kvm-owner@vger.kernel.org [mailto:kvm-owner@vger.kernel.org]
> > On Behalf Of Gleb Natapov
> > Sent: Monday, January 07, 2013 4:54 PM
> > To: Ren, Yongjie
> > Cc: Stefan Pietsch; kvm@vger.kernel.org
> > Subject: Re: Installation of Windows 8 hangs with KVM
> > 
> > On Mon, Jan 07, 2013 at 08:38:59AM +0000, Ren, Yongjie wrote:
> > > > -----Original Message-----
> > > > From: kvm-owner@vger.kernel.org
> > [mailto:kvm-owner@vger.kernel.org]
> > > > On Behalf Of Stefan Pietsch
> > > > Sent: Monday, January 07, 2013 2:25 AM
> > > > To: Gleb Natapov
> > > > Cc: kvm@vger.kernel.org
> > > > Subject: Re: Installation of Windows 8 hangs with KVM
> > > >
> > > > * Gleb Natapov <gleb@redhat.com> [2013-01-06 11:11]:
> > > > > On Fri, Jan 04, 2013 at 10:58:33PM +0100, Stefan Pietsch wrote:
> > > > > > Hi all,
> > > > > >
> > > > > > when I run KVM with this command the Windows 8 installation
> > stops
> > > > with
> > > > > > error code 0x0000005D:
> > > > > > kvm -m 1024 -hda win8.img -cdrom windows_8_x86.iso
> > > > > >
> > > > > > After adding the option "-cpu host" the installation proceeds to a
> > black
> > > > > > screen and hangs.
> > > > > >
> > > > > > With Virtualbox the installation succeeds.
> > > > > > The host CPU is an Intel Core Duo L2400.
> > > > > >
> > > > > > Do you have any suggestions?
> > > > > >
> > > > > >
> > > > > What is your kernel/qemu version?
> > > >
> > > > I'm using Debian unstable.
> > > >
> > > > qemu-kvm 1.1.2+dfsg-3
> > > > Linux version 3.2.0-4-686-pae (debian-kernel@lists.debian.org) (gcc
> > > > version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.2.35-2
> > > >
> > > you met issue only for 32bit Win8 (not 64 bit Win8), right?
> > > I think it's the same issue as the below bug I reported.
> > > https://bugs.launchpad.net/qemu/+bug/1007269
> > > You can try with '-cpu coreduo' or '-cpu core2duo' in qemu-kvm command
> > line.
> > >
> > > This should be a known issue which is caused by missing 'SEP' CPU flag.
> > > See another bug in Redhat bugzilla.
> > > https://bugzilla.redhat.com/show_bug.cgi?id=821741
> > >
> > That was RHEL kernel bug. Doubt Debian one has it.
> > 
> I don't think so. It should be a qemu bug (also described in that RHEL bugzilla).
https://bugzilla.redhat.com/show_bug.cgi?id=821463 is the kernel one.

> In my SandyBridge platform, 32bit Win8 guest can boot up with '-cpu SandyBridge,+sep' in qemu-kvm CLI.
> But it can't boot up with '-cpu SandyBridge'.
> 
Which qemu version? Master has sep in SandyBridge definition. In any
case -cpu host should have sep enabled.

--
			Gleb.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Installation of Windows 8 hangs with KVM
  2013-01-07  8:38     ` Ren, Yongjie
  2013-01-07  8:53       ` Gleb Natapov
@ 2013-01-08  9:14       ` Stefan Pietsch
  1 sibling, 0 replies; 9+ messages in thread
From: Stefan Pietsch @ 2013-01-08  9:14 UTC (permalink / raw)
  To: Ren, Yongjie; +Cc: Gleb Natapov, kvm@vger.kernel.org

* Ren, Yongjie <yongjie.ren@intel.com> [2013-01-07 09:38]:

> you met issue only for 32bit Win8 (not 64 bit Win8), right?
> I think it's the same issue as the below bug I reported.
> https://bugs.launchpad.net/qemu/+bug/1007269
> You can try with '-cpu coreduo' or '-cpu core2duo' in qemu-kvm command line.

Yes, I'm talking about 32bit Windows 8. The CPU does not support 64bit.
Booting with "-cpu coreduo" or "core2duo" does not show the 5D error but
a black screen after a few minutes.

I'm not able to do a successful boot of the installation ISO with KVM.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: Installation of Windows 8 hangs with KVM
  2013-01-07  9:20           ` Gleb Natapov
@ 2013-01-10  6:30             ` Ren, Yongjie
  0 siblings, 0 replies; 9+ messages in thread
From: Ren, Yongjie @ 2013-01-10  6:30 UTC (permalink / raw)
  To: Gleb Natapov; +Cc: Stefan Pietsch, kvm@vger.kernel.org

> -----Original Message-----
> From: Gleb Natapov [mailto:gleb@redhat.com]
> Sent: Monday, January 07, 2013 5:21 PM
> To: Ren, Yongjie
> Cc: Stefan Pietsch; kvm@vger.kernel.org
> Subject: Re: Installation of Windows 8 hangs with KVM
> 
> On Mon, Jan 07, 2013 at 09:13:37AM +0000, Ren, Yongjie wrote:
> > > -----Original Message-----
> > > From: kvm-owner@vger.kernel.org
> [mailto:kvm-owner@vger.kernel.org]
> > > On Behalf Of Gleb Natapov
> > > Sent: Monday, January 07, 2013 4:54 PM
> > > To: Ren, Yongjie
> > > Cc: Stefan Pietsch; kvm@vger.kernel.org
> > > Subject: Re: Installation of Windows 8 hangs with KVM
> > >
> > > On Mon, Jan 07, 2013 at 08:38:59AM +0000, Ren, Yongjie wrote:
> > > > > -----Original Message-----
> > > > > From: kvm-owner@vger.kernel.org
> > > [mailto:kvm-owner@vger.kernel.org]
> > > > > On Behalf Of Stefan Pietsch
> > > > > Sent: Monday, January 07, 2013 2:25 AM
> > > > > To: Gleb Natapov
> > > > > Cc: kvm@vger.kernel.org
> > > > > Subject: Re: Installation of Windows 8 hangs with KVM
> > > > >
> > > > > * Gleb Natapov <gleb@redhat.com> [2013-01-06 11:11]:
> > > > > > On Fri, Jan 04, 2013 at 10:58:33PM +0100, Stefan Pietsch wrote:
> > > > > > > Hi all,
> > > > > > >
> > > > > > > when I run KVM with this command the Windows 8 installation
> > > stops
> > > > > with
> > > > > > > error code 0x0000005D:
> > > > > > > kvm -m 1024 -hda win8.img -cdrom windows_8_x86.iso
> > > > > > >
> > > > > > > After adding the option "-cpu host" the installation proceeds to
> a
> > > black
> > > > > > > screen and hangs.
> > > > > > >
> > > > > > > With Virtualbox the installation succeeds.
> > > > > > > The host CPU is an Intel Core Duo L2400.
> > > > > > >
> > > > > > > Do you have any suggestions?
> > > > > > >
> > > > > > >
> > > > > > What is your kernel/qemu version?
> > > > >
> > > > > I'm using Debian unstable.
> > > > >
> > > > > qemu-kvm 1.1.2+dfsg-3
> > > > > Linux version 3.2.0-4-686-pae (debian-kernel@lists.debian.org) (gcc
> > > > > version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.2.35-2
> > > > >
> > > > you met issue only for 32bit Win8 (not 64 bit Win8), right?
> > > > I think it's the same issue as the below bug I reported.
> > > > https://bugs.launchpad.net/qemu/+bug/1007269
> > > > You can try with '-cpu coreduo' or '-cpu core2duo' in qemu-kvm
> command
> > > line.
> > > >
> > > > This should be a known issue which is caused by missing 'SEP' CPU
> flag.
> > > > See another bug in Redhat bugzilla.
> > > > https://bugzilla.redhat.com/show_bug.cgi?id=821741
> > > >
> > > That was RHEL kernel bug. Doubt Debian one has it.
> > >
> > I don't think so. It should be a qemu bug (also described in that RHEL
> bugzilla).
> https://bugzilla.redhat.com/show_bug.cgi?id=821463 is the kernel one.
> 
> > In my SandyBridge platform, 32bit Win8 guest can boot up with '-cpu
> SandyBridge,+sep' in qemu-kvm CLI.
> > But it can't boot up with '-cpu SandyBridge'.
> >
> Which qemu version? Master has sep in SandyBridge definition. In any
> case -cpu host should have sep enabled.
> 
Oh, sorry for my bad memory. I'm not sure it's about SEP.
I shouldn't have taken 'SandyBridge' model as an example because 32bit Win8 can boot up on 'SandyBridge' model.
'qemu64' is the default CPU model in QEMU/KVM on x86-64, but its 'family number' definition is not accurate. 
The vendor of 'qemu64' is defined as 'AMD'.
For AMD processors, AMD K8 CPU (e.g. AMD Family 15) firstly introduced SSE3 instruction set.
'qemu64' already has 'CPUID_EXT_SSE3' in its ext_features, but its family number is only 6 (not equal or bigger than 15).
If I update the family number of 'qemu64' to '15', 32bit Win8 guest can boot up with the default 'qemu64' CPU model.
32bit Win8 may have some requirements of a 64bit CPU model.
The following patch can be a fix for 'qemu64' definition. 

diff --git a/target-i386/cpu.c b/target-i386/cpu.c
index 78bd61e..89b203b 100644
--- a/target-i386/cpu.c
+++ b/target-i386/cpu.c
@@ -363,7 +363,7 @@ static x86_def_t builtin_x86_defs[] = {
         .vendor1 = CPUID_VENDOR_AMD_1,
         .vendor2 = CPUID_VENDOR_AMD_2,
         .vendor3 = CPUID_VENDOR_AMD_3,
-        .family = 6,
+        .family = 15,
         .model = 2,
         .stepping = 3,
         .features = PPRO_FEATURES |

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-01-10  6:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-04 21:58 Installation of Windows 8 hangs with KVM Stefan Pietsch
2013-01-06 10:11 ` Gleb Natapov
2013-01-06 18:24   ` Stefan Pietsch
2013-01-07  8:38     ` Ren, Yongjie
2013-01-07  8:53       ` Gleb Natapov
2013-01-07  9:13         ` Ren, Yongjie
2013-01-07  9:20           ` Gleb Natapov
2013-01-10  6:30             ` Ren, Yongjie
2013-01-08  9:14       ` Stefan Pietsch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox