hns - 日記自動生成システム - Version 2.19.9

先月 2024年05月 来月
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2024年05月08日(水) 旧暦 [n年日記] [更新:"2004/08/09 23:43:33"]

#1 [nvmm] comparison on ./buildsh tools

bare metal 9 mins:

build.sh command:    ./build.sh -j 8 -T /export/T -O /tmp/O tools
build.sh started:    Wed May  8 00:27:39 JST 2024
...
build.sh ended:      Wed May  8 00:36:51 JST 2024
NetBSD thinkc03.s.ki.nu 10.99.10 NetBSD 10.99.10 (GENERIC) #0: Wed May 1 12:36:56 UTC 2024 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64

nvmm/qemu 16 mins:

build.sh command:    ./build.sh -j 8 -T /export/T -O /tmp/O tools
build.sh started:    Wed May  8 00:27:42 JST 2024
...
build.sh ended:      Wed May  8 00:53:13 JST 2024
NetBSD thinkc03-10.99.10.s.ki.nu 10.99.10 NetBSD 10.99.10 (HZ1000) #0: Mon May 6 16:03:49 JST 2024 root@localhost:/tmp/O/sys/arch/amd64/compile/HZ1000 amd64


2024年05月06日(月) 旧暦 [n年日記] [更新:"2004/08/09 23:43:33"]

#1 [pkgsrc] py-setuptools (python 3.11.9)

