Boot a physical disk with EFI in VirtualBox Ubuntu 18.04 host












1














I used to use legacy BIOS booting on this machine to dual-boot Ubuntu 16.04 and Windows 10 across three hard drives. I used GRUB to boot to Ubuntu on an SSD and HDD combo and Windows 10 on it's own SSD, but I could also boot that Windows 10 disk in a Virtual Machine in Ubuntu.



When I upgraded to Ubuntu 18.04 I reinstalled both Ubuntu and Windows as a UEFI install. Eveything works as expected except I can no longer use the physical Windows 10 drive in Virtualbox.



I've tried tweaking permissions for days but ultimately I just get dumped to a GRUB recovery shell on boot. I can boot the virtual machine to a live disk and access the drive just fine.



I'm really not familiar with EFI boot partitions or how they work at all. I'm not even sure if I need an EFI partition for each operating system, but I would like to be able to use the Windows 10 disk in other machines without the Ubuntu hard disks.



Can anyone tell me what I am doing wrong?



This is my set up. /dev/sda is my home and var mount points. sdc is my root. sdb is the Windows disk.



Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 1D529F06-982A-4C10-86F1-9AABFA271304

Device Start End Sectors Size Type
/dev/sda1 2048 16777215 16775168 8G Linux swap
/dev/sda2 16777216 25165823 8388608 4G Linux filesystem
/dev/sda3 25165824 1659922431 1634756608 779.5G Linux filesystem
*** IGNORE THESE PARTITIONS ***
/dev/sda4 1659922432 1695938559 36016128 17.2G Linux filesystem
/dev/sda5 1695938560 1704327167 8388608 4G Linux filesystem
/dev/sda6 1704327168 1828964351 124637184 59.4G Linux filesystem
/dev/sda7 1828964352 1926782975 97818624 46.7G Microsoft basic data


Disk /dev/sdb: 238.5 GiB, 256060514304 bytes, 500118192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: C76B0EBA-27D6-4FE0-A92F-F78276F26981

Device Start End Sectors Size Type
/dev/sdb1 2048 1023999 1021952 499M Windows recovery environment
/dev/sdb2 1024000 1228799 204800 100M EFI System
/dev/sdb3 1228800 1261567 32768 16M Microsoft reserved
/dev/sdb4 1261568 500117503 498855936 237.9G Microsoft basic data


Disk /dev/sdc: 29.8 GiB, 32017047552 bytes, 62533296 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: D7616B5D-A0FA-4ACD-9122-DAB9BA2F21ED

Device Start End Sectors Size Type
/dev/sdc1 2048 411647 409600 200M EFI System
/dev/sdc2 411648 62531583 62119936 29.6G Linux filesystem









share|improve this question






















  • Virtualbox does not support booting UEFI volumes. serverwatch.com/server-tutorials/…
    – acejavelin
    May 24 '18 at 12:02










  • Then why is there an option for it in Vbox 5.2.12?
    – SuperMechaCow
    May 24 '18 at 12:23










  • Sorry, my comment links to an old article... UEFI booting is supported, but it seems VB does a poor job of maintaining the entries in NVRAM. UEFI works by the install registering it's EFI file location with the "BIOS" firmware, which is how it knows how/where to boot a OS. What error are you getting?
    – acejavelin
    May 24 '18 at 12:59












  • As far as I know VirtualBox (with EFI bios enabled for the guest) can only boot from a GPT/EFI virtual disk. Not from a physical disk. And not from any virtual disk setup as a GPT with MBR compatibility. The implementation in VirtualBox mainly exists to allow booting a virtual macOS and not much work is done beyond that.
    – Tonny
    May 24 '18 at 13:20
















1














I used to use legacy BIOS booting on this machine to dual-boot Ubuntu 16.04 and Windows 10 across three hard drives. I used GRUB to boot to Ubuntu on an SSD and HDD combo and Windows 10 on it's own SSD, but I could also boot that Windows 10 disk in a Virtual Machine in Ubuntu.



When I upgraded to Ubuntu 18.04 I reinstalled both Ubuntu and Windows as a UEFI install. Eveything works as expected except I can no longer use the physical Windows 10 drive in Virtualbox.



