Raw Partition Ubuntu Guest on Same Disk

Discussions related to using VirtualBox on Windows hosts.
Post Reply
levmatta
Posts: 2
Joined: 30. Apr 2013, 20:11

Raw Partition Ubuntu Guest on Same Disk

Post by levmatta »

I am having problems trying to run a Ubuntu that is living in a raw partition of the same disk as the Windows 8 Host.
My system is configured as dual boot with Ubuntu 13.04 -- fresh recent install -- and the Windows 8 -- 2 months old and updated --.

I am using PowerShell as Administrator:

Code: Select all

cd 'C:\Program Files\Oracle\VirtualBox'
.\VBoxManage internalcommands listpartitions -rawdisk \\.\PhysicalDrive0
This results in partition 7 (the root Ubuntu partition) and partition 6 (swap).

Then I ran:

Code: Select all

.\VBoxManage internalcommands createrawvmdk -filename "D:\VMs\LeLinuxVM\ubuntu_raw.vmdk" -rawdisk \\.\PhysicalDrive0 -partitions 7,6 -relative -register
# Error:  "6 is not a command"
.\VBoxManage internalcommands createrawvmdk -filename "D:\VMs\LeLinuxVM\ubuntu_raw.vmdk" -rawdisk \\.\PhysicalDrive0 -partitions 7 -relative -register
# Error: -register
.\VBoxManage internalcommands createrawvmdk -filename "D:\VMs\LeLinuxVM\ubuntu_raw.vmdk" -rawdisk \\.\PhysicalDrive0 -partitions 7 -relative
# Error: -relative
.\VBoxManage internalcommands createrawvmdk -filename "D:\VMs\LeLinuxVM\ubuntu_raw.vmdk" -rawdisk \\.\PhysicalDrive0 -partitions 7,6
# Error:  "6 is not a command"
.\VBoxManage internalcommands createrawvmdk -filename "D:\VMs\LeLinuxVM\ubuntu_raw.vmdk" -rawdisk \\.\PhysicalDrive0 -partitions 7
#SUCCESS
(Why Do I get the error on the 6 partition ????? isn't -relative required for this to work?? -- but it seams that it does not work on Windows hosts -- )

This created 2!! files, one "ubuntu_raw.vmdk" AND one "ubuntu_raw-pt.vmdk", and I bound one the first to the VM setting -- the other one gives an error.

Finally when I run the VM (starting the manager as Admin), it starts, GRUB2 load, I select Ubuntu, screen goes Blank, and Nothing happens.

Thanks for any help.
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Raw Partition Ubuntu Guest on Same Disk

Post by noteirak »

What about :

Code: Select all

.\VBoxManage internalcommands createrawvmdk -filename "D:\VMs\LeLinuxVM\ubuntu_raw.vmdk" -rawdisk \\.\PhysicalDrive0 -partitions 6,7 -relative -register
or

Code: Select all

.\VBoxManage internalcommands createrawvmdk -filename "D:\VMs\LeLinuxVM\ubuntu_raw.vmdk" -rawdisk \\.\PhysicalDrive0 -partitions 6 -relative -register
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
levmatta
Posts: 2
Joined: 30. Apr 2013, 20:11

Re: Raw Partition Ubuntu Guest on Same Disk

Post by levmatta »

Both fail, but just partition 6 without -relative and/or -register Works (but has no use for me beacause it is the swap).

Thanks, I am still trying to find something on the net but no success.
Post Reply