Setting up a NetBSD/XEN guest

full | brutal-ffs | malabar-ffs | live migration


the bug

last update: 12 apr 2023 with release 9.2

root@pmr1:/data/guests/netbsdapr2023# xl migrate netbsdapr2023 pmr2
migration target: Ready to receive domain.
Saving to migration stream new xl format (info 0x3/0x0/1436)
Loading new save file <incoming migration stream> (new xl fmt info 0x3/0x0/1436)
 Savefile contains xl domain config in JSON format
Parsing config from <saved>
xc: info: Saving domain 7, type x86 PV
xc: info: Found x86 PV domain from Xen 4.16
xc: info: Restoring domain
xc: error: save callback suspend() failed: 0: Internal error
xc: error: Save failed (0 = Success): Internal error
libxl: error: libxl_stream_write.c:347:libxl__xc_domain_save_done: Domain 7:saving domain: domain responded to suspend request: Success
migration sender: libxl_domain_suspend failed (rc=-3)
xc: error: Failed to read Record Header from stream (0 = Success): Internal error
xc: error: Restore failed (0 = Success): Internal error
libxl: error: libxl_stream_read.c:850:libxl__xc_domain_restore_done: restoring domain: Success
libxl: error: libxl_create.c:1611:domcreate_rebuild_done: Domain 3:cannot (re-)build domain: -3
libxl: error: libxl_domain.c:1183:libxl__destroy_domid: Domain 3:Non-existant domain
libxl: error: libxl_domain.c:1137:domain_destroy_callback: Domain 3:Unable to destroy guest
libxl: error: libxl_domain.c:1064:domain_destroy_cb: Domain 3:Destruction of domain failed
migration target: Domain creation failed (code -3).
libxl: info: libxl_exec.c:117:libxl_report_child_exitstatus: migration transport process [10268] exited with error status 1
Migration failed, resuming at sender.
libxl: error: libxl_dom.c:39:libxl__domain_type: unable to get domain type for domid=7

and the guest console says

[ 155.5700391] xenbus_shutdown_handler: xenbus_rm 13
[ 155.6000187] Flushing disk caches: 9 done
[ 155.6100198] fatal page fault in supervisor mode
[ 155.6100198] trap type 6 code 0 rip 0xffffffff8020313f cs 0xe030 rflags 0x10256 cr2 0x10 ilevel 0x6 rsp 0xffff8a004c93fcc8
[ 155.6100198] curlwp 0xffff8a0001d228e0 pid 0.7 lowest kstack 0xffff8a004c93c2c0
[ 155.6100198] panic: trap
[ 155.6100198] cpu0: Begin traceback...
[ 155.6100198] vpanic() at netbsd:vpanic+0x143
[ 155.6100198] snprintf() at netbsd:snprintf
[ 155.6100198] startlwp() at netbsd:startlwp
[ 155.6100198] alltraps() at netbsd:alltraps+0xae
[ 155.6100198] sleepq_block() at netbsd:sleepq_block+0x19a
[ 155.6100198] cv_wait() at netbsd:cv_wait+0x9e
[ 155.6100198] xc_thread() at netbsd:xc_thread+0x59
[ 155.6100198] cpu0: End traceback...

[ 155.6100198] dumping to dev 142,1 (offset=2097143, size=0): not possible
[ 155.6100198] rebooting...

pv w/ netbsd-XEN3_DOMU.gz

Subject: netbsd domU does not migrate properly from one xen host to another

pvh w/ netbsd-GENERIC.gz

netbsd domU does not migrate properly from one xen host to another (continued)


Chapter 11. Power management

acpi – Advanced Configuration and Power Interface

Copyright © 2023 Pierre-Philipp Braun