Re: bhyve and backed-up dd disk image

2017-10-02 Thread tech-lists

Hi,

I should have mentioned at the start - the disk image system ran ZFS
as does the freebsd host. I tried to boot the image like this:

sh /usr/share/examples/bhyve/vmrun.sh -c 4 -m 4096M -t tap0 -d
disk.img diskimage

It loads the spash screen and tries to boot but then drops me to the
mountroot prompt after a screen or so of output:





Trying to mount root from zfs:zroot/ROOT/default []...
Mounting from zfs:zroot/ROOT/default failed with error 5.

Loader variables:
 vfs.root.mountfrom=zfs:zroot/ROOT/default
 
 Manual root filesystem specification:

   : [options]
 Mount  using filesystem 
and with the specified (optional) option list.

eg. ufs:/dev/da0s1a
zfs:tank
cd9660:/dev/cd0 ro
  (which is equivalent to:
mount -t cd9660 -o ro /dev/cd0 /)

 ?   List valid disk boot devices
   .   Yield 1 second (for background tasks)
 Abort manual input
 
 mountroot> ?
 
 List of GEOM managed disk devices:

   gpt/zfs0 gpt/swap0 gpt/gptboot0 vtbd0p3 vtbd0p2 vtbd0p1 vtbd0

<<

I've tried various combinations for mountroot but I have no idea how
to make it see zfs:zroot/ROOT/default which is what it was on the
machine I got the image from.





mountroot> zfs:gpt/zfs0
Trying to mount root from zfs:gpt/zfs0 []...
Solaris: NOTICE: Cannot find the pool label for 'gpt'
Mounting from zfs:gpt/zfs0 failed with error 5.

mountroot> zfs:gpt/gptboot0
Trying to mount root from zfs:gpt/gptboot0 []...
Mounting from zfs:gpt/gptboot0 failed with error 2: unknown file system.

mountroot> zfs:zroot/gptboot0
Trying to mount root from zfs:zroot/gptboot0 []...
Mounting from zfs:zroot/gptboot0 failed with error 5.

mountroot> zfs:zroot/ROOT
Trying to mount root from zfs:zroot/ROOT []...
Mounting from zfs:zroot/ROOT failed with error 5.

mountroot> ?

List of GEOM managed disk devices:
 gpt/zfs0 gpt/swap0 gpt/gptboot0 vtbd0p3 vtbd0p2 vtbd0p1 vtbd0
 
 mountroot> zfs:/zfs0

 Trying to mount root from zfs:/zfs0 []...
 Solaris: NOTICE: Cannot find the pool label for ''
 Mounting from zfs:/zfs0 failed with error 5.
 
 mountroot> zfs:zroot/gpt/zfs0

 Trying to mount root from zfs:zroot/gpt/zfs0 []...
 Mounting from zfs:zroot/gpt/zfs0 failed with error 2: unknown file
system.

mountroot> zfs:zroot/zfs0
Trying to mount root from zfs:zroot/zfs0 []...
Mounting from zfs:zroot/zfs0 failed with error 5.

<

Please can anyone advise how to make the image boot?

many thanks,
--
J.
___
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: bhyve and backed-up dd disk image

2017-10-01 Thread tech-lists

On Sun, Oct 01, 2017 at 09:35:08PM +0800, Julian Elischer wrote:


It depends on whether you have the required virtio devices in the
kernel, or can load them from the bootloader.


aha - so GENERIC kernel

thanks,
--
J.
___
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: bhyve and backed-up dd disk image

2017-10-01 Thread Julian Elischer

On 29/9/17 10:37 pm, tech-lists wrote:

Hello list,

Would I be able to spin up in bhyve a disk image that had been
obtained from the disk of a bare-metal standard freebsd installation?

thanks,


It depends on whether you have the required virtio devices in the 
kernel, or can load them from the bootloader.



___
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: bhyve and backed-up dd disk image

2017-09-30 Thread Peter Grehan

Hi,


Would I be able to spin up in bhyve a disk image that had been
obtained from the disk of a bare-metal standard freebsd installation?


 In theory, yes. There will always be some issues with differences in 
devices (e.g. using igb0 on the host, but vtnet0 in the guest).


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"