Difference between revisions of "Create WeBWorK Virtual Machine (.OVA) File"
Line 4: | Line 4: | ||
Note that the resulting .ova image can be used to create a virtual machine |
Note that the resulting .ova image can be used to create a virtual machine |
||
− | Build the server on |
+ | Build the server on VMWare Workstation (Player or Pro) |
+ | |||
+ | # 4 GBk disk |
||
+ | # 1 GB memory |
||
+ | # 1 cpu |
||
+ | The above resources are very minimal and correspond to a AWS t2-micro level machine which is free. |
||
− | #'''Select dynamic vmdk disk, e.g. 20 GB''' |
||
− | #8 GB memory |
||
− | #4 cpu's |
||
# Download the ubuntu live CD (server version) |
# Download the ubuntu live CD (server version) |
||
+ | |||
# Install following the standard directions with the following options |
# Install following the standard directions with the following options |
||
Line 18: | Line 16: | ||
# password: wwadmin |
# password: wwadmin |
||
# Computer name: wwserver |
# Computer name: wwserver |
||
+ | |||
+ | '''Do not reboot the system - first remove VMWare guest additions''' |
||
+ | More details on this. |
||
+ | |||
+ | Then boot. |
||
+ | After system boots check that openssh-server is installed |
||
+ | run |
||
+ | sudo lsof -i -P -n | grep LISTEN |
||
+ | to check if it is listening on port 22 |
||
+ | If not install openssh-server |
||
+ | sudo apt install openssh-server |
||
+ | |||
+ | Now on the host set up port forwarding. Find the ip address of your guest |
||
+ | The Guest IP is the IP address your guest WeBWorK server is using. You can find it (after you login) by entering the command |
||
+ | $ ip address show |
||
+ | and looking at the output, something like "inet 10.0.2.15/24 ..." (not the LOOPBACK inet 127.0.0.1/8 address). Here the ip address is 10.0.2.15. |
||
# set password for webworkWrite (wwadmin) |
# set password for webworkWrite (wwadmin) |
||
Line 23: | Line 37: | ||
# add the standard sets to myTestCourse |
# add the standard sets to myTestCourse |
||
# implement all options A-E except C (run WW through SSL) |
# implement all options A-E except C (run WW through SSL) |
||
+ | |||
+ | |||
'''Remove openssh-server''' |
'''Remove openssh-server''' |
||
sudo apt remove openssh-sftp-server |
sudo apt remove openssh-sftp-server |
||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | [[Category:Developers]] |
||
− | [[Category:Administrators]] |
||
− | # set password for MySQL (wwadmin) |
||
− | # add practice users and jsmith/jsmith to myTestCourse |
||
− | # add the 4 standard sets to myTestCourse |
||
− | # implement all options A-E except C (run WW through SSL) |
||
− | |||
− | |||
− | Remove openssh-server (this has to be installed locally) |
||
Revision as of 08:56, 13 May 2020
Instructions for creating a WeBWorK Virtual Machine (.OVA) Image
Note that the resulting .ova image can be used to create a virtual machine
Build the server on VMWare Workstation (Player or Pro)
- 4 GBk disk
- 1 GB memory
- 1 cpu
The above resources are very minimal and correspond to a AWS t2-micro level machine which is free.
- Download the ubuntu live CD (server version)
- Install following the standard directions with the following options
- Don't partition disks separately
- User name: wwadmin
- login: wwadmin
- password: wwadmin
- Computer name: wwserver
Do not reboot the system - first remove VMWare guest additions More details on this.
Then boot. After system boots check that openssh-server is installed run
sudo lsof -i -P -n | grep LISTEN
to check if it is listening on port 22 If not install openssh-server
sudo apt install openssh-server
Now on the host set up port forwarding. Find the ip address of your guest The Guest IP is the IP address your guest WeBWorK server is using. You can find it (after you login) by entering the command
$ ip address show
and looking at the output, something like "inet 10.0.2.15/24 ..." (not the LOOPBACK inet 127.0.0.1/8 address). Here the ip address is 10.0.2.15.
- set password for webworkWrite (wwadmin)
- add practice users and jsmith/jsmith to myTestCourse
- add the standard sets to myTestCourse
- implement all options A-E except C (run WW through SSL)
Remove openssh-server
sudo apt remove openssh-sftp-server