Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 05 Aug 2014 21:52:12 -0400
From:      Mike Tancsa <mike@sentex.net>
To:        "freebsd-emulation@freebsd.org" <emulation@freebsd.org>
Subject:   Vritbox 4.3.12 and RELENG_6 guest ?
Message-ID:  <53E18A4C.2070100@sentex.net>

next in thread | raw e-mail | index | archive | help
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, mike@sentex.net
Providing Internet services since 1994 www.sentex.net
Cambridge, Ontario Canada   http://www.tancsa.com/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53E18A4C.2070100>