Accessing UFS2 Filesystems in Logical Volume Disks of Virtual Machines

Bill Davidsen davidsen at tmr.com
Wed Nov 18 15:52:56 UTC 2009


Mr. Teo En Ming (Zhang Enming) wrote:
> On Wed, Nov 18, 2009 at 1:01 AM, Mr. Teo En Ming (Zhang Enming)
> <space.time.universe at gmail.com> wrote:
>> On Wed, Nov 18, 2009 at 12:38 AM, Mr. Teo En Ming (Zhang Enming)
>> <space.time.universe at gmail.com> wrote:
>>> Hi All,
>>>
>>> I have a logical volume containing a FreeBSD 8.0 virtual machine. The
>>> virtual harddisk for the FreeBSD UNIX VM contains one slice. And this
>>> slice contains various UFS2 partitions.
>>>
>>> When I used kpartx to add mappings, I can only see the slice but not
>>> the partitions within the slice.
>>>
>>> How can I have access to the partitions within the slice?
>>>
>>> Thank you.
>>>
>> Hi,
>>
>> The solution that I found is for FreeBSD directly installed on bare
>> metal machine. Please read the following discussions.
>>
>> http://www.linuxquestions.org/questions/bsd-17/cannot-mount-freebsd-ufs-from-linux-191184/
>>
>> But my FreeBSD was installed as a virtual machine in a logical volume
>> virtual harddisk.
>>
>>
> 
> Hi All,
> 
> I can only mount the first BSD partition "a" (root / filesystem) in
> linux. All the rest of the partitions (b for swap, c represents the
> entire disk, d for /var, e for /tmp, and f for /var) cannot be mounted
> at all. I want to access /var and /usr as well. All of these
> partitions (a to f) are inside the FreeBSD slice
> /dev/mapper/virtualmachines-freebsd1. virtualmachines-freebsd1 is akin
> to /dev/sda1.
> 
Is just exporting the space in question via NFS viable? I don't know what you 
plan to do with the shared data, but I treat my VMs like physical machines (some 
were) and don't expect to do stuff like that. ;-)

-- 
Bill Davidsen <davidsen at tmr.com>
   "We have more to fear from the bungling of the incompetent than from
the machinations of the wicked."  - from Slashdot




More information about the fedora-list mailing list