Subject: Creating unprivileged domains
To: None <port-xen@netbsd.org>
From: John R. Shannon <john@johnrshannon.com>
List: port-xen
Date: 11/21/2005 11:05:11
This is a multi-part message in MIME format.
--------------060100090603000700010607
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

I'm attempting to follow the NetBSD/xen Howto, and I'm encountering 
problems install my first unprivaledged domain.

When I type xm create -c /etc/xen/nbsd I get:

Using config file "/etc/xen/nbsd".
Started domain mail, console on port 9602
************ REMOTE CONSOLE: CTRL-] TO QUIT ********
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.0_RC1 (INSTALL_XENU) #0: Sun Nov 20 19:19:23 MST 2005
 
john@domain0.johnrshannon.com:/usr/obj/usr/src/sys/arch/i386/compile/INSTALL_XENU
total memory = 249 MB
avail memory = 243 MB
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel (686-class), 3194.70 MHz, id 0xf41
cpu0: features bfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features bfebfbff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX>
cpu0: features bfebfbff<FXSR,SSE,SSE2,SS,HTT,TM,SBF>
cpu0: I-cache 12K uOp cache 8-way
cpu0: L2 cache 1 MB 64B/line 8-way
cpu0: ITLB 4K/4M: 64 entries
cpu0: DTLB 4K/4M: 64 entries
cpu0: 32 page colors
hypervisor0 at mainbus0
debug virtual interrupt using event channel 2
misdirect virtual interrupt using event channel 0
Domain controller: using event channel 1
xencons0 at hypervisor0: Xen Virtual Console Driver
xencons0: console major 143, unit 0
Initialising Xen virtual ethernet frontend driver.
npx0 at hypervisor0: using exception 16
Xen clock: using event channel 3
Kernelized RAIDframe activated
md0: internal 5000 KB image area
xennet0 at hypervisor0: Xen Virtual Network Interface
xennet1 at hypervisor0: Xen Virtual Network Interface
xennet0: using event channel 4
xennet0: MAC address aa:00:00:13:3a:05
xennet1: using event channel 5
xennet1: MAC address aa:00:00:13:3a:05
xbd: using event channel 6
xbd0 at hypervisor0: Xen Virtual Block Device 14055 MB
xbd1 at hypervisor0: Xen Virtual Block Device 193 MB
boot device: xbd0
root on md0a dumps on md0b
no file system for md0 (dev 0x1100)
cannot mount root, error = 79
root device (default md0a):

/etc/xen/nbsd has:

kernel = "/netbsd-INSTALL_XENU"
memory = 256
name = "mail"
cpu = -1   # leave to Xen to pick
nics = 2
vif = [ 'bridge=bridge0', 'bridge=bridge1' ]
disk = [ 'phy:/dev/cd0a,cd0a,r', 'phy:/dev/sd0g,sd0d,w' ]
root = "/dev/sd0d"


domain0# xm list
Name              Id  Mem(MB)  CPU  State  Time(s)  Console
Domain-0           0      511    0  r----     18.4

I've attached dmesg for domain0

-- 
John R. Shannon
john@johnrshannon.com
john.r.shannon@us.army.mil
john.r.shannon@saic.com
shannonjr@NetBSD.org

--------------060100090603000700010607
Content-Type: text/plain;
 name="dmesg.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="dmesg.txt"

NetBSD 3.0_RC1 (MYXEN0) #7: Mon Nov 21 18:20:19 MST 2005
        john@domain0.johnrshannon.com:/usr/obj/usr/src/sys/arch/i386/compile/MYXEN0