I've tried tweaking permissions for days but ultimately I just get dumped to a GRUB recovery shell on boot. I can boot the virtual machine to a live disk and access the drive just fine.



I'm really not familiar with EFI boot partitions or how they work at all. I'm not even sure if I need an EFI partition for each operating system, but I would like to be able to use the Windows 10 disk in other machines without the Ubuntu hard disks.



Can anyone tell me what I am doing wrong?



This is my set up. /dev/sda is my home and var mount points. sdc is my root. sdb is the Windows disk.



Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 1D529F06-982A-4C10-86F1-9AABFA271304

Device Start End Sectors Size Type
/dev/sda1 2048 16777215 16775168 8G Linux swap
/dev/sda2 16777216 25165823 8388608 4G Linux filesystem
/dev/sda3 25165824 1659922431 1634756608 779.5G Linux filesystem
*** IGNORE THESE PARTITIONS ***
/dev/sda4 1659922432 1695938559 36016128 17.2G Linux filesystem
/dev/sda5 1695938560 1704327167 8388608 4G Linux filesystem
/dev/sda6 1704327168 1828964351 124637184 59.4G Linux filesystem
/dev/sda7 1828964352 1926782975 97818624 46.7G Microsoft basic data


Disk /dev/sdb: 238.5 GiB, 256060514304 bytes, 500118192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: C76B0EBA-27D6-4FE0-A92F-F78276F26981

Device Start End Sectors Size Type
/dev/sdb1 2048 1023999 1021952 499M Windows recovery environment
/dev/sdb2 1024000 1228799 204800 100M EFI System
/dev/sdb3 1228800 1261567 32768 16M Microsoft reserved
/dev/sdb4 1261568 500117503 498855936 237.9G Microsoft basic data


Disk /dev/sdc: 29.8 GiB, 32017047552 bytes, 62533296 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: D7616B5D-A0FA-4ACD-9122-DAB9BA2F21ED

Device Start End Sectors Size Type
/dev/sdc1 2048 411647 409600 200M EFI System
/dev/sdc2 411648 62531583 62119936 29.6G Linux filesystem









share|improve this question






















  • Virtualbox does not support booting UEFI volumes. serverwatch.com/server-tutorials/…
    – acejavelin
    May 24 '18 at 12:02










  • Then why is there an option for it in Vbox 5.2.12?
    – SuperMechaCow
    May 24 '18 at 12:23










  • Sorry, my comment links to an old article... UEFI booting is supported, but it seems VB does a poor job of maintaining the entries in NVRAM. UEFI works by the install registering it's EFI file location with the "BIOS" firmware, which is how it knows how/where to boot a OS. What error are you getting?
    – acejavelin
    May 24 '18 at 12:59












  • As far as I know VirtualBox (with EFI bios enabled for the guest) can only boot from a GPT/EFI virtual disk. Not from a physical disk. And not from any virtual disk setup as a GPT with MBR compatibility. The implementation in VirtualBox mainly exists to allow booting a virtual macOS and not much work is done beyond that.
    – Tonny
    May 24 '18 at 13:20














1












1








1


1





I used to use legacy BIOS booting on this machine to dual-boot Ubuntu 16.04 and Windows 10 across three hard drives. I used GRUB to boot to Ubuntu on an SSD and HDD combo and Windows 10 on it's own SSD, but I could also boot that Windows 10 disk in a Virtual Machine in Ubuntu.



When I upgraded to Ubuntu 18.04 I reinstalled both Ubuntu and Windows as a UEFI install. Eveything works as expected except I can no longer use the physical Windows 10 drive in Virtualbox.



I've tried tweaking permissions for days but ultimately I just get dumped to a GRUB recovery shell on boot. I can boot the virtual machine to a live disk and access the drive just fine.



I'm really not familiar with EFI boot partitions or how they work at all. I'm not even sure if I need an EFI partition for each operating system, but I would like to be able to use the Windows 10 disk in other machines without the Ubuntu hard disks.



Can anyone tell me what I am doing wrong?



