Operating System Lab (Week 1)
Part 2: Installation of xv6
Brijendra Pratap Singh
Department of Computer Science & Engineering
Motilal Nahru National Institute of Technology Allahabad
Prayagraj - 211004, India
August 2020
Brijendra Pratap Singh (MNNIT Allahabad) Operating System Lab (Week 1) August 2020 1/6
xv6
xv6 Operating System on Ubuntu
First get the system up to date:
sudo apt-get update
This would update the list of apt packages that can be upgraded
Does not actually upgrade the packages, just checks how many
updates have been released
Brijendra Pratap Singh (MNNIT Allahabad) Operating System Lab (Week 1) August 2020 2/6
xv6
Build-essentials
Build-essentials: a package containing important applications for
developers.
sudo apt-get install build-essential
Contains important compilers as well as other packages needed to
build an application
Brijendra Pratap Singh (MNNIT Allahabad) Operating System Lab (Week 1) August 2020 3/6
xv6
Cross compilation
Gcc-multilib: required for cross compilation
sudo apt-get install gcc-multilib
Cross compilation: you are working on a 64 bit machine, and want to
compile a program for a 32 bit architecture
Brijendra Pratap Singh (MNNIT Allahabad) Operating System Lab (Week 1) August 2020 4/6
xv6
QEMU and git
sudo apt install qemu qemu-utils qemu-kvm virt-manager
libvirt-daemon-system libvirt-clients bridge-utils
sudo apt-get install git-core
Brijendra Pratap Singh (MNNIT Allahabad) Operating System Lab (Week 1) August 2020 5/6
xv6
Download xv6
git clone git://[Link]/mit-pdos/[Link]
After download
cd xv6
make
make qemu
ls
Brijendra Pratap Singh (MNNIT Allahabad) Operating System Lab (Week 1) August 2020 6/6