"Raw hard disk access" in Solaris
-
- Posts: 8
- Joined: 1. Jun 2008, 07:28
"Raw hard disk access" in Solaris
I am trying to do raw hard disk access on my OpenSolaris 2008.05 system to boot Windows XP on the physical hard disk.
I tried the following command:
# exec VBoxManage internalcommands createrawvmdk -filename /export/home/angad/windows.vmdk /dev/dsk/c5d0 -register
And get the following output:
which: no internalcommands in (/usr/gnu/bin:/usr/bin:/usr/X11/bin:/usr/sbin:/sbin)
Unknown application -
It's not working. Any idea what's wrong?
I tried the following command:
# exec VBoxManage internalcommands createrawvmdk -filename /export/home/angad/windows.vmdk /dev/dsk/c5d0 -register
And get the following output:
which: no internalcommands in (/usr/gnu/bin:/usr/bin:/usr/X11/bin:/usr/sbin:/sbin)
Unknown application -
It's not working. Any idea what's wrong?
"Raw hard disk access" in Solaris
Hi,
This is just some guessing from reading the VBoxManage helptext:
And if you enter something along the line of /dev/dsk/... be sure it exists; seems to me this needs to be an entry describing the whole disk (/dev/dsk/c5d0s2 in lingua solaria starting with the master boot record.
kind regards, Arie Bikker
This is just some guessing from reading the VBoxManage helptext:
So the command seems to need "-rawdisk <diskname>"; not just <diskname>
createrawvmdk -filename <filename> -rawdisk <diskname>
[-partitions <list of partition numbers> [-mbr <filename>] ]
[-register] [-relative]
Creates a new VMDK image which gives access to an entite host disk (if
the parameter -partitions is not specified) or some partitions of a
host disk. If access to individual partitions is granted, then the
parameter -mbr can be used to specify an alternative MBR to be used
(the partitioning information in the MBR file is ignored).
The diskname is on Linux e.g. /dev/sda, and on Windows e.g.
\\.\PhysicalDisk0).
On Linux host the parameter -relative causes a VMDK file to be created
which refers to individual partitions instead to the entire disk.
Optionally the created image can be immediately registered.
The necessary partition numbers can be queried with
VBoxManage internalcommands listpartitions
And if you enter something along the line of /dev/dsk/... be sure it exists; seems to me this needs to be an entry describing the whole disk (/dev/dsk/c5d0s2 in lingua solaria starting with the master boot record.
kind regards, Arie Bikker
-
- Posts: 8
- Joined: 1. Jun 2008, 07:28
Hi aribi, thanks for replying
There's a problem in the VBox.sh script in solaris, basically related with the positional parameters ($0..9) used. I fixed that by making these changes:
to..
and..
to..
If I don't do this, it gives an error: cannot find VBoxManage, which basically means that the $@ parameter was sending all the arguments received by the VBox.sh scripts starting from "VBoxManage" to VBoxManage itself!
I made it to run.
Now, another thing I noticed was that the VirtualBox user manual only provides documentation for linux and windows as of now. It says that I need to tell it the disk device specification (for the entire disk). On linux it is /dev/sda and on windows it is \\.\PhysicalDrive0.
On solaris it is equivalent of /dev/rdsk/c5d0p0 (p0 refers to entire physical disk and not any specific partition)
Now I have encountered a virtualbox related problem:
Any idea?
There's a problem in the VBox.sh script in solaris, basically related with the positional parameters ($0..9) used. I fixed that by making these changes:
Code: Select all
APP=`which $0`
Code: Select all
APP=`which $1`
Code: Select all
exec "$INSTALL_DIR/VBoxManage" $@
Code: Select all
exec "$INSTALL_DIR/VBoxManage" $2 $3 $4 $5 $6 $7 $8 $9
I made it to run.
Now, another thing I noticed was that the VirtualBox user manual only provides documentation for linux and windows as of now. It says that I need to tell it the disk device specification (for the entire disk). On linux it is /dev/sda and on windows it is \\.\PhysicalDrive0.
On solaris it is equivalent of /dev/rdsk/c5d0p0 (p0 refers to entire physical disk and not any specific partition)
Now I have encountered a virtualbox related problem:
Code: Select all
angad@opensolaris:/opt/VirtualBox# ./VBox.sh VBoxManage internalcommands createrawvmdk -filename /export/home/angad/windows.vmdk -rawdisk /dev/rdsk/c5d0p0 -register
VirtualBox Command Line Management Interface Version 1.5.51
(C) 2005-2008 innotek GmbH
All rights reserved.
Error while creating the raw disk VMDK: VERR_INVALID_PARAMETER
"Raw hard disk access" in Solaris
Hi angad,
Taking the risk again of pointing at the obvious again
About the VBox.sh script. I have the feeling this is just left over from previous version of VirtualBox. I seem to remember that under version 1.5.x the CLI commands where all symbolic links to this script. Then it makes sense that it tries to figure out how it was called. These things confirm the feeling of a "hasty and early" release of 1.6 for Solaris!
Instead of "./VBox.sh VBoxManage ...." you might just "./VBoxManage ..."
kind regards, Arie Bikker
Taking the risk again of pointing at the obvious again
Good point about cxdxp0, I learn something every day But shouldn't that be /dev/dsk/... instead of /dev/rdsk: you'll want the random access device, not the character device.angad@opensolaris:/opt/VirtualBox# ./VBox.sh VBoxManage internalcommands createrawvmdk -filename /export/home/angad/windows.vmdk -rawdisk /dev/rdsk/c5d0p0 -register
About the VBox.sh script. I have the feeling this is just left over from previous version of VirtualBox. I seem to remember that under version 1.5.x the CLI commands where all symbolic links to this script. Then it makes sense that it tries to figure out how it was called. These things confirm the feeling of a "hasty and early" release of 1.6 for Solaris!
Instead of "./VBox.sh VBoxManage ...." you might just "./VBoxManage ..."
kind regards, Arie Bikker
-
- Posts: 8
- Joined: 1. Jun 2008, 07:28
Code: Select all
angad@opensolaris:/opt/VirtualBox# ./VBox.sh VBoxManage internalcommands createrawvmdk -filename /export/home/angad/windows.vmdk -rawdisk /dev/dsk/c5d0p0 -register
VirtualBox Command Line Management Interface Version 1.5.51
(C) 2005-2008 innotek GmbH
All rights reserved.
Error while creating the raw disk VMDK: VERR_INVALID_PARAMETER
Code: Select all
angad@opensolaris:/opt/VirtualBox# ./VBox.sh VBoxManage internalcommands createrawvmdk -filename /export/home/angad/windows.vmdk -rawdisk /dev/rdsk/c5d0p0 -register
VirtualBox Command Line Management Interface Version 1.5.51
(C) 2005-2008 innotek GmbH
All rights reserved.
Error while creating the raw disk VMDK: VERR_INVALID_PARAMETER
Code: Select all
angad@opensolaris:/opt/VirtualBox# ./VBoxManage internalcommands createrawvmdk -filename /export/home/angad/windows.vmdk -rawdisk /dev/rdsk/c5d0p0 -registerld.so.1: VBoxManage: fatal: VBoxDDU.so: open failed: No such file or directory
Killed
"Raw hard disk access" in Solaris
Hi angad,
Should have noticed this before:
kind regards, Arie Bikker
Should have noticed this before:
You might want to upgrade to 1.6VirtualBox Command Line Management Interface Version 1.5.51
kind regards, Arie Bikker
-
- Posts: 8
- Joined: 1. Jun 2008, 07:28
-
- Posts: 8
- Joined: 1. Jun 2008, 07:28
Code: Select all
/VBox.sh VBoxManage internalcommands createrawvmdk -filename /export/home/angad/windows.vmdk -rawdisk /dev/dsk/c5d0p0 -register
Hmmm... my disk drive has the same ID on my install of OpenSolaris 2008.05 as yours, so I am trying this command:
and I get no result. The VBoxManage command just returns. No error is reported. But unfortunately, no file is created either.
Any ideas?
Code: Select all
VBoxManage internalcommands createrawvmdk -filename /export/home/gs145266/fulldisk.vmdk -rawdisk /dev/dsk/c5d0p0 -register
Any ideas?
-
- Posts: 8
- Joined: 1. Jun 2008, 07:28
-
- Posts: 8
- Joined: 1. Jun 2008, 07:28
-
- Posts: 8
- Joined: 1. Jun 2008, 07:28