This is my set up. /dev/sda is my home and var mount points. sdc is my root. sdb is the Windows disk.



Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 1D529F06-982A-4C10-86F1-9AABFA271304

Device Start End Sectors Size Type
/dev/sda1 2048 16777215 16775168 8G Linux swap
/dev/sda2 16777216 25165823 8388608 4G Linux filesystem
/dev/sda3 25165824 1659922431 1634756608 779.5G Linux filesystem
*** IGNORE THESE PARTITIONS ***
/dev/sda4 1659922432 1695938559 36016128 17.2G Linux filesystem
/dev/sda5 1695938560 1704327167 8388608 4G Linux filesystem
/dev/sda6 1704327168 1828964351 124637184 59.4G Linux filesystem
/dev/sda7 1828964352 1926782975 97818624 46.7G Microsoft basic data


Disk /dev/sdb: 238.5 GiB, 256060514304 bytes, 500118192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: C76B0EBA-27D6-4FE0-A92F-F78276F26981

Device Start End Sectors Size Type
/dev/sdb1 2048 1023999 1021952 499M Windows recovery environment
/dev/sdb2 1024000 1228799 204800 100M EFI System
/dev/sdb3 1228800 1261567 32768 16M Microsoft reserved
/dev/sdb4 1261568 500117503 498855936 237.9G Microsoft basic data


Disk /dev/sdc: 29.8 GiB, 32017047552 bytes, 62533296 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: D7616B5D-A0FA-4ACD-9122-DAB9BA2F21ED

Device Start End Sectors Size Type
/dev/sdc1 2048 411647 409600 200M EFI System
/dev/sdc2 411648 62531583 62119936 29.6G Linux filesystem









share|improve this question













I used to use legacy BIOS booting on this machine to dual-boot Ubuntu 16.04 and Windows 10 across three hard drives. I used GRUB to boot to Ubuntu on an SSD and HDD combo and Windows 10 on it's own SSD, but I could also boot that Windows 10 disk in a Virtual Machine in Ubuntu.



When I upgraded to Ubuntu 18.04 I reinstalled both Ubuntu and Windows as a UEFI install. Eveything works as expected except I can no longer use the physical Windows 10 drive in Virtualbox.



I've tried tweaking permissions for days but ultimately I just get dumped to a GRUB recovery shell on boot. I can boot the virtual machine to a live disk and access the drive just fine.



I'm really not familiar with EFI boot partitions or how they work at all. I'm not even sure if I need an EFI partition for each operating system, but I would like to be able to use the Windows 10 disk in other machines without the Ubuntu hard disks.



Can anyone tell me what I am doing wrong?



This is my set up. /dev/sda is my home and var mount points. sdc is my root. sdb is the Windows disk.



Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 1D529F06-982A-4C10-86F1-9AABFA271304

Device Start End Sectors Size Type
/dev/sda1 2048 16777215 16775168 8G Linux swap
/dev/sda2 16777216 25165823 8388608 4G Linux filesystem
/dev/sda3 25165824 1659922431 1634756608 779.5G Linux filesystem
*** IGNORE THESE PARTITIONS ***
/dev/sda4 1659922432 1695938559 36016128 17.2G Linux filesystem
/dev/sda5 1695938560 1704327167 8388608 4G Linux filesystem
/dev/sda6 1704327168 1828964351 124637184 59.4G Linux filesystem
/dev/sda7 1828964352 1926782975 97818624 46.7G Microsoft basic data


Disk /dev/sdb: 238.5 GiB, 256060514304 bytes, 500118192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: C76B0EBA-27D6-4FE0-A92F-F78276F26981

Device Start End Sectors Size Type
/dev/sdb1 2048 1023999 1021952 499M Windows recovery environment
/dev/sdb2 1024000 1228799 204800 100M EFI System
/dev/sdb3 1228800 1261567 32768 16M Microsoft reserved
/dev/sdb4 1261568 500117503 498855936 237.9G Microsoft basic data


Disk /dev/sdc: 29.8 GiB, 32017047552 bytes, 62533296 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: D7616B5D-A0FA-4ACD-9122-DAB9BA2F21ED

