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/01 03:14] – add method 2 for qemu (thanks porkkiller), realign pictures 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 88: | Line 89: | ||
| [[https:// | [[https:// | ||
| - | ==== Method 2 ==== | + | === Post-installation setup === |
| - | + | ||
| - | - Download the image for Batocera from [[https:// | + | |
| - | - Install the '' | + | |
| - | apt-get update | + | |
| - | apt-get upgrade | + | |
| - | apt-get install qemu virt-manager qemu-img | + | |
| - | </ | + | |
| - | - Create a VM with no HDD (FIXME What? Where? How? Screenshots? | + | |
| - | - Extract the img (FIXME from where?) and rename it to '' | + | |
| - | - Run the following: <code bash> | + | |
| - | qemu-img convert -p -f raw -O qcow2 batocera.img batocera.qcow2 | + | |
| - | </ | + | |
| - | - In the VM settings (FIXME where?) select **Add device** -> **HDD** -> **SATA** and browse to '' | + | |
| - | - Enjoy! | + | |
| - | + | ||
| - | <WRAP center round todo> | + | |
| - | No controller workaround needed? | + | |
| - | </ | + | |
| - | + | ||
| - | ==== Post-installation setup ==== | + | |
| You can still add files to Batocera using [[: | You can still add files to Batocera using [[: | ||
| Line 122: | 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 129: | 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 143: | 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.1656645283.txt.gz
- Last modified: 4 years ago
- by atari