English | Русский  

RSS feed

Star Family Blog

08/19/2014 15:34

How to deploy KVM virtualization on Linux

Posted by VladStar

- RedHat/CentOS/Oracle Linux 6.4 server with CPU virtualization support: http://en.wikipedia.org/wiki/X86_virtualization
- Kickstart installation environment (you can manually provision it as VM and then use to install other VMs in automatic mode): http://en.wikipedia.org/wiki/Kickstart_(Linux)

Install necessary packages and start the service:

# yum install -y gpxe-roms gpxe-roms-qemu libvirt python-virtinst qemu-img qemu-kvm qemu-kvm-tools vconfig virt-manager
# service libvirtd start

Create VM image and perform installation from using the kiskstart environment:

# qemu-img create -f qcow2 -o preallocation=metadata /path_to_vm/vm1disk.img 10G
# virt-install -n vm1_name -r 2048 --vcpus=2 -v -w bridge:br1,model=virtio --disk path=/path_to_vm/vm1disk.img,device=disk,format=qcow2,bus=virtio,io=native,size=10 -l http://repository_server/repository_path --nographics -x "ks=http://repository_server/anakonda-ks.cfg ksdevice=eth0 ip= netmask= dns= gateway= text console=tty0 utf8 console=ttyS0,115200" --prompt

- http://doc.opensuse.org/products/draft/SLES/SLES-kvm_sd_draft/cha.qemu.running.html
- http://www.cyberciti.biz/faq/kvm-install-centos-redhat-using-kickstart-ks-cfg/
- https://help.ubuntu.com/community/KVM/Networking

Comments: none (click here to reply)    Tags: How-to | Linux | Работа

08/19/2014 15:28

How to regenerate initrd with VirtIO support in VMs

Posted by VladStar

How to regenerate initrd with VirtIO support in VMs under CentOS/RHEL/Oracle Linux:

/sbin/mkinitrd --with virtio_pci --with virtio_blk -f /boot/initrd-$(uname -r).img $(uname -r)

Comments: none (click here to reply)    Tags: How-to | Linux | Работа

08/09/2014 22:57

PXE/kickstart OS installations under RedHat/CentOS/Oracle Linux 6.x

Posted by VladStar

How to set up PXE/kickstart server for automated OS installations under RedHat/CentOS/Oracle Linux 6.x.

This turned out to be a quite long and scary manual... but believe me, it only sounds harder than the actual deal is. Should take about an hour for experienced admins, and may longer for other people, depending on their skills.

You need 3 service components - DHCP/bootpc server (dynamic IP allocations), TFTP server (PXE boot environment), HTTP server (OS repository). In addition, you will need installation Kickstart scripts.

...read full post

Comments: none (click here to reply)    Tags: How-to | Linux | Работа

08/06/2014 16:27

How to configure multipath

Posted by VladStar

How to configure multipath for Dell MD (MD1000/MD3000) storage devices on RedHat/CentOS/Oracle Linux 6.x platforms via YUM:

