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 [2023/04/17 14:04] – [Method 2] Enable USB device (gamepad) in Qemu maioni | 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 14: | Line 14: | ||
| 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 123: | Line 124: | ||
| yum install virt-manager qemu | yum install virt-manager qemu | ||
| </ | </ | ||
| - | - You need to make sure your user owns the '' | + | - Make sure your user owns the '' |
| sudo chown username: | 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. | ||
| Line 130: | Line 131: | ||
| - " | - " | ||
| - Click " | - Click " | ||
| - | - Select the OS: '' | + | - Select the OS: '' |
| - The dialogue box should now look like this, proceed:\\ {{: | - The dialogue box should now look like this, proceed:\\ {{: | ||
| - Grant access permission to the emulator to search into the selected path | - Grant access permission to the emulator to search into the selected path | ||
| Line 136: | Line 137: | ||
| - 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! | ||
| - | |||
| - | * To Enable Gamepad: | ||
| - | - | ||
| - | - | ||
| - | |||
| - | * 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: | ||
| - | - < | ||
| ===== Proxmox ===== | ===== Proxmox ===== | ||
| Line 166: | Line 165: | ||
| ==== 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 177: | 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.1681740257.txt.gz
- Last modified: 3 years ago
- by maioni