Need Help Raw Windows 10 Guest in Linux Host

Discussions about using Windows guests in VirtualBox.
Post Reply
clever
Posts: 1
Joined: 17. Jun 2018, 23:55

Need Help Raw Windows 10 Guest in Linux Host

Post by clever »

Hi guys
I Have Arch And Windows 10 Installed on Same Disk Shown as Below (MBR\BIOS)

Code: Select all

sda      8:0    0 698.7G  0 disk   
├─sda1   8:1    0   500M  0 part ### Windows Boot (First Drive)
├─sda3   8:3    0 141.7G  0 part ### Windows Partition
├─sda5   8:5    0   500M  0 part /boot
├─sda6   8:6    0    40G  0 part /
├─sda7   8:7    0   250G  0 part /home
├─sda8   8:8    0    16G  0 part [SWAP]
└─sda9   8:9    0   250G  0 part ### Extra NTFS
Specs: Dell XPS L502x, Ci7, 8GB Ram, Intel HD 3000 + Nvidia 540m

and want to be able to boot in Windows 10 Via VirtualBox in Linux?
Any Step By Step Tut?
I Know This First:

Code: Select all

#Getting Original MBR
sudo dd if=/dev/sda of=Windows10RAW.mbr count=1 bs=512
#Create Raw Disk From Windows Boot & Root Partition
sudo VBoxManage internalcommands createrawvmdk -filename Windows10RAW.vmdk -rawdisk /dev/sda -mbr Windows10RAW.mbr -partitions 1,3
Questions And Cues:
1. Which Drivers Should I Remove from windows or Do i need to?
2. How to preserve licensing?
3. Risks & Cushions?
4. How to ProvideVirtualbox, Disk Access with my user, Without Risking Other Partitions being modified?
5. How to Hide Windows Boot + Windows Root Partitions from file manager to avoid accidental mount? or at least promt warning that is in use by vbox
6. How to create a grub iso for virtualbox that only boot to windows not linux

for #6 i found this but i'm not sure

Code: Select all

#Create a Grub CD that Only Boot Windows ### Disable VirtualBox HDD Boot
sudo pacman -S libisoburn mtools
mkdir -p ~/WindowsRAWgrubiso.temp/boot/grub                                         # create temporary grub folder
sudo chmod -x /etc/grub.d/10_linux                                                            # disable Linux 
sudo chmod -x /etc/grub.d/20_memtest86+                                                # disable memtest86+ 
sudo grub-mkconfig > ~/WindowsRAWgrubiso.temp/boot/grub/grub.cfg        # create new grub.cfg 
sudo chmod +x /etc/grub.d/10_linux                                                          # enable Linux
sudo chmod +x /etc/grub.d/20_memtest86+                                               # enable memtest86+ 

# create GRUB CD
sudo grub-mkrescue –-modules="linux ext2 fat fshelp ls boot ntfs" –-output=/home/WindowsRAW_GRUB.iso ~/WindowsRAWgrubiso.temp/   
sudo chown $USER /home/WindowsRAW_GRUB.iso                             # change owner to user
sudo rm -R ~/WindowsRAWgrubiso.temp                                                  # delete temporary GRUB folder


References:
HOWTO: Windows 7: In both VM and native -- VBox3.x
viewtopic.php?t=33356#p149094
Anyone have success booting Windows 10 raw partition as a guest in VirtualBox?
viewtopic.php?f=2&t=77237
Windows 7 as native and as raw guest on Ubuntu host ###GRUB IMAGE###
viewtopic.php?f=2&t=46136#p208193
Arch Wiki
https://wiki.archlinux.org/index.php/Vi ... VirtualBox
Last edited by clever on 20. Jun 2018, 23:31, edited 1 time in total.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Need Help Raw Windows 10 Guest in Linux Host

Post by socratis »

Before anything else, why are you using 'sudo' for the "createrawvmdk" command? You don't need to.

As for your questions:
  1. Which Drivers Should I Remove from windows or Do i need to?
    Usually, no. Win10 is too adaptive of an OS, so it adjusts to the changes.
  2. How to preserve licensing?
    You'll need to talk to MS about that. Most probably, you won't be able to use both with the same activation.
  3. Risks & Cushions?
    Plenty of risks and no cushions. You're pretty much on your own accessing raw disks.
  4. How get Disk Virtualbox Disk Access with my user, Without Risking Other Partitions?
    Don't even know what that means, I'm not sure I understand the question.
  5. How to Hide Windows Boot + Windows Root Partitions from file manager
    No clue.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply