Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| run_batocera_in_vm [2022/07/03 10:28] – [Method 2] swapped the file browser to the right step atari | run_batocera_in_vm [2025/02/06 00:36] (current) – Fix numbering on last point by removing the blank line above "Enjoy" dekay | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| <WRAP center round important> | <WRAP center round important> | ||
| - | Except | + | Expect |
| </ | </ | ||
| Line 11: | Line 11: | ||
| - [[https:// | - [[https:// | ||
| - Install [[https:// | - Install [[https:// | ||
| - | - Install the VirtualBox #.#.# Oracle VM VirtualBox Extension Pack (a.k.a. "Guest Additions" | + | - Install the VirtualBox #.#.# Oracle VM VirtualBox Extension Pack too. <WRAP center round tip> |
| If you need further help with installing VirtualBox, refer to their helpful [[https:// | If you need further help with installing VirtualBox, refer to their helpful [[https:// | ||
| </ | </ | ||
| + | - If you downloaded the Batocera image file from the website, it is in '' | ||
| - Convert the Batocera IMG file to a VDI using the command line ('' | - Convert the Batocera IMG file to a VDI using the command line ('' | ||
| " | " | ||
| Line 87: | Line 88: | ||
| [[https:// | [[https:// | ||
| + | |||
| + | === Post-installation setup === | ||
| + | |||
| + | You can still add files to Batocera using [[: | ||
| + | |||
| + | In case you'd like to mount the share image to add files directly, run the following: <code bash> | ||
| + | X=$(sudo losetup -f) | ||
| + | mkdir -p BATOCERA | ||
| + | sudo losetup -P $X share.img | ||
| + | sudo mount ${X}p1 BATOCERA | ||
| + | sudo chmod -R 777 BATOCERA/ | ||
| + | </ | ||
| + | |||
| + | Then it should be automatically detected and mounted by your desktop environment. | ||
| ==== Method 2 ==== | ==== Method 2 ==== | ||
| Line 94: | Line 109: | ||
| sudo fallocate -l 7G batocera.img | sudo fallocate -l 7G batocera.img | ||
| </ | </ | ||
| - | - Install the '' | + | - Install the '' |
| * **On Debian/ | * **On Debian/ | ||
| apt-get update | apt-get update | ||
| apt-get upgrade | apt-get upgrade | ||
| - | apt-get install | + | apt-get install virt-manager qemu |
| </ | </ | ||
| * **On Fedora/ | * **On Fedora/ | ||
| Line 109: | Line 124: | ||
| yum install virt-manager qemu | yum install virt-manager qemu | ||
| </ | </ | ||
| + | - Make sure your user owns the '' | ||
| + | sudo chown username: | ||
| - Create a VM with the Batocera image as a drive in Qemu. | - Create a VM with the Batocera image as a drive in Qemu. | ||
| - Go to **File** -> **New virtual machine...**\\ {{: | - Go to **File** -> **New virtual machine...**\\ {{: | ||
| - Ensure " | - Ensure " | ||
| - | - In the bottom text field, search for the "Microsoft Windows 10" | + | - "Browse" |
| - | - Browse for the Batocera image.\\ {{: | + | - Click "Browse for local..." |
| + | - Select the OS: '' | ||
| + | - The dialogue box should now look like this, proceed:\\ {{: | ||
| + | - Grant access permission to the emulator to search into the selected path | ||
| - Change the default **Memory** and **CPU** numbers if you choose. The defaults are good enough.\\ {{: | - Change the default **Memory** and **CPU** numbers if you choose. The defaults are good enough.\\ {{: | ||
| - Give your virtual machine a name and click **Finish**.\\ {{: | - Give your virtual machine a name and click **Finish**.\\ {{: | ||
| - (Optional) If you'd prefer to passthrough your GPU to the virtual machine for extra performance (warning: <wrap em>your host machine will lose access to the GPU you passthrough</ | - (Optional) If you'd prefer to passthrough your GPU to the virtual machine for extra performance (warning: <wrap em>your host machine will lose access to the GPU you passthrough</ | ||
| + | - (Optional) For gamepad support: | ||
| + | - Connect the gamepad into a USB port on the host computer. | ||
| + | - On the virtual machine, go to **View** -> **Redirect USB Devices** and then select the connected gamepad.\\ {{: | ||
| + | - (Optional) For external storage device support: | ||
| + | - Connect the USB external disk into a USB port on the host computer. | ||
| + | - On the virtual machine, go to **View** -> **Redirect USB Devices** and then select the connected USB disk device.\\ {{: | ||
| + | - Now goes to Settings -> Storage Devices -> And select the USB Disk, system will reboot to apply the changes. | ||
| - Enjoy! | - Enjoy! | ||
| - | + | ===== Proxmox ===== | |
| - | If you face an error about the " | + | |
| - | + | ||
| - | {{: | + | |
| - | + | ||
| - | then you are not currently passing through your network connection to the virtual machine. Run the following on your host machine to enable that: | + | |
| - | + | ||
| - | <code bash> | + | |
| - | sudo virsh net-start default | + | |
| - | </ | + | |
| <WRAP center round todo> | <WRAP center round todo> | ||
| - | No controller workaround needed? | + | Untested. Reportedly, following this tutorial to set it up in addition to passing through all devices enables it to work: https:// |
| </ | </ | ||
| - | ==== Post-installation setup ==== | + | ===== Troubleshooting ===== |
| - | You can still add files to Batocera using [[: | + | ==== I have a black screen but can still hear the audio playing ==== |
| - | In case you' | + | The virtual machine is not configured correctly. Preferably, you would figure out how it's not configured correctly and remedy that, but in case you' |
| - | X=$(sudo losetup -f) | + | |
| - | mkdir -p BATOCERA | + | |
| - | sudo losetup -P $X share.img | + | |
| - | sudo mount ${X}p1 BATOCERA | + | |
| - | sudo chmod -R 777 BATOCERA/ | + | |
| - | </ | + | |
| - | Then it should be automatically detected and mounted by your desktop environment. | + | ==== I have no space in my virtual userdata partition! ==== |
| - | ===== Proxmox ===== | + | Perhaps you didn't expand the image before using it as the base? |
| - | <WRAP center round todo> | + | It's also possible |
| - | Untested. Reportedly, following this tutorial | + | |
| - | </ | + | |
| - | + | ||
| - | ===== Troubleshooting ===== | + | |
| ==== My controller isn't working! ==== | ==== My controller isn't working! ==== | ||
| - | First, make sure you have passed it through as a USB device to the VM itself (step 7d. in the instructions above). | + | First, make sure you have passed it through as a USB device to the VM itself (refer to the instructions above). |
| If it's still not working, check that the controller itself is working fine on your host machine outside of VirtualBox. | If it's still not working, check that the controller itself is working fine on your host machine outside of VirtualBox. | ||
| Line 168: | Line 176: | ||
| Windows shouldn' | Windows shouldn' | ||
| + | |||
| + | ==== I have no network connection even though my host has one ==== | ||
| + | |||
| + | If you face an error about the " | ||
| + | |||
| + | then you are not currently passing through your network connection to the virtual machine. Run the following on the host machine to enable that: | ||
| + | |||
| + | <code bash> | ||
| + | sudo virsh net-start default | ||
| + | </ | ||
- run_batocera_in_vm.1656844091.txt.gz
- Last modified: 4 years ago
- by atari