Jump to content











Photo
- - - - -

Can`t Boot linux from .vhd,.vdi,vhdx

linux vhd native boot

  • Please log in to reply
4 replies to this topic

#1 Darkr

Darkr

    Newbie

  • Members
  • 16 posts
  •  
    India

Posted 15 September 2022 - 04:54 PM

Hi guys

I am windows user little bit using Linux also my primary boot manager is Refind ...
I am also install grub2file manager, clover on ufei shell
I am able to boot windows vhds via grub2FM my problem is I am not chainload via Refind
also not natively boot Linux Vhds via grub2FM or via Refind chainload
I am also trying ventoy vdisk plugins via chainload but totaly Failed ....

chainload command

rEFInd:
loader /vdiskchain vdisk=/MyVdiskDir/Deepin.vdi.vtoy

#2 alacran

alacran

    Platinum Member

  • .script developer
  • 2710 posts
  •  
    Mexico

Posted 18 September 2022 - 01:01 PM

I never tried to boot Deepin from a VHD, VDI or IMG file using Ventoy Linux vDisk Boot Plugin, so I can't give you a better suggestion than this:

 

Go and read carefully the instructions in this page: https://www.ventoy.n...n_vtoyboot.html

 

It says there that for Deepin extra package grub-pc-bin_xxx.deb is needed:

 

 

Take deepin-desktop-community-1010-amd64.iso for example, grub-pc-bin_2.02.24.3-1+eagle_amd64.deb is needed. This package is at /pool/main/g/grub2/ directory of the ISO file and can be installed with dpkg -i command.

 

 

You can also get more info in this topic: Ventoy vDisk Boot —— A Simple Linux vDisk(VHD/VDI/RAW) boot solution

 

And in this post and following: http://reboot.pro/in...e=6#entry217675

 

 

In case you can not solve it with previous info, try asking in Ventoy forums: https://forums.ventoy.net/

 

 

alacran


Edited by alacran, 19 September 2022 - 11:46 PM.

  • Darkr likes this

#3 alacran

alacran

    Platinum Member

  • .script developer
  • 2710 posts
  •  
    Mexico

Posted 18 September 2022 - 07:07 PM

  • Supported vDisk Format are:
  1. Fixed size vhd (vhdx is not supported)
  2. Fixed size vdi
  3. Raw Disk Image

I have being able to boot Ubuntu.vhd.vtoy, Linux_Mint.vhd.vtoy and Linux_Lite.vhd.vtoy.   Following some samples of entries in grub4dos and A1ve's grub2

In MBR environment using as loader grub4dos for MBR:

 

 

iftitle [if exist (hd0,1)/Ubuntu.vhd.vtoy] (hd0,1)/Ubuntu.vhd.vtoy - /grub/vdiskchain
kernel /grub/ipxe.krn vdisk=/Ubuntu.vhd.vtoy
initrd /grub/vdiskchain

 

In UEFI environment using as loader grub4dos for UEFI:

 

 

iftitle [if exist (hd0,1)/Ubuntu.vhd.vtoy] (hd0,1)/Ubuntu.vhd.vtoy - /grub/vdiskchain
chainloader /grub/vdiskchain vdisk=/Ubuntu.vhd.vtoy

 

In MBR and UEFI environments using A1ive's grub2:

 

 

if [ "${grub_platform}" == "efi" ]; then
  if [ -e (hd0,msdos2)/Ubuntu.vhd.vtoy ]; then
    menuentry "(hd0,msdos2)/Ubuntu.vhd.vtoy - /grub/vdiskchain" {
      chainloader /grub/vdiskchain vdisk=/Ubuntu.vhd.vtoy
    }
  fi
else
  if [ -e (hd0,msdos2)/Ubuntu.vhd.vtoy ]; then
    menuentry "(hd0,msdos2)/Ubuntu.vhd.vtoy - /grub/vdiskchain" {
      linux16  /grub/ipxe.krn vdisk=/Ubuntu.vhd.vtoy
      initrd16 /grub/vdiskchain
    }
  fi
fi
 

 

 

alacran


  • Darkr likes this

#4 alacran

alacran

    Platinum Member

  • .script developer
  • 2710 posts
  •  
    Mexico

Posted 19 September 2022 - 11:45 PM

JFYI

 

I edited my previous post No. 2, adding new info.

 

alacran



#5 Darkr

Darkr

    Newbie

  • Members
  • 16 posts
  •  
    India

Posted 21 September 2022 - 06:53 AM

  • Supported vDisk Format are:
  • Fixed size vhd (vhdx is not supported)
  • Fixed size vdi
  • Raw Disk Image
I have being able to boot Ubuntu.vhd.vtoy, Linux_Mint.vhd.vtoy and Linux_Lite.vhd.vtoy.   Following some samples of entries in grub4dos and A1ve's grub2

In MBR environment using as loader grub4dos for MBR:
 

 
In UEFI environment using as loader grub4dos for UEFI:
 

 
In MBR and UEFI environments using A1ive's grub2:
 

 
 
alacran
Thank for replay alacran..
Gr8 looking solution
I'll trying tonight

Thank u very much




2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users