Тип ЦП QuadCore Intel Core 2 Quad Q8400, 2676 MHz Системная плата Asus P5Q SE2 (3 PCI, 2 PCI-E x1, 1 PCI-E x16, 4 DDR2 DIMM, Audio, Gigabit LAN) Чипсет системной платы Intel Eaglelake P45 Видеоадаптер NVIDIA Сетевой адаптер Realtek PCIe GBE Family Controller ОЗУ: DIMM1: 2 Гб DDR2-800 DDR2 SDRAM DIMM3: 2 Гб DDR2-800 DDR2 SDRAM Контроллер IDE Intel(R) ICH10 Дисковый накопители: SAMSUNG HD103SJ (1 TБ) SAMSUNG HD103SJ (1 TБ)
# cat /boot/grub/device.map (hd0) /dev/sda (hd1) /dev/sdb # /sbin/grub grub> device (hd0) /dev/sda grub> device (hd1) /dev/sdb grub> root (hd0,0) grub> setup (hd0) grub> root (hd1,0) grub> setup (hd1) grub> quit
Правим конфигурационный файл загрузчика GRUB.
# nano -w /boot/grub/grub.conf # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You do not have a /boot partition. This means that # all kernel and initrd paths are relative to /, eg. # root (hd0,0) # kernel /boot/vmlinuz-version ro root=/dev/md0 # initrd /boot/initrd-[generic-]version.img #boot=/dev/sda default=0 timeout=5 splashimage=(hd0,0)/boot/grub/splash.xpm.gz hiddenmenu title Fedora (2.6.35.6-45.fc14.x86_64) root (hd0,0) kernel /boot/vmlinuz-2.6.35.6-45.fc14.x86_64 ro root=UUID=d94c826c-d60a-4469-9120-619722b5860a rd_MD_UUID=442d2000:ffb080c9:8e8214d1:e21bd4af 0261a3e8:c919f1fd:81e3f054 rd_NO_LUKS rd_NO_LVM rd_NO_DM LANG=ru_RU.UTF-8 KEYTABLE=us nomodeset rhgb quietrd_MD_UUID=de819876:0261a3$ initrd /boot/initramfs-2.6.35.6-45.fc14.x86_64.img # все что ниже добавляем. Отличие только в строке root (hd1,0). Строка kernel упрощена - проверено, загрузка со второго HDD происходит без проблем. title Fedora (2.6.35.6-45.fc14.x86_64) Slave hd1 root (hd1,0) kernel /boot/vmlinuz-2.6.35.6-45.fc14.x86_64 ro root=/dev/md0 initrd /boot/initramfs-2.6.35.6-45.fc14.x86_64.img
Для виртуализации будет использоваться бесплатный VMware Server.
vmware-authd 902/tcp vmware-authd 902/udp
yum install kernel-devel-`uname -r` gcc gcc-c++
# wget --no-check-certificate http://codebin.cotescu.com/vmware/vmware-server-2.0.x-kernel-2.6.3x-install.sh # ls -l -rw-r--r-- 1 root root 8696 Янв 27 15:16 raducotescu-vmware-server-linux-2.6.3x-kernel-release-1.5-1-g71f8b66.tar.gz -rw-r--r--. 1 root root 474415801 Янв 24 15:30 VMware-server-2.0.2-203138.x86_64.tar.gz
Устанавливаем обновление, предварительно распаковав.
# tar xvfz raducotescu-vmware-server-linux-2.6.3x-kernel-release-1.5-1-g71f8b66.tar.gz # cp VMware-server-2.0.2-203138.x86_64.tar.gz raducotescu-vmware-server-linux-2.6.3x-kernel-71f8b66/ # cd raducotescu-vmware-server-linux-2.6.3x-kernel-71f8b66
Запускаем с правами root vmware-server-2.0.x-kernel-2.6.3x-install.sh. Он будет искать в текущей директории дистрибутив VMware Server, который мы туда предварительно скопировали.
# ./vmware-server-2.0.x-kernel-2.6.3x-install.sh ... Please specify a port for remote connections to use [902] Please specify a port for standard http connections to use [8222] Please specify a port for secure http (https) connections to use [8333] The current administrative user for VMware Server is ''. Would you like to specify a different administrator? [no] yes Please specify the user whom you wish to be the VMware Server administrator root Using root as the VMware Server administrator. In which directory do you want to keep your virtual machine files? [/var/lib/vmware/Virtual Machines] /home/vmware Please enter your 20-character serial number. Type XXXXX-XXXXX-XXXXX-XXXXX or 'Enter' to cancel:
В случае успешного завершения установки VMware скрипт выведет:
The configuration of VMware Server 2.0.2 build-203138 for Linux for this running kernel completed successfully. On Fedora you must follow these steps in order to make VMware Server to work properly: 1. edit /etc/services and replace the entry located on TCP/902 port with vmware-authd 2. disable SELinux by editing the /etc/selinux/config file 3. reboot your system Housekeeping... Thank you for using the script! Patch provided by: Ramon de Carvalho Valle http://risesecurity.org Script author: Radu Cotescu http://radu.cotescu.com
VMware Server 2 управляется через WEB-интерфейс. Доступ к WEB-интерфейсу через HTTPS(https:<IP ADDRESS>:8333) или HTTP (http:<IP ADDRESS>:8222).
The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match your running kernel (version 2.6.35.10-74.fc14.x86_64). Even if the module were to compile successfully, it would not load into the running kernel.
Лечим ее созданием константы с версией в исходниках ядра. Добавляем #define UTS_RELEASE «версия ядра» в конец файла.
# nano /usr/src/kernels/2.6.35.10-74.fc14.x86_64/include/linux/version.h #define UTS_RELEASE "2.6.35.10-74.fc14.x86_64"
или перепишем эту константу из файла utsrelease.h
# cat /usr/src/kernels/2.6.35.10-74.fc14.x86_64/include/generated/utsrelease.h >> /usr/src/kernels/2.6.35.10-74.fc14.x86_64/include/linux/version.h или # cat /usr/src/kernels/$(uname -r)/include/generated/utsrelease.h >> /usr/src/kernels/$(uname -r)/include/linux/version.h