KeyError: 'entry_points'
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Skipping vulnerability checks.
WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'.
===> Building for py311-setuptools-69.5.1
* Building wheel...
Traceback (most recent call last):
  File "/WRKOBJDIR/devel/py-setuptools/work/setuptools-69.5.1/setuptools/config/setupcfg.py", line 285, in __setitem__
    current_value = getattr(target_obj, option_name)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Distribution' object has no attribute 'entry_points'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/pkg/lib/python3.11/site-packages/pyproject_hooks/_in_process/_in_process.py", line 373, in <module>
    main()
  File "/usr/pkg/lib/python3.11/site-packages/pyproject_hooks/_in_process/_in_process.py", line 357, in main
    json_out["return_val"] = hook(**hook_input["kwargs"])
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/pkg/lib/python3.11/site-packages/pyproject_hooks/_in_process/_in_process.py", line 271, in build_wheel
    return _build_backend().build_wheel(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/WRKOBJDIR/devel/py-setuptools/work/setuptools-69.5.1/setuptools/build_meta.py", line 410, in build_wheel
    return self._build_with_temp_dir(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/WRKOBJDIR/devel/py-setuptools/work/setuptools-69.5.1/setuptools/build_meta.py", line 395, in _build_with_temp_dir
    self.run_setup()
  File "/WRKOBJDIR/devel/py-setuptools/work/setuptools-69.5.1/setuptools/build_meta.py", line 311, in run_setup
    exec(code, locals())
  File "<string>", line 93, in <module>
  File "/WRKOBJDIR/devel/py-setuptools/work/setuptools-69.5.1/setuptools/__init__.py", line 104, in setup
    return distutils.core.setup(**attrs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/WRKOBJDIR/devel/py-setuptools/work/setuptools-69.5.1/setuptools/_distutils/core.py", line 158, in setup
    dist.parse_config_files()
  File "/WRKOBJDIR/devel/py-setuptools/work/setuptools-69.5.1/setuptools/dist.py", line 627, in parse_config_files
    setupcfg.parse_configuration(
  File "/WRKOBJDIR/devel/py-setuptools/work/setuptools-69.5.1/setuptools/config/setupcfg.py", line 178, in parse_configuration
    options.parse()
  File "/WRKOBJDIR/devel/py-setuptools/work/setuptools-69.5.1/setuptools/config/setupcfg.py", line 501, in parse
    section_parser_method(section_options)
  File "/WRKOBJDIR/devel/py-setuptools/work/setuptools-69.5.1/setuptools/config/setupcfg.py", line 714, in parse_section_entry_points
    self['entry_points'] = parsed
    ~~~~^^^^^^^^^^^^^^^^
  File "/WRKOBJDIR/devel/py-setuptools/work/setuptools-69.5.1/setuptools/config/setupcfg.py", line 287, in __setitem__
    raise KeyError(option_name) from e
KeyError: 'entry_points'

ERROR Backend subprocess exited when trying to invoke build_wheel
*** Error code 1

Stop.
make[1]: stopped in /usr/pkgsrc/devel/py-setuptools
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/devel/py-setuptools

#2 make release took 1 hours and 10 min

sudo time ./build.sh -j 8 -T /export/T -O /tmp/O release |& tee /export/LOG
make release started at:  Mon May  6 13:38:00 JST 2024
make release finished at: Mon May  6 14:47:13 JST 2024
===> Successful make release
===> build.sh ended:      Mon May  6 14:47:13 JST 2024
===> Summary of results:
         build.sh command:    ./build.sh -j 8 -T /export/T -O /tmp/O release
         build.sh started:    Mon May  6 13:37:59 JST 2024
         NetBSD version:      10.99.10
         MACHINE:             amd64
         MACHINE_ARCH:        x86_64
         Build platform:      NetBSD 9.3 amd64
         HOST_SH:             /bin/sh
         share/mk MAKECONF:   /etc/mk.conf
         MAKECONF file:       /etc/mk.conf
         TOOLDIR path:        /export/T
         DESTDIR path:        /tmp/O/destdir.amd64
         RELEASEDIR path:     /tmp/O/releasedir
         Updated makewrapper: /export/T/bin/nbmake-amd64
         Successful make release
         build.sh ended:      Mon May  6 14:47:13 JST 2024
=== .
     4153.77 real     20157.62 user      4835.04 sys

disk size:

localhost@makoto 15:50:42/240506(..git-work/src)% sudo du -sm /tmp/O /export/T .
10432   /tmp/O
229     /export/T
6573    .
src6.5 GB
object10.5 GB
tool300 MB

#3 qemu invocation for 10.99.10

# qemu-system-x86_64 \
  -smp 8 \
  -m 16G  \
  -accel nvmm \
  -drive driver=qcow2,file=/G/rootfs.qcow2,if=virtio \
  -net nic,model=virtio,netdev=tap0 -net user \
  -rtc base=localtime,clock=host \
  -device intel-hda \
  -drive file=/home/makoto/Downloads/NetBSD-10.99.10-amd64.iso,index=1,media=cdrom -boot c \
  -netdev tap,id=tap0,ifname=tap0,script=no -device virtio-net-pci -serial pty


  ..
NetBSD Virtual Machine Monitor accelerator is operational
char device redirected to /dev/pts/11 (label serial0)
qemu-system-x86_64: warning: hub 0 with no nics
qemu-system-x86_64: warning: nic virtio-net-pci.1 has no peer
libGL error: failed to open /dev/dri/card0: Operation not supported by device
libGL error: failed to load driver: i965
sudo minicom -p /dev/pts/11


2024年05月05日() 旧暦 [n年日記] [更新:"2004/08/09 23:43:33"]

#1 [nvmm] Windows 10 version

thinkc03# qemu-system-x86_64 \
  -smp 8 \
  -m 8G  \
  -accel nvmm \
  -drive driver=qcow2,file=/I/rootfs.qcow2,if=virtio \
  -net nic,model=virtio,netdev=tap1 -net user \
  -rtc base=localtime,clock=host \
  -device intel-hda \
  -drive file=/home/makoto/Downloads/Win10_22H2_English_x64v1.iso,media=cdrom -boot d \
  -netdev tap,id=tap1,ifname=tap1,script=no -device virtio-net-pci
#  qemu-system-x86_64 \
  -smp 8 \
  -m 8G  \
  -accel nvmm \
  -drive driver=qcow2,file=/I/rootfs.qcow2,if=virtio \
  -net nic,model=virtio,netdev=tap1 -net user \
  -rtc base=localtime,clock=host \
  -device intel-hda \
  -drive file=/home/makoto/Downloads/Win10_22H2_English_x64v1.iso,media=cdrom -boot d \
  -netdev tap,id=tap1,ifname=tap1,script=no -device virtio-net-pci

NetBSD Virtual Machine Monitor accelerator is operational
qemu-system-x86_64: warning: hub 0 with no nics
qemu-system-x86_64: warning: nic virtio-net-pci.1 has no peer
libGL error: failed to open /dev/dri/card0: Operation not supported by device
libGL error: failed to load driver: i965

(not good yet)

#2 serial connection

Either
  1. type following line at boot
    consdev com0,115200
    
  2. or
    thinkc03-10# installboot -fv -o console=com0,speed=115200 /dev/ld0a bootxx_ffsv2 /boot
    File system:         /dev/rld0a
    File system type:    ffs (blocksize 16384, needswap 0)
    Primary bootstrap:   bootxx_ffsv2
    Secondary bootstrap: /boot
    Boot options:        timeout 5, flags 0, speed 115200, ioaddr 0, console com0
    
and
-serial pty
at qemu invocation, you will get serial console.

#3 bc bench

thinkc03-10$ time sh -c 'echo "scale=2000; 4*a(1)" | bc -l' > /dev/null
        3.20 real         2.77 user         0.00 sys
thinkc03-10$ time sh -c 'echo "scale=2000;   e(1)" | bc -l' > /dev/null
        5.79 real         5.75 user         0.03 sys
thinkc03-10$ 

bare metal:

thinkc03@makoto 10:12:04/240505(~)% time sh -c 'echo "scale=2000; 4*a(1)" | bc -l' > /dev/null

1.43s 0.00s 1.452 98% 220+53k 0+0io 2pf+0w
thinkc03@makoto 10:12:18/240505(~)% time sh -c 'echo "scale=2000;   e(1)" | bc -l' > /dev/null
3.01s 0.00s 3.073 97% 105+27k 0+0io 0pf+0w
thinkc03@makoto 10:12:28/240505(..comms/minicom)% 


2024年05月04日() 旧暦 [n年日記] [更新:"2004/08/09 23:43:33"]

#1 [nvmm] Trial on 10.99.10

  1.   CPU core i7 7700  (not for Windows 11)
      Box: ThinkCenter m710s
      Memory 32 GB
    
  2. Install 10.99.10 (NetBSD/amd64)
  3. set some parameters on BIOS screen
    1. Intel(R) Hyper-Threading Technology
    2. Intel(R) Virtualization Technology
    Probably the latter is necessary
  4. sudo modload nvmm
  5. pkgin install qemu (qemu-8.2.2nb2)
  6. prepare image file
       qemu-img create -f qcow2 /G/rootfs.qcow2 120G
       qemu-img create -f qcow2 /H/rootfs.qcow2 120G
    
  7. run xterm
  8. (inside xterm)
      sudo -s
      export XAUTHORITY=/home/makoto/.Xauthority
    
  9. thinkc03# qemu-system-x86_64 \
      -smp 8 \
      -m 16G \
      -accel nvmm \
      -drive driver=qcow2,file=/G/rootfs.qcow2,if=virtio \
      -net nic,model=virtio -net user \
      -rtc base=localtime,clock=host \
      -device intel-hda \
      -drive file=/home/makoto/Downloads/NetBSD-10.99.10-amd64.iso,index=1,media=cdrom 
    
  10. (run sysinst)
  11. (run installed version)
    thinkc03# qemu-system-x86_64 \
      -smp 8 \
      -m 16G \
      -accel nvmm \
      -drive driver=qcow2,file=/G/rootfs.qcow2,if=virtio \
      -net nic,model=virtio -net user \
      -rtc base=localtime,clock=host \
      -device intel-hda 
    
  12. install 9.4 on Guest 9.4
    thinkc03# qemu-system-x86_64 \
      -smp 8 \
      -m 16G \
      -accel nvmm \
      -drive driver=qcow2,file=/H/rootfs.qcow2,if=virtio \
      -net nic,model=virtio -net user \
      -rtc base=localtime,clock=host \
      -device intel-hda \
      -drive file=/home/makoto/Downloads/NetBSD-9.4-amd64.iso,index=1,media=cdrom
    
  13. run 9.4 for Guest
    thinkc03# qemu-system-x86_64 \
      -smp 8 \
      -m 16G \
      -accel nvmm \
      -drive driver=qcow2,file=/H/rootfs.qcow2,if=virtio \
      -net nic,model=virtio -net user \
      -rtc base=localtime,clock=host \
      -device intel-hda \
    
I tried Guest as
  10.99.10 (202405031500Z)  -> panic
   9.4                      -> OK
  10.0                      -> OK
Reference (in Japanese):

screen capture:

captured from iPhone photo
Ox7f0a0589e22c ilevel 0 rsp Oxffff97044fbcodfO
[ 20.2952031] curlup Oxffffcd30018fe000 pid 1.1 lowest 0
Stopped in pid 1.1 (init) at netbsd :breakpoint+0x5:
breakpoint() at netbsd:breakpoint+0x5
[ 19.5426851] cd1 at atapibusi drive 0: <QEMU DVD-ROM, removable
[ 19.8933787] swwdog0: software watchdog initialized
[ 19.8951722] WARNING: 3 errors while detecting hardware
[ 19.89517221 boot device: 1d0
[ 19.89517221 root on ldOa dumgs on Idob
[ 19.8951722] root file system type: ffs
[ 19.0951722] kern.module path=/stand/amd64/10.99.10/m
[ 19.91449021 panic: init died (signal 0, exit 11)
[ 19.9144902] cpu®0: Begin traceback...
[ 19.9144902] vpanic() at netbsd:vpanic+0x173
[ 19.91449021 panic() at netbsd: panic+0x3c
[ 19.9144902] exiti() at netbsd:exit1+0×569
[ 19.9144902] sys_exit() at netbsd:sys_exit+0x39
[ 19.9144902] syscall() at netbsd:syscall+0x17a
[ 19.91149021 --- syscall (number 1) ---
The reason of this panic is missing /dev/console probably because of i915drmkms issue.
userconf disable i915drmkms
at booting may be the answer, Michael van Elst helped at irc at #NetBSD

#2 another version (later trial) to succeed

thinkc03# qemu-system-x86_64 \
  -smp 8 \
  -m 16G  \
  -accel nvmm \
  -drive driver=qcow2,file=/G/rootfs.qcow2,if=virtio \
  -net nic,model=virtio -net user \
  -rtc base=localtime,clock=host \
  -device intel-hda \
  -drive file=/home/makoto/Downloads/NetBSD-10.99.10-amd64.iso,index=1,media=cdrom -boot d

setup bridge for inside/outside guest:

/etc/ifconfig.tap0
 create
 descr "NetBSD VM" up
 ! ifconfig bridge0 create
 ! ifconfig bridge0 descr "LAN VM bridge" up
 ! brconfig bridge0 add tap0 add re0
at reboot, I needed
userconf disable i915drmkms
and, once rebooted in /boot.cfg
thinkc03# qemu-system-x86_64 \
  -smp 8 \
  -m 16G  \
  -accel nvmm \
  -drive driver=qcow2,file=/G/rootfs.qcow2,if=virtio \
  -net nic,model=virtio -net user \
  -rtc base=localtime,clock=host \
  -device intel-hda \
  -drive file=/home/makoto/Downloads/NetBSD-10.99.10-amd64.iso,index=1,media=cdrom -boot c \
  -netdev tap,id=tap0,ifname=tap0,script=no -device virtio-net-pci,netdev=tap0
(not communicating to inside yet)

now bridge if works with this setup:

thinkc03# qemu-system-x86_64 \
  -smp 8 \
  -m 16G  \
  -accel nvmm \
  -drive driver=qcow2,file=/G/rootfs.qcow2,if=virtio \
  -net nic,model=virtio,netdev=tap0 -net user \
  -rtc base=localtime,clock=host \
  -device intel-hda \
  -drive file=/home/makoto/Downloads/NetBSD-10.99.10-amd64.iso,index=1,media=cdrom -boot c \
  -netdev tap,id=tap0,ifname=tap0,script=no -device virtio-net-pci
This enables bridge interface,



最近の日記
2025年02月13日
dvipdfmx ICC profile format spec. version 4.3.0
2025年01月29日
ham/wsjtx
2025年01月27日
wip/wsjtx 5.4.2
2025年01月25日
ham/wsjtx
2025年01月15日
今更 advent calendar
以上、4 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)