# BlueBomb Wii Homebrew Method from Linux Virtualbox VM

## Setting up the Virtual Machine

- A USB flash drive (any size, the file is about 2 MB) https://amzn.to/3wkR5ju
- A USB Bluetooth adapter compatible with Linux https://amzn.to/3CUf6iN

## Setting up the Virtual Machine

1. Download VirtualBox and VirtualBox Extension Pack Download
2. Download a Linux Distro (I'm using Lubuntu x86) Download
3. Download the BootMii installer Download
4. Format the USB flash drive to the FAT32 filesystem
   - This will erase all data on the drive, make sure you select the correct drive and that it doesn't contain anything important
5. Copy boot.elf from the downloaded hackmii_installer_v1.2.zip and paste it on the root of the USB flash drive
6. Safely remove the flash drive and insert it into the Wii using the USB port closest to the edge of the console
7. Install VirtualBox
8. Install the VirtualBox Extension Pack
9. Launch VirtualBox
10. Create a New VM by selecting Machine > New

    Name: BlueBomb
    Machine Folder: C:\VMs
    Type: Linux
    Version: Ubuntu (32-bit)
    Memory Size: 512 MB
    Hard disk: Create a virtual hard disk now

11. Click Create
12. On the Create Virtual Hard Disk dialog

    Name the virtual disk image BlueBomb.vdi
    File size: 5 GB
    Hard disk file type: VDI
    Storage on physical hard disk: Dynamically Allocated

13. Click Create
14. Select the VM and Click Settings
15. Select Display
16. Slide the Video Memory to 128 MB
17. Select Network
18. Set the attached to dropdown to Bridged Adapter
19. Select Storage
20. Click on the CD-ROM drive
21. Select the disc dropdown to the right > Choose a virtual optical disc file...
22. Browse to and select the downloaded Linux .iso file
23. Click OK
24. Make sure the BlueBomb VM is selected and click Start > Normal
25. Follow the prompts to install the OS
26. Update the Linux distro by running the following commands:
    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get clean
27. Install the required packages to run VirtualBox Guest Additions by running the following commands:
    sudo apt-get install build-essential dkms linux-headers-$(uname -r)
28. Select Devices > Insert Guest Additions CD image...
29. Right click on the disc on the desktop > Open in Terminal
30. Run the following command to install VirtualBox Guest Additions:
    sudo sh ./VBoxLinuxAdditions.run
31. Once the Guest Additions have installed reboot the VM from the GUI or by running the reboot command in terminal
32. After the VM reboots, login
33. Plug the USB Bluetooth dongle into the host computer
34. Select Devices > USB and select the Bluetooth USB dongle
35. If this worked correctly the Bluetooth device should now display in the VM
36. Select Preferences > Bluetooth Manager to test that the VM now has Bluetooth capability

## Downloading BlueBomb and Executing the Script

1. Launch Terminal inside the VM
2. Execute the following commands to change directory into Downloads and download the BlueBomb script
   cd Downloads
   https://raw.githubusercontent.com/RiiConnect24/Wii-Guide/master/assets/files/bluebomb-helper.sh
   chmod +x bluebomb-helper.sh
3. To execute the script enter the following command:
   ./bluebomb-helper.sh
4. The BlueBomb script will ask if this is a Wii or Wii Mini
5. It will then ask for the region (if Wii Mini) or the Wii Menu version (if Wii), enter the requested information > Press Enter
6. Type yes to proceed > Press Enter
7. At this point you will either get "Waiting to accept" or the error "Failed to power on device: -1"
8. If you get the error press Ctrl+C to cancel the script and re-run it by pressing the up arrow and pressing Enter (It took me 2 tries)
9. Power on the Wii but don't pair any WiiMotes with it
10. Press the pair controller button the Wii console once every 2 or 3 seconds until the BlueBomb script makes a connection and starts pushing the payload over the Bluetooth connection
11. Once completed the Wii will be at the HackMii Installer screen
12. Wait for about a minute and it will prompt you to Press 1 to continue
13. Pair a WiiMote with the console as normal and press 1
14. Press A to Continue
15. Using the D-pad, scroll up to Install the Homebrew Channel > Press A
16. Select Yes, continue > Press A
17. Select Exit > Press A
18. You have now installed the Homebrew Channel using the BlueBomb exploit

Further reading: https://wii.guide/bluebomb.html