yum install -y device-mapper-multipath
cat </etc/multipath.conf
defaults {
user_friendly_names yes
path_grouping_policy multibus
/sbin/chkconfig multipathd on
/sbin/service multipathd start

I normally add "mpath" kernel boot option to /etc/grub.conf to make sure Linux kernel auto-detects such devices on boot.

Comments: none (click here to reply)    Tags: How-to | Linux | Работа

07/31/2014 15:27

How to install VNC server on Linux

Posted by VladStar

Below are two simple commands, that cover full installation of VNC server with all necessary X11 desktop support packages on RedHat/CentOS/Oracle Linux 6.x platforms via YUM (found it somewhere on forums and slightly modified for my own needs):
# yum groupinstall -y "Desktop" "Desktop Platform" "Fonts" "General Purpose Desktop" "Graphical Administration Tools" "Input Methods" "KDE Desktop" "Legacy X Window System compatibility" "X Window System"
# yum install -y tigervnc-server

Then you can start VNC server will full desktop support:
# vncserver

Comments: none (click here to reply)    Tags: How-to | Linux | Работа

07/29/2014 12:05

Oracle 11g database installation tweaks

Posted by VladStar

How to to install Oracle 11g database on top of the Oracle Linux 6 (based on my experience).

First, Oracle 11g DB by default was intended to be installed on for Oracle Linux 4. If you want to install it on top of one of the most recent OL versions, prior to running "runInstall" script, you have to change the following line in "stage/cvu/cv/admin/cvu_config" file, i.e.:

Also, when the installer asks you to run "root.sh" - you have to perform the following steps prior to calling it, otherwise this step will fail with "Inappropriate ioctl for device at roothas.pl" message.

(instructions are taken from the following link)

Problem is indeed because of upstart/init incompatibility. Here is the working way:
1) Proceed with the installation as usual until root.sh invocation.
2) Before root.sh edit $GRID_HOME/crs/install/s_crsconfig_lib.pm, go to line 1173 or 1015 (you should find a code like: if ($srv eq "ohasd") { # Start OHASD).
3) Insert a following snippet before starting OHASD part (line 1015 for version 11.2.0)

my $UPSTART_OHASD_SERVICE = "oracle-ohasd";
my $INITCTL = "/sbin/initctl";

($status, @output) = system_cmd_capture ("$INITCTL start $UPSTART_OHASD_SERVICE");
if (0 != $status)
error ("Failed to start $UPSTART_OHASD_SERVICE, error: $!");
return $FAILED;

4) Create a file /etc/init/oracle-ohasd.conf with the following content inside

# Oracle OHASD startup

start on runlevel [35]
stop on runlevel [!35]
exec /etc/init.d/init.ohasd run >/dev/null 2>&1

5) Invoke root.sh
6) Finish the installation.

If you previously ran root.sh (not successfully), simply roll it back:
$GRID_HOME/crs/install/roothas.pl -deconfig -force -verbose
Make changes above and continue.

Comments: none (click here to reply)    Tags: How-to | Oracle db | Работа

Statistics: (last 30 days / total)
Public posts: 0 / 994
Comments: 0 / 2110
Spam comments: 0 / 98



*Объявления* (11)
Dvd (2)
English (2)
Fundraising (1)
Halloween (1)
How-to (6)
KIA (1)
Lego (2)
Linux (5)
Mazda 6 (4)
Oracle db (1)
Outer Banks (5)
VA Beach (1)
Авто (5)
Алкоголь (1)
Америка (408)
Андрей (151)
Аська (1)
Бензин (1)
Бессонница (2)
Бизнес (1)
Бред (3)
Видео (17)
Винда (2)
Влад (159)
Воспоминания (25)
Генеалогия (3)
Годовщина (3)
Дед (5)
Документы (11)
Дом (49)
Доминикана (5)
Дороги (31)
Досуг (47)
Друзья (27)
Еда (3)
Животные (10)
Заправка (1)
Зима (2)
Знакомство (1)
Игры (24)
Интернет (62)
История (4)
Кино (4)
Книги (6)
Компьютер (3)
Компьютеры (69)
Консульство (6)
Конференция (1)
Кофе (1)
Кроссворд (1)
Кулинария (1)
Лена (44)
Лето (1)
Литература (1)
Лифты (1)
Математика (3)
Машины (73)
Медицина (12)
Мексика (1)
Мичиган (1)
Мозаика (1)
Музыка (13)
Налоги (1)
Новости (9)
Новый год (5)
Ностальгия (2)
Океан (1)
Опрос (1)
Отдых (14)
Отпуск (10)
Паспорт (7)
Полиция (1)
Праздники (91)
Природа (94)
Проблемы (7)
Программирование (7)
Псков (6)
Путешествия (56)
Работа (83)
Радио (1)
Радиоэлектроника (5)
Ремонт (6)
Рисование (1)
Робот вася (1)
Рождество (4)
Россия (38)
Русский язык (1)
Ручки (1)
Сатира (1)
Свадьба (3)
Семья (31)
Синклер (1)
Снег (7)
Сны (1)
Софт (2)
Спорт (11)
Ссылки (9)
Стихи (2)
Телевидение (3)
Телефоны (17)
Тесты (2)
Техническое (2)
Финансы (12)
Флорида (2)
Фотография (30)
Хобби (4)
Чай (1)
Часы (1)
Шахматы (4)
Школа (16)
Шопинг (3)
Электроника (5)
Юмор (39)

Server OS is powered by FreeBSD - http://www.freebsd.org/