UmVirt Linux From Scratch v.0.1 =============================== Install instructions -------------------- Qemu VM raw hardisk image 1. Download 2. Unpack 3. Run virtual machine via QEMU filesystem tree 1. Create empty virtual hard disk image or connect physical drive 2. Create 64-bit virtual machine or use existing one (We recomend to use Builder VM) 3. Connect new drive to virtual machine 4. Create msdos partition table and bootable ext4 linux partition 5. Mount linux partition in /mnt/build_dir directory 6. Copy filesystem tree archive in /mnt/build_dir directory 7. Unpack tree archive tar -xf build_dir.tar.gz 8. Optional. If you wish to install in SATA drive replace /dev/vda1 to /dev/sda1 in files: /etc/fstab /etc/boot/grub/grub.cfg 9. Mount mount -v --bind /dev $LFS/dev mount -vt devpts devpts $LFS/dev/pts -o gid=5,mode=620 mount -vt proc proc $LFS/proc mount -vt sysfs sysfs $LFS/sys mount -vt tmpfs tmpfs $LFS/run 10. Chroot chroot /mnt/build_dir /usr/bin/env -i \ HOME=/root TERM="$TERM" \ PS1='(lfs chroot) \u:\w\$ ' \ PATH=/bin:/usr/bin:/sbin:/usr/sbin \ /bin/bash --login 11. Install grub to attached disk (see mount command) grub-install /dev/vda 12. Exit from chroot and turn off VM 13. Run disk as VM