Problems with 4.5 as a KVM guest

View: New views
15 Messages — Rating Filter:   Alert me  

Problems with 4.5 as a KVM guest

by Stan-18 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am trying to get OpenBSD 4.5 working as a guest OS using KVM on Linux. I
have been able to get 4.4 to install and run fine, but 4.5 never gives me a
login prompt. The last message I see is about setting tty flgas. On the
reboot after first install t paniced.

Any sugestions as to what to do to get this working?

--
One of the main causes of the fall of the roman empire was that, lacking
zero, they had no way to indicate successful termination of their C
programs.


Re: Problems with 4.5 as a KVM guest

by Michiel van Baak-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 10:36, Sun 05 Jul 09, stan wrote:
> I am trying to get OpenBSD 4.5 working as a guest OS using KVM on Linux. I
> have been able to get 4.4 to install and run fine, but 4.5 never gives me a
> login prompt. The last message I see is about setting tty flgas. On the
> reboot after first install t paniced.

I have the same. Google shows some others have as well.
>
> Any sugestions as to what to do to get this working?

Run openbsd on real hardware :)

--

Michiel van Baak
michiel@...
http://michiel.vanbaak.eu
GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x71C946BD

"Why is it drug addicts and computer aficionados are both called users?"


Re: Problems with 4.5 as a KVM guest

by Comète-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

same problem for me too.

Michiel van Baak a icrit :

> On 10:36, Sun 05 Jul 09, stan wrote:
>> I am trying to get OpenBSD 4.5 working as a guest OS using KVM on Linux. I
>> have been able to get 4.4 to install and run fine, but 4.5 never gives me a
>> login prompt. The last message I see is about setting tty flgas. On the
>> reboot after first install t paniced.
>
> I have the same. Google shows some others have as well.
>> Any sugestions as to what to do to get this working?
>
> Run openbsd on real hardware :)


Re: Problems with 4.5 as a KVM guest

by Bob Beck-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

* Michiel van Baak <michiel@...> [2009-07-05 11:05]:

> On 10:36, Sun 05 Jul 09, stan wrote:
> > I am trying to get OpenBSD 4.5 working as a guest OS using KVM on Linux. I
> > have been able to get 4.4 to install and run fine, but 4.5 never gives me a
> > login prompt. The last message I see is about setting tty flgas. On the
> > reboot after first install t paniced.
>
> I have the same. Google shows some others have as well.
> >
> > Any sugestions as to what to do to get this working?
>
> Run openbsd on real hardware :)
>
and/or ask the linux people to fix KVM to make it really a PC.


Re: Problems with 4.5 as a KVM guest

by Nick Osborn :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 14 Jul 2009, at 18:27, Bob Beck wrote:

> * Michiel van Baak <michiel@...> [2009-07-05 11:05]:
>> On 10:36, Sun 05 Jul 09, stan wrote:
>>> I am trying to get OpenBSD 4.5 working as a guest OS using KVM on  
>>> Linux. I
>>> have been able to get 4.4 to install and run fine, but 4.5 never  
>>> gives me a
>>> login prompt. The last message I see is about setting tty flgas.  
>>> On the
>>> reboot after first install t paniced.
>>
>> I have the same. Google shows some others have as well.
>>>
>>> Any sugestions as to what to do to get this working?
>>
>> Run openbsd on real hardware :)
>>
> and/or ask the linux people to fix KVM to make it really a PC.
>
All good advice, but in the meantime a kernel without acpimadt,  
ioapic, and
mpbios drivers will do the job. It appears they must be completely  
removed
rather than just disabled.

Minimalist "works for me" config:

