2005年9月25日(日)

NetBSD/xen まとめ

そんな訳で NetBSD/xen ができた。
前回のエントリで参照した文書に尽きているが、手順は

  1. NetBSD install
  2. current の src tree で build
    NetBSD では build world に build.sh を使う。 build で DESTDIR に作成しておいて distribution し、別途 postinstall で /etc の下などを merge
  3. pkgsrc から grub と xentools をインストール
  4. grub をインストール
  5. xen 配布物から xen kernel をコピー。 domain0 用 kernel は build
  6. menu.lst でメモリの割当てや、安全な kernel での起動設定など (NetBSD/xen howto を参照)。

domain0 kernel は mp kernel ではないのだが、ここで SCSI のドライバを有効にしていたら、やはり刺さった。
ついでに、 USB のストレージを刺しても認識しなくなった…。

ゲストOSはまだ準備してない。
一方ホスト OS だが、 dual CPU+memory 320M で、やっと OS の build ができる程度だったのが、 single CPU+memory 256M になってしまって、能力的には無駄に落ちた気がする……。これからどうする? ゲストOSとgridでもしてリソースを集約するか?(無意味

古い Pentium Pro の SMP と SCSI の組み合わせが悪いんだろうか…( FreeBSD 3-stable では無事動いていたんだが…)。

mp kernel の dmesgl

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights reserved.

NetBSD 3.99.8 (J2) #8: Sat Sep 10 00:44:47 JST 2005
root@:/home/src/sys/arch/i386/compile/obj/J2
total memory = 319 MB
avail memory = 307 MB
BIOS32 rev. 0 found at 0xfdb70
mainbus0 (root)
mainbus0: scanning 0x9f400 to 0x9f7f0 for MP signature
mainbus0: scanning 0xf0000 to 0xffff0 for MP signature
mainbus0: MP floating pointer found in bios at 0xfab10
mainbus0: MP config table at 0xf57b0, 340 bytes long
ACPI-0163: *** Error: AcpiLoadTables: Could not get RSDP, AE_NO_ACPI_TABLES
ACPI-0217: *** Error: AcpiLoadTables: Could not load tables: AE_NO_ACPI_TABLES
ACPI: unable to load tables: AE_NO_ACPI_TABLES
mainbus0: Intel MP Specification (Version 1.1) (INTEL    82440FX     )
cpu0 at mainbus0: apid 1 (boot processor)
cpu0: Intel Pentium Pro (686-class), 200.47 MHz, id 0x617
cpu0: features fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features fbff<PGE,MCA,CMOV>
cpu0: I-cache 8 KB 32B/line 4-way, D-cache 8 KB 32B/line 2-way
cpu0: L2 cache 256 KB 32B/line 4-way
cpu0: ITLB 32 4 KB entries 4-way, 2 4 MB entries fully associative
cpu0: DTLB 64 4 KB entries 4-way, 8 4 MB entries 4-way
cpu0: calibrating local timer
cpu0: apic clock running at 66 MHz
cpu0: 16 page colors
cpu0: kstack at 0xca6a1000 for 16384 bytes
cpu0: idle pcb at 0xca6a1000, idle sp at 0xca6a4f98
cpu1 at mainbus0: apid 0 (application processor)
cpu1: starting
cpu1: Intel Pentium Pro (686-class), 200.46 MHz, id 0x619
cpu1: features fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu1: features fbff<PGE,MCA,CMOV>
cpu1: I-cache 8 KB 32B/line 4-way, D-cache 8 KB 32B/line 2-way
cpu1: L2 cache 256 KB 32B/line 4-way
cpu1: ITLB 32 4 KB entries 4-way, 2 4 MB entries fully associative
cpu1: DTLB 64 4 KB entries 4-way, 8 4 MB entries 4-way
cpu1: kstack at 0xca6ad000 for 16384 bytes
cpu1: idle pcb at 0xca6ad000, idle sp at 0xca6b0f98
mpbios: bus 0 is type PCI   
mpbios: bus 1 is type ISA   
ioapic0 at mainbus0 apid 2 (I/O APIC)
ioapic0: pa 0xfec00000, virtual wire mode, version 11, 24 pins
ioapic0: int0 attached to ExtINT (type 3<type=3=ExtINT> flags 0<pol=0,trig=0>)
ioapic0: int1 attached to isa0 irq 1 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int2 attached to isa0 irq 0 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int3 attached to isa0 irq 3 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int4 attached to isa0 irq 4 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int5 attached to isa0 irq 5 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int6 attached to isa0 irq 6 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int7 attached to isa0 irq 7 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int8 attached to isa0 irq 8 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int9 attached to isa0 irq 9 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int10 attached to isa0 irq 10 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int11 attached to isa0 irq 11 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int12 attached to isa0 irq 12 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int13 attached to isa0 irq 13 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int14 attached to isa0 irq 14 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int15 attached to isa0 irq 15 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int16 attached to pci0 device 16 INT_A (type 0<type=0> flags f<pol=3=Act Lo,trig=3=Level>)
ioapic0: int17 attached to pci0 device 15 INT_A (type 0<type=0> flags f<pol=3=Act Lo,trig=3=Level>)
ioapic0: int17 attached to pci0 device 14 INT_A (type 0<type=0> flags f<pol=3=Act Lo,trig=3=Level>)
ioapic0: int17 attached to pci0 device 7 INT_D (type 0<type=0> flags f<pol=3=Act Lo,trig=3=Level>)
ioapic0: int18 attached to pci0 device 15 INT_A (type 0<type=0> flags f<pol=3=Act Lo,trig=3=Level>)
ioapic0: int18 attached to pci0 device 14 INT_A (type 0<type=0> flags f<pol=3=Act Lo,trig=3=Level>)
ioapic0: int18 attached to pci0 device 7 INT_D (type 0<type=0> flags f<pol=3=Act Lo,trig=3=Level>)
ioapic0: int19 attached to pci0 device 15 INT_A (type 0<type=0> flags f<pol=3=Act Lo,trig=3=Level>)
ioapic0: int19 attached to pci0 device 14 INT_A (type 0<type=0> flags f<pol=3=Act Lo,trig=3=Level>)
ioapic0: int19 attached to pci0 device 7 INT_D (type 0<type=0> flags f<pol=3=Act Lo,trig=3=Level>)
ioapic0: int23 attached to SMI (type 2<type=2=SMI> flags 0<pol=0,trig=0>)
local apic: int0 attached to ExtINT (type 3<type=3=ExtINT> flags 0<pol=0,trig=0>)
local apic: int1 attached to NMI (type 1<type=1=NMI> flags 0<pol=0,trig=0>)
pnpbios0 at mainbus0: nodes 14, max len 109
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82441FX (PMC) PCI and Memory Controller (rev. 0x02)
pcib0 at pci0 dev 7 function 0
pcib0: Intel 82371SB (PIIX3) PCI-ISA Bridge (rev. 0x01)
pciide0 at pci0 dev 7 function 1
pciide0: Intel 82371SB (PIIX3) IDE Interface (rev. 0x00)
pciide0: bus-master DMA support present, but unused (no driver support)
pciide0: primary channel wired to compatibility mode
pciide0: primary channel interrupting at ioapic0 pin 14 (irq 14)
atabus0 at pciide0 channel 0
pciide0: secondary channel wired to compatibility mode
pciide0: secondary channel ignored (not responding; disabled or no drives?)
uhci0 at pci0 dev 7 function 2: Intel 82371SB (PIIX3) USB Host Controller (rev. 0x01)
uhci0: interrupting at ioapic0 pin 19 (irq 9)
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
vga1 at pci0 dev 12 function 0: S3 ViRGE/DX (rev. 0x01)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
Symbios Logic 53c875/876 (SCSI mass storage, revision 0x04) at pci0 dev 14 function 0 not configured
tlp0 at pci0 dev 15 function 0: DECchip 21140A Ethernet, pass 2.2
tlp0: interrupting at ioapic0 pin 19 (irq 9)
tlp0: Ethernet address 00:40:33:9a:cf:d6
tlp0: 10baseT, 100baseTX, 10baseT-FDX, 100baseTX-FDX
vr0 at pci0 dev 16 function 0: VIA VT3043 (Rhine) 10/100 Ethernet
vr0: interrupting at ioapic0 pin 16 (irq 7)
vr0: Ethernet address: 00:90:cc:00:00:f2
OUI 0x000676 model 0x0000 rev 0 at vr0 phy 1 not configured
isa0 at pcib0
lpt0 at isa0 port 0x378-0x37b irq 7
ne0 at isa0 port 0x280-0x29f irq 9
ne0: NE2000 (RTL8019) Ethernet
ne0: Ethernet address 52:54:4c:00:5d:fe
ne0: 10base2, 10baseT, 10baseT-FDX, auto, default [0x00 0x30] auto
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pmsprobe: reset error 5
attimer0 at isa0 port 0x40-0x43: AT Timer
pcppi0 at isa0 port 0x61
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
pcppi0: attached to attimer0
isapnp0: read port 0x203
isapnp0: <ESS ES1868 Plug and Play AudioD, ESS0000, , > port 0x800/8 not configured
ess0 at isapnp0 port 0x220/16,0x388/4,0x330/2 irq 5 drq 1,0
ess0:: ESS Technology ES1868 [version 0x688b]
ess0: audio1 interrupting at irq 5
audio0 at ess0: half duplex, mmap, independent
opl0 at ess0: model OPL3
midi at opl0 not configured
isapnp0: <ESS ES1868 Plug and Play AudioD, ESS0001, , > port 0x201/1 not configured
isapnp0: <ESS ES1868 Plug and Play AudioD, ESS0002, , > port 0x168/8,0x36e/2 irq 10 not configured
apm0 at mainbus0: Power Management spec V1.2
cpu0: prelint0 700<vector=0,delmode=7,dest=0> 0<target=0>
cpu0: prelint1 400<vector=0,delmode=4,dest=0> 0<target=0>
cpu0: timer0 300c0<vector=c0,delmode=0,masked,dest=0> 0<target=0>
cpu0: pcint0 10000<vector=0,delmode=0,masked,dest=0> 0<target=0>
cpu0: lint0 10700<vector=0,delmode=7,masked,dest=0> 0<target=0>
cpu0: lint1 400<vector=0,delmode=4,dest=0> 0<target=0>
cpu0: err0 1000f<vector=f,delmode=0,masked,dest=0> 0<target=0>
ioapic0: enabling
ioapic0: int1 91<vector=91,delmode=0,dest=0> 1000000<target=1>
ioapic0: int3 d1<vector=d1,delmode=0,dest=0> 1000000<target=1>
ioapic0: int4 d0<vector=d0,delmode=0,dest=0> 1000000<target=1>
ioapic0: int5 b0<vector=b0,delmode=0,dest=0> 1000000<target=1>
ioapic0: int6 62<vector=62,delmode=0,dest=0> 1000000<target=1>
ioapic0: int7 90<vector=90,delmode=0,dest=0> 1000000<target=1>
ioapic0: int9 71<vector=71,delmode=0,dest=0> 1000000<target=1>
ioapic0: int14 60<vector=60,delmode=0,dest=0> 1000000<target=1>
ioapic0: int16 a070<vector=70,delmode=0,actlo,level,dest=0> 1000000<target=1>
ioapic0: int19 a061<vector=61,delmode=0,actlo,level,dest=0> 1000000<target=1>
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
atapibus0 at atabus0: 2 targets
cd0 at atapibus0 drive 1: <_NEC DVD_RW ND-3540A, , 1.01> cdrom removable
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
wd0 at atabus0 drive 0: <WDC AC26400R>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 6149 MB, 13328 cyl, 15 head, 63 sec, 512 bytes/sect x 12594960 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
boot device: wd0
root on wd0a dumps on wd0b
mountroot: trying lfs...
mountroot: trying ffs...
root file system type: ffs
cpu1: prelint0 10000<vector=0,delmode=0,masked,dest=0> 0<target=0>
cpu1: prelint1 10000<vector=0,delmode=0,masked,dest=0> 0<target=0>
cpu1: timer0 200c0<vector=c0,delmode=0,dest=0> 0<target=0>
cpu1: pcint0 10000<vector=0,delmode=0,masked,dest=0> 0<target=0>
cpu1: lint0 10700<vector=0,delmode=7,masked,dest=0> 0<target=0>
cpu1: lint1 400<vector=0,delmode=4,dest=0> 0<target=0>
cpu1: err0 10000<vector=0,delmode=0,masked,dest=0> 0<target=0>
cpu1: CPU 0 running
init: copying out path `/sbin/init' 11

domain0 の dmesg

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights reserved.

NetBSD 3.99.8 (XEN0-J2) #2: Sun Sep 18 21:31:02 JST 2005
root@:/home/src/sys/arch/i386/compile/obj/XEN0-J2
total memory = 251 MB
avail memory = 247 MB
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel Pentium Pro (686-class), 200.46 MHz, id 0x617
cpu0: features fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features fbff<PGE,MCA,CMOV>
cpu0: I-cache 8 KB 32B/line 4-way, D-cache 8 KB 32B/line 2-way
cpu0: L2 cache 256 KB 32B/line 4-way
cpu0: ITLB 32 4 KB entries 4-way, 2 4 MB entries fully associative
cpu0: DTLB 64 4 KB entries 4-way, 8 4 MB entries 4-way
cpu0: 16 page colors
hypervisor0 at mainbus0
debug virtual interrupt using event channel 1
misdirect virtual interrupt using event channel 0
Domain controller: using event channel 2
xencons0 at hypervisor0: Xen Virtual Console Driver
npx0 at hypervisor0: using exception 16
PCI_PROBE_ROOT_BUSES: 0x1 0x0 0x0 0x0 0x0 0x0 0x0 0x0 
pci0 at hypervisor0 bus 0
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82441FX (PMC) PCI and Memory Controller (rev. 0x02)
pcib0 at pci0 dev 7 function 0
pcib0: Intel 82371SB (PIIX3) PCI-ISA Bridge (rev. 0x01)
pciide0 at pci0 dev 7 function 1
pciide0: Intel 82371SB (PIIX3) IDE Interface (rev. 0x00)
pciide0: bus-master DMA support present, but unused (no driver support)
pciide0: primary channel wired to compatibility mode
pciide0: primary channel using event channel 4 for irq 14
atabus0 at pciide0 channel 0
pciide0: secondary channel wired to compatibility mode
pciide0: secondary channel ignored (not responding; disabled or no drives?)
uhci0 at pci0 dev 7 function 2: Intel 82371SB (PIIX3) USB Host Controller (rev. 0x01)
uhci0: interrupting at irq 17, event channel 5
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
vga0 at pci0 dev 12 function 0: S3 ViRGE/DX (rev. 0x01)
wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
wsdisplay0: screen 1-3 added (80x25, vt100 emulation)
Adaptec AHA-2940 Ultra (SCSI mass storage) at pci0 dev 14 function 0 not configured
tlp0 at pci0 dev 15 function 0: DECchip 21140A Ethernet, pass 2.2
tlp0: interrupting at irq 17, event channel 5
tlp0: Ethernet address 00:40:33:9a:cf:d6
tlp0: 10baseT, 100baseTX, 10baseT-FDX, 100baseTX-FDX
vr0 at pci0 dev 16 function 0: VIA VT3043 (Rhine) 10/100 Ethernet
vr0: interrupting at irq 16, event channel 6
vr0: Ethernet address: 00:90:cc:00:00:f2
OUI 0x000676 model 0x0000 rev 0 at vr0 phy 1 not configured
isa0 at pcib0
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pmsprobe: reset error 5
Xen clock: using event channel 8
crypto: assign driver 0, flags 2
crypto: driver 0 registers alg 1 flags 0 maxoplen 0
crypto: driver 0 registers alg 2 flags 0 maxoplen 0
crypto: driver 0 registers alg 3 flags 0 maxoplen 0
crypto: driver 0 registers alg 4 flags 0 maxoplen 0
crypto: driver 0 registers alg 5 flags 0 maxoplen 0
crypto: driver 0 registers alg 17 flags 0 maxoplen 0
crypto: driver 0 registers alg 6 flags 0 maxoplen 0
crypto: driver 0 registers alg 7 flags 0 maxoplen 0
crypto: driver 0 registers alg 15 flags 0 maxoplen 0
crypto: driver 0 registers alg 8 flags 0 maxoplen 0
crypto: driver 0 registers alg 16 flags 0 maxoplen 0
crypto: driver 0 registers alg 9 flags 0 maxoplen 0
crypto: driver 0 registers alg 10 flags 0 maxoplen 0
crypto: driver 0 registers alg 13 flags 0 maxoplen 0
crypto: driver 0 registers alg 14 flags 0 maxoplen 0
crypto: driver 0 registers alg 11 flags 0 maxoplen 0
crypto: driver 0 registers alg 18 flags 0 maxoplen 0
atapibus0 at atabus0: 2 targets
cd0 at atapibus0 drive 1: <_NEC DVD_RW ND-3540A, , 1.01> cdrom removable
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
wd0 at atabus0 drive 0: <WDC AC26400R>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 6149 MB, 13328 cyl, 15 head, 63 sec, 512 bytes/sect x 12594960 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
boot device: wd0
root on wd0a dumps on wd0b
mountroot: trying lfs...
mountroot: trying ffs...
root file system type: ffs
init: copying out path `/sbin/init' 11

[referer: [an error occurred while processing this directive]]

あわせて読みたい