Cours:DocsLTSP : Différence entre versions

De troyesGEII
Aller à : navigation, rechercher
(virt-viewer)
(grub)
 
(2 révisions intermédiaires par le même utilisateur non affichées)
Ligne 48 : Ligne 48 :
 
=groupes utilisateurs=
 
=groupes utilisateurs=
 
modifier le fichier : /etc/security/group.conf
 
modifier le fichier : /etc/security/group.conf
 +
 +
=tftp from grub=
 +
 +
*https://gist.github.com/maccadia/e5faa903f591a089c1c65be381619118
  
 
=virt-viewer=
 
=virt-viewer=
Ligne 111 : Ligne 115 :
  
 
http://wiki.bluelightav.org/pages/viewpage.action?pageId=23626143
 
http://wiki.bluelightav.org/pages/viewpage.action?pageId=23626143
 +
 +
=grub=
 +
 +
<source lang=bash>
 +
menuentry "LTSP Network Boot"
 +
{
 +
insmod net
 +
insmod efinet
 +
insmod tftp
 +
insmod pxeboot
 +
net_bootp linux (tftp,<IP_SERVEUR>)/ltsp/x86_64/vmlinuz initrd=/ltsp/x86_64/initrd.img root=/dev/nfs nfsroot=<IP_SERVEUR>:/opt/ltsp rootfstype=nfs ip=dhcp
 +
initrd (tftp,<IP_SERVEUR>)/ltsp/x86_64/initrd.img
 +
}
 +
</source>

Version actuelle datée du 8 octobre 2025 à 08:38

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

tftp from grub

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

grub

menuentry "LTSP Network Boot"
{
 insmod net
 insmod efinet
 insmod tftp
 insmod pxeboot
 net_bootp linux (tftp,<IP_SERVEUR>)/ltsp/x86_64/vmlinuz initrd=/ltsp/x86_64/initrd.img root=/dev/nfs nfsroot=<IP_SERVEUR>:/opt/ltsp rootfstype=nfs ip=dhcp
 initrd (tftp,<IP_SERVEUR>)/ltsp/x86_64/initrd.img
}