Create a location that KVM will use to boot & run this installation. Praxis has been tested from LVM and QCOW2 virtual disk formats, directions here are for QCOW2 based installation.

Create KVM Disk Image

proton # kvm-img create -f raw kvmdisk.raw 4G
proton # mkfs.ext2 -F -L'praxis' kvmdisk.raw >/dev/null
proton # tune2fs -c0 -i0 kvmdisk.raw >/dev/null

Install Praxis

proton # mkdir -p /mnt/kvm-target
proton # mount -o loop kvmdisk. /mnt/kvm-target
proton # cd /mnt/kvm-target
proton # wget http://cdn.edoceo.com/praxis/nucleus-i586.tgz
proton # tar \
  --extract \
  --gzip \
  --preserve-permissions \
  --overwrite \
  --file /praxis-*.tgz

Or you can rsync an existing image path inplace.

proton # rsync -a --one-file-system $envroot/ $kvmroot/
# add boot loader to new image echo "$thiscmd: add boot loader" install_extlinux $kvmroot/boot # Umount umount $kvmroot

Configure Bootloader

Boot

Create FileSystems on the Target

stage4 # mkfs -L'boot' /dev/sda1
stage4 # mkswap -L'swap' /dev/sda2
stage4 # mkfs -J -L'root' /dev/sda3

Mount the Target Partitions, from the above system we sould say

stage4 # mkdir /mnt/target
stage4 # mount /dev/sda3 /mnt/target
stage4 # mkdir /mnt/target/boot
stage4 # mount /dev/sda1 /mnt/target/boot

Fetch the Stage4, which can even be saved to the target, and then extract it into place on this system.

stage4 # mkdir /mnt/target
stage4 # mount /dev/sda3 /mnt/target
stage4 # mkdir /mnt/target/boot
stage4 # mount /dev/sda1 /mnt/target/boot
comments powered by Disqus