English | Русский  

RSS feed

Star Family Blog


08/19/2014 15:34

How to deploy KVM virtualization on Linux

Posted by VladStar

Prerequisites:
- 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=192.168.1.200 netmask=255.255.255.0 dns=192.168.1.1 gateway=192.168.1.1 text console=tty0 utf8 console=ttyS0,115200" --prompt


References:
- 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
}
EOF
/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 | Работа


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

Archive:

Tags:

*Объявления* (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)

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