Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
60 user(s) are online (34 user(s) are browsing Forums)

Members: 1
Guests: 59

amigakit, more...

Support us!

Headlines

 
  Register To Post  

Virtio SCSI driver for AmigaOS4.1FE on QEMU
Not too shy to talk
Not too shy to talk


See User information
I have upload the latest version of this device driver to https://os4depot.net/?function=showfil ... er/storage/virtioscsi.lha for everyone to try out.

Follow the installation guide in the link and have fun!

Go to top
Re: Virtio SCSI driver for AmigaOS4.1FE on QEMU
Home away from home
Home away from home


See User information
@derfs

Amazing work..

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top
Betreff: Virtio SCSI-Treiber für AmigaOS4.1FE auf QEMU
Just can't stay away
Just can't stay away


See User information
@derf

I tested it with Qemu/Pegasos, but it seems that I cannot get this driver to work.

I chose method 1 for the installation.

Method 1: Standard (copy to DEVS:)

1. Copy virtioscsi.device to DEVS: on your AmigaOS system.
2. Reboot.
3. The driver loads automatically at startup and announces all
discovered disks to mounter.library.

I start Qemu with the additional configuration

“-device virtio-scsi-pci,id=scsi0 -drive file=/Volumes/Data/AmigaOs4.1BackUp/GameBackUpHD/hd2SFS.img,format=raw,if=none,id=hd0 -device scsi-hd,drive=hd0,bus=scsi0.0”

It doesn't seem to work for me, and Mounter or MediaToolBox don't show me anything either.


Edited by Maijestro on 2026/2/27 21:43:38
MacStudio ARM M1 Max Qemu//Pegasos2 AmigaOs4.1 FE / AmigaOne x5000/40 AmigaOs4.1 FE
Go to top
Re: Virtio SCSI driver for AmigaOS4.1FE on QEMU
Quite a regular
Quite a regular


See User information
@Maijestro
QEMU/KVM is required. You need to run Qemu on PPC. For example, you would need to install *Linux on your PPC machine and run QEMU there.


Edited by smarkusg on 2026/2/27 21:47:17
Edited by smarkusg on 2026/2/27 21:47:54
Go to top
Re: Betreff: Virtio SCSI-Treiber für AmigaOS4.1FE auf QEMU
Not too shy to talk
Not too shy to talk


See User information
@Maijestro

You can try to run mounter manually, but you will have to change the tooltypes to point it to the correct device.

Most of my time has gone into checking it loads as a kickstart module, so DEVS: installation method may have an issue still. I will check over the weekend.

Go to top
Re: Virtio SCSI driver for AmigaOS4.1FE on QEMU
Not too shy to talk
Not too shy to talk


See User information
@smarkusg

This was built and tested using QEMU running on Win11 x64.

Go to top
Re: Virtio SCSI driver for AmigaOS4.1FE on QEMU
Home away from home
Home away from home


See User information
@derfs
Can't test now, but so you can mount some part of the windows's hdd inside of qemu without needs of "fat32 sticks" mount and transfer in fast manner any amount of data and have it appears in both win32 and qemu at the same time ?

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Virtio SCSI driver for AmigaOS4.1FE on QEMU
Quite a regular
Quite a regular


See User information
@derfs
Quote:
This was built and tested using QEMU running on Win11 x64.


OK. I misunderstood the description of the “QEMU/KVM” requirements.

I did a little test on Arm64 - Asahi Linux Fedora and macOS.
I checked it on Peg2 and A1 with bboot. Unfortunately, it doesn't work for me.
The only line from the AOS4 kernel debug is that the driver is loading. You can see it in the screenshot.

Resized Image

To be sure, I also checked if my qemu compilation works correctly with virtio on A1 with *Linux.
Everything works fine there.

Resized Image

My line: -device virtio-scsi-pci,id=scsi0 -drive file=smtest.hdf,if=none,id=hd0 -device scsi-hd,drive=hd0,bus=scsi0.0

*) Don't pay attention to my startup with “nvme”. I checked without it (removed from Kicklayout), clean command lines, etc...
I added the screen because it was my last attempt.

I hope this will be helpful to you.

Go to top
Re: Virtio SCSI driver for AmigaOS4.1FE on QEMU
Not too shy to talk
Not too shy to talk


See User information
@smarkusg

Try this

-device virtio-scsi-pci,id=scsi0 -drive file=smtest.hdf,if=none,id=hd0,format=raw -device scsi-hd,drive=hd0,bus=scsi0.0,channel=0,scsi-id=0,lun=0

Go to top
Re: Virtio SCSI driver for AmigaOS4.1FE on QEMU
Not too shy to talk
Not too shy to talk


See User information
@kas1e

Unfortunatly no, as this still uses image files. I could not see a 'virtio-9p-pci' device available for powerpc machines in my installation (its not available for x64-Windows).


Edited by derfs on 2026/2/28 21:41:42
Go to top
Re: Virtio SCSI driver for AmigaOS4.1FE on QEMU
Home away from home
Home away from home


See User information
@derfs
Quote:
Follow the installation guide in the link and have fun!
2 errors there:
Method 1Standard (copy to DEVS:)
Device drivers in DEVS: aren't started automatically, they are only loaded and started if something is using it.
For example a DOSDriver in DEVS:DOSDrivers for a partition using DEVICE=virtioscsi.device.
Maybe you should include the DOSDriver you are using for this method as an example.

Method 2Kickstart module (KickLayout)
The slb_v2 is running in U-Boot which doesn't know anything about AmigaOS assigns and something like "DEVS:virtioscsi.device" can't work, it has to be
MODULE Devs/virtioscsi.device
instead. Or "MODULE Kickstart/virtioscsi.device" if copied to the Kickstart directory.

