Vritbox 4.3.12 and RELENG_6 guest ?
    Warren Block 
    wblock at wonkity.com
       
    Wed Aug  6 02:37:07 UTC 2014
    
    
  
On Tue, 5 Aug 2014, Mike Tancsa wrote:
> I have been trying to convert a FreeBSD 6 box to a vdi image without luck. 
> To do so, I did the following steps, but when I attach the .vdi file to the 
> VM I created, I dont get by the initial boot loader.
> Has anyone done anything like this ?
>
> dd if=/dev/zero of=sz.dd bs=1024k count=20000
> mdconfig -t vnode -f sz.dd
>
>
> gpart create -s MBR md0
> gpart add -t freebsd md0
> gpart set -a active -i 1 md0
> gpart bootcode -b /boot/boot0 md0
Multiboot a VM is a bit unusual.  /boot/mbr is the ordinary bootcode. 
If the original machine multibooted, it would probably be better as 
multiple VMs.
> gpart create -s BSD -n 20 md0s1
Bootcode is needed in the bsdlabel also:
http://www.wonkity.com/~wblock/docs/html/disksetup.html#_the_old_standard_mbr
gpart bootcode -b /boot/boot md0s1
    
    
More information about the freebsd-emulation
mailing list