Difference between revisions of "How to build Proxmox tmpfs image"

From openQRM
(updating image creation instructions)
(finalising proxmox tmpfs image initialisation)
Line 1: Line 1:
Once you have a successfully running openQRM Server you can follow the steps below for a Proxmox Solution;
+
Once you have a successfully running openQRM Server you can follow the steps below for a Proxmox VE Solution.
 +
 
 +
These instructions will enable you to proof of concept the Proxmox VE Solution as a tmpfs deployment, however the clustering requires special initialisation. We have developed the ATU Plugin to orchestrate these steps for synchronized cluster initilisation on start and backup configuration on shutdown.
  
 
# Download PVE Kernel - http://download.proxmox.com/debian/dists/buster/pve-no-subscription/binary-amd64/pve-kernel-5.4.114-1-pve_5.4.114-1_amd64.deb
 
# Download PVE Kernel - http://download.proxmox.com/debian/dists/buster/pve-no-subscription/binary-amd64/pve-kernel-5.4.114-1-pve_5.4.114-1_amd64.deb
 
# Install Kernel
 
# Install Kernel
 
# Add Kernel to openQRM
 
# Add Kernel to openQRM
## (Replace KERNEL_NAME, KERNEL_VER, OPENQRM_UI_USER, OPENQRM_UI_PASS, SERVER_NAME with the appropriate variables)  openqrm kernel add -n KERNEL_NAME -v KERNEL_VER -u OPENQRM_UI_USER -p OPENQRM_UI_PASS -l / -i initramfs    openqrm kernel add -n pve-5.4.114-1 -v 5.4.114-1-pve -u OPENQRM_USER -p OPENQRM_PASS -l / -i initramfs  ''If you are using a self signed cert you may need to load the https call back manually;''  https://SERVER_NAME/openqrm/base/server/kernel/kernel-action.php?kernel_command=new_kernel&kernel_name=KERNEL_NAME&kernel_version=KERNEL_VER
+
## (Replace KERNEL_NAME, KERNEL_VER, OPENQRM_UI_USER, OPENQRM_UI_PASS, SERVER_NAME with the appropriate variables)  openqrm kernel add -n KERNEL_NAME -v KERNEL_VER -u OPENQRM_UI_USER -p OPENQRM_UI_PASS -l / -i initramfs     
# Activate NFS Storage (if not already done so)
+
## openqrm kernel add -n pve-5.4.114-1 -v 5.4.114-1-pve -u OPENQRM_USER -p OPENQRM_PASS -l / -i initramfs   
## Under Plugins -> Storage -> NFS-Storage
+
### ''If you are using a self signed cert you may need to load the https call back manually;''  https://SERVER_NAME/openqrm/base/server/kernel/kernel-action.php?kernel_command=new_kernel&kernel_name=KERNEL_NAME&kernel_version=KERNEL_VER
## Add NFS Storage;
 
## name "openqrm-nfs"
 
## Deployment Type: "nfs-deployment"
 
 
# Create Image - To create an image for Proxmox which can be used as a tmpfs image, follow these steps;
 
# Create Image - To create an image for Proxmox which can be used as a tmpfs image, follow these steps;
 
## apt-get install debootstrap
 
## apt-get install debootstrap
Line 15: Line 14:
 
## debootstrap --arch amd64 buster /exports/proxmox_image/ <nowiki>https://deb.debian.org/debian/</nowiki>
 
## debootstrap --arch amd64 buster /exports/proxmox_image/ <nowiki>https://deb.debian.org/debian/</nowiki>
 
## chroot /exports/proxmox_image
 
## chroot /exports/proxmox_image
## apt-get install wget net-tools screen locales
+
## apt-get install wget net-tools screen locales collectd
## dpkg-reconfigure locales  
+
## dpkg-reconfigure locales
 
## Follow steps (Start at "Install Proxmox VE") @ https://pve.proxmox.com/wiki/Install_Proxmox_VE_on_Debian_Buster
 
## Follow steps (Start at "Install Proxmox VE") @ https://pve.proxmox.com/wiki/Install_Proxmox_VE_on_Debian_Buster
## disable services: pvedaemon, pve-proxy, pve-manager, pve-cluster, cman
+
## If using the ATU Plugin then disable services: pvedaemon, pve-proxy, pve-manager, pve-cluster, cman, corosync, ceph, pvestatd, qemu-server, rrdcached, spiceproxy,
 
