This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
First of all vdi cant be directly modified in an easy way on Linux | |
Lets suppose we have all our virtualbox files inside Virtaulbox folder in home directory | |
VBoxManage clonehd ~/Virtualbox/windows11/windows11.vdi output.img --format RAW | |
Above command will make a clone of your current vdi , remeber the output.img will have the fuoll size the windows11.vdi was allocated | |
now we have got a clone of windows11.vdi , in form of output.img | |
sudo losetup -P /dev/loop0 output.img | |
Above command will mount the output.img as loop device on /dev/loop0 | |
Now , open Dolphin file manager of KDE Plasma , on left sideview it will show an unmounted Partition mount it | |
Now you can see the contents of .vdi that was first changed to .img then it was mounted as loop device | |
Edit replace the files as needed |