kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Timeout of network interface with OpenBSD 4.5 VM
@ 2009-07-17 20:13 Daniel Bareiro
  0 siblings, 0 replies; 6+ messages in thread
From: Daniel Bareiro @ 2009-07-17 20:13 UTC (permalink / raw)
  To: KVM General

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

Hi all!

Until today I was using OpenBSD 4.5 like KVM virtual machine on Ubuntu
Hardy Heron server amd64 with KVM-62. But due to a bug that could affect
to hosts with a high rate of I/O [1], I decided to update to KVM-88
compiled from sources from KVM site.

Although with the other virtual machines that it had in the host I did
not have problems, I have now some problems with the installation of
OpenBSD on KVM-88

Next I paste the output when connecting to the VM by means of serial
console from the host machine. After 'mtrr: Pentium Pro MTRR support', I
see an 'u' followed sometimes by an 'k', and the operating system is
rebooted repetitively when arriving at this instance.

- ---------------------------------------------------------------------------
root@ubuntu:/etc/modprobe.d# telnet localhost 4001
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
>> OpenBSD/i386 BOOT 3.02
boot>
booting hd0a:/bsd: 6039964+1059784 [52+336688+318896]=0x7657ec
entry point at 0x200120

[ using 656008 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
   The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2009 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 4.5 (GENERIC) #1749: Sat Feb 28 14:51:18 MST 2009
    deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: QEMU Virtual CPU version 0.9.1 ("AuthenticAMD" 686-class, 512KB L2 cache) 1.71 GHz
cpu0: FPU,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3
real mem  = 536375296 (511MB)
avail mem = 510361600 (486MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 07/08/09, BIOS32 rev. 0 @ 0xfb4d0, SMBIOS rev. 2.4 @ 0xfbd3f (10 entries)
bios0: vendor QEMU version "QEMU" date 01/01/2007
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP APIC
acpi0: wakeup devices
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
acpiprt0 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0
mpbios0 at bios0: Intel MP Specification 1.4
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 1000MHz
mpbios0: bus 0 is type ISA
ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 11, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 1
bios0: ROM list: 0xc0000/0x8c00
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82441FX" rev 0x02
pcib0 at pci0 dev 1 function 0 "Intel 82371SB ISA" rev 0x00
pciide0 at pci0 dev 1 function 1 "Intel 82371SB IDE" rev 0x00: DMA, channel 0 wired to compatibility, channel 1 wired to comp
wd0 at pciide0 channel 0 drive 0: <QEMU HARDDISK>
wd0: 16-sector PIO, LBA48, 38912MB, 79691776 sectors
wd0(pciide0:0:0): using PIO mode 0, DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <QEMU, QEMU DVD-ROM, 0.9.> ATAPI 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 0
piixpm0 at pci0 dev 1 function 3 "Intel 82371AB Power" rev 0x03: apic 1 int 4 (irq 10)
iic0 at piixpm0
iic0: addr 0x18 00=d0 01=d0 02=d0 03=d0 04=d0 05=d0 06=d0 07=d0 08=d0 words 00=0000 01=0000 02=0000 03=0000 04=0000 05=0000 0
iic0: addr 0x1a 00=d0 01=d0 02=d0 03=d0 04=d0 05=d0 06=d0 07=d0 08=d0 words 00=0000 01=0000 02=0000 03=0000 04=0000 05=0000 0
iic0: addr 0x4c 00=d0 01=d0 02=d0 03=d0 04=d0 05=d0 06=d0 07=d0 08=d0 words 00=0000 01=0000 02=0000 03=0000 04=0000 05=0000 0
iic0: addr 0x4e 00=d0 01=d0 02=d0 03=d0 04=d0 05=d0 06=d0 07=d0 08=d0 words 00=0000 01=0000 02=0000 03=0000 04=0000 05=0000 0
vga1 at pci0 dev 2 function 0 "Cirrus Logic CL-GD5446" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ne3 at pci0 dev 3 function 0 "Realtek 8029" rev 0x00: apic 1 int 12 (irq 11), address 00:16:3e:00:00:35
unknown vendor 0x1af4 product 0x1002 (class memory subclass RAM, rev 0x00) at pci0 dev 4 function 0 not configured
unknown vendor 0x1af4 product 0x1003 (class prehistoric unknown subclass 0xff, rev 0x00) at pci0 dev 5 function 0 not configu
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pmsi0 at pckbc0 (aux slot)
pckbc0: unable to establish interrupt for aux slot
wsmouse0 at pmsi0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: density unknown
fd1 at fdc0 drive 1: density unknown
mtrr: Pentium Pro MTRR support
u>> OpenBSD/i386 BOOT 3.02
boot>
booting hd0a:/bsd: 6039964+1059784 [52+336688+318896]=0x7657ec
entry point at 0x200120
- ---------------------------------------------------------------------------

If I start the VM with the --no-acpi option, OpenBSD boots without
problems, but I obtain timeouts of the network interface and this host
loses the connectivity with the rest of the network maintaining the
option model=ne2k_pci (same configuration used for KVM-62) when start
the VM. Some idea of which can be the problem?

Thanks in advance.

Regards,
Daniel

[1] https://bugs.launchpad.net/ubuntu/+source/kvm/+bug/359447
- -- 
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Squeeze - Linux user #188.598
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkpg228ACgkQZpa/GxTmHTeBawCdFL9Sj4+JomzRv1ulqqpw46JV
MucAnixZ1IIkkZNs/+je0CZ+hxuzqJaf
=4mxY
-----END PGP SIGNATURE-----

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

* Re: Timeout of network interface with OpenBSD 4.5 VM
@ 2009-07-20 15:51 Chris Dukes
  2009-07-24  9:08 ` Daniel Bareiro
  0 siblings, 1 reply; 6+ messages in thread
From: Chris Dukes @ 2009-07-20 15:51 UTC (permalink / raw)
  To: daniel-listas; +Cc: kvm

Per a posting to openbsd misc mailing list on the 15th by Nick Osborn

> 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.

And he goes on to post a minimal kernel config that achieves that goal.
-- 
Chris Dukes

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

* Re: Timeout of network interface with OpenBSD 4.5 VM
  2009-07-20 15:51 Timeout of network interface with OpenBSD 4.5 VM Chris Dukes
@ 2009-07-24  9:08 ` Daniel Bareiro
  2009-07-24 11:43   ` Chris Dukes
  2009-07-24 12:03   ` Chris Dukes
  0 siblings, 2 replies; 6+ messages in thread
From: Daniel Bareiro @ 2009-07-24  9:08 UTC (permalink / raw)
  To: kvm

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

Hi Chris.

On Monday, 20 July 2009 11:51:14 -0400,
Chris Dukes wrote:

> Per a posting to openbsd misc mailing list on the 15th by Nick Osborn
 
> > 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.
 
> And he goes on to post a minimal kernel config that achieves that
> goal.

I was trying with the configuration suggested by Nick, but in this case
I get a panic [1]. Reading a post of Dmitiry Zotikov [2], it would seem
that the one is a problem with Qemu.

Thanks for your reply.

Regards,
Daniel

[1] http://thread.gmane.org/gmane.os.openbsd.misc/160465/focus=161149
[2] http://thread.gmane.org/gmane.os.openbsd.misc/160945
-- 
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Squeeze - Linux user #188.598

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

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

* Re: Timeout of network interface with OpenBSD 4.5 VM
  2009-07-24  9:08 ` Daniel Bareiro
@ 2009-07-24 11:43   ` Chris Dukes
  2009-07-24 12:03   ` Chris Dukes
  1 sibling, 0 replies; 6+ messages in thread
From: Chris Dukes @ 2009-07-24 11:43 UTC (permalink / raw)
  To: dbareiro, kvm

On Fri, Jul 24, 2009 at 06:08:51AM -0300, Daniel Bareiro wrote:
> Hi Chris.
> 
> I was trying with the configuration suggested by Nick, but in this case
> I get a panic [1]. Reading a post of Dmitiry Zotikov [2], it would seem
> that the one is a problem with Qemu.
> 
> Thanks for your reply.

Well, I was recently able to get 32 bit OpenBSD 4.5 running under
kvm-88 by taking the stock GENERIC config and only disabling the mpbios
device.

I'll try to drop the kernel and the config file somewhere
later this morning to see if it's just a fluke for
KVM-88 on 2.6.27 on a core2duo.
> 
> Regards,
> Daniel
> 
> [1] http://thread.gmane.org/gmane.os.openbsd.misc/160465/focus=161149
> [2] http://thread.gmane.org/gmane.os.openbsd.misc/160945
> -- 
> Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
> Powered by Debian GNU/Linux Squeeze - Linux user #188.598



-- 
Chris Dukes

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

* Re: Timeout of network interface with OpenBSD 4.5 VM
  2009-07-24  9:08 ` Daniel Bareiro
  2009-07-24 11:43   ` Chris Dukes
@ 2009-07-24 12:03   ` Chris Dukes
  2009-07-25 20:46     ` Daniel Bareiro
  1 sibling, 1 reply; 6+ messages in thread
From: Chris Dukes @ 2009-07-24 12:03 UTC (permalink / raw)
  To: dbareiro, kvm

http://zeniv.linux.org.uk/~pakrat/obsd45

3 configs, 3 kernels.
All work on a Core2 Duo T7300 running 2.6.27-7-generic (From ubuntu intrepid)
crammed onto a laptop that's mostly running hardy.
The OpenBSD virtual machines have 256M allocated, e1000 NIC, and vde backing
it.


-- 
Chris Dukes

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

* Re: Timeout of network interface with OpenBSD 4.5 VM
  2009-07-24 12:03   ` Chris Dukes
@ 2009-07-25 20:46     ` Daniel Bareiro
  0 siblings, 0 replies; 6+ messages in thread
From: Daniel Bareiro @ 2009-07-25 20:46 UTC (permalink / raw)
  To: kvm

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

Hi Chris.

On Friday, 24 July 2009 08:03:29 -0400,
Chris Dukes wrote:

> http://zeniv.linux.org.uk/~pakrat/obsd45
> 
> 3 configs, 3 kernels.
> All work on a Core2 Duo T7300 running 2.6.27-7-generic (From ubuntu
> intrepid) crammed onto a laptop that's mostly running hardy.

> The OpenBSD virtual machines have 256M allocated, e1000 NIC, and vde
> backing it.

Firstly, thank you very much by to take the trouble to test and to put
the files in a site.

I was testing the compiled kernels that you provided to me in the VM
with OpenBSD 4.5 in my host with KVM-88 running Ubuntu Hardy Heron
server amd64 on a Athlon 64 X2 3800+ using a kernel 2.6.24-19-server.

The boot parameters were the following:

# OpenBSD
$KVM -hda /dev/vm/fugu-disk -m 512 -boot c -net \
 nic,vlan=0,macaddr=00:16:3e:00:00:35,model=ne2k_pci -net tap \
 -daemonize -vnc :4 -k es -localtime -serial \
 telnet:localhost:4001,server,nowait

bsd.kvm3 and bsd.kvm4 boots without problems and the VM has connectivity
with the rest of my LAN, nevertheless bsd.kvm3l boots without problems
but the network interface does not take the static IP assigned (in none
of the three cases it uses DHCP).

With kernel bsd.kvm3l:

fugu:~# ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33204
        priority: 0
        groups: lo
        inet 127.0.0.1 netmask 0xff000000
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
enc0: flags=0<> mtu 1536
        priority: 0

With kernel bsd.kvm[34]:

fugu:~# ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33204
        priority: 0
        groups: lo
        inet 127.0.0.1 netmask 0xff000000
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
ne3: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:16:3e:00:00:35
        priority: 0
        groups: egress
        media: Ethernet 10baseT full-duplex
        inet 10.1.0.12 netmask 0xffffff00 broadcast 10.1.0.255
        inet6 fe80::216:3eff:fe00:35%ne3 prefixlen 64 scopeid 0x1
enc0: flags=0<> mtu 1536
        priority: 0

On the other hand, also I tried to compile the kernel with the
configuration files that you provided to me booting the operating system
with a kernel GENERIC and the option --no-acpi of kvm so that boot
finishes successful (although this way did not have connectivity),
although under these circumstances some of the locally compiled kernels
did not work.

KVM4 boots without problems, but giving a 'ne3: device timeout' and the
VM loses connectivity with the LAN even though the network interface is
configured with its static IP. KVM3 boots OK and it doesn't presents
networking problems. KVM3L boots OK but the interface is not configured
with its static IP as in the previous case with the kernel compiled for
you.

Also I was trying to boot the VM with the KVM option model=e1000. In
this case, the kernels locally compiled with KVM3 and KVM3L didn't
present problems when boot or with the configuration of network,
nevertheless, with kernel locally compiled with KVM4L were rebooted
after mttr similar to as it happened with GENERIC kernel:

mtrr: Pentium Pro MTRR support
uk>> OpenBSD/i386 BOOT 3.02
boot>
booting hd0a:/bsd: 6039964+1059784 [52+336688+318896]=0x7657ec
entry point at 0x200120

and occasionally the boot finishes with:

mtrr: Pentium Pro MTRR support
uvm_fault(0xd080d9e0, 0x0, 0, 1) -> e
kernel: page fault trap, code=0
                               kkkkkkkkkkkkkernel: page fault trap,
code=0
Skernel: page fault trap, code=0
Skernel: page fault trap, code=0
Skernel: page fault trap, code=0
Skernel: page fault trap, code=0
Sstray interrupt 12
kkernel: page fault trap, code=0
Stopped at      kernel: page fault trap, code=0
Stopped at      kernel: page fault trap, code=0
Stopped at      kernel: page fault trap, code=0
Stopped at      kernel: page fault trap, code=0
Stopped at      kernel: page fault trap, code=0
Stopped at      kernel: page fault trap, code=0
Stopped at      kernel: page fault trap, code=0
Stopped at      kernel: page fault trap, code=0
Stopped at      kernel: page fault trap, code=0
Stopped at      kernel: page fault trap, code=0
Stopped at      kernel: page fault trap, code=0
Stopped at      kernel: page fault trap, code=0
Stopped at      kernel: page fault trap, code=0
Stopped at      kernel: page fault trap, code=0
Stopped at      kernel: page fault trap, code=0
Stopped at      kernel: page fault trap, code=0
--db_more--


With the three compiled kernels that you provided to me, I didn't have
no kind of problem during boot or of networking using model=e1000,
although it draws attention to me to observe these differences that
commented to you. This difference will be related to hardware that I am
using?

CPU: Athlon 64 X2 3800+
Motherboard: M2N32 SLI
Network interface: 2 x nVidia MCP55

I don't have much experience compiling OpenBSD kernel, but the procedure
that I used was the following one:

* Download ftp://ftp.openbsd.org/pub/OpenBSD/4.5/sys.tar.gz
* Copy it to /usr/src
* To extract the files in the tarball.
* Copy the config file to /usr/src/sys/arch/i386/conf/
* run 'config <KVM_KERNEL_CONFG>'
* cd /usr/src/sys/arch/i386/compile/<KVM_KERNEL_CONFG>
* run 'make depend' and 'make'.


Thanks again for your time.

Regards,
Daniel
-- 
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Squeeze - Linux user #188.598

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

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

end of thread, other threads:[~2009-07-25 20:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-20 15:51 Timeout of network interface with OpenBSD 4.5 VM Chris Dukes
2009-07-24  9:08 ` Daniel Bareiro
2009-07-24 11:43   ` Chris Dukes
2009-07-24 12:03   ` Chris Dukes
2009-07-25 20:46     ` Daniel Bareiro
  -- strict thread matches above, loose matches on Subject: below --
2009-07-17 20:13 Daniel Bareiro

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).