Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Jan 2017 19:04:37 +0100
From:      Nils <internationils@gmx.net>
To:        freebsd-virtualization@freebsd.org
Subject:   Re: Help getting vbox .vdi imares to run under Freenas
Message-ID:  <8e19f594-e281-6676-fecc-e1af058e2e22@gmx.net>
In-Reply-To: <13af4cda-44d7-5b2c-7dbe-862b3fc8be40@freebsd.org>
References:  <9bcff734-5ed5-a228-df5e-5ff35cf9e3ff@gmx.net> <4b65f427-07dc-8b0c-1ac9-59c3c1533336@freebsd.org> <201dbbc3-53de-ba98-6a88-16dd06444bc5@gmx.net> <13af4cda-44d7-5b2c-7dbe-862b3fc8be40@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On 2017-01-08 18:35, Allan Jude wrote:
> On 2017-01-08 12:21, Nils wrote:
>> On 2017-01-08 18:01, Allan Jude wrote:
>>> On 2017-01-08 10:18, Nils wrote:
>>>> Hello, I'm fighting to get vbox vdi images to run under FreeNAS and
>>>> don't know what else to try. I've filed and commented on these two bugs:
>>>> https://github.com/pr1ntf/iohyve/issues/227
>>>> https://github.com/pr1ntf/iohyve/issues/228
>>>>
>>>> ...but I think the problem is not with bhyve itself or with iohyve, but
>>>> either with grub-bhyve or ZFS.
>>>> Running installation ISOs etc. works fine, but I need to get the VDIs
>>>> going.,
>>>>
>>>> Any pointers are welcome...
>>>> Thanks
>>>> Nils
>>>> _______________________________________________
>>>> freebsd-virtualization@freebsd.org mailing list
>>>> https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
>>>> To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freebsd.org"
>>>>
>>> How are you converting the .VDI to a raw image? bhyve does not yet
>>> support the .VDI format, only raw.
>>>
>> I've done the conversion to raw with both VBoxManage and qemu-img, same
>> result.
>>
>> I'm not sure where to add teh text flag, but I don't think that it's a
>> problem, as grub should be running in a text console. What bothers me is
>> that grub at the prompt claims not to recognize the (hd0):
>>
>> |grub> ls (hd0) Device hd0: No known filesystem detected - Total size
>> 16777216 sectors ... where extracting the MBR and looking at it with
>> fdisk shows the partitions... |
>>
>> _______________________________________________
>> freebsd-virtualization@freebsd.org mailing list
>> https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
>> To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freebsd.org"
>>
> Well, you are not telling grub to USE a partition, you are asking it to
> read (hd0) has a file system
>
> You likely want something like: ls (hd0,msdos1)
>
>
grub> ls (hd0)
Device hd0: No known filesystem detected - Total size 16777216 sectors
grub> ls (hd0,msdos1)
error: disk `hd0,msdos1' not found.
grub>

...looking at the MBR (extracted with dd if=disk0 of=disk0-mbr count=1
bs=512)  under linux with fdisk -l shows:

|nils@dnet64:/mnt/nas/backup/tmp$ sudo fdisk -l disk0 Disk disk0: 8 GiB,
8589934592 bytes, 16777216 sectors Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes I/O size
(minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk
identifier: 0x000f139a Device Boot Start End Sectors Size Id Type
disk0p1 * 63 15952544 15952482 7,6G 83 Linux disk0p2 15952545 16771859
819315 400,1M 5 Extended disk0p5 15952608 16771859 819252 400M 82 Linux
swap / Solaris|






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8e19f594-e281-6676-fecc-e1af058e2e22>