| title | Infrastructure |
|---|---|
| description | Details of our network and servers |
| published | true |
| date | 2023-03-10 15:20:42 UTC |
| tags | |
| editor | markdown |
| dateCreated | 2019-10-15 16:42:57 UTC |
- Hosts production VMs for most student applications
- New VMs created by request to IS&S
- Hostname: fee
- 10.40.16.12
- Hosted in IS&S rack
- Hosts student, class, and faculty VMs
- Hostname: ada
- 10.40.132.97
- Hosted in ssdt room (temporarily)
- Used for testing upgrades and deployment scripts
- Hosted by IS&S
- Content controlled by CS
Our physical and virtual servers are provisioned with Ansible. View Ansible repository.
Instructions for use can be found in the README.
We use virt-builder, virt-install, and virt-customize to modify virtual machine images in place.
There is currently a problem with these libguestfs tools, where they can't resize logical partitions. This means we have to manually resize our base image after creation, rather than being able to have it happen automatically in a script. Here are the steps to resize the disk:
- Resize the disk (located in
/var/lib/libvirt/images/):qemu-img resize base.img 32G - Start the VM and log in
- Expand the partitions: https://unix.stackexchange.com/a/320454
- Resize the filesystem:
resize2fs /dev/vda5