qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Fwd: Problem booting 32 bit guest on 64 bit host using kvm
       [not found] <CAMgy+8MmP+mkN0Ox6qvcGuWuJK6Dq5qSuEbawQRvsodxm41roA@mail.gmail.com>
@ 2013-01-01  1:17 ` Mark Blakeney
  2013-01-01 10:08   ` Gleb Natapov
  0 siblings, 1 reply; 10+ messages in thread
From: Mark Blakeney @ 2013-01-01  1:17 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 887 bytes --]

Hi, I am inexperienced using QEMU and hoping somebody here can help me.

Some time ago I cloned a disk image of an old Solaris legacy system and was
able to successfully boot and use it within QEMU. Recently I upgraded my
host from i386 Ubuntu 12.04 to a new box running x86_64 Ubuntu 12.10. Now I
find that the same qemu command line results in that guest failing to boot
with a "no active boot partition" error message.

The command I have been using is:

qemu-system-i386 \
  -machine pc,accel=kvm \
  -m 256M \
  -vga std \
  -net nic,vlan=1,model=pcnet \
  -net user,vlan=1,hostfwd=::8050-$GUEST:22 \
  -hda "$DISK"

I find that if I change to "accel=tcg" in above command (or add -no-kvm)
then the guest will boot ok but I find my host works much harder & slower
than when I use kvm. Is there a qemu option so I can use kvm but get around
this guest boot issue?

Thanks,

--
Mark.

