Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: booting xen [was Re: serial console puzzle]



On Sat, May 01, 2021 at 12:33:17PM -0700, Greg A. Woods wrote:
> I've copied this reply to port-xen as it's entirely Xen related.
... 
> On serial console machines I've been using NetBSD "console=xencons" for
> ages.
> 
> This is the documented (by Xen, i.e. preferred Xen way), for serial
> consoles:
> 
> 	menu=Boot Xen:load /netbsd-XEN3_DOM0 -v bootdev=dk0 console=xencons;multiboot /xen bootscrub=false dom0_mem=4G console=com1,vga console_timestamps=datems dom0_max_vcpus=4 dom0_vcpus_pin=true pv-l1tf=off,domu=off vpmu=on cpuid=rdrand spec-ctrl=no-xen,l1d-flush=off guest_loglvl=all

Amazing: I removed "rndseed /var/db/entropy-file;" from the beginning
of the xen entry in /boot.cfg and instead of getting

(XEN) *** Building a PV Dom0 ***
(XEN) ELF: not an ELF binary
(XEN)
(XEN) ****************************************
(XEN) Panic on CPU 0:
(XEN) Could not construct domain 0
(XEN) ****************************************

I got

(XEN) Dom0 has maximum 1128 PIRQs
(XEN) *** Building a PV Dom0 ***
(XEN) ELF: phdr: paddr=0xffffffff80200000 memsz=0xe07000
(XEN) ELF: memory: 0xffffffff80200000 -> 0xffffffff81007000
(XEN) ELF: note: GUEST_OS = "NetBSD"
(XEN) ELF: note: GUEST_VERSION = "4.99"
(XEN) ELF: note: XEN_VERSION = "xen-3.0"
...
!

The only file which was edited was boot.cfg.


Still no joy though:

(XEN) *** Serial input to DOM0 (type 'CTRL-a' three times to switch input)
(XEN) Freed 604kB init memory
[   1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 20,
[   1.0000000]     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, ,
[   1.0000000]     2018, 2019, 2020, 2021 The NetBSD Foundation, Inc.  All righ.
[   1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[   1.0000000]     The Regents of the University of California.  All rights res.

[   1.0000000] NetBSD 9.99.82 (XEN3_DOM0) #4: Wed Apr 28 10:53:21 BST 2021
...
[   1.0000030] pci14: i/o space, memory space enabled
[   1.0000030] entropy: WARNING: extracting entropy too early
(XEN) mm.c:2980:d0v0 Bad type (saw e400000000000001 != exp 2000000000000000) fo)
(XEN) mm.c:1142:d0v0 Attempt to create linear p.t. with write perms
[   1.0000030] xpq_flush_queue: 2 entries (0 successful) on cpu0 (0)
[   1.0000030] panic: HYPERVISOR_mmu_update failed, ret: -22

[   1.0000030] cpu0: Begin traceback...
[   1.0000030] vpanic() at netbsd:vpanic+0x14a
[   1.0000030] device_printf() at netbsd:device_printf
[   1.0000030] xpq_queue_machphys_update() at netbsd:xpq_queue_machphys_update
[   1.0000030] pmap_zero_page() at netbsd:pmap_zero_page+0xe3
[   1.0000030] uvm_pagealloc_strat() at netbsd:uvm_pagealloc_strat+0x1ef
[   1.0000030] pmap_get_physpage() at netbsd:pmap_get_physpage+0x1cb
[   1.0000030] pmap_growkernel() at netbsd:pmap_growkernel+0x1b3
[   1.0000030] uvm_map_prepare() at netbsd:uvm_map_prepare+0x3a2
[   1.0000030] uvm_map() at netbsd:uvm_map+0x70
[   1.0000030] ubc_init() at netbsd:ubc_init+0x15b
[   1.0000030] main() at netbsd:main+0x33b
[   1.0000030] cpu0: End traceback...
[   1.0000030] fatal breakpoint trap in supervisor mode
[   1.0000030] trap type 1 code 0 rip 0xffffffff8024093d cs 0xe030 rflags 0x2020
[   1.0000030] curlwp 0xffffffff80e75040 pid 0.0 lowest kstack 0xffffffff8198720
Stopped in pid 0.0 (system) at  netbsd:breakpoint+0x5:  leave
ds          ffff
es          0
fs          bae0
gs          ba80
rdi         6
rsi         deadbeefdeadf00d
rbp         ffffffff8198bad0
rbx         2
rdx         1
rcx         6
rax         0
r8          2
r9          75
r10         0
r11         fffffffe
r12         ffffffff80c57088    ostype+0x138
r13         ffffffff8198bb18
r14         104
r15         10
rip         ffffffff8024093d    breakpoint+0x5
cs          e030
rflags      202
rsp         ffffffff8198bad0
ss          e02b
netbsd:breakpoint+0x5:  leave


Cheers,

Patrick


Home | Main Index | Thread Index | Old Index