Run Windows from real HD partition with VirualBax

Discussions related to using VirtualBox on Linux hosts.

Run Windows from real HD partition with VirualBax

Postby frd_gan » 19. Nov 2017, 02:08

Hello,

I've been using a dual boot Ubuntu / win 7 for about 1 year. It has gone well but today most of my work is done with linux but the reports have to be in .docx format (Libreoffice does not fit as wanted). Till now I reboot my laptop to switch OS which is not that convenient.

Today I tried the method from

And it resulted to a permission issue.

Does anyone can help me ?

Thanks

Frd_gan
frd_gan
 
Posts: 4
Joined: 17. Nov 2017, 19:39

Re: Run Windows from real HD partition with VirualBax

Postby sixpack13 » 20. Nov 2017, 00:51

under Fedora 27 I do:

1. sudo fdisk -l /dev/sdb
...
/dev/sdb1 * 2048 206847 204800 100M 7 HPFS/NTFS/exFAT
/dev/sdb2 206848 30724095 30517248 14,6G 7 HPFS/NTFS/exFAT
...
sdb1 is the boot partition and sdb2 the system partition from Window 7

2. sudo VBoxManage internalcommands createrawvmdk -filename ./Win7_RAW.vmdk -rawdisk /dev/sdb -partitions 1,2 -relative

3. sudo chown <username>.<groupname> Win7_RAW.vmdk

4. usermod -a -G disk <username>
5. logoff/-on to be in the new group
don't know if step 4 and 5 are really necessary

6. create a VM with the disk Win7_RAW.vmdk

7. install guest additions

8. config. shares, etc. ...
sixpack13
 
Posts: 8
Joined: 16. Nov 2016, 22:44

Re: Run Windows from real HD partition with VirualBax

Postby frd_gan » 20. Nov 2017, 16:15

Thank sixpack13.

I tried your method and it results with the same error

" Permission problem accessing the file for the medium '/home/default/VM/My_Win7_RAW.vmdk' (VERR_ACCESS_DENIED). "

Any ideas ?

Thank you for your help

frd_gan
frd_gan
 
Posts: 4
Joined: 17. Nov 2017, 19:39

Re: Run Windows from real HD partition with VirualBax

Postby frd_gan » 20. Nov 2017, 19:01

Hello,

Now it works. I had to do the same with the second file created.
But now I experience a grub issue. I am working on it

Thanks

Frd_gan
frd_gan
 
Posts: 4
Joined: 17. Nov 2017, 19:39

Re: Run Windows from real HD partition with VirualBax

Postby sixpack13 » 20. Nov 2017, 19:40

okay 3. should read:

sudo chown -R <username>.<groupname> Win7_RAW.vmdk

why a grub problem ?

didn't you start Window 7 under Ubuntu ?

Hint 1:
my Windows 7 was installed with cables to sda pulled (only one single disk for Windows was in my box. Microsoft wants always to occupy the first disk)

Hint 2:
be aware installing driver, e.g. USB3, into Windows running under Vbox, they could cause boot (BSD) failure.
sixpack13
 
Posts: 8
Joined: 16. Nov 2016, 22:44

Re: Run Windows from real HD partition with VirualBax

Postby frd_gan » 22. Nov 2017, 11:49

I did all how you said but after launching the VM it says

error: unknown filesystem
Entering rescue mode...
grub rescue>

Is it something to do with the fact that my windows partition is originally uses for a duak boot with grub ?

Thank you

frd_gan
frd_gan
 
Posts: 4
Joined: 17. Nov 2017, 19:39

Re: Run Windows from real HD partition with VirualBax

Postby sixpack13 » 23. Nov 2017, 19:36

it seems you got a computer with only one single disk.

My one has two disk, one for linux (/dev/sda) and one for windows (/dev/sdb).


unfortunately I have not advice for your problem.
sixpack13
 
Posts: 8
Joined: 16. Nov 2016, 22:44


Return to VirtualBox on Linux Hosts

Who is online

Users browsing this forum: No registered users and 24 guests