Giter Site home page Giter Site logo

mines-cs-vm's Introduction

Virtual machine management for cs.mines.edu.

Using the Virtual Machine

  1. Install a hypervisor (see options below)

  2. Download the virtual disk (You need to replace USER below with your Mines username).

    On Microsoft Windows, you can obtain scp and xz from Cygwin or another scp (pscp) from Putty.

    From ON campus, copy via scp:

    scp '[email protected]:~ndantam/mines-cs-vm.vmdk.xz' .
    

    From OFF campus, copy via scp through jumpbox:

    scp -o [email protected] 'USER@isengard:~ndantam/mines-cs-vm.vmdk.xz' .
    
  3. Decompress the disk image:

    unxz -v mines-cs-vm.vmdk.xz
    
  4. Start your hypervisor and import the virtual disk.

  5. Login with the default account:

    Username: blaster
    Password: password
    

    Note: You may need to change the session type in the display manager to System Default.

Hypervisors

VirtualBox

Free, open-source, and cross-platform virtualization application.

VMWare Workstation

Commercial virtualization application that is available in some Mines computer labs. VMWare Workstation player is also free-of-charge for noncommercial use.

Kernel-based Virtual Machine

A hypervisor built into the Linux kernel.

To run a disk image:

qemu-system-x86_64 --enable-kvm -m 1024 -hda mines-cs-vm.vmdk

Rebuilding the VM

The virtual machine is constructed by first building a Docker image and then extracting the filesystem from that image onto a separate virtual disk. Part of the build process chroots into the virtual disk filesystem, so the build will only work on Linux.

Instructions

  1. Install/Setup docker

  2. Install virtualbox, qemu-utils, and parted (used for disk image setup):

    apt-get install virtualbox qemu-utils parted
    
  3. Load the NBD Module:

    sudo modprobe nbd max_part=8
    

    WARNING: ensure that nothing else is using /dev/nbd0 or the build will clobber it

  4. Create the docker image:

    sudo make docker-image.stamp
    
  5. Create the virtual disk:

    sudo make img/mines-cs-vm.vmdk
    

Quirks

  • lightdm does not work correctly. Use gdm3 instead:

     dpkg-reconfigure gdm3
    

mines-cs-vm's People

Contributors

ndantam avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.