bhyve VM stopped to boot after moving virtio disks

Ian Lepore ian at freebsd.org
Sat Apr 20 16:56:57 UTC 2019


On Sat, 2019-04-20 at 17:30 +0200, Wojciech Puchar wrote:
> > > Boot Failed. EFI Misc Device
> > > Boot Failed. EFI Misc Device 1
> > > .
> > > 
> > > 
> > > 
> > > Could you give me any clues?
> > > 
> > 
> > Are you absolutely certain those encrypted partition sizes are an
> > exact
> > multiple of 1m?  If not, you should add a 'conv=sync' option to the
> > dd.
> 
> no it wasn't. but dd doesn't truncate last block. checked - it got
> copied 
> till the end - i see second copy of GPT partition table that was
> present 
> in VM.
> 

dd absolutely will fail to copy the last block of the source if it
isn't exactly the blocksize and you didn't specify conv=sync, and it
will return a zero status when doing so.  It appears you've convinced
yourself otherwise, but for anyone else reading this thread, be aware:
conv=sync is required to copy the last part of the source if it's
smaller than the blocksize.

-- Ian



More information about the freebsd-hackers mailing list