Difference between revisions of "Beowulf Aug2010/Installation/PXEboot/Ubuntu"
m |
m (→Installation af Lucid der kan boote fra NFS) |
||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<accesscontrol>teacher</accesscontrol> | <accesscontrol>teacher</accesscontrol> | ||
− | Følg guiden [[Weekend_Projekt_-_Test_Cluster#PXE_netinstaller|her]]. Har dog ikke fået det til at virke, stopper bare når den skal finde [[Beowulf_Aug2010/Generelt/Hardware|hardware]]. | + | Følg guiden [[Weekend_Projekt_-_Test_Cluster#PXE_netinstaller|her]]. Har dog ikke fået det til at virke, stopper bare når den skal finde [[Beowulf_Aug2010/Generelt/Hardware|hardware]].<br/><br/> |
+ | |||
+ | Denne er til information: | ||
+ | "I've installed hardy server on a dell poweredge 1750--older hardware. | ||
+ | |||
+ | Perhaps you need to initialize your disks via the RAID controller first. Try going into the BIOS (or RAID BIOS Control-S or something similar) and make sure that you have your drives set up the way you want--RAID configuration, hotswap, whatever. Once that is done, then put in the CD and run the "Check CD for errors" to make sure your CD drive can read the entire disk. Server CDROM drives tend to get dirty because of the massive airflow of server machines."<ref>http://ubuntuforums.org/showthread.php?t=1448007</ref> | ||
+ | <br/><br/> | ||
+ | Har også prøvet den her: https://help.ubuntu.com/community/DisklessUbuntuHowto<br/> | ||
+ | Og den her: https://help.ubuntu.com/community/Installation/OnNFSDrive<br/><br/> | ||
+ | |||
+ | Men det virker ikke helt efter hensigten endnu. | ||
+ | =Installation af Lucid der kan boote fra NFS= | ||
+ | Opret en folder til installatinen, her har jeg valgt /var/nfsroot<br/> | ||
+ | Derpå laver vi en debootstrap med lucid i folderen fra et ubuntu mirror. | ||
+ | <pre> | ||
+ | debootstrap --arch i386 lucid /var/nfsroot http://mirrors.dotsrc.org/ubuntu/ | ||
+ | </pre> | ||
+ | Tilføj nogle mirrors til den nye installation. Så /var/nfsroot/etc/apt/sources.list ser ca sådan ud. | ||
+ | <pre> | ||
+ | deb http://mirrors.dotsrc.org/ubuntu/ lucid main restricted | ||
+ | deb-src http://mirrors.dotsrc.org/ubuntu/ lucid main restricted | ||
+ | |||
+ | ## Major bug fix updates produced after the final release of the ## distribution. | ||
+ | deb http://mirrors.dotsrc.org/ubuntu/ lucid-updates main restricted | ||
+ | deb-src http://mirrors.dotsrc.org/ubuntu/ lucid-updates main restricted | ||
+ | |||
+ | ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team. Also, please note that software in universe WILL NOT receive any ## review or updates from the Ubuntu security team. | ||
+ | deb http://mirrors.dotsrc.org/ubuntu/ lucid universe | ||
+ | deb-src http://mirrors.dotsrc.org/ubuntu/ lucid universe | ||
+ | deb http://mirrors.dotsrc.org/ubuntu/ lucid-updates universe | ||
+ | deb-src http://mirrors.dotsrc.org/ubuntu/ lucid-updates universe | ||
+ | |||
+ | ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to ## your rights to use the software. Also, please note that software in ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team. | ||
+ | deb http://mirrors.dotsrc.org/ubuntu/ lucid multiverse | ||
+ | deb-src http://mirrors.dotsrc.org/ubuntu/ lucid multiverse | ||
+ | deb http://mirrors.dotsrc.org/ubuntu/ lucid-updates multiverse | ||
+ | deb-src http://mirrors.dotsrc.org/ubuntu/ lucid-updates multiverse | ||
+ | |||
+ | deb http://security.ubuntu.com/ubuntu lucid-security main restricted | ||
+ | deb-src http://security.ubuntu.com/ubuntu lucid-security main restricted | ||
+ | deb http://security.ubuntu.com/ubuntu lucid-security universe | ||
+ | deb-src http://security.ubuntu.com/ubuntu lucid-security universe | ||
+ | deb http://security.ubuntu.com/ubuntu lucid-security multiverse | ||
+ | deb-src http://security.ubuntu.com/ubuntu lucid-security multiverse | ||
+ | </pre> | ||
+ | chroot ind i /var/nfsroot | ||
+ | <pre> | ||
+ | chroot /var/nfsroot | ||
+ | </pre> | ||
+ | Slå initctl fra imens man arbejder på installationen(Så tjenester ikke starter) | ||
+ | <pre> | ||
+ | #dpkg-divert --local --rename --add /sbin/initctl | ||
+ | perl: warning: Setting locale failed. | ||
+ | perl: warning: Please check that your locale settings: | ||
+ | LANGUAGE = (unset), | ||
+ | LC_ALL = (unset), | ||
+ | LANG = "en_DK.UTF-8" | ||
+ | are supported and installed on your system. | ||
+ | perl: warning: Falling back to the standard locale ("C"). | ||
+ | Adding `local diversion of /sbin/initctl to /sbin/initctl.distrib' | ||
+ | #ln -s /bin/true /sbin/initctl | ||
+ | </pre> | ||
+ | Opdater installationen | ||
+ | <pre> | ||
+ | aptitude update | ||
+ | aptitude dist-upgrade | ||
+ | #Installer kernen | ||
+ | aptitude install linux-image-server | ||
+ | </pre> | ||
+ | Mount proc | ||
+ | <pre> | ||
+ | mount -t proc proc proc | ||
+ | </pre> | ||
+ | Ændre i /etc/initramfs-tool/initramfs.conf så BOOT=nfs<br/> | ||
+ | Opdater initramfs | ||
+ | <pre> | ||
+ | update-initramfs -u | ||
+ | </pre> | ||
+ | så skal iniramfs disken og kernel smides på TFTP og pxe boot filen med: | ||
+ | <pre> | ||
+ | label ubuntulive | ||
+ | menu label Ubuntu Server 10.04 NFS | ||
+ | kernel ubuntu/live/vmlinuz-2.6.32-25-generic-pae | ||
+ | append root=/dev/nfs initrd=ubuntu/live/initrd.img-2.6.32-25-generic-pae nfsroot=172.16.4.83:/var/nfsroot ip=dhcp rw | ||
+ | </pre> | ||
+ | Sætte eth0 op i /etc/network/interfaces | ||
+ | <pre> | ||
+ | auto eth0 | ||
+ | iface eth0 inet manual | ||
+ | </pre> | ||
+ | Sæt evt en fast ip: | ||
+ | <pre> | ||
+ | auto eth1 | ||
+ | iface eth1 inet static | ||
+ | address 10.0.0.1 | ||
+ | netmask 255.255.255.0 | ||
+ | network 10.0.0.0 | ||
+ | broadcast 10.0.0.255 | ||
+ | </pre> | ||
+ | Ændre hostnavn til WorkerNode | ||
+ | <pre> | ||
+ | nano /etc/hostname | ||
+ | WorkerNode | ||
+ | </pre> | ||
+ | ==System services== | ||
+ | Installerne nu gængse services. Bemærk: Installationen booter ikke op til prompt, derfor installeres ssh server så man kan ssh til den.<br/> | ||
+ | <pre> | ||
+ | aptitude install -y openssh-server openmpi-bin openmpi-dev bmon nfs-common nano | ||
+ | </pre> | ||
+ | |||
+ | =Reference= | ||
+ | <references/> | ||
+ | [[Category:CoE]] |
Latest revision as of 14:29, 6 September 2011
<accesscontrol>teacher</accesscontrol>
Følg guiden her. Har dog ikke fået det til at virke, stopper bare når den skal finde hardware.
Denne er til information: "I've installed hardy server on a dell poweredge 1750--older hardware.
Perhaps you need to initialize your disks via the RAID controller first. Try going into the BIOS (or RAID BIOS Control-S or something similar) and make sure that you have your drives set up the way you want--RAID configuration, hotswap, whatever. Once that is done, then put in the CD and run the "Check CD for errors" to make sure your CD drive can read the entire disk. Server CDROM drives tend to get dirty because of the massive airflow of server machines."[1]
Har også prøvet den her: https://help.ubuntu.com/community/DisklessUbuntuHowto
Og den her: https://help.ubuntu.com/community/Installation/OnNFSDrive
Men det virker ikke helt efter hensigten endnu.
Installation af Lucid der kan boote fra NFS
Opret en folder til installatinen, her har jeg valgt /var/nfsroot
Derpå laver vi en debootstrap med lucid i folderen fra et ubuntu mirror.
debootstrap --arch i386 lucid /var/nfsroot http://mirrors.dotsrc.org/ubuntu/
Tilføj nogle mirrors til den nye installation. Så /var/nfsroot/etc/apt/sources.list ser ca sådan ud.
deb http://mirrors.dotsrc.org/ubuntu/ lucid main restricted deb-src http://mirrors.dotsrc.org/ubuntu/ lucid main restricted ## Major bug fix updates produced after the final release of the ## distribution. deb http://mirrors.dotsrc.org/ubuntu/ lucid-updates main restricted deb-src http://mirrors.dotsrc.org/ubuntu/ lucid-updates main restricted ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team. Also, please note that software in universe WILL NOT receive any ## review or updates from the Ubuntu security team. deb http://mirrors.dotsrc.org/ubuntu/ lucid universe deb-src http://mirrors.dotsrc.org/ubuntu/ lucid universe deb http://mirrors.dotsrc.org/ubuntu/ lucid-updates universe deb-src http://mirrors.dotsrc.org/ubuntu/ lucid-updates universe ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to ## your rights to use the software. Also, please note that software in ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team. deb http://mirrors.dotsrc.org/ubuntu/ lucid multiverse deb-src http://mirrors.dotsrc.org/ubuntu/ lucid multiverse deb http://mirrors.dotsrc.org/ubuntu/ lucid-updates multiverse deb-src http://mirrors.dotsrc.org/ubuntu/ lucid-updates multiverse deb http://security.ubuntu.com/ubuntu lucid-security main restricted deb-src http://security.ubuntu.com/ubuntu lucid-security main restricted deb http://security.ubuntu.com/ubuntu lucid-security universe deb-src http://security.ubuntu.com/ubuntu lucid-security universe deb http://security.ubuntu.com/ubuntu lucid-security multiverse deb-src http://security.ubuntu.com/ubuntu lucid-security multiverse
chroot ind i /var/nfsroot
chroot /var/nfsroot
Slå initctl fra imens man arbejder på installationen(Så tjenester ikke starter)
#dpkg-divert --local --rename --add /sbin/initctl perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_DK.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). Adding `local diversion of /sbin/initctl to /sbin/initctl.distrib' #ln -s /bin/true /sbin/initctl
Opdater installationen
aptitude update aptitude dist-upgrade #Installer kernen aptitude install linux-image-server
Mount proc
mount -t proc proc proc
Ændre i /etc/initramfs-tool/initramfs.conf så BOOT=nfs
Opdater initramfs
update-initramfs -u
så skal iniramfs disken og kernel smides på TFTP og pxe boot filen med:
label ubuntulive menu label Ubuntu Server 10.04 NFS kernel ubuntu/live/vmlinuz-2.6.32-25-generic-pae append root=/dev/nfs initrd=ubuntu/live/initrd.img-2.6.32-25-generic-pae nfsroot=172.16.4.83:/var/nfsroot ip=dhcp rw
Sætte eth0 op i /etc/network/interfaces
auto eth0 iface eth0 inet manual
Sæt evt en fast ip:
auto eth1 iface eth1 inet static address 10.0.0.1 netmask 255.255.255.0 network 10.0.0.0 broadcast 10.0.0.255
Ændre hostnavn til WorkerNode
nano /etc/hostname WorkerNode
System services
Installerne nu gængse services. Bemærk: Installationen booter ikke op til prompt, derfor installeres ssh server så man kan ssh til den.
aptitude install -y openssh-server openmpi-bin openmpi-dev bmon nfs-common nano