0% found this document useful (0 votes)
144 views6 pages

xv6 Installation Guide for Ubuntu

This document provides instructions for installing xv6, an educational operating system, on Ubuntu. It describes updating packages, installing build-essential, gcc-multilib for cross compilation, QEMU and related virtualization tools for running xv6, and git for downloading xv6. It concludes by cloning the xv6 source from GitHub and using make to build and run it via QEMU.

Uploaded by

Ashutosh Acharya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
144 views6 pages

xv6 Installation Guide for Ubuntu

This document provides instructions for installing xv6, an educational operating system, on Ubuntu. It describes updating packages, installing build-essential, gcc-multilib for cross compilation, QEMU and related virtualization tools for running xv6, and git for downloading xv6. It concludes by cloning the xv6 source from GitHub and using make to build and run it via QEMU.

Uploaded by

Ashutosh Acharya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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

You might also like