Bug 155236 - [patch] emulators/virtualbox-ose: enable createrawvmdk -relative under FreeBSD
Summary: [patch] emulators/virtualbox-ose: enable createrawvmdk -relative under FreeBSD
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Virtualbox Team (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-03 19:00 UTC by Dmitry Pryanishnikov
Modified: 2011-03-17 22:30 UTC (History)
0 users

See Also:


Attachments
file.diff (2.00 KB, patch)
2011-03-03 19:00 UTC, Dmitry Pryanishnikov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Pryanishnikov 2011-03-03 19:00:23 UTC
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:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2011-03-03 19:00:35 UTC
Responsible Changed
From-To: freebsd-ports-bugs->vbox

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Bernhard Froehlich freebsd_committer freebsd_triage 2011-03-15 14:24:47 UTC
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/
Comment 3 Dmitry Pryanishnikov 2011-03-15 19:45:00 UTC
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
Comment 4 Bernhard Froehlich freebsd_committer freebsd_triage 2011-03-17 13:23:33 UTC
Patch was committed upstream and will be part of VirtualBox 4.0.6.

-- 
Bernhard Froehlich
http://www.bluelife.at/
Comment 5 dfilter service freebsd_committer freebsd_triage 2011-03-17 13:29:17 UTC
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"
Comment 6 Bernhard Froehlich freebsd_committer freebsd_triage 2011-03-17 13:32:35 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 7 Dmitry Pryanishnikov 2011-03-17 22:23:15 UTC
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