machine i386
option ACCOUNTING
option KTRACE
option CD9660
option FFS
option MFS
option FFS_SOFTUPDATES
option FIFO
option QUOTA
option UFS_DIRHASH
option CRYPTO
option PCIVERBOSE
option UVM_SWAP_ENCRYPT
option ALTQ
option INET
option INET6
option IPSEC
option TCP_SACK
option APM_NOPRINT
option SCSITERSE
option SVSVMSG
option SYSVSEM
option SYSVSHM
maxusers 40
config bsd root on wd0a swap on wd0b
mainbus0 at root
bios0 at mainbus0
pcibios0 at bios0 flags 0x0000
acpi0 at bios?
acpitimer* at acpi?
acpiprt* at acpi?
acpicpu* at acpi?
acpiec* at acpi?
cpu0 at mainbus?
pci* at mainbus0
pchb* at pci?
pcib* at pci?
pciide* at pci? flags 0x0000
wd* at pciide? flags 0x0000
atapiscsi* at pciide?
scsibus* at atapiscsi?
cd* at scsibus?
piixpm* at pci?
iic* at piixpm?
vga* at pci?
wsdisplay* at vga?
em* at pci?
isa0 at pcib?
isadma0 at isa?
com0 at isa? disable port 0x3f8 irq 4
pckbc0 at isa?
pckbd* at pckbc?
wskbd* at pckbd? mux 0
npx0 at isa? port 0xf0 irq 13
fdc0 at isa? disable port 0x3f0 irq 6 drq 2
softraid0 at root
scsibus* at softraid?
sd* at scsibus?
pseudo-device carp
pseudo-device gif
pseudo-device pf
pseudo-device pflog
pseudo-device pflow
pseudo-device pfsync
pseudo-device tun
pseudo-device bio 1
pseudo-device bpfilter 1
pseudo-device enc 1
pseudo-device ksyms 1
pseudo-device loop 1
pseudo-device pty 16
pseudo-device systrace 1
pseudo-device wsmux 1


Re: Problems with 4.5 as a KVM guest

by Daniel Bareiro :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Nick.

> Nick Osborn escribiC3:

>>>> I am trying to get OpenBSD 4.5 working as a guest OS using KVM on  
>>>> Linux. I
>>>> have been able to get 4.4 to install and run fine, but 4.5 never  
>>>> gives me a
>>>> login prompt. The last message I see is about setting tty flgas.  
>>>> On the
>>>> reboot after first install t paniced.

>>> I have the same. Google shows some others have as well.

>>>> Any sugestions as to what to do to get this working?

>>> Run openbsd on real hardware :)

>> and/or ask the linux people to fix KVM to make it really a PC.

> All good advice, but in the meantime a kernel without acpimadt,
> ioapic, and mpbios drivers will do the job. It appears they must be
> completely removed rather than just disabled.
>
> Minimalist "works for me" config:
>
> machine i386
> option ACCOUNTING
> option KTRACE
> option CD9660
> option FFS
> option MFS
> option FFS_SOFTUPDATES
> option FIFO
> option QUOTA
> option UFS_DIRHASH
> option CRYPTO
> option PCIVERBOSE
> option UVM_SWAP_ENCRYPT
> option ALTQ
> option INET
> option INET6
> option IPSEC
> option TCP_SACK
> option APM_NOPRINT
> option SCSITERSE
> option SVSVMSG
> option SYSVSEM
> option SYSVSHM
> maxusers 40
> config bsd root on wd0a swap on wd0b
> mainbus0 at root
> bios0 at mainbus0
> pcibios0 at bios0 flags 0x0000
> acpi0 at bios?
> acpitimer* at acpi?
> acpiprt* at acpi?
> acpicpu* at acpi?
> acpiec* at acpi?
> cpu0 at mainbus?
> pci* at mainbus0
> pchb* at pci?
> pcib* at pci?
> pciide* at pci? flags 0x0000
> wd* at pciide? flags 0x0000
> atapiscsi* at pciide?
> scsibus* at atapiscsi?
> cd* at scsibus?
> piixpm* at pci?
> iic* at piixpm?
> vga* at pci?
> wsdisplay* at vga?
> em* at pci?
> isa0 at pcib?
> isadma0 at isa?
> com0 at isa? disable port 0x3f8 irq 4
> pckbc0 at isa?
> pckbd* at pckbc?
> wskbd* at pckbd? mux 0
> npx0 at isa? port 0xf0 irq 13
> fdc0 at isa? disable port 0x3f0 irq 6 drq 2
> softraid0 at root
> scsibus* at softraid?
> sd* at scsibus?
> pseudo-device carp
> pseudo-device gif
> pseudo-device pf
> pseudo-device pflog
> pseudo-device pflow
> pseudo-device pfsync
> pseudo-device tun
> pseudo-device bio 1
> pseudo-device bpfilter 1
> pseudo-device enc 1
> pseudo-device ksyms 1
> pseudo-device loop 1
> pseudo-device pty 16
> pseudo-device systrace 1
> pseudo-device wsmux 1