Device Start End Sectors Size Type
/dev/sdc1 2048 411647 409600 200M EFI System
/dev/sdc2 411648 62531583 62119936 29.6G Linux filesystem






linux windows-10 boot virtualbox ubuntu-18.04






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked May 24 '18 at 11:57









SuperMechaCowSuperMechaCow

182




182












  • Virtualbox does not support booting UEFI volumes. serverwatch.com/server-tutorials/…
    – acejavelin
    May 24 '18 at 12:02










  • Then why is there an option for it in Vbox 5.2.12?
    – SuperMechaCow
    May 24 '18 at 12:23










  • Sorry, my comment links to an old article... UEFI booting is supported, but it seems VB does a poor job of maintaining the entries in NVRAM. UEFI works by the install registering it's EFI file location with the "BIOS" firmware, which is how it knows how/where to boot a OS. What error are you getting?
    – acejavelin
    May 24 '18 at 12:59












  • As far as I know VirtualBox (with EFI bios enabled for the guest) can only boot from a GPT/EFI virtual disk. Not from a physical disk. And not from any virtual disk setup as a GPT with MBR compatibility. The implementation in VirtualBox mainly exists to allow booting a virtual macOS and not much work is done beyond that.
    – Tonny
    May 24 '18 at 13:20


















  • Virtualbox does not support booting UEFI volumes. serverwatch.com/server-tutorials/…
    – acejavelin
    May 24 '18 at 12:02










  • Then why is there an option for it in Vbox 5.2.12?
    – SuperMechaCow
    May 24 '18 at 12:23










  • Sorry, my comment links to an old article... UEFI booting is supported, but it seems VB does a poor job of maintaining the entries in NVRAM. UEFI works by the install registering it's EFI file location with the "BIOS" firmware, which is how it knows how/where to boot a OS. What error are you getting?
    – acejavelin
    May 24 '18 at 12:59












  • As far as I know VirtualBox (with EFI bios enabled for the guest) can only boot from a GPT/EFI virtual disk. Not from a physical disk. And not from any virtual disk setup as a GPT with MBR compatibility. The implementation in VirtualBox mainly exists to allow booting a virtual macOS and not much work is done beyond that.
    – Tonny
    May 24 '18 at 13:20
















Virtualbox does not support booting UEFI volumes. serverwatch.com/server-tutorials/…
– acejavelin
May 24 '18 at 12:02




Virtualbox does not support booting UEFI volumes. serverwatch.com/server-tutorials/…
– acejavelin
May 24 '18 at 12:02












Then why is there an option for it in Vbox 5.2.12?
– SuperMechaCow
May 24 '18 at 12:23




Then why is there an option for it in Vbox 5.2.12?
– SuperMechaCow
May 24 '18 at 12:23












Sorry, my comment links to an old article... UEFI booting is supported, but it seems VB does a poor job of maintaining the entries in NVRAM. UEFI works by the install registering it's EFI file location with the "BIOS" firmware, which is how it knows how/where to boot a OS. What error are you getting?
– acejavelin
May 24 '18 at 12:59






Sorry, my comment links to an old article... UEFI booting is supported, but it seems VB does a poor job of maintaining the entries in NVRAM. UEFI works by the install registering it's EFI file location with the "BIOS" firmware, which is how it knows how/where to boot a OS. What error are you getting?
– acejavelin
May 24 '18 at 12:59














As far as I know VirtualBox (with EFI bios enabled for the guest) can only boot from a GPT/EFI virtual disk. Not from a physical disk. And not from any virtual disk setup as a GPT with MBR compatibility. The implementation in VirtualBox mainly exists to allow booting a virtual macOS and not much work is done beyond that.
– Tonny
May 24 '18 at 13:20




As far as I know VirtualBox (with EFI bios enabled for the guest) can only boot from a GPT/EFI virtual disk. Not from a physical disk. And not from any virtual disk setup as a GPT with MBR compatibility. The implementation in VirtualBox mainly exists to allow booting a virtual macOS and not much work is done beyond that.
– Tonny
May 24 '18 at 13:20










2 Answers
2






active

oldest

votes


















0














I found out you just need to press delete as the VM boots to enter the BIOS then, manually add the EFI boot option for Windows.






