Re: Problems with 4.5 as a KVM guest

2009-11-11 Thread Philip Higgins
On Sun, Nov 1, 2009 at 5:54 PM, Garry Dolley gdol...@arpnetworks.com 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



Re: Problems with 4.5 as a KVM guest

2009-11-01 Thread Tomáš Bodžár
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 pak...@pr.neotoma.org 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

2009-11-01 Thread Garry Dolley
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 
  mich...@vanbaak.info 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

2009-10-31 Thread Chris Dukes
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

2009-10-30 Thread Toni Mueller
Thanks, John and Michiel,

On Thu, 29.10.2009 at 14:02:27 +0100, Michiel van Baak mich...@vanbaak.info 
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

2009-10-29 Thread Toni Mueller
Hi,

On Tue, 14.07.2009 at 11:27:13 -0600, Bob Beck b...@openbsd.org 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

2009-10-29 Thread John Jackson
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 b...@openbsd.org 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

2009-10-29 Thread Michiel van Baak
On 12:18, Thu 29 Oct 09, Toni Mueller wrote:
 Hi,
 
 On Tue, 14.07.2009 at 11:27:13 -0600, Bob Beck b...@openbsd.org 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
mich...@vanbaak.eu
http://michiel.vanbaak.eu
GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x71C946BD

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



Re: Problems with 4.5 as a KVM guest

2009-07-23 Thread Daniel Bareiro
-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 0x
 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 0x
 wd* at pciide? flags 0x
 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 
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

2009-07-14 Thread Bob Beck
* Michiel van Baak mich...@vanbaak.info [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

2009-07-14 Thread Nick Osborn

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


* Michiel van Baak mich...@vanbaak.info [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 0x
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 0x
wd* at pciide? flags 0x
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

2009-07-05 Thread Michiel van Baak
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
mich...@vanbaak.eu
http://michiel.vanbaak.eu
GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x71C946BD

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



Re: Problems with 4.5 as a KVM guest

2009-07-05 Thread Comète
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 :)