I was trying this configuration to test when booting if this kernel
solve my problem [1] using OpenBSD 4.5 with KVM-88, but I get a panic:

npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
biomask fdfd netmask fdfd ttymask ffff
uvm_fault(0xd03de740, 0x0, 0, 3) -> e
fatal page fault (6) in supervisor mode
trap type 6 code 2 eip d027fbdf cs 8 eflags 10046 cr2 0 cpl 0
panic: trap type 6, code=2, pc=d027fbdf
syncing disks... done


This problem can be due to APM? [2]

Regards,
Daniel

[1] http://thread.gmane.org/gmane.os.openbsd.misc/160658
[2] http://www.cromwell-intl.com/unix/openbsd-dell.html#booting
iEYEARECAAYFAkppEp4ACgkQZpa/GxTmHTeASACfVwa2s8vXfzvb/tIb4kqztwME
kD4An03VRg7X3birf4DsOMwVe2l2+kp/
=LIw7
-----END PGP SIGNATURE-----


Re: Problems with 4.5 as a KVM guest

by Toni Mueller-10 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

On Tue, 14.07.2009 at 11:27:13 -0600, Bob Beck <beck@...> wrote:
> and/or ask the linux people to fix KVM to make it really a PC.

I'm running kvm 85+dfsg-4~bpo5 and see the following interesting
behaviour with OpenBSD 4.6:

* /bsd.rd runs just fine, using the ne(4) driver, but
* /bsd (the uni-processor kernel) locks up hard during, or just
  after booting, showing "ne3: timeout" (or similar) messages
  white-on-blue in between.

Any ideas about what specifically to ask the "Linux folks", please?

--
Kind regards,
--Toni++


Re: Problems with 4.5 as a KVM guest

by John Jackson-7 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Oct 29, 2009 at 12:18:40PM +0100, Toni Mueller wrote:

> Hi,
>
> On Tue, 14.07.2009 at 11:27:13 -0600, Bob Beck <beck@...> wrote:
> > and/or ask the linux people to fix KVM to make it really a PC.
>
> I'm running kvm 85+dfsg-4~bpo5 and see the following interesting
> behaviour with OpenBSD 4.6:
>
> * /bsd.rd runs just fine, using the ne(4) driver, but
> * /bsd (the uni-processor kernel) locks up hard during, or just
>   after booting, showing "ne3: timeout" (or similar) messages
>   white-on-blue in between.
>
> Any ideas about what specifically to ask the "Linux folks", please?
>
> --
> Kind regards,
> --Toni++
>

Try setting the nic to e1000 on your kvm commandline.

John


Re: Problems with 4.5 as a KVM guest

by Michiel van Baak-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 12:18, Thu 29 Oct 09, Toni Mueller wrote:

> Hi,
>
> On Tue, 14.07.2009 at 11:27:13 -0600, Bob Beck <beck@...> wrote:
> > and/or ask the linux people to fix KVM to make it really a PC.
>
> I'm running kvm 85+dfsg-4~bpo5 and see the following interesting
> behaviour with OpenBSD 4.6:
>
> * /bsd.rd runs just fine, using the ne(4) driver, but
> * /bsd (the uni-processor kernel) locks up hard during, or just
>   after booting, showing "ne3: timeout" (or similar) messages
>   white-on-blue in between.
>
> Any ideas about what specifically to ask the "Linux folks", please?

Set the nic to e1000 in KVM


--