total memory = 506 MB
avail memory = 495 MB
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel (686-class), 3194.70 MHz, id 0xf41
cpu0: features bfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features bfebfbff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX>
cpu0: features bfebfbff<FXSR,SSE,SSE2,SS,HTT,TM,SBF>
cpu0: I-cache 12K uOp cache 8-way
cpu0: L2 cache 1 MB 64B/line 8-way
cpu0: ITLB 4K/4M: 64 entries
cpu0: DTLB 4K/4M: 64 entries
cpu0: 32 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: 0xf 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 82875P Host (rev. 0x02)
ppb0 at pci0 dev 3 function 0: Intel 82875P PCI-CSA Bridge (rev. 0x02)
pci at ppb0 bus 1 not configured
ppb1 at pci0 dev 28 function 0: Intel 6300ESB PCI-X Bridge (rev. 0x02)
pci at ppb1 bus 2 not configured
uhci0 at pci0 dev 29 function 0: Intel 6300ESB USB UHCI Controller (rev. 0x02)
uhci0: interrupting at irq 16, event channel 4
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
uhci1 at pci0 dev 29 function 1: Intel 6300ESB USB UHCI Controller (rev. 0x02)
uhci1: interrupting at irq 19, event channel 5
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
Intel 6300ESB Watchdog Timer (miscellaneous system, revision 0x02) at pci0 dev 29 function 4 not configured
Intel 6300ESB Advanced Interrupt Controller (interrupt system, interface 0x20, revision 0x02) at pci0 dev 29 function 5 not configured
ehci0 at pci0 dev 29 function 7: Intel 6300ESB USB EHCI Controller (rev. 0x02)
ehci0: interrupting at irq 23, event channel 6
ehci0: EHCI version 1.0
ehci0: companion controllers, 2 ports each: uhci0 uhci1
usb2 at ehci0: USB revision 2.0
uhub2 at usb2
uhub2: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub2: single transaction translator
uhub2: 4 ports with 4 removable, self powered
ppb2 at pci0 dev 30 function 0: Intel 82801BA Hub-PCI Bridge (rev. 0x0a)
pci at ppb2 bus 3 not configured
pcib0 at pci0 dev 31 function 0
pcib0: Intel 6300ESB LPC Interface Bridge (rev. 0x02)
piixide0 at pci0 dev 31 function 1
piixide0: Intel 6300ESB IDE Controller (ICH5) (rev. 0x02)
piixide0: bus-master DMA support present
piixide0: primary channel configured to compatibility mode
piixide0: primary channel using event channel 7 for irq 14
atabus0 at piixide0 channel 0
piixide0: secondary channel configured to compatibility mode
piixide0: secondary channel using event channel 8 for irq 15
atabus1 at piixide0 channel 1
piixide1 at pci0 dev 31 function 2
piixide1: Intel 6300ESB Serial ATA Controller (rev. 0x02)
piixide1: bus-master DMA support present
piixide1: primary channel configured to native-PCI mode
piixide1: using irq 18, event channel 9 for native-PCI interrupt
atabus2 at piixide1 channel 0
piixide1: secondary channel configured to native-PCI mode
atabus3 at piixide1 channel 1
Intel 6300ESB SMBus Controller (SMBus serial bus, revision 0x02) at pci0 dev 31 function 3 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
pci1 at hypervisor0 bus 1
pci1: i/o space, memory space enabled
wm0 at pci1 dev 1 function 0: Intel i82547GI 1000BASE-T Ethernet, rev. 0
wm0: interrupting at irq 18, event channel 9
wm0: Communication Streaming Architecture
wm0: 64 word (6 address bits) MicroWire EEPROM
wm0: Ethernet address 00:30:48:82:b4:d8
igphy0 at wm0 phy 1: Intel IGP01E1000 Gigabit PHY, rev. 0
igphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
pci2 at hypervisor0 bus 2
pci2: i/o space, memory space enabled
ahc0 at pci2 dev 2 function 0: Adaptec 3960D Ultra160 SCSI adapter
ahc0: interrupting at irq 25, event channel 11
ahc0: Reading SEEPROM...done.
ahc0: Manual SE Termination
ahc0: BIOS eeprom is present
ahc0: Primary Low Byte termination Enabled
ahc0: Primary High Byte termination Enabled
ahc0: found 32 SCBs
ahc0: Downloading Sequencer Program... 430 instructions downloaded
ahc0: Features 0x1fef6, Bugs 0x40, Flags 0x485540
ahc0: aic7899: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs
scsibus0 at ahc0: 16 targets, 8 luns per target
ahc1 at pci2 dev 2 function 1: Adaptec 3960D Ultra160 SCSI adapter
ahc1: interrupting at irq 26, event channel 12
ahc1: Reading SEEPROM...done.
ahc1: Manual SE Termination
ahc1: BIOS eeprom is present
ahc1: Primary Low Byte termination Enabled
ahc1: Primary High Byte termination Enabled
ahc1: found 32 SCBs
ahc1: Downloading Sequencer Program... 430 instructions downloaded
ahc1: Features 0x1fef6, Bugs 0x40, Flags 0x485540
ahc1: aic7899: Ultra160 Wide Channel B, SCSI Id=7, 32/253 SCBs
scsibus1 at ahc1: 16 targets, 8 luns per target
ahd0 at pci2 dev 3 function 0
ahd0: interrupting at irq 26, event channel 12
ahd0: Manual Primary Termination
ahd0: Manual Secondary Termination
ahd0: Primary High byte termination Enabled
ahd0: Primary Low byte termination Enabled
ahd0: Secondary High byte termination Disabled
ahd0: Secondary Low byte termination Disabled
ahd0: Downloading Sequencer Program... 656 instructions downloaded
ahd0: Features 0x1c101, Bugs 0x700002, Flags 0x43f1
ahd0: aic7902: Ultra320 Wide Channel A, SCSI Id=7, PCI 33 or 66Mhz, 512 SCBs
scsibus2 at ahd0: 16 targets, 8 luns per target
ahd1 at pci2 dev 3 function 1
ahd1: interrupting at irq 27, event channel 13
ahd1: Manual Primary Termination
ahd1: Manual Secondary Termination
ahd1: Primary High byte termination Enabled
ahd1: Primary Low byte termination Enabled
ahd1: Secondary High byte termination Disabled
ahd1: Secondary Low byte termination Disabled
ahd1: Downloading Sequencer Program... 656 instructions downloaded
ahd1: Features 0x1c101, Bugs 0x700002, Flags 0x43f0
ahd1: aic7902: Ultra320 Wide Channel B, SCSI Id=7, PCI 33 or 66Mhz, 512 SCBs
scsibus3 at ahd1: 16 targets, 8 luns per target
pci3 at hypervisor0 bus 3
pci3: i/o space, memory space enabled
vga0 at pci3 dev 9 function 0: ATI Technologies Rage XL (rev. 0x27)
wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
wsdisplay0: screen 1-3 added (80x25, vt100 emulation)
wm1 at pci3 dev 10 function 0: Intel i82541GI 1000BASE-T Ethernet, rev. 0
wm1: interrupting at irq 19, event channel 5
wm1: 32-bit 33MHz PCI bus
wm1: 64 word (6 address bits) MicroWire EEPROM
wm1: Ethernet address 00:30:48:82:b4:d9
igphy1 at wm1 phy 1: Intel IGP01E1000 Gigabit PHY, rev. 0
igphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
Xen clock: using event channel 14
raidattach: Asked for 8 units
Kernelized RAIDframe activated
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
scsibus0: waiting 2 seconds for devices to settle...
scsibus1: waiting 2 seconds for devices to settle...
scsibus2: waiting 2 seconds for devices to settle...
scsibus3: waiting 2 seconds for devices to settle...
ahc0:A:5:0: Ensuring async
(ahc0:A:5:0): Sending WDTR 0
(ahc0:A:5:0): refuses WIDE negotiation. Using 8bit transfers
ahc0:A:5:0: Ensuring async
(ahc0:A:5:0): Sending WDTR 0
(ahc0:A:5:0): refuses WIDE negotiation. Using 8bit transfers
cd0 at scsibus0 target 5 lun 0: <YAMAHA, CRW2100S, 1.0H> cdrom removable
ahc0:A:5:1: Ensuring async
(ahc0:A:5:1): Sending WDTR 0
(ahc0:A:5:1): refuses WIDE negotiation. Using 8bit transfers
ahc0:A:5:1: Ensuring async
(ahc0:A:5:1): Sending WDTR 0
(ahc0:A:5:1): refuses WIDE negotiation. Using 8bit transfers
(ahc0:A:5:0): Sending SDTR period c, offset 7f
(ahc0:A:5:0): Received SDTR period c, offset 7
Filtered to period c, offset 7
cd0: sync (50.00ns offset 7), 8-bit (20.000MB/s) transfers
ahc0: target 5 synchronous at 20.0MHz, offset = 0x7
(ahc0:A:5:0): Sending SDTR period c, offset 7
(ahc0:A:5:0): Received SDTR period c, offset 7
Filtered to period c, offset 7
(ahc0:A:5:0): Sending SDTR period c, offset 7
(ahc0:A:5:0): Received SDTR period c, offset 7
Filtered to period c, offset 7
sd0 at scsibus2 target 0 lun 0: <SEAGATE, ST373454LW, HPS0> disk fixed
sd0: 70007 MB, 50824 cyl, 4 head, 705 sec, 512 bytes/sect x 143374738 sectors
(ahd0:A:0:0): Sending PPR bus_width 1, period 0x8, offset 0xfe, ppr_options 0xff
(ahd0:A:0:0): Received PPR width 1, period 8, offset 3f,options ff
Filtered to width 1, period 8, offset 3f, options ff
ahd0: target 0 using 16bit transfers
sd0: sync (6.25ns offset 63), 16-bit (320.000MB/s) transfers, tagged queueing
ahd0: target 0 synchronous with period = 0x8, offset = 0x3f(RDSTRM|DT|IU|RTI|QAS)
sd1 at scsibus2 target 4 lun 0: <CSC 36GB, 15K REFURBISHED, 0113> disk fixed
sd1: 35003 MB, 31310 cyl, 4 head, 572 sec, 512 bytes/sect x 71687372 sectors
(ahd0:A:4:0): Sending PPR bus_width 1, period 0x8, offset 0xfe, ppr_options 0xff
(ahd0:A:4:0): Received PPR width 1, period 8, offset 3f,options ff
Filtered to width 1, period 8, offset 3f, options ff
ahd0: target 4 using 16bit transfers
sd1: sync (6.25ns offset 63), 16-bit (320.000MB/s) transfers, tagged queueing
ahd0: target 4 synchronous with period = 0x8, offset = 0x3f(RDSTRM|DT|IU|RTI|QAS)
Searching for RAID components...
boot device: sd0
root on sd0a dumps on sd0b
mountroot: trying smbfs...
mountroot: trying coda...
mountroot: trying msdos...
mountroot: trying cd9660...
mountroot: trying nfs...
mountroot: trying ext2fs...
mountroot: trying ffs...
root file system type: ffs
init: copying out path `/sbin/init' 11
wsdisplay0: screen 4 added (80x25, vt100 emulation)
xvif1.0: Ethernet address aa:00:00:6a:42:ef
xvif1.1: Ethernet address aa:00:00:6a:42:ef
(ahc0:A:5:0): Sending SDTR period c, offset 7
(ahc0:A:5:0): Received SDTR period c, offset 7
Filtered to period c, offset 7
(ahc0:A:5:0): Sending SDTR period c, offset 7
(ahc0:A:5:0): Received SDTR period c, offset 7
Filtered to period c, offset 7
xbd backend: attach device cd0a (size 396800) for domain 1
xbd backend: attach device sd0g (size 28786560) for domain 1
xvif1.0 using event channel 17
xvif1.1 using event channel 18
xbd backend 0 for domain 1 using event channel 19
xbd IO domain 1: error 22
xbd backend: detach device cd0a for domain 1
xbd backend: detach device sd0g for domain 1
xvif1.0: Ethernet address aa:00:00:6a:42:ef
xvif1.1: Ethernet address aa:00:00:6a:42:ef
xbd backend: attach device cd0a (size 396800) for domain 1
xbd backend: attach device sd0g (size 28786560) for domain 1
xbd backend: detach device cd0a for domain 1
xbd backend: detach device sd0g for domain 1

--------------060100090603000700010607--