VirtualBox physical mapping: Difference between revisions
From Lolly's Wiki
Jump to navigationJump to search
No edit summary |
m (Text replacement - "</source" to "</syntaxhighlight") |
||
Line 9: | Line 9: | ||
# apt install mbr | # apt install mbr | ||
# install-mbr /var/data/VMs/dev/mbr.img | # install-mbr /var/data/VMs/dev/mbr.img | ||
</ | </syntaxhighlight> | ||
===Create the mapping as a VMDK file=== | ===Create the mapping as a VMDK file=== | ||
<source lang=bash> | <source lang=bash> | ||
# VBoxManage internalcommands createrawvmdk -filename /var/data/VMs/dev/Windows-physical.vmdk -rawdisk /dev/sda -partitions 1,2 -mbr /var/data/VMs/dev/mbr.img | # VBoxManage internalcommands createrawvmdk -filename /var/data/VMs/dev/Windows-physical.vmdk -rawdisk /dev/sda -partitions 1,2 -mbr /var/data/VMs/dev/mbr.img | ||
</ | </syntaxhighlight> | ||
After that create a VM and use this special VMDK file. | After that create a VM and use this special VMDK file. |
Revision as of 16:51, 25 November 2021
[[Kategorie:Virtualbox]
Create a virtual mapping to your physical Windows
In my example it is on partitions 1 and 2 of the disk.
This helps me to work around problems with installing Windows updates and grub. Some Windows updates are failing if you have grub in your MBR.
Create a dummy mbr
<source lang=bash>
- apt install mbr
- install-mbr /var/data/VMs/dev/mbr.img
</syntaxhighlight>
Create the mapping as a VMDK file
<source lang=bash>
- VBoxManage internalcommands createrawvmdk -filename /var/data/VMs/dev/Windows-physical.vmdk -rawdisk /dev/sda -partitions 1,2 -mbr /var/data/VMs/dev/mbr.img
</syntaxhighlight>
After that create a VM and use this special VMDK file.