Michiel van Baak
michiel@...
http://michiel.vanbaak.eu
GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x71C946BD

"Why is it drug addicts and computer aficionados are both called users?"


Re: Problems with 4.5 as a KVM guest

by Toni Mueller-10 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks, John and Michiel,

On Thu, 29.10.2009 at 14:02:27 +0100, Michiel van Baak <michiel@...> wrote:

> On 12:18, Thu 29 Oct 09, Toni Mueller wrote:
> > I'm running kvm 85+dfsg-4~bpo5 and see the following interesting
> > behaviour with OpenBSD 4.6:
> >
> > * /bsd.rd runs just fine, using the ne(4) driver, but
> > * /bsd (the uni-processor kernel) locks up hard during, or just
> >   after booting, showing "ne3: timeout" (or similar) messages
> >   white-on-blue in between.
> >
> > Any ideas about what specifically to ask the "Linux folks", please?
>
> Set the nic to e1000 in KVM

but this was not successful, either. I got a bunch of:

em0: watchdog timeout -- resetting

and

"No DHCPOFFERS received."

After having booted to completion (the "login:" prompt appears), the
machine. I've now run the VM with a VNC display, and on that, I can see
that the machine spews out a large number of

em0: watchdog timeout -- resetting

messages, and then locks up.


--
Kind regards,
--Toni++


Re: Problems with 4.5 as a KVM guest

by Michiel van Baak-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 19:20, Fri 30 Oct 09, Toni Mueller wrote:

> Thanks, John and Michiel,
>
> On Thu, 29.10.2009 at 14:02:27 +0100, Michiel van Baak <michiel@...> wrote:
> > On 12:18, Thu 29 Oct 09, Toni Mueller wrote:
> > > I'm running kvm 85+dfsg-4~bpo5 and see the following interesting
> > > behaviour with OpenBSD 4.6:
> > >
> > > * /bsd.rd runs just fine, using the ne(4) driver, but
> > > * /bsd (the uni-processor kernel) locks up hard during, or just
> > >   after booting, showing "ne3: timeout" (or similar) messages
> > >   white-on-blue in between.
> > >
> > > Any ideas about what specifically to ask the "Linux folks", please?
> >
> > Set the nic to e1000 in KVM
>
> but this was not successful, either. I got a bunch of:
>
> em0: watchdog timeout -- resetting
>
> and
>
> "No DHCPOFFERS received."

I tried to upgrade my 4.5 and got the same.
Sorry, have no way around it for the moment. I reverted the vm back to
it's previous working state.

--

Michiel van Baak
michiel@...
http://michiel.vanbaak.eu
GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x71C946BD

"Why is it drug addicts and computer aficionados are both called users?"


Re: Problems with 4.5 as a KVM guest

by Chris Dukes-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Oct 31, 2009 at 09:42:58AM +0100, Michiel van Baak wrote:
>
> I tried to upgrade my 4.5 and got the same.
> Sorry, have no way around it for the moment. I reverted the vm back to
> it's previous working state.

GENERIC has a few things enabled that play hob with current generation KVM
and
QEMU.
Stock OpenBSD 4.5 will boot after install on Virtual Box.
From there you can build a kernel with a custom config with those things
deconfigured.

Back in July I tracked down the relevant problem pieces, but have
since forgotten what worked and what didn't.

Config files and kernels are available at
http://ftp.linux.org.uk/~pakrat/obsd45
At least one of the configs and kernels works with July 24th
vintage KVM on Ubuntu Hardy with Ubuntu Intrepid kernel and libc.

I'm fairly certain I posted about it here back then and on the KVM
mailing lists back then.
I found the ballpark for the config changes after READING the KVM
mailing lists from around the time 4.5 was released.

I have yet to be bored enough to repeat the excercise with OpenBSD 4.6.
--
Chris Dukes


Re: Problems with 4.5 as a KVM guest

by Tomas Bodzar-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

4.6 or -current is working fine in VirtualBox too but still some weird things :

