NetBSD-Users archive

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

Re: Windows 10 or 11 as guest on Netbsd/amd64 with nvmm + sound?



	hello.  Following up on this thread, I've made some progress toward this goal.
The following steps and included startup script, based on Chavdar's samples, will get you a vm
capable of generating good quality audio from the guest VM on the host machine.

1.  Build a NetBSD kernel for the host machine with HZ=1000 to increase the granularity of
qemu's clocks.


2.  Use the following qemu-startup.sh script, modified to taste, to start your guest OS.

3.  The aaudio will come through the default sound device on the host machine.


Hope this is helpful for someone.

-thanks
-Brian


#!/bin/sh
# $Id$
# NAME: Brian Buhrow
# DATE: November 19, 2025
# PURPOSE: To create a working startup script for various qemu guests.
# Originally created by Chavdar on the NetBSD-users mailing list.

#/usr/pkg/bin/qemu-system-x86_64 \
#        -device qemu-xhci \
#        -device usb-tablet \
#        -machine q35 \
#        -m 4096 \
#        -k en-gb \
#        -smp 2 \
#        -accel nvmm \
#        -vnc :2 \
#        -drive format=raw,file=/dev/zvol/rdsk/pail/w19 \
#        -vga vmware \
#        -net tap,fd=3 3<>/dev/tap2 \
#        -net nic


/usr/pkg/bin/qemu-system-x86_64 \
     -device qemu-xhci \
     -device isa-serial \
     -audiodev sdl,id=oss1,timer-period=1000 \
     -device es1370,audiodev=oss1 \
     -serial stdio \
     -m 2048M \
	-rtc base=localtime \
     -k en-us \
	-smp 2 \
     -accel nvmm \
     -vnc :5 \
        -drive format=raw,file=/usr/home/buhrow/windows/nbtest \
     -vga vmware \
     -net tap,fd=3 3<>/dev/tap0 \
     -net nic


Home | Main Index | Thread Index | Old Index