Armando le sugiero que dedique un tiempo a crear un Tutorial mas detallado, paso a paso y publicarlo en la wiki de GUTL y de esta forma todos lo que necesitemos lo veamos ahí. En particular sobre un server GNU/Linux y los clientes en W2$ que es lo que mas se a pedido acá en la lista, que muchos hemos tenido dudas a la hora de implementar algo parecido. Saludos

On 6/9/2015 5:16 PM, Armando Felipe Fuentes Denis wrote:
---------------------------------------------------------------------------------------------------------------
                         Server Debian
---------------------------------------------------------------------------------------------------------------
Shell> sudo apt-get install vblade vblade-persist isc-dhcp-server tftpd-hpa
Shell> sudo dd if=/dev/zero of=hdd_file.img bs=1024k count=5000
Shell> sudo dd if=/dev/sdb of=hdd_file.img bs=1M count=5126
Shell> sudo nano /etc/dhcp3/dhcpd.conf
     if exists user-class and option user-class = "gPXE" {
         filename    "";
         option root-path "aoe:e0.0";
     } else {
         filename    "gpxe.kpxe";
     }
Shell> sudo cp gpxe.kpxe /srv/tftp
Shell> sudo chmod 777 /srv/tftp/gpxe.kpxe
Shell> sudo vblade-persist setup 0 0 eth0 /path/to/hdd_file1.img
Shell> sudo vblade-persist setup 0 1 eth0 /path/to/hdd_file2.img
Shell> sudo vblade-persist mac 0 0 add 00:11:22:33:44:55
Shell> sudo vblade-persist mac 0 1 add 66:77:88:99:00:11
Shell> sudo vblade-persist auto all
Shell> sudo vblade-persist restart all
Shell> sudo vblade-persist ls
Shell> sudo vblade-persist {start|stop|restart|auto|destroy} {all|shelf
slot}
---------------------------------------------------------------------------------------------------------------
                         Server Ubuntu
---------------------------------------------------------------------------------------------------------------
Shell> sudo apt-get install vblade isc-dhcp-server tftpd-hpa
Shell> sudo dd if=/dev/zero of=hdd_file.img bs=1024k count=5000
Shell> sudo dd if=/dev/sdb of=hdd_file.img bs=1M count=5126
Shell> sudo echo "eth0 0 0 hdd_file.img mac" >> /etc/vblade.conf
Shell> sudo nano /etc/dhcp3/dhcpd.conf
     if exists user-class and option user-class = "gPXE" {
         filename    "";
         option root-path "aoe:e0.0";
     } else {
         filename    "gpxe.kpxe";
     }
Shell> sudo cp gpxe.kpxe /var/lib/tftpboot
Shell> sudo chmod 777 /var/lib/tftpboot/gpxe.kpxe
---------------------------------------------------------------------------------------------------------------
                         Client Linux (System Instaled)
---------------------------------------------------------------------------------------------------------------
Shell> sudo apt-get install aoetools
Shell> sudo modprobe aoe
Shell> sudo echo aoe >> /etc/modules
Shell> sudo echo aoe >> /etc/initramfs-tools/modules
Shell> sudo nano /etc/initramfs-tools/scripts/local-top/aoe
     #!/bin/sh
     sleep 1
     ip link set eth0 up
     sleep 3
     echo 1 >/dev/etherd/discover
Shell> sudo chmod +x /etc/initramfs-tools/scripts/local-top/aoe
Shell> sudo nano /etc/X11/xorg.conf
     Section         "Device"
         Identifier     "Configured Video Device"
         Driver        "vesa"
     EndSection
     Section "Monitor"
         Identifier    "Configured Monitor"
         VendorName       "HNL"
         ModelName        "HN5005L"
         Option            "DPMS"
     EndSection
     Section "Screen"
         Identifier    "Default Screen"
         Monitor        "Configured Monitor"
         Device        "Configured Video Device"
     EndSection
Shell> sudo update-initramfs -u -k all

Shell> sudo cat /dev/null > /etc/hostname
Shell> sudo cat /dev/null > /etc/mailname
Shell> sudo nano /etc/rc.local
     before: exit 0
         LANHOSTNAME=$(cat /etc/hostname)
         if [ -z "$LANHOSTNAME" ] ; then
             echo "$(hostname)" > /etc/hostname
             echo "$(hostname).$(dnsdomainname)" > /etc/mailname
         fi
Shell> sudo echo "127.0.0.1    localhost" > /etc/hosts
---------------------------------------------------------------------------------------------------------------
                         Client Window XP (System Instaled)
---------------------------------------------------------------------------------------------------------------
Notes:
     How to know if the kernel support AoE
         Shell> cat /boot/config-$(uname -r) | grep ATA_OVER
     If it is supported you should see as respond
         CONFIG_ATA_OVER_ETH=m

     Check if the module are loaded
         lsmod | grep -i aoe
     If it is not loaded you should use
         modconf

     Another way of creating an image
         dd if=/dev/sdb bs=512 | pv | dd
of=/var/almacenamiento/discos/miplantilla.ima

     How to mount the image
         apt-get install kpartx
         kpartx -av /var/almacenamiento/discos/miplantilla.ima
         mkdir -p /mnt/p1
         mount /dev/mapper/loop0p1 /mnt/p1

     How to make the kernel use AoE
         mkdir -p /var/tmp/initrd
         cd /var/tmp/initrd
         zcat /mnt/p1/boot/initrd.img-2.6.32-5-686 | cpio -id

         nano /var/tmp/initrd/conf/initramfs.conf
             reeplace
                 BOOT=local
             by
                 BOOT=aoe
         nano /var/tmp/initrd/scripts/aoe
             # AoE filesystem mounting
             # Based on the NFS filesystem mounting
             # FIXME This needs error checking
             retry_nr=0
             reset_cnt()
             {
                 times_to_sh=10
             }
             wait_cnt()
             {
                 times_to_sh=$(( ${times_to_sh} - 1 ))
                 if [ ${times_to_sh} -le 0 ] ; then
                     reset_cnt
                     log_msg_begin "Timed out, entering shell"
                     sh
                     log_msg_end
                 else
                     sleep 1
                     echo .
                 fi
             }
             # parse AoE bootargs and mount AoE
             do_aoemount()
             {
                 configure_networking
                 # make sure aoe root exists
                 log_begin_msg "Discovering AoE device ${ROOT}"
                 reset_cnt
                 while [ ! -e ${ROOT} ] ; do
                     echo > /dev/etherd/discover
                     wait_cnt
                 done
                 log_end_msg
                 # discover fstype and modprobe
                 if [ -z "${ROOTFSTYPE}" ] ; then
                     FSTYPE=ext3
                     #get_fstype can be tried FSTYPE=$(get_fstype "${ROOT}")
                 else
                     FSTYPE=${ROOTFSTYPE}
                 fi
                 # Maby it is a module
                 modprobe ${FSTYPE}
                 # set read-only
                 if [ ${readonly} = y ]; then
                     roflag="-o ro"
                 else
                     roflag="-o rw"
                 fi
                 log_begin_msg "mounting ${roflag} -t ${FSTYPE} ${ROOTFLAGS}
${ROOT} ${rootmnt}"
                 mount ${roflag} -t ${FSTYPE} ${ROOTFLAGS} ${ROOT} ${rootmnt}
                 log_end_msg
             }
             # AOE root mounting
             mountroot()
             {
                 log_begin_msg "Mounting AoE"
                 modprobe aoe
                 modprobe af_packet
                 echo > /dev/etherd/discover
                 wait_for_udev 10
                 do_aoemount
                 log_end_msg
             }

         mv /mnt/p1/boot/initrd.img-2.6.32-5-686
/mnt/p1/boot/initrd.img-2.6.32-5-686.original
         cd /var/tmp/initrd
         find ./ | cpio -oH newc | pv | gzip -9 >
/mnt/p1/boot/initrd.img-2.6.32-5-686

         umount /mnt/p1
         kpartx -d /var/almacenamiento/discos/miplantilla.ima

Place the following two lines in /etc/dhcpd.conf:

   filename "";
   option root-path "aoe:eN.M";
