Re: Help getting vbox .vdi imares to run under Freenas

2017-01-13 Thread Peter Grehan

Hi Nils,


can I do this inside of a jail? I'm on FreeNAS, so I don't want to (and
can't) install and compile a lot of stuff in the main FN host. From what
I've managed to read up on, jails don't get the full networking, but at
the grub stage I should be OK, correct?


 I've not tried it but I believe so. The /dev/vmm device file would 
have to be made available in the jail.


later,

Peter.

___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


Re: Help getting vbox .vdi imares to run under Freenas

2017-01-12 Thread Peter Grehan

Hi Nils,


On 2017-01-08 19:04, Peter Grehan wrote:


There's some additional info at
https://github.com/pr1ntf/iohyve/issues/228 -

grub> ls (hd0) (cd0) (host) grub> ls (hd0) Device hd0: No known
filesystem detected - Total size 16777216 sectors

... so it looks like grub isn't able to auto-detect the
partitions.


Anything that I can do to debug that?
https://github.com/grehan-freebsd/grub2-bhyve doesn't appear very
active... would runningit under gdb make sense, or are there any
other diagnostics that you can think of? All the diagnostics I've
done have said that the image looks good (extracting MBR, looking at
it with fdisk -l under Linux, etc.) Thanks Nils


 Running it under gdb is probably the best (since it's a curses app, so 
you will have to use the techniques in 
http://www.dirac.org/linux/gdb/07-Debugging_Ncurses_Programs.php)


later,

Peter.

___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


Re: Help getting vbox .vdi imares to run under Freenas

2017-01-11 Thread Nils
On 2017-01-08 19:04, Peter Grehan wrote:

>  There's some additional info at 
> https://github.com/pr1ntf/iohyve/issues/228 -
>> grub> ls
>> (hd0) (cd0) (host)
>> grub> ls (hd0)
>> Device hd0: No known filesystem detected - Total size 16777216 sectors
>  ... so it looks like grub isn't able to auto-detect the partitions.

Anything that I can do to debug that? 
https://github.com/grehan-freebsd/grub2-bhyve doesn't appear very active... 
would runningit under gdb make sense, or are there any other diagnostics that 
you can think of? All the diagnostics I've done have said that the image looks 
good (extracting MBR, looking at it with fdisk -l under Linux, etc.)
Thanks
Nils

___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


Re: Help getting vbox .vdi imares to run under Freenas

2017-01-08 Thread Nils
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-unsubscr...@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-unsubscr...@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|



___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


Re: Help getting vbox .vdi imares to run under Freenas

2017-01-08 Thread Peter Grehan

|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... |

 ...

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)


 There's some additional info at 
https://github.com/pr1ntf/iohyve/issues/228 -



grub> ls
(hd0) (cd0) (host)
grub> ls (hd0)
Device hd0: No known filesystem detected - Total size 16777216 sectors


 ... so it looks like grub isn't able to auto-detect the partitions.

later,

Peter.
___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


Re: Help getting vbox .vdi imares to run under Freenas

2017-01-08 Thread Allan Jude
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-unsubscr...@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-unsubscr...@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)


-- 
Allan Jude



signature.asc
Description: OpenPGP digital signature


Re: Help getting vbox .vdi imares to run under Freenas

2017-01-08 Thread Nils
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-unsubscr...@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-unsubscr...@freebsd.org"


Re: Help getting vbox .vdi imares to run under Freenas

2017-01-08 Thread Allan Jude
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-unsubscr...@freebsd.org"
> 

I wonder if you are having the same problem as this user:

https://lists.freebsd.org/pipermail/freebsd-virtualization/2017-January/005088.html

That the .VDI you are booting is starting grub in graphical mode, hence
your lack of feedback on the serial console.

-- 
Allan Jude



signature.asc
Description: OpenPGP digital signature


Re: Help getting vbox .vdi imares to run under Freenas

2017-01-08 Thread Allan Jude
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-unsubscr...@freebsd.org"
> 

How are you converting the .VDI to a raw image? bhyve does not yet
support the .VDI format, only raw.

-- 
Allan Jude
___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"