Cours:DocsLTSP : Différence entre versions
(→virt-viewer) |
|||
(9 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 | https://wiki.defis.info/?LTSPInstall | ||
*installation ltsp https://ltsp.org/docs/installation/ | *installation ltsp https://ltsp.org/docs/installation/ | ||
*debootstrap ubuntu | *debootstrap ubuntu | ||
− | + | ||
**https://github.com/ltsp/ltsp/wiki/chroots | **https://github.com/ltsp/ltsp/wiki/chroots | ||
<source lang=bash> | <source lang=bash> | ||
Ligne 11 : | Ligne 26 : | ||
//config schroot | //config schroot | ||
schroot | schroot | ||
+ | // continuer avec l'installation de paquets, par ex https://help.ubuntu.com/community/DebootstrapChroot | ||
</source> | </source> | ||
Ligne 26 : | Ligne 42 : | ||
<source lang=bash> | <source lang=bash> | ||
− | + | ||
</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" | ||
− | + | # 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 | ||
− | https:// | + | </source> |
+ | |||
+ | =initrd nfs v4= | ||
+ | *https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=409272 | ||
+ | *https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=409272 | ||
+ | |||
+ | =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:// | + | 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
- installation ltsp https://ltsp.org/docs/installation/
- debootstrap ubuntu
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
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=409272
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=409272
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