-----------------------------
Server
-----------------------------
modprobe aoe
echo aoe >> /etc/modules
dd if=/dev/zero of=/opt/hddmaster.img bs=1024k count=5000
aptitude install vblade
echo "eth0 0 1 /opt/hddmaster.img mac" >> /etc/vblade.conf
reboot
-----------------------------
Client With System
-----------------------------
modprobe aoe
mkdir /media/system
mount /dev/etherd/e0.1p2 /media/system
cd /media/system
-----
unsquashfs filesystem.squashfs
mv squashfs-root/* .
rmdir squashfs-root
-----
debootstrap lucid . ftp://ip_ftp/ubuntu
debootstrap squeeze /media/system ftp://ip_ftp/debian/dvd1
chroot /media/system
echo "deb ftp://ip_ftp/debian/dvd1 squeeze main contrib" >
/etc/apt/sources.list
aptitude update
aptitude install initramfs-tools
-----
echo pc_name > etc/hostname
echo aoe >> etc/initramfs-tools/modules
echo aoe >> etc/modules
nano etc/fstab
     /dev/etherd/e0.1p1    none    swap    sw    0    0
     /dev/etherd/e0.1p2    /    ext4    default    0    1
     /dev/etherd/e0.1p3    /home    ext4    rw    0    2
     proc            /proc    proc    default    0    0
nano etc/initramfs-tools/scripts/local-top/aoe
     #!/bin/sh
     sleep 1
     ip link set eth0 up
     sleep 3
     echo 1 >/dev/etherd/discover
chmod +x etc/initramfs-tools/scripts/local-top/aoe
nano etc/X11/xorg.conf
     Section         "Device"
         Identifier     "Configured Video Device"
         Driver        "vesa"
     EndSection
     Section "Monitor"
         Identifier    "Configured Monitor"
         VendorName       "HNL"
         ModelName        "HN5005L"
         HorizSync        31.0 - 61.0
         VertRefresh      56.0 - 75.0
         Option            "DPMS"
     EndSection
     Section "Screen"
         Identifier    "Default Screen"
         Monitor        "Configured Monitor"
         Device        "Configured Video Device"
     EndSection
nano etc/apt/sources.list
     #ftp.aula.upivch.inv.cu
     deb ftp://ip_ftp/ubuntu lucid main multiverse restricted universe
     deb ftp://ip_ftp/ubuntu lucid-proposed main multiverse restricted
universe
     deb ftp://ip_ftp/ubuntu lucid-security main multiverse restricted
universe
     deb ftp://ip_ftp/ubuntu lucid-updates main multiverse restricted
universe
mount /dev/ --bind /media/system/dev
mount -t proc none /media/system/proc
mount -t sysfs none /media/system/sys
chroot /media/system
passwd
aptitude update
tzselect
aptitude install aoetools
update-initramfs -u


El 9 de junio de 2015, 19:07, Omar Crespo <netad...@getrans.cu> escribió:

Me puedes explicar un poco más como para yo saber que buscar en internet??

--
"El futuro tiene muchos nombres. Para los débiles es lo inalcanzable.
Para los temerosos, lo desconocido. Para los valientes es la oportunidad"
Victor Hugo
______________________________________________________________________
Lista de correos del Grupo de Usuarios de Tecnologías Libres de Cuba.
Gutl-l@jovenclub.cu
https://listas.jovenclub.cu/cgi-bin/mailman/listinfo/gutl-l


Lo que internet sabe de Ata over Ethernet (AoE) hasta donde he visto, es
que
existe, nada más.

El AoE emplea el tftp (como es lógico) y vblade-persist.

Deberías instalar además el kpartx (para montar las imágenes en caso de que
lo necesites) y el htop (muestra todos los procesos)

En /srv/tftp/  copias el archivo ipxe.pxe  (asi es como lo hago yo, en srv
es donde tengo las imágenes además)

En resumen solo necesitas el vblade y el tftp.

Ah si, después de que instales todo (aptitude install modconf aoetools
vblade-persist kpartx htop pv mc)
Asegúrate de que el kernel soporte AoE:

cat /boot/config-$(uname -r) | grep ATA_OVER

debería salirte algo asi: CONFIG_ATA_OVER_ETH=m

si sale eso, lo soporta.

Y bueno, del vblade no te explico porque el solo se explica perfectamente,
no creo que necesites mi ayuda.

Suerte.




______________________________________________________________________
Lista de correos del Grupo de Usuarios de Tecnologías Libres de Cuba.
Gutl-l@jovenclub.cu
https://listas.jovenclub.cu/cgi-bin/mailman/listinfo/gutl-l





--
Este mensaje le ha llegado mediante el servicio de correo electronico que 
ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema 
Nacional de Salud. La persona que envia este correo asume el compromiso de usar 
el servicio a tales fines y cumplir con las regulaciones establecidas

Infomed: http://www.sld.cu/



______________________________________________________________________
Lista de correos del Grupo de Usuarios de Tecnologías Libres de Cuba.
Gutl-l@jovenclub.cu
https://listas.jovenclub.cu/cgi-bin/mailman/listinfo/gutl-l

Responder a