On Sat, Jun 15, 2019 at 9:17 AM Joseph Norton <joseph.nor...@gmail.com>
wrote:

> Hi listers:
>
>
>
> I’m trying to install FreeDOS with QEMU, and I get as far as formatting
> the hd, then, the installation says it can’t find the package files.
>
>
>
> I used the example in the Using FreeDOS Ebook, but, I did have to create
> the “freedos.img” file, which was not covered.
>
>
>
> I’m planning to do some more troubleshooting later myself, but, if this
> has been run into before, I would appreciate any advice.
>
>
>
> Probably something I’m not typing in the command-line for either the image
> creation or the startup.
>
>
>
>
First, you need to create the virtual disk image file that QEMU will use as
your C: drive. Do this:

qemu-img create freedos.img 300M


Then you boot FreeDOS in QEMU. Note that QEMU takes a ton of command line
arguments to define each part of the virtual machine. Here's my command
line:

qemu-system-i386 -m 32 -k en-us -rtc base=localtime -soundhw
sb16,adlib,pcspk -device cirrus-vga -display gtk -hda freedos.img -cdrom
FD12CD.iso -drive file=fat:rw:/home/jhall/dos -boot order=c


To break that apart:

qemu-system-i386 is the command to run QEMU

-m 32 sets the machine to use 32MB of memory

-k en-us sets the keyboard to US/English (you should be able to omit this
and QEMU will pick up your host system's keyboard language)

-rtc base=localtime defines the real time clock to use your host system's
local time

-soundhw sb16,adlib,pcspk creates the sound hardware, using SoundBlaster16
with AdLib music, and PC speaker emulation (through your host system's
sound card)

-device cirrus-vga defines a standard Cirrus Logic VGA card (should work
with every DOS application)

-display gtk uses GTK (GNOME) for the display environment (gives a nice
little window with controls)

-hda freedos.img defines the C: drive ("hda" in "Linux-speak") as the
freedos.img file you created earlier

-cdrom FD12CD.iso says to use the FreeDOS 1.2 CDROM image as the CDROM

-drive file=fat:rw:/home/jhall/dos emulates a "D:" drive from a folder
(/home/jhall/dos) in my Linux home directory. If you want to do this, use a
directory in your own Linux home directory. Don't modify the contents of
/home/jhall/dos (or whatever directory you set here) *while QEMU is running*
because QEMU will likely get confused.

-boot order=c says to boot the C: drive first (use -boot order=d to boot
from the CDROM). So use -boot order=d when you install FreeDOS, and use -boot
order=c after that.

More info here:
https://opensource.com/article/17/10/run-dos-applications-linux
_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to