CS615 - Aspects of System Administration Slide 1

CS615 - Aspects of System Administration Slide 1

CS615 - Aspects of System Administration Slide 1 CS615 - Aspects of System Administration Software Installation Concepts Department of Computer Science Stevens Institute of Technology Jan Schaumann [email protected] https://www.cs.stevens.edu/~jschauma/615/ Lecture 03: Software Installation Concepts April 6, 2018 CS615 - Aspects of System Administration Slide 2 Down the stack we go Consider a website on an AWS EC2 instance... Lecture 03: Software Installation Concepts April 6, 2018 CS615 - Aspects of System Administration Slide 3 Down the stack we go Consider a website on an AWS EC2 instance... ...it might: require a web server Lecture 03: Software Installation Concepts April 6, 2018 CS615 - Aspects of System Administration Slide 4 Down the stack we go Consider a website on an AWS EC2 instance... ...it might: require a web server require PHP, Perl, Ruby, Javascript, ... Lecture 03: Software Installation Concepts April 6, 2018 CS615 - Aspects of System Administration Slide 5 Down the stack we go Consider a website on an AWS EC2 instance... ...it might: require a web server require PHP, Perl, Ruby, Javascript, ... which uses generic library functions Lecture 03: Software Installation Concepts April 6, 2018 CS615 - Aspects of System Administration Slide 6 Down the stack we go Consider a website on an AWS EC2 instance... ...it might: require a web server require PHP, Perl, Ruby, Javascript, ... which uses generic library functions which make various system calls Lecture 03: Software Installation Concepts April 6, 2018 CS615 - Aspects of System Administration Slide 7 Down the stack we go Consider a website on an AWS EC2 instance... ...it might: require a web server require PHP, Perl, Ruby, Javascript, ... which uses generic library functions which make various system calls which the kernel handles for the OS Lecture 03: Software Installation Concepts April 6, 2018 CS615 - Aspects of System Administration Slide 8 Down the stack we go Consider a website on an AWS EC2 instance... ...it might: require a web server require PHP, Perl, Ruby, Javascript, ... which uses generic library functions which make various system calls which the kernel handles for the OS which is running in a virtual machine Lecture 03: Software Installation Concepts April 6, 2018 CS615 - Aspects of System Administration Slide 9 Down the stack we go Consider a website on an AWS EC2 instance... ...it might: require a web server require PHP, Perl, Ruby, Javascript, ... which uses generic library functions which make various system calls which the kernel handles for the OS which is running in a virtual machine which is running on top of a hypervisor Lecture 03: Software Installation Concepts April 6, 2018 CS615 - Aspects of System Administration Slide 10 Down the stack we go Consider a website on an AWS EC2 instance... ...it might: require a web server require PHP, Perl, Ruby, Javascript, ... which uses generic library functions which make various system calls which the kernel handles for the OS which is running in a virtual machine which is running on top of a hypervisor which uses firmware to manage various components Lecture 03: Software Installation Concepts April 6, 2018 CS615 - Aspects of System Administration Slide 11 Down the stack we go Consider a website on an AWS EC2 instance... ...it might: require a web server require PHP, Perl, Ruby, Javascript, ... which uses generic library functions which make various system calls which the kernel handles for the OS which is running in a virtual machine which is running on top of a hypervisor which uses firmware to manage various components which is running on some hardware Lecture 03: Software Installation Concepts April 6, 2018 CS615 - Aspects of System Administration Slide 12 ...and back up again Bringin up this web service might include... power on hardware Lecture 03: Software Installation Concepts April 6, 2018 CS615 - Aspects of System Administration Slide 13 ...and back up again Bringin up this web service might include... power on hardware POST and other firmware initialization Lecture 03: Software Installation Concepts April 6, 2018 CS615 - Aspects of System Administration Slide 14 ...and back up again Bringin up this web service might include... power on hardware POST and other firmware initialization first stage boot loader Lecture 03: Software Installation Concepts April 6, 2018 CS615 - Aspects of System Administration Slide 15 ...and back up again Bringin up this web service might include... power on hardware POST and other firmware initialization first stage boot loader second stage boot loader Lecture 03: Software Installation Concepts April 6, 2018 CS615 - Aspects of System Administration Slide 16 ...and back up again Bringin up this web service might include... power on hardware POST and other firmware initialization first stage boot loader second stage boot loader hypervisor kernel dom0 starts Lecture 03: Software Installation Concepts April 6, 2018 CS615 - Aspects of System Administration Slide 17 ...and back up again Bringin up this web service might include... power on hardware POST and other firmware initialization first stage boot loader second stage boot loader hypervisor kernel dom0 starts domU is started Lecture 03: Software Installation Concepts April 6, 2018 CS615 - Aspects of System Administration Slide 18 ...and back up again Bringin up this web service might include... power on hardware POST and other firmware initialization first stage boot loader second stage boot loader hypervisor kernel dom0 starts domU is started guest OS kernel starts Lecture 03: Software Installation Concepts April 6, 2018 CS615 - Aspects of System Administration Slide 19 ...and back up again Bringin up this web service might include... power on hardware POST and other firmware initialization first stage boot loader second stage boot loader hypervisor kernel dom0 starts domU is started guest OS kernel starts kernel initializes (virtual) hardware Lecture 03: Software Installation Concepts April 6, 2018 CS615 - Aspects of System Administration Slide 20 ...and back up again Bringin up this web service might include... power on hardware POST and other firmware initialization first stage boot loader second stage boot loader hypervisor kernel dom0 starts domU is started guest OS kernel starts kernel initializes (virtual) hardware init(8) (or similar) starts Lecture 03: Software Installation Concepts April 6, 2018 CS615 - Aspects of System Administration Slide 21 ...and back up again Bringin up this web service might include... power on hardware POST and other firmware initialization first stage boot loader second stage boot loader hypervisor kernel dom0 starts domU is started guest OS kernel starts kernel initializes (virtual) hardware init(8) (or similar) starts system processes / daemons start Lecture 03: Software Installation Concepts April 6, 2018 CS615 - Aspects of System Administration Slide 22 ...and back up again Bringin up this web service might include... power on hardware POST and other firmware initialization first stage boot loader second stage boot loader hypervisor kernel dom0 starts domU is started guest OS kernel starts kernel initializes (virtual) hardware init(8) (or similar) starts system processes / daemons start web server runs, binds network socket, serves content Lecture 03: Software Installation Concepts April 6, 2018 CS615 - Aspects of System Administration Slide 23 Typical Boot Sequence Lecture 03: Software Installation Concepts April 6, 2018 CS615 - Aspects of System Administration Slide 24 Typical Boot Sequence Lecture 03: Software Installation Concepts April 6, 2018 CS615 - Aspects of System Administration Slide 25 Typical Boot Sequence Lecture 03: Software Installation Concepts April 6, 2018 CS615 - Aspects of System Administration Slide 26 Typical Boot Sequence: BIOS and MBR first sector (512 bytes) of data storage device last two bytes contain signature 0x55 0xAA 64 bytes allocated for partition table (four possible partitions at 16 bytes each) 446 bytes for primary boot loader code Lecture 03: Software Installation Concepts April 6, 2018 CS615 - Aspects of System Administration Slide 27 Recall HW1 # fdisk /dev/xbd0 fdisk: primary partition table invalid, no magic in sector 0 Disk: /dev/xbd0d BIOS disk geometry: cylinders: 1023, heads: 255, sectors/track: 63 (16065 sectors/cylinder) total sectors: 69206016 Partition table: 0: <UNUSED> 1: <UNUSED> 2: <UNUSED> 3: <UNUSED> Bootselector disabled. No active partition. Lecture 03: Software Installation Concepts April 6, 2018 CS615 - Aspects of System Administration Slide 28 Recall HW1 # fdisk /dev/xbd4 Disk: /dev/rxbd4d BIOS disk geometry: cylinders: 1023, heads: 255, sectors/track: 63 (16065 sectors/cylinder) total sectors: 69206016 Partition table: 0: NetBSD (sysid 169) start 63, size 69205825 (33792 MB, Cyls 0-4307/221/10), Active 1: <UNUSED> 2: <UNUSED> 3: <UNUSED> Bootselector disabled. First active partition: 0 Lecture 03: Software Installation Concepts April 6, 2018 CS615 - Aspects of System Administration Slide 29 Typical Boot Sequence Lecture 03: Software Installation Concepts April 6, 2018 CS615 - Aspects of System Administration Slide 30 Typical Boot Sequence Power-on Self-Test primary boot loader (e.g. BIOS, UEFI, Open Firmware / OpenBoot) transfer of execution to Master Boot Record or perform netbooting Second-stage boot loader (e.g. GRUB) load kernel kernel transfers control to init(8) Note: in virtualized environments, some of these steps are skipped, repeated, or simulated. Lecture 03: Software Installation Concepts April 6, 2018 CS615

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    86 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us