Go to top
Re: Virtio SCSI driver for AmigaOS4.1FE on QEMU
Just can't stay away
Just can't stay away


See User information
@joerg

Thanks for the tip. So I integrated Virtioscsi as a Kickstart module in Kicklayout after adding it to Kickstart.

“MODULE Kickstart/virtioscsi.device”

The module loads correctly and AmigaOS 4.1 boots without any problems. But my connected virtual HD does not appear here either. Mounter and MediaToolBox do not display anything here either.

SySMoon also shows me that VirtioScsi is being used.

Integrated with:

“-drive file=/Volumes/Data/AmigaOs4.1BackUp/Test.img,format=raw,if=none,id=hd0 -device scsi-hd,drive=hd0,bus=scsi0.0”

I have no idea how this is supposed to work.

MacStudio ARM M1 Max Qemu//Pegasos2 AmigaOs4.1 FE / AmigaOne x5000/40 AmigaOs4.1 FE
Go to top
Re: Virtio SCSI driver for AmigaOS4.1FE on QEMU
Not too shy to talk
Not too shy to talk


See User information
@joerg

well that part of the readme is very wrong! I will update it asap.

@all

The readme should say put the virtioscsi.device file in the SYS:Kickstart/ folder, add the entry to Kicklayout, and reboot. When you next run Media Toolbox, you will see the entry for virtioscsi.device. You will need to install the new disk, create a partition and format it - just like any other disk.

The 'Copy to DEVS:' entry should only be for those that want to test it via Mounter or a manual mount list.

*EDIT*

If you are using BBoot with the kickstart files zipped up, then you need to add virtioscsi.device to that zip file, and add the entry to Kicklayout in the zip file too.

Go to top
Re: Virtio SCSI driver for AmigaOS4.1FE on QEMU
Just can't stay away
Just can't stay away


See User information
@derfs

Perhaps I should have been a little more precise. Virtioscsi.device is already in my Kickstart.zip for BBoot and is configured as a module via Kicklayout.

MacStudio ARM M1 Max Qemu//Pegasos2 AmigaOs4.1 FE / AmigaOne x5000/40 AmigaOs4.1 FE
Go to top
Re: Virtio SCSI driver for AmigaOS4.1FE on QEMU
Quite a regular
Quite a regular


See User information
@derfs
Unfortunately, it doesn't work for me.
I have “MODULE Kickstart/virtioscsi.device” set in boot (I had this setting when I checked earlier).
I created a new disk image.
Additionally, I checked “channel=0,scsi-id=0,lun=0” (I also checked this earlier).
Should anything other than “[virtioscsi] Loading Version: virtioscsi.device 1.3.1042 (23.02.2026)” appear in the debug kernel?
Someone else needs to check this because I've run out of ideas on my machine.
It would be best if someone could let me know if this driver works for them.

Go to top
Re: Virtio SCSI driver for AmigaOS4.1FE on QEMU
Not too shy to talk
Not too shy to talk


See User information
@smarkusg

Looks like there is a fundamental difference in how the amigaone and pegasos2 qemu machines deal with virtio pci devices.

@everyone hang fire for now, and I will get a new version out asap.

Go to top
Re: Virtio SCSI driver for AmigaOS4.1FE on QEMU
Quite a regular
Quite a regular


See User information
@derfs
I also checked on AmigaOne, but with bboot.
You didn't mention whether you use AmigaOne bboot or uboot.
I'll wait for the new version. If you need to check anything, let me know.

Go to top
Re: Virtio SCSI driver for AmigaOS4.1FE on QEMU
Not too shy to talk
Not too shy to talk


See User information
@smarkusg

new v1.5 in the upload queue on os4depot. I have updated the readme as there are slight differences between installation with bboot/non-bboot and amigaone/pegasos2 machines.

Go to top
Re: Virtio SCSI driver for AmigaOS4.1FE on QEMU
Just can't stay away
Just can't stay away


See User information
@derfs

Quote:


new v1.5 in the upload queue on os4depot. I have updated the readme as there are slight differences between installation with bboot/non-bboot and amigaone/pegasos2 machines.


Perfect! With the new version of Os4Depot, it now works with the Qemu/machine Pegaso2.

That's cool, thanks. It's a shame we can't boot from this HD, but it's still very useful and the transfer rates are excellent.

Resized Image

MacStudio ARM M1 Max Qemu//Pegasos2 AmigaOs4.1 FE / AmigaOne x5000/40 AmigaOs4.1 FE
Go to top
Re: Virtio SCSI driver for AmigaOS4.1FE on QEMU
Home away from home
Home away from home


See User information
@derfs
Quote:

Unfortunatly no, as this still uses image files. I could not see a 'virtio-9p-pci' device available for powerpc machines in my installation (its not available for x64-Windows).


Still it's cool, as you have no need for usb-fat-sticks anymore, right ? I.e. it's just the same like it was with usb-sticks, just no more size limitation like for emulated usb-sticks ?

@Maijestro
But you still can't operate in real time with it ? I mean, to be able to copy/delete files from os4 to it, and be able to see them at the same time on win32, and copy/delete files on win32 , and be able to see changes in realtime inside of qemu ?

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )



Polls
Running AmigaOS 4 on?
AmigaOne SE/XE or microA1 12% (26)
Pegasos2 3% (8)
X5000 22% (48)
X1000 14% (30)
A1222 8% (19)
Sam 440/460 18% (40)
Classic PowerPC Amiga 2% (6)
WinUAE emulation 7% (16)
Qemu emulation 9% (21)
Total Votes: 214
The poll closed at 2025/12/1 12:00
7 Comments


Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project