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月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,



最近の日記
2024年10月25日
Die Frau ohne Schatten 影のない女
2024年07月03日
kicad oddity
2024年05月08日
comparison on ./buildsh tools
2024年05月06日
py-setuptools (python 3.11.9)
make release took 1 hours and 10 min
qemu invocation for 10.99.10
2024年05月05日
Windows 10 version
serial connection
bc bench
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)