The use of 'VBoxManage internalcommands createrawvmdk ... -relative' command is currently limited to Linux hosts. This command is useful when one wants to run the secondary OS on the system HDD (e.g. Linux) inside the VirtualBox without giving it the full access to the HDD. It creates the .vmdk-file which directs HDD access to the separate partition devices (e.g. /dev/sda1 instead of /dev/sda under Linux). This allows to give an access for the VirtualBox user to those partition devices only, thus preventing the accidental data loss on the rest of the HDD. Hovewer, naming of those partition devices under FreeBSD is quite similar to that under Linux (Linux: /dev/sda -> /dev/sda1..., FreeBSD: /dev/ada0 -> /dev/ada0s1...). This allows to make this feature available to the FreeBSD users via an attached (rather trivial) patch. The patch is verified using the following command: VBoxManage internalcommands createrawvmdk -filename ada0s4,8,9.vmdk -rawdisk /dev/ada0 -partitions 4,8,9 -relative and then installing the Gentoo Linux/amd64 inside it, then rebooting the host into the resuling OS and verifying that the system is installed correctly. Fix: Patch attached with submission follows:
Responsible Changed From-To: freebsd-ports-bugs->vbox Over to maintainer (via the GNATS Auto Assign Tool)
Patch looks good to me. We can push this patch upstream if you agree that this patch is either under the MIT License or sign a Sun Contributor Agreement (see http://www.virtualbox.org/wiki/Contributor_information ). Please reply how you wish to proceed and keep the PR database CC'd so that it's documented. Thanks a lot! -- Bernhard Froehlich http://www.bluelife.at/
Hello! On Tue, Mar 15, 2011 at 4:24 PM, Bernhard Froehlich <decke@freebsd.org> wrote: > Patch looks good to me. We can push this patch upstream if you agree > that this patch is either under the MIT License or sign a Sun > Contributor Agreement (see > http://www.virtualbox.org/wiki/Contributor_information ). Please reply > how you wish to proceed and keep the PR database CC'd so that it's > documented. Thank you, it would be nice to push this patch upstream. I agree that this patch is under the MIT License. > > Thanks a lot! > > -- > Bernhard Froehlich > http://www.bluelife.at/ > -- Sincerely, Dmytro
Patch was committed upstream and will be part of VirtualBox 4.0.6. -- Bernhard Froehlich http://www.bluelife.at/
decke 2011-03-17 13:29:04 UTC FreeBSD ports repository Modified files: emulators/virtualbox-ose Makefile Added files: emulators/virtualbox-ose/files patch-src-VBox-Frontends-VBoxManage-VBoxInternalManage.cpp Log: - Enable createrawvmdk -relative under FreeBSD - Bump PORTREVISION PR: ports/155236 Submitted by: Dmitry Pryanishnikov <lynx.ripe@gmail.com> Revision Changes Path 1.35 +1 -0 ports/emulators/virtualbox-ose/Makefile 1.4 +48 -0 ports/emulators/virtualbox-ose/files/patch-src-VBox-Frontends-VBoxManage-VBoxInternalManage.cpp (new) _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
State Changed From-To: open->closed Committed. Thanks!
Thank you very much! On Thu, Mar 17, 2011 at 3:23 PM, Bernhard Froehlich <decke@freebsd.org> wrote: > Patch was committed upstream and will be part of VirtualBox 4.0.6. > > -- > Bernhard Froehlich > http://www.bluelife.at/ > -- Sincerely, Dmytro