Difference between revisions of "Xen On Funtoo From Scratch"

From Xen
(Download Gentoo LiveCD iso)
Line 24: Line 24:
 
== Make partitions ==
 
== Make partitions ==
   
note user # fdisk -l /dev/sdb
+
# fdisk -l /dev/sdb
 
 
 
Disk /dev/sdb: 8422 MB, 8422162432 bytes
 
Disk /dev/sdb: 8422 MB, 8422162432 bytes
Line 38: Line 38:
 
== Install MBR ==
 
== Install MBR ==
   
note user # dd if=/usr/share/syslinux/mbr.bin of=/dev/sdb
+
# dd if=/usr/share/syslinux/mbr.bin of=/dev/sdb
 
0+1 records in
 
0+1 records in
 
0+1 records out
 
0+1 records out
Line 46: Line 46:
 
== Make fat32 filesystem ==
 
== Make fat32 filesystem ==
   
note user # mkdosfs -F32 /dev/sdb1
+
# mkdosfs -F32 /dev/sdb1
 
mkdosfs 3.0.9 (31 Jan 2010)
 
mkdosfs 3.0.9 (31 Jan 2010)
   
Line 54: Line 54:
   
 
wget http://distfiles.gentoo.org/releases/amd64/autobuilds/current-iso/install-amd64-minimal-20120621.iso
 
wget http://distfiles.gentoo.org/releases/amd64/autobuilds/current-iso/install-amd64-minimal-20120621.iso
  +
  +
== Mount gentoo LiveCD ==
  +
  +
# mkdir -p /mnt/cdrom/
  +
# mount -o loop install-amd64-minimal-20120621.iso /mnt/cdrom/
  +
mount: warning: /mnt/cdrom/ seems to be mounted read-only.
  +
  +
  +
== Mount usb stick ==
  +
  +
# mkdir -p /mnt/usb/
  +
# mount /dev/sdb1 /mnt/usb/
  +
  +
  +
== Copy contents of LiveCD to usb stick ==
  +
  +
# cp -aR /mnt/cdrom/* /mnt/usb/
  +
# mv /mnt/usb/isolinux/* /mnt/usb
  +
# mv /mnt/usb/isolinux.cfg /mnt/usb/syslinux.cfg
  +
# rm -rf /mnt/usb/isolinux*
  +
# mv /mnt/usb/memtest86 /mnt/usb/memtest
  +
# sed -i \
  +
-e "s:cdroot:cdroot slowusb:" \
  +
-e "s:kernel memtest86:kernel memtest:" \
  +
/mnt/usb/syslinux.cfg
  +
  +
  +
== Unmount medias ==
  +
  +
# umount /mnt/cdrom/
  +
# umount /mnt/usb/
  +
  +
== Install syslinux ==
  +
  +
note guide # syslinux /dev/sdb1
  +
  +
   
 
= Install funtoo =
 
= Install funtoo =
  +
  +
 
Follow this guide:
 
Follow this guide:
 
==
 
==

Revision as of 13:06, 4 July 2012

STUB - WORK IN PROGRESS

Hardware Configuration

  • VGA: Nvidia GeForce 9800 GT
  • CPU: Intel Core i7 3770
  • Motherboard: DQ77MK

Used Software

  • Dom0 OS: Funtoo GNU/Linux distro (derrived from gentoo).
  • Kernel: 3.4.4
  • Xen: 4.2.0-unstable rev 25099
  • DomU OS: Windows XP SP3


Reference documentation

Make bootable USB

Make partitions

   # fdisk -l /dev/sdb  
   
   Disk /dev/sdb: 8422 MB, 8422162432 bytes
   239 heads, 47 sectors/track, 1464 cylinders, total 16449536 sectors
   Units = sectors of 1 * 512 = 512 bytes
   Sector size (logical/physical): 512 bytes / 512 bytes
   I/O size (minimum/optimal): 512 bytes / 512 bytes
   Disk identifier: 0x0008aec7
   
      Device Boot      Start         End      Blocks   Id  System
   /dev/sdb1   *        2048    16449535     8223744    b  W95 FAT32

Install MBR

   # dd if=/usr/share/syslinux/mbr.bin of=/dev/sdb
   0+1 records in
   0+1 records out
   440 bytes (440 B) copied, 0.0190098 s, 23.1 kB/s


Make fat32 filesystem

   # mkdosfs -F32 /dev/sdb1 
   mkdosfs 3.0.9 (31 Jan 2010)

Download Gentoo LiveCD iso

Go to http://www.gentoo.org/main/en/where.xml ; pick mirror you like and download install-amd64-minimal-[0-9]*.iso, for example - this one:

   wget http://distfiles.gentoo.org/releases/amd64/autobuilds/current-iso/install-amd64-minimal-20120621.iso

Mount gentoo LiveCD

   # mkdir -p /mnt/cdrom/
   # mount -o loop install-amd64-minimal-20120621.iso /mnt/cdrom/
   mount: warning: /mnt/cdrom/ seems to be mounted read-only.


Mount usb stick

   # mkdir -p /mnt/usb/
   # mount /dev/sdb1 /mnt/usb/


Copy contents of LiveCD to usb stick

   # cp -aR /mnt/cdrom/* /mnt/usb/
   # mv /mnt/usb/isolinux/* /mnt/usb
   # mv /mnt/usb/isolinux.cfg /mnt/usb/syslinux.cfg
   # rm -rf /mnt/usb/isolinux*
   # mv /mnt/usb/memtest86 /mnt/usb/memtest
   # sed -i \
        -e "s:cdroot:cdroot slowusb:" \
        -e "s:kernel memtest86:kernel memtest:" \
        /mnt/usb/syslinux.cfg


Unmount medias

   # umount /mnt/cdrom/
   # umount /mnt/usb/

Install syslinux

   note guide # syslinux /dev/sdb1 


Install funtoo

Follow this guide: ==

Install kernel 3.4.4

   # emerge -av =sys-kernels/gentoo-sources-3.4.4


  • install xen 4.2-unsable
  • install winxp
  • integreate