+
# Activate NFS Storage (if not already done so)
<blockquote>
+
## Under Plugins -> Storage -> NFS-Storage
#  
+
## Add NFS Storage;
</blockquote>6. Add NFS Volume (this triggers tmpfs storage)
+
## name "openqrm-nfs"
 
+
## Deployment Type: "nfs-deployment"
Under Plugins -> Storage -> NFS-Storage -> Volume Admin -> Edit -> proxmox_image "ADD IMAGE"
+
# Add NFS Volume (this triggers tmpfs storage)
 
+
## Under Plugins -> Storage -> NFS-Storage -> Volume Admin -> Edit -> proxmox_image "ADD IMAGE"
 
+
# Tar Image
7. Tar Image
+
# Create NFS Image link to TmpFS image
 
 
8. Create NFS Image link to TmpFS image
 
  
  
 
Optional:
 
Optional:
  
The ATU Plugin is optimised for Proxmox Cluster Deployments and TMPFS Server Configuration SyncInitialise ATU plugin
+
The ATU Plugin is optimised for Proxmox Cluster Deployments and TMPFS Server Configuration Sync Initialise ATU plugin
  
 
Create custom FS
 
Create custom FS
  
 
/exports/custom/{fstab|modules|network}
 
/exports/custom/{fstab|modules|network}

Revision as of 15:51, 20 May 2021

Once you have a successfully running openQRM Server you can follow the steps below for a Proxmox VE Solution.

These instructions will enable you to proof of concept the Proxmox VE Solution as a tmpfs deployment, however the clustering requires special initialisation. We have developed the ATU Plugin to orchestrate these steps for synchronized cluster initilisation on start and backup configuration on shutdown.

  1. Download PVE Kernel - http://download.proxmox.com/debian/dists/buster/pve-no-subscription/binary-amd64/pve-kernel-5.4.114-1-pve_5.4.114-1_amd64.deb
  2. Install Kernel
  3. Add Kernel to openQRM
    1. (Replace KERNEL_NAME, KERNEL_VER, OPENQRM_UI_USER, OPENQRM_UI_PASS, SERVER_NAME with the appropriate variables) openqrm kernel add -n KERNEL_NAME -v KERNEL_VER -u OPENQRM_UI_USER -p OPENQRM_UI_PASS -l / -i initramfs
    2. openqrm kernel add -n pve-5.4.114-1 -v 5.4.114-1-pve -u OPENQRM_USER -p OPENQRM_PASS -l / -i initramfs
      1. If you are using a self signed cert you may need to load the https call back manually; https://SERVER_NAME/openqrm/base/server/kernel/kernel-action.php?kernel_command=new_kernel&kernel_name=KERNEL_NAME&kernel_version=KERNEL_VER
  4. Create Image - To create an image for Proxmox which can be used as a tmpfs image, follow these steps;
    1. apt-get install debootstrap
    2. Create directory mkdir /exports/proxmox_image
    3. debootstrap --arch amd64 buster /exports/proxmox_image/ https://deb.debian.org/debian/
    4. chroot /exports/proxmox_image
    5. apt-get install wget net-tools screen locales collectd
    6. dpkg-reconfigure locales
    7. Follow steps (Start at "Install Proxmox VE") @ https://pve.proxmox.com/wiki/Install_Proxmox_VE_on_Debian_Buster
    8. If using the ATU Plugin then disable services: pvedaemon, pve-proxy, pve-manager, pve-cluster, cman, corosync, ceph, pvestatd, qemu-server, rrdcached, spiceproxy,
  5. Activate NFS Storage (if not already done so)
    1. Under Plugins -> Storage -> NFS-Storage
    2. Add NFS Storage;
    3. name "openqrm-nfs"
    4. Deployment Type: "nfs-deployment"
  6. Add NFS Volume (this triggers tmpfs storage)
    1. Under Plugins -> Storage -> NFS-Storage -> Volume Admin -> Edit -> proxmox_image "ADD IMAGE"
  7. Tar Image
  8. Create NFS Image link to TmpFS image


Optional:

The ATU Plugin is optimised for Proxmox Cluster Deployments and TMPFS Server Configuration Sync Initialise ATU plugin

Create custom FS

/exports/custom/{fstab|modules|network}