Directory sharing instead of images #3

Closed
opened 2023-04-24 17:36:14 +00:00 by pim · 2 comments
Owner

Instead of having a data disk for guest machines, they should mount directories on the host OS. The problem with using images for data is backup: it takes a long time to back up and takes a lot of extra space in the backup. See: https://rabexc.org/posts/p9-setup-in-libvirt

Instead of having a data disk for guest machines, they should mount directories on the host OS. The problem with using images for data is backup: it takes a long time to back up and takes a lot of extra space in the backup. See: https://rabexc.org/posts/p9-setup-in-libvirt
pim added the
Enhancement
label 2023-04-24 17:36:58 +00:00
Author
Owner
  • Install user certificate on atlas
  • Trust user certificate on lewis
  • Change TF debian vm with option to create directory share
  • Change TF debian vm to mount virtiofs
  • Write borgmatic script
  • Create /data with o=rw permissions
  • Enable new backup setup
  • Install static host certificate on lewis
  • New certficate authority for .lan
  • Disable old backup system on lewis
  • Disable old backup system on atlas
  • Remove data disk feature of tf-debian-vm

Steps with downtime:

  • Stop the docker daemon on the VM
  • Add temporary hard disk (60G)
  • Create tar ball of data directory to new hard disk
  • Destroy VM (but not the new hard disk)
  • Recreate VM with the virtiofs share
  • Attach hard disk to VM
  • Extract all data from tar ball to /mnt/data
  • Detach hard disk
  • Run ansible script
- [x] Install user certificate on atlas - [x] Trust user certificate on lewis - [x] Change TF debian vm with option to create directory share - [x] Change TF debian vm to mount virtiofs - [x] Write borgmatic script - [x] Create /data with o=rw permissions - [x] Enable new backup setup - [x] Install static host certificate on lewis - [x] New certficate authority for .lan - [x] Disable old backup system on lewis - [x] Disable old backup system on atlas - [x] Remove data disk feature of tf-debian-vm Steps with downtime: - [x] Stop the docker daemon on the VM - [x] Add temporary hard disk (60G) - [x] Create tar ball of data directory to new hard disk - [x] Destroy VM (but not the new hard disk) - [x] Recreate VM with the virtiofs share - [x] Attach hard disk to VM - [x] Extract all data from tar ball to /mnt/data - [x] Detach hard disk - [x] Run ansible script
Author
Owner

Getting weird boot problems where the kernel seems to load the 9p2000 kernel module, which takes a long time... Maybe preloading it is a solution? https://wiki.archlinux.org/title/Kernel_module#Automatic_module_loading

Getting weird boot problems where the kernel seems to load the 9p2000 kernel module, which takes a long time... Maybe preloading it is a solution? https://wiki.archlinux.org/title/Kernel_module#Automatic_module_loading
pim closed this issue 2023-04-26 14:14:23 +00:00
This repo is archived. You cannot comment on issues.
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: home/hypervisors#3
No description provided.