NetBSD-Bugs archive

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

install/53220: sysinst dumps core with extended partitioning.



>Number:         53220
>Category:       install
>Synopsis:       sysinst on Xen domU dumps core on a pre-partitioned gpt image.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    install-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 28 06:05:00 +0000 2018
>Originator:     Lars-Johan Liman
>Release:        NetBSD 8.0_RC1
>Organization:
Cafax AB
>Environment:
System: NetBSD netbsd8.cafax.se 8.0_RC1 NetBSD 8.0_RC1 (XEN3_DOMU.201804191727Z$
Architecture: x86_64
Machine: amd64
>Description:

If you want to install an amd64 Xen domU on a disk image that is
pre-partitioned with gpt, and fire up a virtual machine with the
INSTALL kernel, and select "extended partitioning", sysinst
immediately dumps core. This is probably not the intended
behaviour ... ;-)

>How-To-Repeat:

1. Create blank disk image.

   dd if=/dev/null of=myimage.img count=...

2. Create gpt partitions on the image.

   vnconfig vndX myimage.img
   gpt destroy /dev/rvndX
   gpt add -s NNNN -t ffs /dev/rvndX
   gpt add -s NNNN -t swap /dev/rvndX
   gpt add -s NNNN -t ffs /dev/rvndX
   gpt add -s NNNN -t ffs /dev/rvndX
   gpt label -i 1 -l ROOT /dev/r$drive
   gpt label -i 2 -l SWAP /dev/r$drive
   gpt label -i 3 -l USR /dev/r$drive
   gpt label -i 4 -l VAR /dev/r$drive
   vnconfig -u vndX

3. Boot a Xen virtual machine with the 8.0_RC1
   netbsd-INSTALL_XEN3_DOMU kernel.

4. Navigate through the sysinst menus

   a: Install messages in English

   a: Install NetBSD to hard disk

   b: Yes (we shall continue!)

   b: Extended partitioning

   [1]   Segmentation fault (core dumped) sysinst

>Fix:

No known fix, but a workaround is to _not_ use sysinst, but to
shutdown the domU, and manually install NetBSD from the dom0 by
mounting the diskimage and filling it by hand.

1. vnconfig vndX myimage.img

2. newfs /dev/rvndXa (etc.)

3. mount /dev/vndXa (etc.)

4. pax -zrvpe -f amd64/binary/sets/base.tgz (etc.)

5. Fix fstab, rc.conf, localtime, passwd (etc.)

6. vnconfig -u vndX



Home | Main Index | Thread Index | Old Index