Ventoy Forums

Full Version: 【Solved】Linux vDisk Boot Plugin -set my_vdisk_path-
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Thanks for your nice how2

here

It worked for me creating a mint20 vdi.vtoy

which runs perfect from my ventoy usb drive.
Ventoy sees this vdi.vtoy and i can boot from usb menu.

you said to boot from hd

Add a menu like follows to ventoy_grub.cfg, only need to change

Code:
my_vdisk_path

to the absolute path of the actual file (from the root of that partition).
menuentry "Boot My Linux VHD" {   
    set my_vdisk_path="/VHD/mylinux.vhd.vtoy"
   
    if search -n -s vdiskhd -f "$my_vdisk_path"; then
        vtoyboot_common_func "($vdiskhd)$my_vdisk_path"
    else
        echo "$my_vdisk_path not found"
    fi
}



Which HD do i have to define [i]set my_vdisk_path="/VHD/mylinux.vhd.vtoy"[/i]
or is this just the absolute path on any connected HD and vtoy looks @ all HDs?

And do i need to define [i]my_vdisk_path[/i]

thanks
my_vdisk_path is just the absolute path, you don't need to specify which HD.
Because it use search command to enumerate all the partitions to find the file.
For example:
(hd0,1)/VHD/mylinux.vhd.vtoy
(hd0,2)/VHD/mylinux.vhd.vtoy
(hd1,1)/VHD/mylinux.vhd.vtoy
(hd1,2)/VHD/mylinux.vhd.vtoy
......

You only need to make sure that this absolte path is unique.
have seen that when playing further with vdi.vtoy

an essential step seems to NOT install vbox GUESTadditions

u said that by not mentioning the additions.....

Stupid me

gracias don longpanda