Acerca de Linux, BSD y notas personales

Archives for February, 2008

compat-libstdc++-33–

compat-libstdc++-33–

 

sudo ./install
Loading…
/home/user/rpms/dpx/v3.10-sp4/lin/x86_64/dplincin: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory

 $ yum install compat-libstdc++-33–

Cisco Catalyst 2960G-48TC 44

Cisco Catalyst 2960G-48TC 44

[Xen-users] Slow network solved.

The solution was as simple as "ethtool -K eth0 tx off" on the domU's and
"ethtool -K eth0 tx on" on the dom0's. After turning the tx checksumming off
the network speed is faster and doesn't seem to be dropping packets at all
anymore.

I hope this saves people some time and I was not having fun at all trying to
fix this problem.
http://lists.xensource.com/archives/html/xen-users/2007-01/msg00460.html

Virtualization Guide

http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Virtualization-en-US/index.html

 

Read more… »

Services to be enabled:
services.msc

Removable Storage
Plug And Play

http://www.nabble.com/How-to-backup-a-Domu-filesystem-(on-LVM)-from-Dom0-on-Fedora-8—td15007716.html

Partition Xen Server

Install Linux OS and Additional Packages

Most of the Linux installation is straightforward, except for the disk configuration. This is explained in some detail.

1. Boot the first Linux CD/DVD and start the installation.

2. The installation procedure will help you partition the disk. We suggest that the disk be partitioned using LVM. Put Linux in the first Volume Group, and create a second Volume Group for Guest VMs.

3. When you get to the Disk Setup page, you will need to make some changes.

a. Delete LVM Volume Group VolGroup00 – click on it and then select Delete

b. Delete /dev/hda2 (of type LVM PV) – This is the big partition that is the rest of the disk besides /boot. Click on it and then select Delete

c. Make a new, smaller LVM PV – Click on New. In the Add Partition dialog box, change the file system type to physical volume (LVM). Make the size such that you have a substantial amount of remaining space in which to install Windows. For instance, on a 40GB disk, I made a 16384MB partition plus a 2048MB swap file + 64MB (partition overhead) = 18496. I made the swap file

twice the physical memory in the system. The remainder of the disk will be used for Guest VM Partitions. Make sure you set it to Fixed Size, and clear force to be a primary partition.

d. Now click on LVM. In the Make LVM Volume Group dialog box, we’re going to add two logical volumes. First add the swap space (file system type = swap) of size 2048, and then add mount point “/” (type ext3) and give it the remaining space.

e. Click on New again to add a new physical volume. Once again, make the file system type physical volume (LVM). I selected Fill to maximum allowable size to be able to use the remainder of the hard drive for guest VMs.

f. Select the newly created partition (/dev/hda3 in my case), and select LVM. Make the volume group name VG_Guests (your choice). You don’t need to add any logical volumes right now.

g. If the partitioning gets confused in some way, just click Back, and then click Next to start the partitioning over again.

4. For example, a sample partitioning scheme for a 40GB disk could be:

Device

Mount Point / RAID / Volume

Type

Size (MB)

LVM Volume Groups

VG_Guests

19520

VolGroup00

18432

LogVol00

Swap

2048

LogVol01

/

ext3

16384

Hard Drives

/dev/hda

/dev/hda1

/boot

ext3

100

/dev/hda2

VolGroup00

LVM PV

18496

/dev/hda3

VG_Guests

LVM PV

19577

5. SELinux must be disabled. We suggest that any firewall be disabled.

6. In addition to the default package set, the X Window System and one of KDE or Gnome should be installed.

7. After the installation has completed, login and install the packages SDL, sysfsutils and bridge-utils if not installed as part of the installation.

 

If you hit CTRL+ALT+Delete your host will go down under CentOS Linux 5.x. The solution is hit CTRL key thrice. Now it will disable CTRL+ALT+Del for host. Next just hit alt+del to complete guest CTRL+ALT+Del cycle.

Alternatively, you can type the following on host to shutdown vps:
xm shutdown myGuestVpsOsName

On a production system it is recommended that you disable the [Ctrl]-[Alt]-[Delete] shutdown. It is configured using /etc/inittab (used by sysv-compatible init process) file. The inittab file describes which processes are started at bootup and during normal operation. You need to open this file and remove (or comment it) ctrlaltdel entry.

Ctrlaltdel specifies the process that will be executed when init receives the SIGINT signal. SIGINT is the symbolic name for the signal thrown by computer programs when a user wishes to interrupt the process, for example reboot/shutdown system using [Ctrl]-[Alt]-[Del].). This means that someone on the system console has pressed the CTRL-ALT-DEL key combination. Typically one wants to execute some sort of shutdown either to get into single-user level or to reboot the machine.

Disable CTRL+ALT+Del keys

Open /etc/inittab file, enter:
# vi /etc/inittab

Search for line that read as follows:
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now

And remove the line or comment out the above line by putting a hash mark (#) in front of it:
# ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now

Save the file and exit to shell promot. Reboot system to take effect or type command:
# init q

Procesor HVM

processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 15
model name      : Intel(R) Xeon(R) CPU            5130  @ 2.00GHz
stepping        : 6
cpu MHz         : 2000.082
cache size      : 4096 KB
physical id     : 0
siblings        : 1
core id         : 0
cpu cores       : 1
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu tsc msr pae mce cx8 apic mtrr mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall lm constant_tsc pni monitor ds_cpl vmx tm2 cx16 xtpr lahf_lm
bogomips        : 5002.72
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management: