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
 gpart create -s BSD -n 20 md0s1
 gpart add -t freebsd-ufs -s 1G md0s1
 gpart add -t freebsd-swap -s 1G md0s1
 gpart add -t freebsd-ufs -s 2G md0s1
 gpart add -t freebsd-ufs md0s1
 newfs -U -O2 /dev/md0s1a
 newfs -U -O2 /dev/md0s1d
 newfs -U -O2 /dev/md0s1e
 mkdir /mnt/root
 mkdir /mnt/usr
 mkdir /mnt/var
 mount /dev/md0s1a /mnt/root/
 mount /dev/md0s1d /mnt/var
 mount /dev/md0s1e /mnt/usr
 cd /mnt/root
 gzcat ~sz/dump-root0.gz | restore -rf -
 cd /mnt/usr
 gzcat ~sz/dump-usr0.gz | restore -rf -

 cd /mnt/var
 gzcat ~sz/dump-var0.gz | restore -rf -

umount /mnt/root
umount /mnt/var
umount /mnt/usr
mdconfig -d -u -0

Then lets convert the file

VBoxManage convertfromraw szocke.dd szocke.vdi --format VDI

When I try to then boot the VM, it just gets stuck at the
"Default F1" and when I hit F1, just # symbols appear.

The hypervisor is RELENG_10

        ---Mike


--
-------------------
Mike Tancsa, tel +1 519 651 3400
Sentex Communications, [email protected]
Providing Internet services since 1994 www.sentex.net
Cambridge, Ontario Canada   http://www.tancsa.com/
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "[email protected]"

Reply via email to