First install Grub2Win bootloader, then add Android-x86 to it, This is my config.
Change /Android-x86 to the name of the folder in which your android files reside (system, data, ramdisk, initrd.img)
# Make sure screen is not glitched
# set gfxpayload=1366x768
# Make sure video is working
insmod all_video
# Set the timeout for the submenu
set timeout=3
# Set the default variable to the submenu entry you prefer
set default=0
# Blind savelast function to workaround grub2win bug with it
function savelast {
return 0
}
menuentry 'Boot with all kernel optimization flags' {
search --set=root --file /Android-x86/kernel
linux /Android-x86/kernel quiet noibrs noibpb nopti nospectre_v2 nospectre_v1 l1tf=off nospec_store_bypass_disable no_stf_barrier mds=off mitigations=off root=/dev/ram0 androidboot.hardware=android_x86_64 androidboot.selinux=permissive acpi_sleep=s3_bios,s3_mode SRC=/Android-x86
initrd /Android-x86/initrd.img