Code: Select all
.\VBoxManage.exe internalcommands createrawvmdk -filename C:\VirtualBox\linux_and_efi_ro.vmdk -rawdisk \\.\PhysicalDrive1 -partitions 2r,5
This is taken from the VM's log file:
Code: Select all
00:05:13.338938 Changing the VM state from 'SUSPENDED' to 'RESUMING'
00:05:13.339747 AIOMgr: Endpoint for file 'C:\VirtualBox\linux_and_efi_ro.vmdk' (flags 00040723) created successfully
00:05:13.339927 AIOMgr: Endpoint for file 'C:\VirtualBox\linux_and_efi_ro-pt.vmdk' (flags 000c0723) created successfully
00:05:13.340637 AIOMgr: Endpoint for file '\\.\PhysicalDrive1' (flags 000c0781) created successfully
00:05:13.340682 AIOMgr: Async flushes not supported
00:05:13.340929 AioMgr0-N: Request 0x000000144f2c70 failed with rc=VERR_ACCESS_DENIED, migrating endpoint \\.\PhysicalDrive1 to failsafe manager.
00:05:13.341083 Changing the VM state from 'RESUMING' to 'RUNNING'
00:05:13.341090 Console: Machine state changed to 'Running'
00:05:13.341308 VM: Raising runtime error 'BLKCACHE_IOERR' (fFlags=0x6)
00:05:13.341336 Changing the VM state from 'RUNNING' to 'SUSPENDING'
00:05:13.343510 AIOMgr: Endpoint for file 'C:\VirtualBox\linux_and_efi_ro.vmdk' (flags 00040781) created successfully
00:05:13.343631 AIOMgr: Endpoint for file 'C:\VirtualBox\linux_and_efi_ro-pt.vmdk' (flags 000c0781) created successfully
00:05:13.344119 AIOMgr: Endpoint for file '\\.\PhysicalDrive1' (flags 000c0781) created successfully
00:05:13.441570 PDMR3Suspend: 100 209 505 ns run time
00:05:13.441583 Changing the VM state from 'SUSPENDING' to 'SUSPENDED'
00:05:13.441591 Console: Machine state changed to 'Paused'
00:05:13.441670 Console: VM runtime error: fatal=false, errorID=BLKCACHE_IOERR message="The I/O cache encountered an error while updating data in medium "ahci-0-0" (rc=VERR_ACCESS_DENIED). Make sure there is enough free space on the disk and that the disk is working properly. Operation can be resumed afterwards"
00:05:36.791668 GUI: UIMediumEnumerator: Medium-enumeration started...
00:05:37.323406 GUI: UIMediumEnumerator: Medium-enumeration finished!
The error first happens when the following line appears:
Code: Select all
/dev/sda5: recovering journal
There are guides out there that tell you how to virtualize a physical partition that is located on a different disk than windows is on. Those guides suggest taking the disk that contains Linux offline in Windows. Putting Linux on a different drive is not an option for me. I could put grub (or another small boot loader or small file system) on another disk (e.g. usb stick), but I can't put Linux itself on another drive.
If this is possible with another virtualization option, please let me know.
I would appreciate any and all pointers on this topic. Thanks!