Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Mar 2013 16:42:03 -0700
From:      Carl Johnson <carlj@peak.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: FreeBSD 9 and Windows XP
Message-ID:  <87620xtsfo.fsf@oak.localnet>
In-Reply-To: <alpine.BSF.2.00.1303111213380.21525@wonkity.com> (Warren Block's message of "Mon, 11 Mar 2013 12:25:37 -0600 (MDT)")
References:  <20130309120741.DED57767@ms5.mc.surewest.net> <20130311135110.9da99d99cfe968f2d904acd0@yahoo.es> <87a9q9udkd.fsf@oak.localnet> <alpine.BSF.2.00.1303111213380.21525@wonkity.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Warren Block <wblock@wonkity.com> writes:

> On Mon, 11 Mar 2013, Carl Johnson wrote:
>
>> It is my understanding that FreeBSD doesn't allow using part of a disk,
>> but grabs the entire disk.  That means that VirtualBox can't use
>> partitions on a disk that any other partitions are being used by
>> anything else, including FreeBSD itself.  Am I wrong about this?  I use
>> VirtualBox using vdmk for an entire disk, but I have never been able to
>> share with anything else.
>
> It's very hard to tell what situation is being described here.  If the
> VMDK is a pointer to a whole physical disk, that would probably make
> the disk only usable by one VM.  It should be possible to make the
> VMDK point to just one partition on the disk.  Then other VMs or a
> physical machine could use those other partitions while the FreeBSD VM
> was running.

I was thinking of the case where I tried to allow direct access by a
virtual machine to a slice on the same disk that I was running FreeBSD
off of.  I just looked further into that and discovered that it is
possible, but not allowed by geom by default.  It can be done by setting
'sysctl kern.geom.debugflags=0x10'.  I am sure that you are aware of the
dangers, but for anybody else reading this check out the warning in the
geom(4) manpage.  They refer to this option as 'allow foot shooting' for
a reason.

-- 
Carl Johnson		carlj@peak.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87620xtsfo.fsf>