[-- Attachment #2: Type: text/html, Size: 1251 bytes --]

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

* Re: [Qemu-devel] Fwd: Problem booting 32 bit guest on 64 bit host using kvm
  2013-01-01  1:17 ` [Qemu-devel] Fwd: Problem booting 32 bit guest on 64 bit host using kvm Mark Blakeney
@ 2013-01-01 10:08   ` Gleb Natapov
  2013-01-01 11:17     ` Mark Blakeney
  0 siblings, 1 reply; 10+ messages in thread
From: Gleb Natapov @ 2013-01-01 10:08 UTC (permalink / raw)
  To: Mark Blakeney; +Cc: qemu-devel

On Tue, Jan 01, 2013 at 11:17:52AM +1000, Mark Blakeney wrote:
> Hi, I am inexperienced using QEMU and hoping somebody here can help me.
> 
> Some time ago I cloned a disk image of an old Solaris legacy system and was
> able to successfully boot and use it within QEMU. Recently I upgraded my
> host from i386 Ubuntu 12.04 to a new box running x86_64 Ubuntu 12.10. Now I
> find that the same qemu command line results in that guest failing to boot
> with a "no active boot partition" error message.
> 
> The command I have been using is:
> 
> qemu-system-i386 \
>   -machine pc,accel=kvm \
>   -m 256M \
>   -vga std \
>   -net nic,vlan=1,model=pcnet \
>   -net user,vlan=1,hostfwd=::8050-$GUEST:22 \
>   -hda "$DISK"
> 
> I find that if I change to "accel=tcg" in above command (or add -no-kvm)
> then the guest will boot ok but I find my host works much harder & slower
> than when I use kvm. Is there a qemu option so I can use kvm but get around
> this guest boot issue?
> 
What is your kernel version?

--
			Gleb.

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

* Re: [Qemu-devel] Fwd: Problem booting 32 bit guest on 64 bit host using kvm
  2013-01-01 10:08   ` Gleb Natapov
@ 2013-01-01 11:17     ` Mark Blakeney
  2013-01-01 11:30       ` Gleb Natapov
  0 siblings, 1 reply; 10+ messages in thread
From: Mark Blakeney @ 2013-01-01 11:17 UTC (permalink / raw)
  To: Gleb Natapov; +Cc: qemu-devel

Linux pc 3.7.0-7-generic #15-Ubuntu SMP Sat Dec 15 16:34:25 UTC 2012
x86_64 x86_64 x86_64 GNU/Linux (Ubuntu version 3.7.0.7.11)

I am using xorg edgers on Ubuntu 12.10 because I have a brand new box
and have been seeing graphics issues so trying latest drivers.
However, I am fairly sure I tried booting that qemu image on the stock
Ubuntu kernel (3.5.0.21.27) with the same result.

--
Mark Blakeney.


On Tue, Jan 1, 2013 at 8:08 PM, Gleb Natapov <gleb@redhat.com> wrote:
> On Tue, Jan 01, 2013 at 11:17:52AM +1000, Mark Blakeney wrote:
>> Hi, I am inexperienced using QEMU and hoping somebody here can help me.
>>
>> Some time ago I cloned a disk image of an old Solaris legacy system and was
>> able to successfully boot and use it within QEMU. Recently I upgraded my
>> host from i386 Ubuntu 12.04 to a new box running x86_64 Ubuntu 12.10. Now I
>> find that the same qemu command line results in that guest failing to boot
>> with a "no active boot partition" error message.
>>
>> The command I have been using is:
>>
>> qemu-system-i386 \
>>   -machine pc,accel=kvm \
>>   -m 256M \
>>   -vga std \
>>   -net nic,vlan=1,model=pcnet \
>>   -net user,vlan=1,hostfwd=::8050-$GUEST:22 \
>>   -hda "$DISK"
>>
>> I find that if I change to "accel=tcg" in above command (or add -no-kvm)
>> then the guest will boot ok but I find my host works much harder & slower
>> than when I use kvm. Is there a qemu option so I can use kvm but get around
>> this guest boot issue?
>>
> What is your kernel version?
>
> --
>                         Gleb.

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

* Re: [Qemu-devel] Fwd: Problem booting 32 bit guest on 64 bit host using kvm
  2013-01-01 11:17     ` Mark Blakeney
@ 2013-01-01 11:30       ` Gleb Natapov
  2013-01-01 12:42         ` Mark Blakeney
  0 siblings, 1 reply; 10+ messages in thread
From: Gleb Natapov @ 2013-01-01 11:30 UTC (permalink / raw)
  To: Mark Blakeney; +Cc: qemu-devel

On Tue, Jan 01, 2013 at 09:17:52PM +1000, Mark Blakeney wrote:
> Linux pc 3.7.0-7-generic #15-Ubuntu SMP Sat Dec 15 16:34:25 UTC 2012
> x86_64 x86_64 x86_64 GNU/Linux (Ubuntu version 3.7.0.7.11)
> 
> I am using xorg edgers on Ubuntu 12.10 because I have a brand new box
> and have been seeing graphics issues so trying latest drivers.
> However, I am fairly sure I tried booting that qemu image on the stock
> Ubuntu kernel (3.5.0.21.27) with the same result.
> 
So is there kernel that works, or kvm never worked for this image?

> --
> Mark Blakeney.
> 
> 
> On Tue, Jan 1, 2013 at 8:08 PM, Gleb Natapov <gleb@redhat.com> wrote:
> > On Tue, Jan 01, 2013 at 11:17:52AM +1000, Mark Blakeney wrote:
> >> Hi, I am inexperienced using QEMU and hoping somebody here can help me.
> >>
> >> Some time ago I cloned a disk image of an old Solaris legacy system and was
> >> able to successfully boot and use it within QEMU. Recently I upgraded my
> >> host from i386 Ubuntu 12.04 to a new box running x86_64 Ubuntu 12.10. Now I
> >> find that the same qemu command line results in that guest failing to boot
> >> with a "no active boot partition" error message.
> >>
> >> The command I have been using is:
> >>
> >> qemu-system-i386 \
> >>   -machine pc,accel=kvm \
> >>   -m 256M \
> >>   -vga std \
> >>   -net nic,vlan=1,model=pcnet \
> >>   -net user,vlan=1,hostfwd=::8050-$GUEST:22 \
> >>   -hda "$DISK"
> >>
> >> I find that if I change to "accel=tcg" in above command (or add -no-kvm)
> >> then the guest will boot ok but I find my host works much harder & slower
> >> than when I use kvm. Is there a qemu option so I can use kvm but get around
> >> this guest boot issue?
> >>
> > What is your kernel version?
> >
> > --
> >                         Gleb.

--
			Gleb.

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

* Re: [Qemu-devel] Fwd: Problem booting 32 bit guest on 64 bit host using kvm
  2013-01-01 11:30       ` Gleb Natapov
@ 2013-01-01 12:42         ` Mark Blakeney
  2013-01-01 14:17           ` Gleb Natapov
  0 siblings, 1 reply; 10+ messages in thread
From: Mark Blakeney @ 2013-01-01 12:42 UTC (permalink / raw)
  To: Gleb Natapov; +Cc: qemu-devel

As per first post, kvm worked for me on Ubuntu 12.04 32 bit with
whatever 3.* kernel that was. I have upgraded to a new box with newly
installed Ubuntu 12.10 64 bit and now kvm does not work. Same qemu
image. I suspect the architecture change from 32 to 64 bit is the
issue here but I guess you are suggesting it may be related to the
kernel upgrade?

--
Mark Blakeney.


On Tue, Jan 1, 2013 at 9:30 PM, Gleb Natapov <gleb@redhat.com> wrote:
> On Tue, Jan 01, 2013 at 09:17:52PM +1000, Mark Blakeney wrote:
>> Linux pc 3.7.0-7-generic #15-Ubuntu SMP Sat Dec 15 16:34:25 UTC 2012
>> x86_64 x86_64 x86_64 GNU/Linux (Ubuntu version 3.7.0.7.11)
>>
>> I am using xorg edgers on Ubuntu 12.10 because I have a brand new box
>> and have been seeing graphics issues so trying latest drivers.
>> However, I am fairly sure I tried booting that qemu image on the stock
>> Ubuntu kernel (3.5.0.21.27) with the same result.
>>
> So is there kernel that works, or kvm never worked for this image?
>
>> --
>> Mark Blakeney.
>>
>>
>> On Tue, Jan 1, 2013 at 8:08 PM, Gleb Natapov <gleb@redhat.com> wrote:
>> > On Tue, Jan 01, 2013 at 11:17:52AM +1000, Mark Blakeney wrote:
>> >> Hi, I am inexperienced using QEMU and hoping somebody here can help me.
>> >>
>> >> Some time ago I cloned a disk image of an old Solaris legacy system and was
>> >> able to successfully boot and use it within QEMU. Recently I upgraded my
>> >> host from i386 Ubuntu 12.04 to a new box running x86_64 Ubuntu 12.10. Now I
>> >> find that the same qemu command line results in that guest failing to boot
>> >> with a "no active boot partition" error message.
>> >>
>> >> The command I have been using is:
>> >>
>> >> qemu-system-i386 \
>> >>   -machine pc,accel=kvm \
>> >>   -m 256M \
>> >>   -vga std \
>> >>   -net nic,vlan=1,model=pcnet \
>> >>   -net user,vlan=1,hostfwd=::8050-$GUEST:22 \
>> >>   -hda "$DISK"
>> >>
>> >> I find that if I change to "accel=tcg" in above command (or add -no-kvm)
>> >> then the guest will boot ok but I find my host works much harder & slower
>> >> than when I use kvm. Is there a qemu option so I can use kvm but get around
>> >> this guest boot issue?
>> >>
>> > What is your kernel version?
>> >
>> > --
>> >                         Gleb.
>
> --
>                         Gleb.

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

* Re: [Qemu-devel] Fwd: Problem booting 32 bit guest on 64 bit host using kvm
  2013-01-01 12:42         ` Mark Blakeney
@ 2013-01-01 14:17           ` Gleb Natapov
  2013-01-02  7:35             ` Mark Blakeney
  0 siblings, 1 reply; 10+ messages in thread
From: Gleb Natapov @ 2013-01-01 14:17 UTC (permalink / raw)
  To: Mark Blakeney; +Cc: qemu-devel

On Tue, Jan 01, 2013 at 10:42:26PM +1000, Mark Blakeney wrote:
> As per first post, kvm worked for me on Ubuntu 12.04 32 bit with
> whatever 3.* kernel that was. I have upgraded to a new box with newly
> installed Ubuntu 12.10 64 bit and now kvm does not work. Same qemu
> image. I suspect the architecture change from 32 to 64 bit is the
> issue here but I guess you are suggesting it may be related to the
> kernel upgrade?
> 
Don't know yet. What was the kernel version on 12.04 32 bit?
You said that kernel 3.5 64bit does not work for you either.
Can you try older kernel?

> --
> Mark Blakeney.
> 
> 
> On Tue, Jan 1, 2013 at 9:30 PM, Gleb Natapov <gleb@redhat.com> wrote:
> > On Tue, Jan 01, 2013 at 09:17:52PM +1000, Mark Blakeney wrote:
> >> Linux pc 3.7.0-7-generic #15-Ubuntu SMP Sat Dec 15 16:34:25 UTC 2012
> >> x86_64 x86_64 x86_64 GNU/Linux (Ubuntu version 3.7.0.7.11)
> >>
> >> I am using xorg edgers on Ubuntu 12.10 because I have a brand new box
> >> and have been seeing graphics issues so trying latest drivers.
> >> However, I am fairly sure I tried booting that qemu image on the stock
> >> Ubuntu kernel (3.5.0.21.27) with the same result.
> >>
> > So is there kernel that works, or kvm never worked for this image?
> >
> >> --
> >> Mark Blakeney.
> >>
> >>
> >> On Tue, Jan 1, 2013 at 8:08 PM, Gleb Natapov <gleb@redhat.com> wrote:
> >> > On Tue, Jan 01, 2013 at 11:17:52AM +1000, Mark Blakeney wrote:
> >> >> Hi, I am inexperienced using QEMU and hoping somebody here can help me.
> >> >>
> >> >> Some time ago I cloned a disk image of an old Solaris legacy system and was
> >> >> able to successfully boot and use it within QEMU. Recently I upgraded my
> >> >> host from i386 Ubuntu 12.04 to a new box running x86_64 Ubuntu 12.10. Now I
> >> >> find that the same qemu command line results in that guest failing to boot
> >> >> with a "no active boot partition" error message.
> >> >>
> >> >> The command I have been using is:
> >> >>
> >> >> qemu-system-i386 \
> >> >>   -machine pc,accel=kvm \
> >> >>   -m 256M \
> >> >>   -vga std \
> >> >>   -net nic,vlan=1,model=pcnet \
> >> >>   -net user,vlan=1,hostfwd=::8050-$GUEST:22 \
> >> >>   -hda "$DISK"
> >> >>
> >> >> I find that if I change to "accel=tcg" in above command (or add -no-kvm)
> >> >> then the guest will boot ok but I find my host works much harder & slower
> >> >> than when I use kvm. Is there a qemu option so I can use kvm but get around
> >> >> this guest boot issue?
> >> >>
> >> > What is your kernel version?
> >> >
> >> > --
> >> >                         Gleb.
> >
> > --
> >                         Gleb.

--
			Gleb.

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

* Re: [Qemu-devel] Fwd: Problem booting 32 bit guest on 64 bit host using kvm
  2013-01-01 14:17           ` Gleb Natapov
@ 2013-01-02  7:35             ` Mark Blakeney
  2013-01-02  9:40               ` Gleb Natapov
  0 siblings, 1 reply; 10+ messages in thread
From: Mark Blakeney @ 2013-01-02  7:35 UTC (permalink / raw)
  To: Gleb Natapov; +Cc: qemu-devel

Ubuntu 12.04 (precise) kernel is 3.2.0.35.40. Too hard to downgrade kermel.

I should mention that I installed current qemu 1.3.0 from source but
made no difference. I also had installed 1.3.0 from source on my older
ubuntu system (trying to fix a problem which I later solved another
way) and it worked fine. So I don't think this is an issue with
older/later versions of qemu.

Another very odd thing is that about one in 40 attempts the image will
boot in kvm. Completely random though it seems. Always boots if I add
"-no-kvm".

--
Mark Blakeney.

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

* Re: [Qemu-devel] Fwd: Problem booting 32 bit guest on 64 bit host using kvm
  2013-01-02  7:35             ` Mark Blakeney
@ 2013-01-02  9:40               ` Gleb Natapov
  2013-01-02 12:26                 ` Mark Blakeney
  0 siblings, 1 reply; 10+ messages in thread
From: Gleb Natapov @ 2013-01-02  9:40 UTC (permalink / raw)
  To: Mark Blakeney; +Cc: qemu-devel

On Wed, Jan 02, 2013 at 05:35:44PM +1000, Mark Blakeney wrote:
> Ubuntu 12.04 (precise) kernel is 3.2.0.35.40. Too hard to downgrade kermel.
> 
So, as far as I understand, you moved from 3.2.0 32bit kernel to
3.5.0/3.7.0 64bit kernel and things stopped working. It is hard to
conclude that this is 32 vs 64 bit problem from that. Can you compile
3.2 64bit kernel and try it?

> I should mention that I installed current qemu 1.3.0 from source but
> made no difference. I also had installed 1.3.0 from source on my older
> ubuntu system (trying to fix a problem which I later solved another
> way) and it worked fine. So I don't think this is an issue with
> older/later versions of qemu.
> 
> Another very odd thing is that about one in 40 attempts the image will
> boot in kvm. Completely random though it seems. Always boots if I add
> "-no-kvm".
> 
> --
> Mark Blakeney.

--
			Gleb.

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

* Re: [Qemu-devel] Fwd: Problem booting 32 bit guest on 64 bit host using kvm
  2013-01-02  9:40               ` Gleb Natapov
@ 2013-01-02 12:26                 ` Mark Blakeney
  2013-01-02 12:58                   ` Gleb Natapov
  0 siblings, 1 reply; 10+ messages in thread
From: Mark Blakeney @ 2013-01-02 12:26 UTC (permalink / raw)
  To: Gleb Natapov; +Cc: qemu-devel

FYI, I just discovered that I can make my Solaris guest boot every
time in kvm by specifying an interactive boot at the boot prompt and
then just hand stepping through the default prompts. Presumably there
is a timing issue in the guest boot sequence which kvm is exposing
when running natively on my new current gen cpu + ssd box. It seems
slowing down the boot artificially by hand stepping, or by running
with -no-kvm, or by running on my older hardware + hdd, avoids this.

So sorry but this seems likely a bug in the old Solaris 2.5.1 guest OS
when running on modern fast hardware(?). Now I know about this
interactive boot option I can just use it to boot each time. There are
only 3 quick prompts so it is not really a bother.

The guest runs fine in kvm after booting so this speed related bug is
only during the initial boot sequence.

Thanks for your help.

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

* Re: [Qemu-devel] Fwd: Problem booting 32 bit guest on 64 bit host using kvm
  2013-01-02 12:26                 ` Mark Blakeney
@ 2013-01-02 12:58                   ` Gleb Natapov
  0 siblings, 0 replies; 10+ messages in thread
From: Gleb Natapov @ 2013-01-02 12:58 UTC (permalink / raw)
  To: Mark Blakeney; +Cc: qemu-devel

On Wed, Jan 02, 2013 at 10:26:55PM +1000, Mark Blakeney wrote:
> FYI, I just discovered that I can make my Solaris guest boot every
> time in kvm by specifying an interactive boot at the boot prompt and
> then just hand stepping through the default prompts. Presumably there
> is a timing issue in the guest boot sequence which kvm is exposing
> when running natively on my new current gen cpu + ssd box. It seems
> slowing down the boot artificially by hand stepping, or by running
> with -no-kvm, or by running on my older hardware + hdd, avoids this.
> 
Interesting. Thanks for the update and report back if you will find
something new please.

> So sorry but this seems likely a bug in the old Solaris 2.5.1 guest OS
> when running on modern fast hardware(?). Now I know about this
> interactive boot option I can just use it to boot each time. There are
> only 3 quick prompts so it is not really a bother.
> 
> The guest runs fine in kvm after booting so this speed related bug is
> only during the initial boot sequence.
> 
> Thanks for your help.

--
			Gleb.

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

end of thread, other threads:[~2013-01-02 12:58 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CAMgy+8MmP+mkN0Ox6qvcGuWuJK6Dq5qSuEbawQRvsodxm41roA@mail.gmail.com>
2013-01-01  1:17 ` [Qemu-devel] Fwd: Problem booting 32 bit guest on 64 bit host using kvm Mark Blakeney
2013-01-01 10:08   ` Gleb Natapov
2013-01-01 11:17     ` Mark Blakeney
2013-01-01 11:30       ` Gleb Natapov
2013-01-01 12:42         ` Mark Blakeney
2013-01-01 14:17           ` Gleb Natapov
2013-01-02  7:35             ` Mark Blakeney
2013-01-02  9:40               ` Gleb Natapov
2013-01-02 12:26                 ` Mark Blakeney
2013-01-02 12:58                   ` Gleb Natapov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).