share|improve this answer

















  • 1




    Could you please explain how you did that ?
    – fffred
    Jul 10 '18 at 9:51



















0














For the time being, I'm using EFI shell to boot windows.




You can launch the boot loader manually by using the EFI shell: Type
fs0: to access the first filesystem, which is usually the ESP. Type cd
EFI{osname}, where {osname} is the name of the directory where your
OS installed its boot loader. (You haven't said what OS you've
installed, so I can't be sure what that is. Typing ls EFI will show
you what's there.) Launch the boot loader by typing its name. Again, I
can't know what that is. For Linux, it's usually grubx64.efi. For
Windows, it's bootmgfw.efi.




See how in the answer, here:
How to get out of EFI shell in virtual box



You could also recreate the Physical disk without including the host partition.




When creating the vmdk file, the -mbr parameter is not necessary, but
be sure NOT to include the partition in which the host OS resides,
that is, including whole physical drive in vmdk will fail. My final
command line (with host partition #3 excluded) was:



C:Program FilesOracleVirtualBox>VBoxManage.exe internalcommands
createrawvmdk -filename e:VirtualBoxUbuntu.vmdk -rawdisk
.PhysicalDrive0 -partitions 1,2,4,5,6,7




Source:
https://stackoverflow.com/questions/34371180/virtualbox-fail-to-bootup-guest-from-gpt-physical-partition






share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1325550%2fboot-a-physical-disk-with-efi-in-virtualbox-ubuntu-18-04-host%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    I found out you just need to press delete as the VM boots to enter the BIOS then, manually add the EFI boot option for Windows.






    share|improve this answer

















    • 1




      Could you please explain how you did that ?
      – fffred
      Jul 10 '18 at 9:51
















    0














    I found out you just need to press delete as the VM boots to enter the BIOS then, manually add the EFI boot option for Windows.






    share|improve this answer

















    • 1




      Could you please explain how you did that ?
      – fffred
      Jul 10 '18 at 9:51














    0












    0








    0






    I found out you just need to press delete as the VM boots to enter the BIOS then, manually add the EFI boot option for Windows.






    share|improve this answer












    I found out you just need to press delete as the VM boots to enter the BIOS then, manually add the EFI boot option for Windows.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered May 24 '18 at 13:39









    SuperMechaCowSuperMechaCow

    182




    182








    • 1




      Could you please explain how you did that ?
      – fffred
      Jul 10 '18 at 9:51














    • 1




      Could you please explain how you did that ?
      – fffred
      Jul 10 '18 at 9:51








    1




    1




    Could you please explain how you did that ?
    – fffred
    Jul 10 '18 at 9:51




    Could you please explain how you did that ?
    – fffred
    Jul 10 '18 at 9:51













    0














    For the time being, I'm using EFI shell to boot windows.




    You can launch the boot loader manually by using the EFI shell: Type
    fs0: to access the first filesystem, which is usually the ESP. Type cd
    EFI{osname}, where {osname} is the name of the directory where your
    OS installed its boot loader. (You haven't said what OS you've
    installed, so I can't be sure what that is. Typing ls EFI will show
    you what's there.) Launch the boot loader by typing its name. Again, I
    can't know what that is. For Linux, it's usually grubx64.efi. For
    Windows, it's bootmgfw.efi.




    See how in the answer, here:
    How to get out of EFI shell in virtual box



    You could also recreate the Physical disk without including the host partition.




    When creating the vmdk file, the -mbr parameter is not necessary, but
    be sure NOT to include the partition in which the host OS resides,
    that is, including whole physical drive in vmdk will fail. My final
    command line (with host partition #3 excluded) was:



    C:Program FilesOracleVirtualBox>VBoxManage.exe internalcommands
    createrawvmdk -filename e:VirtualBoxUbuntu.vmdk -rawdisk
    .PhysicalDrive0 -partitions 1,2,4,5,6,7




    Source:
    https://stackoverflow.com/questions/34371180/virtualbox-fail-to-bootup-guest-from-gpt-physical-partition






    share|improve this answer


























      0














      For the time being, I'm using EFI shell to boot windows.




      You can launch the boot loader manually by using the EFI shell: Type
      fs0: to access the first filesystem, which is usually the ESP. Type cd
      EFI{osname}, where {osname} is the name of the directory where your
      OS installed its boot loader. (You haven't said what OS you've
      installed, so I can't be sure what that is. Typing ls EFI will show
      you what's there.) Launch the boot loader by typing its name. Again, I
      can't know what that is. For Linux, it's usually grubx64.efi. For
      Windows, it's bootmgfw.efi.




      See how in the answer, here:
      How to get out of EFI shell in virtual box



      You could also recreate the Physical disk without including the host partition.




      When creating the vmdk file, the -mbr parameter is not necessary, but
      be sure NOT to include the partition in which the host OS resides,
      that is, including whole physical drive in vmdk will fail. My final
      command line (with host partition #3 excluded) was:



      C:Program FilesOracleVirtualBox>VBoxManage.exe internalcommands
      createrawvmdk -filename e:VirtualBoxUbuntu.vmdk -rawdisk
      .PhysicalDrive0 -partitions 1,2,4,5,6,7




      Source:
      https://stackoverflow.com/questions/34371180/virtualbox-fail-to-bootup-guest-from-gpt-physical-partition






      share|improve this answer
























        0












        0








        0






        For the time being, I'm using EFI shell to boot windows.




        You can launch the boot loader manually by using the EFI shell: Type
        fs0: to access the first filesystem, which is usually the ESP. Type cd
        EFI{osname}, where {osname} is the name of the directory where your
        OS installed its boot loader. (You haven't said what OS you've
        installed, so I can't be sure what that is. Typing ls EFI will show
        you what's there.) Launch the boot loader by typing its name. Again, I
        can't know what that is. For Linux, it's usually grubx64.efi. For
        Windows, it's bootmgfw.efi.




        See how in the answer, here:
        How to get out of EFI shell in virtual box



        You could also recreate the Physical disk without including the host partition.




        When creating the vmdk file, the -mbr parameter is not necessary, but
        be sure NOT to include the partition in which the host OS resides,
        that is, including whole physical drive in vmdk will fail. My final
        command line (with host partition #3 excluded) was:



        C:Program FilesOracleVirtualBox>VBoxManage.exe internalcommands
        createrawvmdk -filename e:VirtualBoxUbuntu.vmdk -rawdisk
        .PhysicalDrive0 -partitions 1,2,4,5,6,7




        Source:
        https://stackoverflow.com/questions/34371180/virtualbox-fail-to-bootup-guest-from-gpt-physical-partition






        share|improve this answer












        For the time being, I'm using EFI shell to boot windows.




        You can launch the boot loader manually by using the EFI shell: Type
        fs0: to access the first filesystem, which is usually the ESP. Type cd
        EFI{osname}, where {osname} is the name of the directory where your
        OS installed its boot loader. (You haven't said what OS you've
        installed, so I can't be sure what that is. Typing ls EFI will show
        you what's there.) Launch the boot loader by typing its name. Again, I
        can't know what that is. For Linux, it's usually grubx64.efi. For
        Windows, it's bootmgfw.efi.




        See how in the answer, here:
        How to get out of EFI shell in virtual box



        You could also recreate the Physical disk without including the host partition.




        When creating the vmdk file, the -mbr parameter is not necessary, but
        be sure NOT to include the partition in which the host OS resides,
        that is, including whole physical drive in vmdk will fail. My final
        command line (with host partition #3 excluded) was:



        C:Program FilesOracleVirtualBox>VBoxManage.exe internalcommands
        createrawvmdk -filename e:VirtualBoxUbuntu.vmdk -rawdisk
        .PhysicalDrive0 -partitions 1,2,4,5,6,7




        Source:
        https://stackoverflow.com/questions/34371180/virtualbox-fail-to-bootup-guest-from-gpt-physical-partition







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 14 '18 at 3:02









        Meetai.comMeetai.com

        519148




        519148






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1325550%2fboot-a-physical-disk-with-efi-in-virtualbox-ubuntu-18-04-host%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Plaza Victoria

            In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

            How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...