Thứ Tư, 17 tháng 12, 2014

Howto: Install Xen 4 on CentOS 5 and CentOS 6!

Today we are going to explain how you can do a basic, but upto-date install of Xen on your CentOS 5 or CentOS 6 system ready for use with SolusVM, HyperVM or another control panel.

This is based around packages which I maintain for both distributions including a Dom0 kernel for CentOS 6. Currently I use Xen 4.1.4 and Linux 3.4.xx, with security updates added as and when I get time. Sure there are other places out there to get Xen packages, but more often than not they are untested, out of date or too bleeding edge for production.

Let's get started...

Requirements

* CentOS 5 or CentOS 6 (64Bit Only)
* Appropriate partitioning (Majority of space unallocated and free in a LVM Volume Group)
* Some spare time

CentOS 5


1. Install my GPG key to ensure only signed packages are installed should there ever be an issue with the repo
rpm --import http://repo.smartservermanagement.com/RPM-GPG-KEY-SSM
2. Create a new yum .repo file with your favourite editor:
nano /etc/yum.repos.d/ssm.repo
Next paste in:
[smartservermanagement]
        name=SmartServerManagement Repository
        baseurl=http://repo.smartservermanagement.com/el$releasever/$basearch/
        gpgcheck=1
        enabled=1
3. Install Xen
yum install xen kernel-xen
4. Next we keed to configure grub. Open /etc/grub.conf with your favourite editor:
nano /etc/yum.repos.d/ssm.repo
5. It should look something like the entry below, add the dom0_mem entry to your kernel, depending on how much RAM your server has and how many VPS you intend to host, you should set between 512MB and 4096MB.
title CentOS (2.6.18-348.1.1.el5xen)
        root (hd0,0)
        kernel /boot/xen.gz-4.1.4 dom0_mem=1024m
        module /boot/vmlinuz-2.6.18-348.1.1.el5xen ro root=LABEL=/
        module /boot/initrd-2.6.18-348.1.1.el5xen.img
Note: In some cases you may need to append pci=nomsi to the end of the kernel entry.

6. Once you are happy, check that Xen is set as the first kernel to boot, and restart your system.

CentOS 6

1. Install my GPG key to ensure only signed packages are installed should there ever be an issue with the repo
rpm --import http://repo.smartservermanagement.com/RPM-GPG-KEY-SSM
2. Create a new yum .repo file with your favourite editor:
nano /etc/yum.repos.d/ssm.repo
Next paste in:
[smartservermanagement]
        name=SmartServerManagement Repository
        baseurl=http://repo.smartservermanagement.com/el$releasever/$basearch/
        gpgcheck=1
        enabled=1
3. Install Xen
yum install xen kernel-xen
4. Next we keed to configure grub. Open /etc/grub.conf with your favourite editor:
nano /etc/yum.repos.d/ssm.repo
5. It should look something like the entry below.
title CentOS (3.4.29-1.el6xen.x86_64)
        root (hd0,0)
        kernel /boot/vmlinuz-3.4.29-1.el6xen.x86_64 ro root=UUID=2d68d0d5-985d-496a-88a4-67bb3c8b4a46 rhgb quiet
        initrd /boot/initramfs-3.4.29-1.el6xen.x86_64.img
6. Notice that although our Dom0 capable kernel has been installed, the Xen kernel itself is not automatically added so you need to add this in, then the linux kernel and initrd (ramdisk) become modules of the xen kernel.
Look at our example below.

Pay attention to the path, if your system has a dedicated /boot partition it may just say /<filename> instead of /boot/<filename>
title CentOS (3.4.29-1.el6xen.x86_64)
        root (hd0,0)
        kernel /boot/xen.gz
        module /boot/vmlinuz-3.4.29-1.el6xen.x86_64 ro root=UUID=2d68d0d5-985d-496a-88a4-67bb3c8b4a46 rhgb quiet
        module /boot/initramfs-3.4.29-1.el6xen.x86_64.img
7. Next you need to add your Dom0 memory limit, as on CentOS 5 this is usually between 512M to 4096M depending on the size of your machine and how many VPS you want to host.