1) X use vesa driver
2) If you switch from one console to another then your console will be
with somewhat red/brown background
3) If you reboot then during boot your OpenBSD will stop on mtrr(4)
driver. if you just shutdown your machine and then start it again then
no problem.

On Sat, Oct 31, 2009 at 8:40 PM, Chris Dukes <pakrat@...> wrote:

> On Sat, Oct 31, 2009 at 09:42:58AM +0100, Michiel van Baak wrote:
>>
>> I tried to upgrade my 4.5 and got the same.
>> Sorry, have no way around it for the moment. I reverted the vm back to
>> it's previous working state.
>
> GENERIC has a few things enabled that play hob with current generation KVM
> and
> QEMU.
> Stock OpenBSD 4.5 will boot after install on Virtual Box.
> From there you can build a kernel with a custom config with those things
> deconfigured.
>
> Back in July I tracked down the relevant problem pieces, but have
> since forgotten what worked and what didn't.
>
> Config files and kernels are available at
> http://ftp.linux.org.uk/~pakrat/obsd45
> At least one of the configs and kernels works with July 24th
> vintage KVM on Ubuntu Hardy with Ubuntu Intrepid kernel and libc.
>
> I'm fairly certain I posted about it here back then and on the KVM
> mailing lists back then.
> I found the ballpark for the config changes after READING the KVM
> mailing lists from around the time 4.5 was released.
>
> I have yet to be bored enough to repeat the excercise with OpenBSD 4.6.
> --
> Chris Dukes
>
>



--
http://www.openbsd.org/lyrics.html


Re: Problems with 4.5 as a KVM guest

by Garry Dolley-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Oct 31, 2009 at 09:42:58AM +0100, Michiel van Baak wrote:

> On 19:20, Fri 30 Oct 09, Toni Mueller wrote:
> > Thanks, John and Michiel,
> >
> > On Thu, 29.10.2009 at 14:02:27 +0100, Michiel van Baak <michiel@...> wrote:
> > > On 12:18, Thu 29 Oct 09, Toni Mueller wrote:
> > > > I'm running kvm 85+dfsg-4~bpo5 and see the following interesting
> > > > behaviour with OpenBSD 4.6:
> > > >
> > > > * /bsd.rd runs just fine, using the ne(4) driver, but
> > > > * /bsd (the uni-processor kernel) locks up hard during, or just
> > > >   after booting, showing "ne3: timeout" (or similar) messages
> > > >   white-on-blue in between.
> > > >
> > > > Any ideas about what specifically to ask the "Linux folks", please?
> > >
> > > Set the nic to e1000 in KVM
> >
> > but this was not successful, either. I got a bunch of:
> >
> > em0: watchdog timeout -- resetting
> >
> > and
> >
> > "No DHCPOFFERS received."
>
> I tried to upgrade my 4.5 and got the same.
> Sorry, have no way around it for the moment. I reverted the vm back to
> it's previous working state.

This is how I got OpenBSD 4.5 working:

http://scie.nti.st/2009/10/4/running-openbsd-4-5-in-kvm-on-ubuntu-linux-9-04

--
Garry Dolley
ARP Networks, Inc. | http://www.arpnetworks.com | (818) 206-0181
Data center, VPS, and IP Transit solutions
Member Los Angeles County REACT, Unit 336 | WQGK336
Blog http://scie.nti.st


Re: Problems with 4.5 as a KVM guest

by Philip Higgins :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, Nov 1, 2009 at 5:54 PM, Garry Dolley <gdolley@...> wrote:

> On Sat, Oct 31, 2009 at 09:42:58AM +0100, Michiel van Baak wrote:
>>
>> I tried to upgrade my 4.5 and got the same.
>> Sorry, have no way around it for the moment. I reverted the vm back to
>> it's previous working state.
>
> This is how I got OpenBSD 4.5 working:
>
> http://scie.nti.st/2009/10/4/running-openbsd-4-5-in-kvm-on-ubuntu-linux-9-04
>

FWIW, this procedure works for 4.6 on Xen as well. The issue is probably
somewhere in the common QEMU code.

--
Philip Higgins