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/02/20 07:52] – added post-installation process to Qemu 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 23: | Line 24: | ||
| - Set the type " | - Set the type " | ||
| - Set available RAM to at least 2GB (2048MB); | - Set available RAM to at least 2GB (2048MB); | ||
| - | - Use the Batocera VDI file created earlier: {{ : | + | - Use the Batocera VDI file created earlier:\\ {{: |
| - Once the VM has been created, adjust its settings like so: | - Once the VM has been created, adjust its settings like so: | ||
| - | - Processor: **Processors: | + | - Processor: **Processors: |
| - | - Display: **Acceleration: | + | - Display: **Acceleration: |
| - | - Network: **Adapter 02:** Tick " | + | - Network: **Adapter 02:** Tick " |
| - | - USB: Add desired devices (such as controllers, | + | - USB: Add desired devices (such as controllers, |
| Peripherals that the VM automatically forwards through such as mouse, keyboard and network cards are not necessary to add here. | Peripherals that the VM automatically forwards through such as mouse, keyboard and network cards are not necessary to add here. | ||
| </ | </ | ||
| Line 34: | Line 35: | ||
| - **SYSTEM SETTINGS** -> **VIDEO OUTPUT** to " | - **SYSTEM SETTINGS** -> **VIDEO OUTPUT** to " | ||
| - **AUDIO OUTPUT** to " | - **AUDIO OUTPUT** to " | ||
| - | - **AUDIO PROFILE** to " | + | - **AUDIO PROFILE** to " |
| If those settings don't produce audio, keep trying all permutations of **AUDIO PROFILE** and **AUDIO OUTPUT** until you find one that does. Remember to exit the menu each time to test the change! | If those settings don't produce audio, keep trying all permutations of **AUDIO PROFILE** and **AUDIO OUTPUT** until you find one that does. Remember to exit the menu each time to test the change! | ||
| </ | </ | ||
| Line 40: | Line 41: | ||
| And we're done. | And we're done. | ||
| - | {{ : | + | {{ : |
| ==== Post-installation setup ==== | ==== Post-installation setup ==== | ||
| - | You can increase the output resolution releasing your cursor (right '' | + | You can increase the output resolution releasing your cursor (right '' |
| + | |||
| + | {{: | ||
| You can still add files to Batocera using [[: | You can still add files to Batocera using [[: | ||
| As you already have the image .vdi, you can setup different environments for the same machine and test which one will be better for your PC, just make sure you are using a 64-bit one (or 32-bit if appropriate). | As you already have the image .vdi, you can setup different environments for the same machine and test which one will be better for your PC, just make sure you are using a 64-bit one (or 32-bit if appropriate). | ||
| - | {{ : | + | |
| + | {{: | ||
| ===== Qemu ===== | ===== Qemu ===== | ||
| - | <WRAP center round important> | + | ==== Method 1 ==== |
| - | Be aware, last time this was tested in **v30** there were some issues with emulation speed being uncapped. This may have been fixed since then. | + | |
| - | </ | + | |
| - Download the image for Batocera from [[https:// | - Download the image for Batocera from [[https:// | ||
| Line 87: | Line 89: | ||
| [[https:// | [[https:// | ||
| - | ==== Post-installation setup ==== | + | === Post-installation setup === |
| You can still add files to Batocera using [[: | You can still add files to Batocera using [[: | ||
| Line 101: | Line 103: | ||
| Then it should be automatically detected and mounted by your desktop environment. | Then it should be automatically detected and mounted by your desktop environment. | ||
| + | ==== Method 2 ==== | ||
| + | |||
| + | - Download the compressed Batocera image for x86_64 from [[https:// | ||
| + | - Expand the image to the size you'd like to assign to Batocera using '' | ||
| + | sudo fallocate -l 7G batocera.img | ||
| + | </ | ||
| + | - Install the '' | ||
| + | * **On Debian/ | ||
| + | apt-get update | ||
| + | apt-get upgrade | ||
| + | apt-get install virt-manager qemu | ||
| + | </ | ||
| + | * **On Fedora/ | ||
| + | sudo dnf install virt-manager qemu | ||
| + | </ | ||
| + | * **On Arch/ | ||
| + | pacman -S virt-manager qemu | ||
| + | </ | ||
| + | * **On Yum-based: | ||
| + | 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. | ||
| + | - Go to **File** -> **New virtual machine...**\\ {{: | ||
| + | - Ensure " | ||
| + | - " | ||
| + | - Click " | ||
| + | - 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.\\ {{: | ||
| + | - 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) 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! | ||
| ===== Proxmox ===== | ===== Proxmox ===== | ||
| Line 108: | Line 152: | ||
| ===== Troubleshooting ===== | ===== Troubleshooting ===== | ||
| + | |||
| + | ==== I have a black screen but can still hear the audio playing ==== | ||
| + | |||
| + | 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'd rather just instantly work around it, you can [[: | ||
| + | |||
| + | ==== I have no space in my virtual userdata partition! ==== | ||
| + | |||
| + | Perhaps you didn't expand the image before using it as the base? | ||
| + | |||
| + | It's also possible to simply replace the userdata partition with another, larger one by changing the " | ||
| ==== 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 122: | 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.1645343531.txt.gz
- Last modified: 4 years ago
- by atari