Cours:DocsLTSP : Différence entre versions

De troyesGEII
Aller à : navigation, rechercher
(virt-viewer)
 
(13 révisions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
 +
=mise à jour=
 +
 +
*préparer les mises à jour
 +
**dans le menu de bootreseau
 +
**choisir "installer mise a jour Ubuntu"
 +
**mettre à jour le noyau avec : updateKernelReseau
 +
*vérifier les mises à jour
 +
**dans le menu de bootreseau
 +
**choisir "verifier apres mise a jour Ubuntu"
 +
*passer sur la nouvelle version
 +
**après vérifications
 +
**lancer la commande : updateBootReseau
 +
 +
 +
=Installation=
 +
https://wiki.defis.info/?LTSPInstall
 +
 
*installation ltsp https://ltsp.org/docs/installation/
 
*installation ltsp https://ltsp.org/docs/installation/
 
*debootstrap ubuntu
 
*debootstrap ubuntu
**https://help.ubuntu.com/community/DebootstrapChroot
+
 
 
**https://github.com/ltsp/ltsp/wiki/chroots
 
**https://github.com/ltsp/ltsp/wiki/chroots
 
<source lang=bash>
 
<source lang=bash>
Ligne 7 : Ligne 24 :
 
cd /srv/ltsp
 
cd /srv/ltsp
 
debootstrap --include ubuntu-minimal noble noble
 
debootstrap --include ubuntu-minimal noble noble
 +
//config schroot
 +
schroot
 +
// continuer avec l'installation de paquets, par ex https://help.ubuntu.com/community/DebootstrapChroot
 
</source>
 
</source>
 +
 +
*config ltsp
 +
**ltsp dnsmasq
 +
**ltsp ipxe
 +
**ltsp initrd
 +
**ltsp kernel
 +
**ltsp nfs
 +
 +
 +
*ltsp initrd :
 +
**update ltsp.img
 +
**modifie users
  
 
<source lang=bash>
 
<source lang=bash>
ltsp dnsmasq
+
 
  
 
</source>
 
</source>
  
 +
=groupes utilisateurs=
 +
modifier le fichier : /etc/security/group.conf
 +
 +
=virt-viewer=
 +
*https://www.apalrd.net/posts/2022/raspi_spice/
 +
 +
<source lang=bash>
 +
#!/bin/bash
 +
set -e
 +
 +
# Set auth options
 +
PASSWORD='xxxxxxxx'
 +
USERNAME='spiceUser@pve'
 +
 +
# Set VM ID
 +
VMID="102"
 +
 +
# Set Node
 +
# This must either be a DNS address or name of the node in the cluster
 +
NODE="geii-node2-svr"
  
apt-get install ltsp-server-standalone
+
# Proxy equals node if node is a DNS address
 +
# Otherwise, you need to set the IP address of the node here
 +
PROXY="10.98.35.249"
  
ltsp-build-client --arch i386
+
#The rest of the script from Proxmox
 +
NODE="${NODE%%\.*}"
  
configurer le réseau (serveur dhcp (isc-dhcp-server par défaut)
+
DATA="$(curl -f -s -S -k --data-urlencode "username=$USERNAME" --data-urlencode "password=$PASSWORD" "https://$PROXY:8006/api2/json/access/ticket")"
  
/var/lib/tftpboot/ltsp/i386/lts.conf
+
echo "AUTH OK"
  
LDM_DIRECTX=True
+
TICKET="${DATA//\"/}"
 +
TICKET="${TICKET##*ticket:}"
 +
TICKET="${TICKET%%,*}"
 +
TICKET="${TICKET%%\}*}"
  
 +
CSRF="${DATA//\"/}"
 +
CSRF="${CSRF##*CSRFPreventionToken:}"
 +
CSRF="${CSRF%%,*}"
 +
CSRF="${CSRF%%\}*}"
  
 +
curl -f -s -S -k -b "PVEAuthCookie=$TICKET" -H "CSRFPreventionToken: $CSRF" "https://$PROXY:8006/api2/spiceconfig/nodes/$NODE/qemu/$VMID/spiceproxy" -d "proxy=$PROXY" > spiceproxy
  
 +
#Launch remote-viewer with spiceproxy file, in kiosk mode, quit on disconnect
 +
#The run loop will get a new ticket and launch us again if we disconnect
 +
exec remote-viewer -k --kiosk-quit on-disconnect spiceproxy
  
 +
</source>
  
https://wiki.ubuntu.com/LTSPLocalAppSetup
+
=initrd nfs v4=
 +
*https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=409272
 +
*https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=409272
 +
 
 +
=divers=
  
http://wiki.bluelightav.org/pages/viewpage.action?pageId=23626143
+
The most common iPXE boot loaders are undionly.kpxe (for bios) and snp.efi/snponly.efi (for usefi). Just be aware you can not boot a bios bootloader (undionly.kpxe) on a uefi system unless CSM is enabled. But then CSM would boot in bios mode. The same is the case for snp.efi, it will not boot on a bios based computer.
  
  
=fedora=
+
https://wiki.fogproject.org/wiki/index.php?title=ProxyDHCP_with_dnsmasq
  
réseau :
 
  
http://doc.fedora-fr.org/wiki/Le_service_network
+
https://wiki.ubuntu.com/LTSPLocalAppSetup
 +
 
 +
http://wiki.bluelightav.org/pages/viewpage.action?pageId=23626143

Version actuelle datée du 10 décembre 2024 à 14:04

mise à jour

  • préparer les mises à jour
    • dans le menu de bootreseau
    • choisir "installer mise a jour Ubuntu"
    • mettre à jour le noyau avec : updateKernelReseau
  • vérifier les mises à jour
    • dans le menu de bootreseau
    • choisir "verifier apres mise a jour Ubuntu"
  • passer sur la nouvelle version
    • après vérifications
    • lancer la commande : updateBootReseau


Installation

https://wiki.defis.info/?LTSPInstall

mkdir /srv/ltsp
cd /srv/ltsp
debootstrap --include ubuntu-minimal noble noble
//config schroot
schroot
// continuer avec l'installation de paquets, par ex https://help.ubuntu.com/community/DebootstrapChroot
  • config ltsp
    • ltsp dnsmasq
    • ltsp ipxe
    • ltsp initrd
    • ltsp kernel
    • ltsp nfs


  • ltsp initrd :
    • update ltsp.img
    • modifie users

groupes utilisateurs

modifier le fichier : /etc/security/group.conf

virt-viewer

#!/bin/bash
set -e

# Set auth options
PASSWORD='xxxxxxxx'
USERNAME='spiceUser@pve'

# Set VM ID
VMID="102"

# Set Node
# This must either be a DNS address or name of the node in the cluster
NODE="geii-node2-svr"

# Proxy equals node if node is a DNS address
# Otherwise, you need to set the IP address of the node here
PROXY="10.98.35.249"

#The rest of the script from Proxmox
NODE="${NODE%%\.*}"

DATA="$(curl -f -s -S -k --data-urlencode "username=$USERNAME" --data-urlencode "password=$PASSWORD" "https://$PROXY:8006/api2/json/access/ticket")"

echo "AUTH OK"

TICKET="${DATA//\"/}"
TICKET="${TICKET##*ticket:}"
TICKET="${TICKET%%,*}"
TICKET="${TICKET%%\}*}"

CSRF="${DATA//\"/}"
CSRF="${CSRF##*CSRFPreventionToken:}"
CSRF="${CSRF%%,*}"
CSRF="${CSRF%%\}*}"

curl -f -s -S -k -b "PVEAuthCookie=$TICKET" -H "CSRFPreventionToken: $CSRF" "https://$PROXY:8006/api2/spiceconfig/nodes/$NODE/qemu/$VMID/spiceproxy" -d "proxy=$PROXY" > spiceproxy

#Launch remote-viewer with spiceproxy file, in kiosk mode, quit on disconnect
#The run loop will get a new ticket and launch us again if we disconnect
exec remote-viewer -k --kiosk-quit on-disconnect spiceproxy

initrd nfs v4

divers

The most common iPXE boot loaders are undionly.kpxe (for bios) and snp.efi/snponly.efi (for usefi). Just be aware you can not boot a bios bootloader (undionly.kpxe) on a uefi system unless CSM is enabled. But then CSM would boot in bios mode. The same is the case for snp.efi, it will not boot on a bios based computer.


https://wiki.fogproject.org/wiki/index.php?title=ProxyDHCP_with_dnsmasq


https://wiki.ubuntu.com/LTSPLocalAppSetup

http://wiki.bluelightav.org/pages/viewpage.action?pageId=23626143