It looks like people solve this by setting up a SMB share in the guest machine and connecting to it in the host. But I don't want to enable SMB - Windows 98 does not support the safer SMBv2, and SMBv1 has security vulnerabilities that led to ransomware like WannaCry.