Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
projects:livenet:server [2018/03/12 23:37] – nicola | projects:livenet:server [2018/03/13 00:12] – nicola | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Software richiesto | + | ===== Requirements |
** HW**: 2 nic device | ** HW**: 2 nic device | ||
- | **Sistema operativo**: Ubuntu server 17.10 | + | **OS**: Ubuntu server 17.10 |
< | < | ||
- | **software facoltativo ma usato nel test** | + | **Optional config** |
< | < | ||
- | ===== Preparazione ambiente | + | |
+ | **network config ** | ||
+ | nano / | ||
+ | |||
+ | < | ||
+ | # This file describes the network interfaces available on your system | ||
+ | # For more information, | ||
+ | network: | ||
+ | version: 2 | ||
+ | renderer: networkd | ||
+ | ethernets: | ||
+ | ens3: | ||
+ | dhcp4: no | ||
+ | addresses: [10.1.22.2/ | ||
+ | gateway4: 192.168.122.1 | ||
+ | nameservers: | ||
+ | addresses: [8.8.8.8, | ||
+ | ens4: | ||
+ | dhcp4: yes | ||
+ | |||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | < | ||
+ | ===== Build livenet | ||
==== Preparazione dell' | ==== Preparazione dell' | ||
Line 17: | Line 42: | ||
Download package | Download package | ||
+ | edit / | ||
+ | |||
+ | < | ||
+ | # folder that contains livenet system | ||
+ | BASE=/ | ||
+ | IMAGES=${BASE}/ | ||
+ | BOOT=${BASE}/ | ||
+ | </ | ||
+ | |||
+ | ===== Trivial FTP ===== | ||
+ | edit / | ||
+ | < | ||
+ | TFTP_USERNAME=" | ||
+ | TFTP_DIRECTORY="/ | ||
+ | TFTP_ADDRESS=" | ||
+ | TFTP_OPTIONS=" | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | |||
+ | cp -a / | ||
+ | |||
+ | cp / | ||
+ | |||
+ | edit / | ||
+ | < | ||
+ | default menu.c32 | ||
+ | prompt 0 | ||
+ | #timeout 100 | ||
+ | |||
+ | menu title PXE Special Boot Menu | ||
+ | MENU AUTOBOOT Starting Livenet in # seconds | ||
+ | |||
+ | label bootlocal | ||
+ | menu label ^Boot local disk | ||
+ | menu default | ||
+ | | ||
+ | |||
+ | label nfs | ||
+ | menu label Ubuntu 18.04 - diskless | ||
+ | | ||
+ | | ||
+ | |||
+ | label nfs | ||
+ | menu label Ubuntu 14.04 - install | ||
+ | | ||
+ | | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== BUILD IMAGE CLIENT ==== | ||
+ | zfs create livenet/ | ||
+ | debootstrap --arch amd64 bionic / | ||
+ | |||
+ | cd / | ||
+ | run .... | ||
+ | < | ||
+ | R=bionic | ||
+ | cat > ${R}/ | ||
+ | 127.0.0.1 | ||
+ | ::1 | ||
+ | ff02:: | ||
+ | ff02:: | ||
+ | QWK | ||
+ | |||
+ | chroot ${R} lsb_release -c | awk ' | ||
+ | chroot bionic/ | ||
+ | chroot ${R} apt-get -y -q install locales dialog | ||
+ | chroot ${R} locale-gen en_GB.UTF-8 | ||
+ | chroot ${R} locale-gen it_IT.UTF-8 | ||
+ | chroot ${R} update-locale LANG=it_IT.UTF-8 LANGUAGE=it: | ||
+ | echo Europe/Rome > ${R}/ | ||
+ | cp ${R}/ | ||
+ | cat > ${R}/ | ||
+ | #!/bin/sh | ||
+ | |||
+ | # dpkg/apt not start any daemons when things are installed in the chroot | ||
+ | |||
+ | if [ ! " | ||
+ | exit 101 | ||
+ | fi | ||
+ | QWE | ||
+ | chmod +x ${R}/ | ||
+ | </ | ||
+ | mount --bind / | ||