« Atelier SysRes SE4 2025/2026 E7 » : différence entre les versions
Aller à la navigation
Aller à la recherche
| Ligne 26 : | Ligne 26 : | ||
'phy:/dev/virtual/SE4.C2-home,xvda3,w', | 'phy:/dev/virtual/SE4.C2-home,xvda3,w', | ||
'phy:/dev/virtual/SE4.C2-var,xvdb1,w', | 'phy:/dev/virtual/SE4.C2-var,xvdb1,w', | ||
</syntaxhighlight> | |||
Pour monter le <code>/home</code> et <code>/var</code>: | |||
<syntaxhighlight> | |||
mkfs -t ext4 /dev/xvdb1 | |||
mount /dev/xvdb1 /mnt | |||
mv /var/* /mnt | |||
umount /mnt | |||
mount -a | |||
mkfs -t ext4 /dev/xvda3 | |||
mount -a | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Version du 26 janvier 2026 à 08:57
TEPELI Ibrahim
Création du pont:
Dans capbreton, dans /etc/network/interfaces on renseigne notre pont pontclio
auto pontclio
iface pontclio inet manual
bridge_ports none
up ip link set $IFACE up
down ip link set $IFACE downCréation des VM:
Pour créer nos VM avec xen:
xen-create-image --hostname=SE4.C2 --dir=/usr/local/xen --dist=excalibur --size=10GB --memory=1024M --bridge=pontclio --dhcpEnsuite créer les partitions var et home:
lvcreate -L10G -nSE4.C2.home virtual
lvcreate -L10G -nSE4.C2.var virtualLes ajouter dans le fichier /etc/xen/SE4.C2:
'phy:/dev/virtual/SE4.C2-home,xvda3,w',
'phy:/dev/virtual/SE4.C2-var,xvdb1,w',Pour monter le /home et /var:
mkfs -t ext4 /dev/xvdb1
mount /dev/xvdb1 /mnt
mv /var/* /mnt
umount /mnt
mount -a
mkfs -t ext4 /dev/xvda3
mount -a