# to create FreeBSD 10.0 "problem" from scratch w/VirtualBox (Debian GNU/Linux amd64 host) # ii virtualbox 4.3.2-dfsg-1+b1 amd64 x86 virtualization solution - base binaries # ii virtualbox-dkms 4.3.2-dfsg-1 all x86 virtualization solution - kernel module sources for dkms wget ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/i386/ISO-IMAGES/10.0/FreeBSD-10.0-RELEASE-i386-bootonly.iso VBoxManage createvm --name freebsdtest --ostype FreeBSD --register VBoxManage storagectl freebsdtest --name "SATA Controller" --add sata --controller IntelAHCI VBoxManage modifyvm freebsdtest --memory 512 VBoxManage modifyvm freebsdtest --nic1 bridged --nictype1 82545EM --bridgeadapter1 eth0 VBoxManage createhd --filename ~/VirtualBox\ VMs/freebsdtest/freebsdtest.vdi --size 10240 --format VDI VBoxManage storageattach freebsdtest --storagectl "SATA Controller" --port 0 --device 0 --type hdd --medium ~/VirtualBox\ VMs/freebsdtest/freebsdtest.vdi VBoxManage modifyvm freebsdtest --vrdeproperty VNCPassword=foobarbaz VBoxManage modifyvm freebsdtest --vrdeauthlibrary null VBoxManage modifyvm freebsdtest --vrdeport 5900 VBoxManage storageattach freebsdtest --storagectl "SATA Controller" --port 1 --device 0 --type dvddrive --medium FreeBSD-10.0-RELEASE-i386-bootonly.iso VBoxManage modifyvm freebsdtest --hwvirtex off VBoxManage modifyvm freebsdtest --chipset piix3 VBoxManage modifyvm freebsdtest --longmode on VBoxManage modifyvm freebsdtest --ioapic on # now, in the VM, do the following - see ufs.png mdconfig -a -t malloc -s 128m newfs /dev/md2 cd /tmp mkdir MD2 mount /dev/md2 MD2 cd MD2 cp /boot/kernel/kernel . cp kernel k1 cp k1 k2 cp k2 k3 ls -la # make sure the are the right size sha256 k* # the files will have different contexts (most likely nulls) # now, try this (after removing md2 or just rebooting) - see msdos.png mdconfig -a -t malloc -s 128m newfs_msdos /dev/md2 cd /tmp mkdir MD2 mount -t msdos /dev/md2 MD2 cd MD2 cp /boot/kernel/kernel . cp kernel k1 cp k1 k2 cp k2 k3 ls -la # make sure the are the right size sha256 k* # the files will be the same, this time