Ventoy USB Stick + Ubuntu 22.04 Desktop in VHD mode

Problem:

To run Ubuntu Desktop on top of Ventoy USB.  Because Ventoy USB allows multi-boot to various ISO and VHD/VDI virtual harddisk files, I can select multiple OS to boot in one USB, instead of carrying multiple USB.

Setup Steps:

  1. Setup Ventoy USB
    1. Prepare a USB stick.  All contents will be erased in later steps.
    2. Download . Ventoy
    3. Please unzip the package to a folder.
    4. Please run "Ventoy2Disk.exe" and proceed as instructed.
  2. Test Ventoy USB
    1. Please test if your computer can boot into Ventoy USB before continue to invest time in image creation
    2. You can press F12 (Lenovo/Dell), F10, F11 or Enter to enter a one-time boot menu to select boot device. 
  3. Image preparation
    Ventoy can support the use of VirtualBox (*.vdi) image file to boot Linux OS.  We can either:
    1. Download Ready-made images from VirtualBox Images (osboxes.org) directly. OR
    2. Prepare your own images
  4. Download Ubuntu Desktop 22.04 ISO (mirrors)
    1. ubuntu-22.04.2-desktop-amd64.iso has been tested OK.
  5. Download and install Oracle VirtualBox on Windows 10
    1. Which version? VirtualBox 6 or 7?
      Many articles/Youtube videos have covered but with VirtualBox 6.  VM/VDisk created by VirtualBox 7 (in Windows 10) is tested OK.
    2. Download VirtualBox from Oracle
    3. Setup VirtualBox just like an ordinary program.
  6. Create a VM
    1. Click [New] button to create a new VM.
    2. Please provide input for VM name, folder location and ISO image location as required.
    3. Please select "Skip Unattended Installation" because I found it doesn't work with EFI


    4. EFI


    5. Remember to set the harddisk size to fix/pre-allocated as dynamic disk is not supported by Ventoy.


    6. Please Finish the VM creation as instructed.

  7. Setup Ubuntu in VirtualBox
    1. Please power up the VM
    2. Setup Ubuntu as normal.
  8. Note: If you haven't set EFI mode when you create the VM, you can set it to EFI mode in VM settings, and boot Ubuntu into EFI mode again, before it is copied to USB.


  9. Run Ventoy script inside the VM
    1. Inside the VM, download the latest ventoyboot.iso (ventoyboot-1.0.26.iso has been tested)
    2. Unpack the content inside the VM
    3. Run sudo bash vtoyboot.sh
  10. Power off VM
  11. Rename storage file from *.vdi to *.vdi.vtoy
  12. (Optional) Testing (with access to local harddisk)
    1. Boot into Ventoy
    2. Press F2 to browse the vtoy image file.
    3. Test if it can be boot before copy to USB.
  13. Copy the vtoy file to USB
  14. Test boot with ventoy

Reference:

  1. Plugin.VtoyBoot . Ventoy (English Version)
  2. Boot fully installed Linux OS's from .VHD or .VDI files using a Ventoy or Easy2Boot USB drive - YouTube

Comments

Popular Posts