> On Sun, May 04, 2025 at 07:26:49PM +0000, John Thomas via Freedos-user
> wrote:
>I am trying to follow the instructions in "Using FreeDos" by Jim Hall,
>Chapter 1, “Installing FreeDOS”, "How to install FreeDOS on a Virtual
>Machine".
>
>Jim's manual is dated 2018. The gist of these instructions is:

Going to use two sets of qemu instruction incantations.  One qemu
incantation for booting the Live CD and installing to your newly created
qemu image filesystem, then a second qemu incantation for commonly
booting your installed FreeDOS system.

1) For the initial install incantation, really do not need be so specific,
just enough for getting the DOS operating system installed.

Where dos.img is your qemu image file system, boot d or from cdrom:

$ qemu-system-i386 -enable-kvm -m 1024 -drive format=raw,file=dos.img
-drive media=cdrom,file=FD14LIVE.iso -boot d


2) Once installed, you'll now use a more commonly used qemu incantation,
changing default boot to first hard drive (eg. -boot c), enabling usb,
enabling sound using alsa, using vga cirrus ... shrugs if any affect.

Without annoying PC Speaker:

$ qemu-system-i386 -enable-kvm -m 1024 -drive format=raw,file=dos.img
-drive media=cdrom,file=FD14LIVE.iso -boot c -usb -display
gtk,zoom-to-fit=on -net nic,model=pcnet -net user -usbdevice mouse
-device sb16 -device adlib -audio driver=alsa,id=snd0,out.dev=default
-audiodev alsa,id=snd0  -vga cirrus

With annoying PC Speaker:

$ qemu-system-i386 -enable-kvm -m 1024 -drive format=raw,file=dos.img
-drive media=cdrom,file=FD14LIVE.iso -boot c -usb -display
gtk,zoom-to-fit=on -net nic,model=pcnet -net user -usbdevice mouse
-device sb16 -device adlib -audio driver=alsa,id=snd0,out.dev=default
-audiodev alsa,id=snd0 -machine pcspk-audiodev=snd0  -vga cirrus

Once can handle this, most seem to prefer installing FreeDOS to USB
flash media, simply augment the device file names with Linux /dev/sdX
device file names.  I'm pressuming you're using Linux, still doable
using Windows.

And one of my more elaborate qemu incantations used awhile ago, likely
parts of Jim's qemu incantations, notice I augmented a rootdir variable
for detecting the host the script is being executed from, changing the
root director.  On on host with hard drives, I relocate the rootdir to
a solid state media for virtualized run clients, rather than using
slower hard drive media.  Regardless, just posting for the many more qemu
options one can have.

rootdir="/mnt/qemu/freedos/"

qemu-system-x86_64 -name FreeDOS \
    -machine pc,accel=kvm,usb=off,dump-guest-core=off \
    -enable-kvm -cpu host -m 8 -overcommit mem-lock=off \
    -no-user-config -nodefaults -rtc base=utc,driftfix=slew \
    -machine hpet=off -boot menu=on,strict=on \
    -sandbox 
on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
    -msg timestamp=on \
    -drive format=raw,file=${rootdir}/freedos.img \
    -drive media=cdrom,file=${rootdir}/share.iso,readonly=on \
    -vga cirrus -usbdevice mouse \
    -device sb16 -device adlib -audio driver=alsa,id=snd0,out.dev=default \
    -audiodev alsa,id=snd0 -machine pcspk-audiodev=snd0 \
    -net nic,model=pcnet -net user \
    -display gtk,zoom-to-fit=on

Roger

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to