December 25, 20232 yr Hello everyone, I am currently trying to set up Batocera as a VM and am encountering some challenges. I initially configured my VM with Windows 11, using the Batocera image as the first disk (vdisk1) and an additional disk (vdisk2) for extra storage. I was able to pass through my RTX 2070 graphics card without any issues, and the internet connection works flawlessly as well. My goal now is to install Batocera onto a virtual disk so I can fully utilize its capabilities. However, I find that the *.img file is too small and Batocera attempts to download all packages before the installation can be completed. The original image batocera-x86_64-x86_64-38-20231014.img could be successfully enlarged after some research. But I noticed that within this image lies another image named 1.userdata.img, which it tries to write to, but is obviously still too small. Under Windows, it seems impossible to edit the *.img files – it always reports them as corrupted. In Unraid, I managed to enlarge the outer image, but I'm not making any progress with the inner image. Has anyone here had similar experiences or could offer alternative suggestions? Or has someone else solved it differently? I'm grateful for any hints or assistance! I've tried multiple times, but the problem persists: the disk is reportedly too small. Inside the *.img file is the 1.userdata.img, which seems to be too small. Thanks in advance for your help! translated by chatgpt
December 31, 20232 yr Author Solution Hello, I just wanted to let everyone know that I've solved the problem. Here are the steps I followed: 1.Download Batocera. 2.Edit a Windows VM to add a 'virtual USB hard drive'. 3.Start the Windows VM and install Batocera on the virtual USB hard drive. 4.Now, you can mount the virtual USB hard drive in a new VM and install everything as you would on a regular computer.
May 28, 20251 yr for anyone coming from the future, the main thing to get this working was "sudo fallocate -l 16G batocera.img" to make the image larger.Here are all my notes:setting up the VMthat makes the .img larger, allowing batocera to install whatever it needs.here are all the steps I diddownload batocera extract .imgsudo fallocate -l 16G batocera.img (as seen here in method 2 ) THIS IS KEY AND IS USED TO MAKE THE VIRTUAL DRIVE LARGER TO ALLOW BATOCERA TO ISNTALL STUFF.create new windows 10 VMskip the OS drivepass the .img file as a manual vdisk.pass gpu, usb controller if desired:setting up network sharesAlso, since I dont have the img on a usb key, I had to mount the img file to edit the settings when I wanted to read the roms from a share:shut down the vmmount the img on my unraid: mkdir -p /mnt/batocera_img# Create a loop device with partitionslosetup -Pf batocera.img# Find out the loop device name (e.g., /dev/loop4)lsblkmkdir -p /mnt/batocera_imgmount /dev/loop4p1 /mnt/batocera_imgnano /mnt/batocera_img/batocera.confreplace sharedevice=LOCAL with sharedevice=NETWORKsetup the shares: ## NETWORK -> Use the network share, requires configuration first. See https://wiki.batocera.org/store_games_on_a_nassharedevice=NETWORK[email protected]:data/emulation/roms:guest[email protected]:data/emulation/bios:guest[email protected]:data/emulation/batocera/saves:guestumount /mnt/batocera_imgunzipping filesI had a bunch of PSX roms that needed to be unzipped (7z), so I installed it using nerd tools and ran this script:for file in *.7z; dofolder="${file%.7z}"mkdir -p "$folder"7z x "$file" -o"$folder"donefixing soundSound worked until I plugged a PS4 controller. To fix it, I did the following from this reddit post (https://www.reddit.com/r/batocera/comments/p5v5zh/no_sound_through_hdmi/)Timmun90 did you go into (From Batocera main MENU ) KODI / setting ⚙️/ System / Audio : In the AUDIO PASSTHROUGH - ENABLE Allow PASSTHROUGH and your TVs or Audio Passthrough DEVICE should be selected. I’m my setup I have a Samsung 57” Shown as HDA INTEL PCH , SAMSUNG on HDMI #0 Lastly make sure that your AUDIO OUTPUT matches KODI. ON BATOCERA / System Settings / Harware Audio Output should be set to same as above HDMI# 0fixing slow emulationapparently batocera defaults to 4k resolution when plugged into a TV. Edited May 28, 20251 yr by morglum
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.