On CentOS 6 systems we also need to tell the Linux kernel how much memory it has with the mem= option.
Example (Scroll to the right to see the mem= option:
title CentOS (3.4.29-1.el6xen.x86_64)
        root (hd0,0)
        kernel /boot/xen.gz dom0_mem=1024M
        module /boot/vmlinuz-3.4.29-1.el6xen.x86_64 ro root=UUID=2d68d0d5-985d-496a-88a4-67bb3c8b4a46 rhgb quiet mem=1024M
        module /boot/initramfs-3.4.29-1.el6xen.x86_64.img
Note: I recommend no less than 1GB Dom0 memory for CentOS 6 systems, on some hardware you lose some usable memory due to an addressing bug/issue in the PV_OPS framework. Adding the mem= option onto the Linux kernel helps alleviate that issue but its not 100%.

6. Once you are happy, check that Xen is set as the first kernel to boot, and restart your system.

After your reboot, check to see if Xen is running

Should look something like this...

[root@my ~]# xm info
host                   : my.server.com
release                : 3.4.29-1.el6xen.x86_64
version                : #1 SMP Thu Jan 31 18:21:40 GMT 2013
machine                : x86_64
nr_cpus                : 8
nr_nodes               : 1
cores_per_socket       : 4
threads_per_core       : 2
cpu_mhz                : 3400
hw_caps                : bfebfbff:28100800:00000000:00007f40:73bae3ff:00000000:00000001:00000281
virt_caps              : hvm hvm_directio
total_memory           : 32648
free_memory            : 12634
free_cpus              : 0
xen_major              : 4
xen_minor              : 1
xen_extra              : .4
xen_caps               : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64
xen_scheduler          : credit
xen_pagesize           : 4096
platform_params        : virt_start=0xffff800000000000
xen_changeset          : unavailable
xen_commandline        : dom0_mem=1024M
cc_compiler            : gcc version 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC)
cc_compile_by          : mockbuild
cc_compile_domain      : smartservermanagement.com
cc_compile_date        : Fri Jan 18 13:12:04 GMT 2013
xend_config_format     : 4
Questions / Answers / What to do if you get stuck?

* If you are using CentOS 6, you will be running a kernel newer than most distro's, so you may need to use Pygrub if they fail to boot.

* DHCP does not work for Xen HVM, SolusVM currently doesn't write the configuration for compatibility on CentOS 6. Hopefully this will be addressed eventually.

* If you think you've found a bug, please PM Me with the issue + fix and I will add it in.

* The CentOS 6 kernel is based around a modified version of the RedHat .spec so hardware compatibility should be pretty good, if there is a piece of hardware not supported, let me know.

* This is 100% free, but I dont have time to provide free support for everyone so if you get stuck, post a reply, and I'm sure someone will be able to help. Or drop me a PM and for a small fee I can do the install for you + various other bits and pieces.

Thanks, and happy hosting!

Chris

Chủ Nhật, 7 tháng 12, 2014

How to Enable Audio in Windows VPS?

Problem

It is not necessary to install audio hardware to enable audio for applications installed on a Windows VPS.

Step by Step Guide

1) Enable 'Windows Audio' service

A. RDP connet to your VPS and head to Services MMC (Start > Run > Services.msc);
B. Locate 'Windows Audio' service and start it. (It is recommend changing the 'Startup Type' to 'Automatic')
How to Enable Audio in Windows VPS Step 1

2) modify the Remote Desktop host configurations

A. Go To Start > All Programs > Administrative Tools > Remote Desktop Services > Remote Desktop Session Host Configuration;
B. Under the section labeled 'Connections' select 'RDP-tcp' connection;
C. Right click on the connection and go to 'Properties';
D. Go to the 'Client Settings' tab and un-check both 'Audio and video playback' and 'Audio recording' to enable these features
E. Now you can log off your RDP session to take effect.
How to Enable Audio in Windows VPS Step 21
How to Enable Audio in Windows VPS Step 22 
How to Enable Audio in Windows VPS Step 23

3) Configure RDP client for audio

A. Launch your RDP client. (Start > Run > mstsc)
B. Click on Options and then head to 'Local Resources' tab ;
C. Click on Settings and then ensure that 'Play on this computer' is selected.
How to Enable Audio in Windows VPS Step 31 
How to Enable Audio in Windows VPS Step 32 
How to Enable Audio in Windows VPS Step 33 

Thứ Tư, 19 tháng 11, 2014

The Best Tips Available For Internet Marketing, SEO VPS

With more and more businesses choosing to market their products and services online, it is more important than ever to create and implement effective Internet marketing strategies. If your business needs to improve the efficiency of its current strategy, this selection of handpicked tips and tricks will produce the results that you desire.
When you contact potential or existing customers via email, include a signature in the email. This form of marketing is basically the same as a business card. It should tell them who, what and where about your business thereby giving them a course of action to follow when they have been enticed by your email.