====== Czfcentos ====== wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm yum install yum install SSLeay perl-Net-SSLeay OpenSSL perl-Crypt-SSLeay mtr htop nmap iptraf jtop irqbalance 1) Remove rhgb and quiet from the "kernel" line(s) in /boot/grub/grub.conf 2) Remove or comment out the splashimage and hiddenmenu options. 3) Type plymouth-set-default-theme details 4) Type /usr/libexec/plymouth/plymouth-update-initrd blacklist gma500_gfx >> /etc/modprobe.d/blacklist.conf mv old /boot/initramfs dracut kopie systému pomocí dd dd if=/dev/sda of=/dev/sdb bs=1024 count=3150000 nebo ssh root@10.33.0.XX "dd dd if=/dev/sda bs=1024 count=3150000" | dd of=10.33.0.XX.img nebo ssh -i /home/user/.ssh/identity root@10.33.0.XX "dd if=/dev/sda bs=1024 count=3150000" | dd of=XX_c7_201901261553.img je dobre zmenit uuid klonovaneho xfs disku, aby sel mountnout xfs_admin -lu /dev/sda1 xfs_admin -U c1b9d5a2-f162-11cf-9ece-0020afc71111 /dev/sda1 64bit verze je a dvou diskových oddílech a druhý je pro hotsanic, který upravil Šinďa tak, aby log, rrd a www adresáře byly v ramce [[root@jabap|~]]# fdisk -l Disk /dev/sda: 4 051 MB, 4 051 697 664 bajtů hlav: 16, sektorů na stopu: 32, cylindrů: 15 456 Jednotky = cylindry po 512 * 512 = 262 144 bajtech Velikost sektoru (logického/fyzického): 512 bajtů / 512 bajtů Velikost I/O (minimální/optimální): 512 bajtů / 512 bajtů Identifikátor disku: 0x00000000 Zařízení Zavádět Začátek Konec Bloky Id Systém /dev/sda1 * 1 7440 1904624 83 Linux /dev/sda2 7441 8241 205056 83 Linux = Automatická instalace systému = virt-install \ --name czfcentos7 \ --ram 1024 \ --disk path=./czfcentos7.qcow2,size=3,bus=sata \ --vcpus 1 \ --os-type linux \ --os-variant rhel7 \ --network bridge=br0 \ --graphics none \ --console pty,target_type=serial \ --location /opt/disk/sima/ks/RHEL7DVD \ --disk=path=/opt/disk/sima/ks/CentOS-7-x86_64-DVD-1511.iso,device=cdrom \ --extra-args 'console=ttyS0,115200n8 serial ks=http://172.16.2.1/ksc7.cfg ksdevice=eth0 ip=172.16.2.11 netmask=255.255.255.0 dns=8.8.8.8 gateway=172.16.2.1' Kickstart file ksc7.cfg #version=RHEL7 # System authorization information auth --enableshadow --passalgo=sha512 # Use cdrom installation cdrom # Run the Setup Agent on first boot reboot # Keyboard layouts keyboard --vckeymap=us --xlayouts='us' # System language lang en_US.UTF-8 # Network information network --bootproto=static --ip=172.16.2.11 --netmask=255.255.255.0 --gateway=172.16.2.1 --nameserver=8.8.8.8 network --hostname=czfcentos # Root password rootpw --iscrypted $6$qB296NUg$4LZOfRw1pRGRRL5xyuqOrukTlJRQhGmfglWOqoD1i7naL1uh86Swz0uHmLOCM1RJDGUZPLtSKKA408DZ6nlX9. # System services services --enabled="chronyd" # System timezone timezone Europe/Prague --isUtc # System bootloader configuration bootloader --location=mbr --boot-drive=sda # Partition clearing information clearpart --none --initlabel # Disk partitioning information part / --asprimary --fstype="xfs" --size=2048 --ondisk=sda --label=czfc7root part /var/lib/stateless/state --asprimary --fstype="xfs" --size=500 --ondisk=sda --label=c7rwstate %packages --nobase @core --nodefaults -aic94xx-firmware* -alsa-* -biosdevname -btrfs-progs* -dhclient -dracut-network -iprutils -ivtv* -iwl*firmware -libertas* -kexec-tools -NetworkManager* -plymouth* -postfix mc %end