Win Host Ubuntu Guest EFI VDMK on SSD FS0: sees nothing
Posted: 14. Aug 2017, 03:57
I am getting to an EFI Shell prompt and when I try to look at FS0: there is nothing to see.
Config:
Windows 10 64 bit host
Ubuntu 17.04 64 bit guest
VirtualBox 5.1.26
Made sure the motherboard bios has virtualization enabled. I only saw 32 bit O/S options before doing that.
I installed Windows on a SSD card in UEFI mode. Then I rebooted and installed Ubuntu on another SSD card in UEFI mode. I can boot from the UEFI menu (F2) with no problems bouncing between the 2.
I created the guest and told it "Do not add a virtual hard disk".
Then I ran this:
PS C:\Program Files\Oracle\VirtualBox> .\VBoxManage.exe internalcommands listpartitions -rawdisk \\.\PhysicalDrive2
Number Type StartCHS EndCHS Size (MiB) Start (Sect)
1 0xef 0 /32 /33 7 /197/62 60 2048
5 0x83 7 /230/32 1023/254/63 238413 126976
PS C:\Program Files\Oracle\VirtualBox> .\VBoxManage internalcommands createrawvmdk -filename "C:\Users\Jeff\VirtualBox VMs\Ubuntu\Ubuntu.vmdk" -rawdisk \\.\PhysicalDrive2
RAW host disk access VMDK file C:\Users\Jeff\VirtualBox VMs\Ubuntu\Ubuntu.vmdk created successfully.
I then added the virtual VDMK to the VM as a SATA drive under Storage.
Under System I made sure Enable EFI is checked. If I do not, I get a grub recovery menu.
When I start the VM, I get to an EFI shell prompt. If I enter "FS0:" and then "dir", it says "File Not Found".
If under Storage I Use Host I/O Cache is enabled, I get "edit: Disk Error" when trying to create a startup.nsh file.
If not enabled, I can edit startup.nsh. I then see it in the folder, but it is only thing there. No EFI folder or anything else.. When I reset, it hangs. I suspect because there is not path to EFI\ubuntu\grubx64.efi.
I booted Ubuntu and added a startup.nsf file in the root of the /boot partition. It is still there if I boot to Ubuntu.
I am stuck now. I have been reading this forum for a couple of days now and it got me as far as I am. But still stuck at the EFI Shell prompt. I can enter FS0: but I see nothing there. It has to be that EFI is not seeing the partition correctly inside of VirtualBox. If this will help. here is the Shell Map.
FS0: Alias(s):HD16a0a1:;BLK2:
PciRoot (0x0)/Pci(0xD,0x0)/Sata(0x0,0x0,0x0)/HD(1,MBR,0x6C17A9B0,0x800,0x1E000)
BLK0: Alias(s):
PciRoot (0x0)/Pci(0x1,0x1)/Ata(0x0)
BLK1: Alias(s):
PciRoot (0x0)/Pci(0xD,0x0)/Sata(0x0,0x0,0x0)
BLK3: Alias(s):
PciRoot (0x0)/Pci(0xD,0x0)/Sata(0x0,0x0,0x0)/HD(2,MBR,0x6C17A9B0,0x1EFFE,0x1D1A6802)
BLK3: Alias(s):
PciRoot (0x0)/Pci(0xD,0x0)/Sata(0x0,0x0,0x0)/HD(2,MBR,0x6C17A9B0,0x1EFFE,0x1D1A6802)/HD(1,MBR,0x00000000,0x1F000,0x1D1A6800)
Windows Disk manager shows that disk 2 is the right disk for Ubuntu.
DISKPART> select disk 0
Disk 0 is now the selected disk.
DISKPART> list partition
Partition ### Type Size Offset
------------- ---------------- ------- -------
Partition 1 Primary 500 MB 1024 KB
Partition 2 Primary 1862 GB 501 MB
DISKPART> select disk 1
Disk 1 is now the selected disk.
DISKPART> list partition
Partition ### Type Size Offset
------------- ---------------- ------- -------
Partition 1 Recovery 450 MB 1024 KB
Partition 2 System 100 MB 451 MB
Partition 3 Reserved 16 MB 551 MB
Partition 4 Primary 232 GB 567 MB
DISKPART> select disk 2
Disk 2 is now the selected disk.
DISKPART> list partition
Partition ### Type Size Offset
------------- ---------------- ------- -------
Partition 1 Primary 60 MB 1024 KB
Partition 0 Extended 232 GB 61 MB
Partition 2 Logical 232 GB 62 MB
I would have to reboot and close this browser where I am tying right now to do that to show what the partitions look like in Ubuntu. I can do that in a follow up if it will help.
Any ideas on my next step?
- Jeff
Config:
Windows 10 64 bit host
Ubuntu 17.04 64 bit guest
VirtualBox 5.1.26
Made sure the motherboard bios has virtualization enabled. I only saw 32 bit O/S options before doing that.
I installed Windows on a SSD card in UEFI mode. Then I rebooted and installed Ubuntu on another SSD card in UEFI mode. I can boot from the UEFI menu (F2) with no problems bouncing between the 2.
I created the guest and told it "Do not add a virtual hard disk".
Then I ran this:
PS C:\Program Files\Oracle\VirtualBox> .\VBoxManage.exe internalcommands listpartitions -rawdisk \\.\PhysicalDrive2
Number Type StartCHS EndCHS Size (MiB) Start (Sect)
1 0xef 0 /32 /33 7 /197/62 60 2048
5 0x83 7 /230/32 1023/254/63 238413 126976
PS C:\Program Files\Oracle\VirtualBox> .\VBoxManage internalcommands createrawvmdk -filename "C:\Users\Jeff\VirtualBox VMs\Ubuntu\Ubuntu.vmdk" -rawdisk \\.\PhysicalDrive2
RAW host disk access VMDK file C:\Users\Jeff\VirtualBox VMs\Ubuntu\Ubuntu.vmdk created successfully.
I then added the virtual VDMK to the VM as a SATA drive under Storage.
Under System I made sure Enable EFI is checked. If I do not, I get a grub recovery menu.
When I start the VM, I get to an EFI shell prompt. If I enter "FS0:" and then "dir", it says "File Not Found".
If under Storage I Use Host I/O Cache is enabled, I get "edit: Disk Error" when trying to create a startup.nsh file.
If not enabled, I can edit startup.nsh. I then see it in the folder, but it is only thing there. No EFI folder or anything else.. When I reset, it hangs. I suspect because there is not path to EFI\ubuntu\grubx64.efi.
I booted Ubuntu and added a startup.nsf file in the root of the /boot partition. It is still there if I boot to Ubuntu.
I am stuck now. I have been reading this forum for a couple of days now and it got me as far as I am. But still stuck at the EFI Shell prompt. I can enter FS0: but I see nothing there. It has to be that EFI is not seeing the partition correctly inside of VirtualBox. If this will help. here is the Shell Map.
FS0: Alias(s):HD16a0a1:;BLK2:
PciRoot (0x0)/Pci(0xD,0x0)/Sata(0x0,0x0,0x0)/HD(1,MBR,0x6C17A9B0,0x800,0x1E000)
BLK0: Alias(s):
PciRoot (0x0)/Pci(0x1,0x1)/Ata(0x0)
BLK1: Alias(s):
PciRoot (0x0)/Pci(0xD,0x0)/Sata(0x0,0x0,0x0)
BLK3: Alias(s):
PciRoot (0x0)/Pci(0xD,0x0)/Sata(0x0,0x0,0x0)/HD(2,MBR,0x6C17A9B0,0x1EFFE,0x1D1A6802)
BLK3: Alias(s):
PciRoot (0x0)/Pci(0xD,0x0)/Sata(0x0,0x0,0x0)/HD(2,MBR,0x6C17A9B0,0x1EFFE,0x1D1A6802)/HD(1,MBR,0x00000000,0x1F000,0x1D1A6800)
Windows Disk manager shows that disk 2 is the right disk for Ubuntu.
DISKPART> select disk 0
Disk 0 is now the selected disk.
DISKPART> list partition
Partition ### Type Size Offset
------------- ---------------- ------- -------
Partition 1 Primary 500 MB 1024 KB
Partition 2 Primary 1862 GB 501 MB
DISKPART> select disk 1
Disk 1 is now the selected disk.
DISKPART> list partition
Partition ### Type Size Offset
------------- ---------------- ------- -------
Partition 1 Recovery 450 MB 1024 KB
Partition 2 System 100 MB 451 MB
Partition 3 Reserved 16 MB 551 MB
Partition 4 Primary 232 GB 567 MB
DISKPART> select disk 2
Disk 2 is now the selected disk.
DISKPART> list partition
Partition ### Type Size Offset
------------- ---------------- ------- -------
Partition 1 Primary 60 MB 1024 KB
Partition 0 Extended 232 GB 61 MB
Partition 2 Logical 232 GB 62 MB
I would have to reboot and close this browser where I am tying right now to do that to show what the partitions look like in Ubuntu. I can do that in a follow up if it will help.
Any ideas on my next step?
- Jeff