So !
From the beginning again (every command from fresh new complete install) :
su -
export CVSROOT="anoncvs@anoncvs.NetBSD.org:/cvsroot"
export CVS_RSH="ssh"
cd /usr
cvs checkout -r netbsd-9 -P src
cvs checkout -r netbsd-9 -P xsrc
(asked during make : )
pkgin -y in cwrappers
cd /usr/pkgsrc/emulators/haxm
make
make install
make clean
make clean-depends
-Install Qemu and OVMF UEFI :
pkgin update && pkgin -y full-upgrade && pkgin -y in qemu OVMF
(I copied 2 ISOs of Windows and virtio-driver on the system before going on)
mkdir /home/marcel/VM
qemu-img create -f qcow2 /home/marcel/VM/win10pron.qcow2 50G
-Give access to my user marcel to the storage
chown -R marcel:users /home/marcel/VM
-Create the tap bridged interface :
echo "create" >> /etc/ifconfig.tap0 && echo 'descr "NetBSD VM" up' >> /etc/ifconfig.tap0 && echo "! ifconfig bridge0 create" >> /etc/ifconfig.tap0 && echo '! ifconfig bridge0 descr "LAN VM bridge" up' >> /etc/ifconfig.tap0 && echo "! brconfig bridge0 add tap0 add wm0" >> /etc/ifconfig.tap0
-Restart the network :
service network restart
-Give access to tap0 :
chmod 660 /dev/tap0
-Fix future sound problem in VM :
sysctl -w hw.audio0.blk_ms=100
-Create device node and load module
haxm-mknod && haxm-modload
-Start the VM
qemu-system-x86_64 \
-accel hax \
-m 4G \
-cpu max \
-smp cpus=2 \
-display sdl,gl=on \
-drive file="/home/marcel/Win10_22H2_French_x64.iso",media=cdrom \
-drive file=/home/marcel/VM/win10pron.qcow2 \
-drive file=/home/marcel/virtio-win-0.1.229.iso,media=cdrom \
-netdev tap,id=tap0,ifname=tap0,script=no \
-device virtio-net-pci,netdev=tap0 \
-object rng-random,filename=/dev/urandom,id=viornd0 \
-audiodev oss,id=oss,out.dev=/dev/audio,in.dev=/dev/audio \
-device ac97,audiodev=oss \
-usb \
-device usb-tablet \
-device usb-mouse,bus=usb-bus.0 \
-bios /usr/pkg/share/ovmf/OVMFX64.fd \
-boot d
And the error is ... :
HAX is working and emulator runs in fast virt mode.
NOTE: HAX is deprecated and will be removed in a future release.
Use 'whpx' (on Windows) or 'hvf' (on macOS) instead.
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
[1] Segmentation fault (core dumped) qemu-system-x86_64 -accel hax -m 4G -cpu max -smp cpus=2 -display sdl,gl=on -drive file="/home/marcel/Win10_22H2_French_x64.iso",media=cdrom -drive file=/home/marcel/VM/win10pron.qcow2 -driv...
Do you have an idea ?