The ISO format is ideal for use in virtual machines like VMware or VirtualBox. Many sources specifically provide ISO files for this exact purpose. In your virtual machine software, simply create a new VM and select the Lion ISO as the installation disk.
Intel Core 2 Duo, Core i3, Core i5, Core i7, or Xeon processor. Memory: Minimum 2 GB of RAM. Storage: At least 7 GB of available hard drive space. Firmware: The Mac must have 64-bit EFI firmware. Eligible Mac Models mac os x lion 107 5 iso download repack link
The Ultimate Guide to Mac OS X Lion 10.7.5: Features, Requirements, and Official Download The ISO format is ideal for use in
Open (Applications > Utilities > Terminal) and use the asr (Apple Software Restore) command to restore the image directly to your USB drive, or use Disk Utility's "Restore" tab to clone the mounted Mac OS X Install ESD onto your formatted USB drive. Method B: Creating a Standard ISO for Virtual Machines Intel Core 2 Duo, Core i3, Core i5,
While Apple stopped signing OS X Lion installers years ago, the company still provides legacy installers for users who purchased them previously via Apple ID. However, running any unsupported OS (especially such an old one like Lion) on a connected machine involves inherent security risks, as it no longer receives any critical security patches. Therefore, it is highly recommended that this OS be used only for software compatibility testing on an air-gapped machine rather than as a daily driver.
: Official files are guaranteed to work on compatible hardware (Intel Core 2 Duo or newer) and avoid the "damaged application" errors often found in unofficial repacks. The "Repack" Risk
Is it safe to still use OSX Lion? - MacBook Core 2 Duo - iFixit