Skip to content

Working with the Moose VM

jacklinzoho edited this page Jan 18, 2016 · 15 revisions

Moose VM

As Moose supports only Linux and OSX, the Moose project provides a virtual machine image for PCs running Windows. Unfortunately, you'll still have to install Moose on it yourself.

It runs Linux Mint.

Redback VM

We've made a Redback VM, based on the one from Moose, but with Moose, Redback and Filezilla already installed. The plan is to give it to students enrolled in Geomechanics A.

You will need VMWare Player to run the VM. It is free from VMWare.

##Expanding the storage on your VM

You may find that you don't have enough space on the VM (or get an eror message about it). Expanding it is possible!

  1. Make a copy of the VM. You will be playing with partition tools, and if you stuff up, you could lose all your data. Back up first!
  2. Shut down your VM cleanly. NOT Pause.
  3. In VMware player, select your vm -> edit virtual machine settings -> hard disk -> increase it to what you want. You are not done yet: you've increased the size of the virtual hard-drive of the VM, but not its partition.
  4. Start up the VM, install 'GParted' through the package manager. The password is moose.
  5. enter this in the command console to turn off the swap file (The password is moose):

sudo swapoff -a

  1. Start Gparted. Delete the swap file partition. This is the second partition from the left, the one marked linux-swap. To do this: Right-click on 'linux-swap', then click Delete. Right-click on /dev/sda2/ 'extended', then click Delete.

  2. Now expand the left-most partition to cover the whole drive: Right click on /dev/sda1, click Resize/Remove, and enter '0' in the Free Space Following box. This should calculate the New size automatically.
    Click Resize.

  3. If you do this right, the bottom of GParted should say something like:

    x Delete Logical Partition (linux-swap, 4.00 GiB) from /dev/sda

    x Delete /dev/sda2 (extended, 4.0 GiB) from /dev/sda

    -> Grow /dev/sda1 from 16.00 GiB to 240.00 GiB (or however much you set it)

  4. Until this point, nothing has actually changed on the partitions. This step applies all your changes. Press the Apply All Operations button. It's the arrow underneath the Help button.

  5. Reboot.

  6. Install software that lets you have a swap file without using a separate swap file partition:

    sudo apt-get install dphys-swapfile

  7. Reboot again and you're done!