Category: Linux

  • Racktable, Apache+LDAP authentication

    Login to the Rack tables as admin: Add the following line under configuration–> permission allow {$tab_default} * This is for read only account, assign extra permissions if required Configure Apache + LDAP < Directory /var/www/racktables > Options +Indexes FollowSymLinks MultiViews DirectoryIndex index.php AuthName “Rack Tables” AuthType Basic AuthBasicProvider ldap AuthzLDAPAuthoritative on AuthLDAPURL “ldaps://ldaphost.com/dc=company,dc=com?uid?sub?(objectClass=< depends_on_ldap >)”…

  • Rsnapshot Lchown

    # rsnapshot du localhost require Lchown Lchown module not found Install the Lchown module: # wget http://www.rsnapshot.org/downloads/extras/Lchown-1.00.tar.gz # tar xvzf Lchown-1.00.tar.gz # cd Lchown-1.00 # perl Makefile.PL Checking if your kit is complete… Looks good # make install # rsnapshot du localhost require Lchown Lchown module loaded successfully You can also try installing the module…

  • Install Cpanel on FreeBSD 8.2

    – Install FreeBSD with proper network and file system configuration (Ref:  http://docs.cpanel.net/twiki/bin/view/AllDocumentation/InstallationGuide/Quick-StartInstallationGuide) – Install dependency packages: # pkg_add -r wget # pkg_add -r perl # pkg_add -r rsync (required later for ports sync) # pkg_add -r gmake To Fix: creating glibconfig.h config.status: executing default commands gmake: not found child exited with value 127 Died at…

  • Drupal 7 issue with SQL Mode TRADITIONAL

    PDOException: SQLSTATE[42000]: Syntax error or access violation: 1231 Variable ‘sql_mode’ can’t be set to the value of ‘TRADITIONAL’ in lock_may_be_available() (line 165 of /includes/lock.inc). This was the case when I installed Drupal 7 with Cpanel/Fantastico, the drupal site was displaying the above error. This issue is discussed at drupal issues . try to patch it…

  • Install and configure RSA web agent with Redhat EL5 and Apache

    Login to RSA interface: – Create the apache server as agent host with type web agent – Generate the config file (zip file containing sdconf.rec) from RSA interface, and download to your local machine Login to the web server – Download the RSA web agent installation files from RSA website. # mkdir -p /var/ace –…

  • Performance issues with KVM – Redhat

    The general performance issue with KVM is due to DISK I/O – by default the Redhat KVM guest are created with x86_64 architecuture, if you installed 32 bit operating system change this to i686. <os> <type arch=’i686′ machine=’rhel5.6.0′>hvm</type> <boot dev=’hd’/> – Make sure the hypervisor used is correct in the configuration , either qemu or…

  • yum update, IndexError: tuple index out of range

    If you happen to get this error while updating server with yum update — . . . File “/usr/lib/python2.4/site-packages/M2Crypto/m2urllib2.py”, line 82, in https_open h.request(req.get_method(), req.get_selector(), req.data, headers) File “/usr/lib/python2.4/httplib.py”, line 813, in request if v[0] != 32 or not self.auto_open: IndexError: tuple index out of range — disable the location aware access from rhn. Ref:…

  • Public key authentication with bluecoat proxy

    – Create a key with length maximum 1024 on your machine $ ssh-keygen -t rsa -b 1024 -f filename – ssh to the bluecoat proxy > en # configure terminal #(config) ssh-console #(config ssh-console) inline client-key admin … < paste the key after those three dots > … ./arun

  • Converting LVM virtual machine storage to image

    To convert the LVM disk to qcow2 formatted disk image, Use lvdisplay to get the Logical volume name $ sudo lvdisplay Use qemu-img to convert to the required image format # qemu-img convert -O qcow2 /dev/mapper/lv_name <destination_file>.qcow2 eg: # qemu-img convert -O qcow2 /dev/mapper/disk1 disk1.qcow2 This will be useful to replicate the virtual machines to other…

  • Exporting display over ssh

    To export the display from a remote server over ssh: ssh -X user@host Just made sure that, X11 forwarding is enabled on the sshd_config . Once the connection is made, you can make sure the display is exported using: # echo $DISPLAY localhost:10.0 if the value is empty, make sure you have the necessary package…

  • IPv6 configuration for KVM guests

    It is simple and straight forward to enable IPv6 on KVM guests Configure the host machine with IPv6 Address on the bridge interface cat ifcfg-br0 IPV6INIT=yes IPV6ADDR=xxxx.xx::10 IPV6_DEFAULTGW=xxxx.xx::1 IPV6_AUTOCONF=no Configure the interface on virutal machines with ipv6 address cat ifcfg-eth0 IPV6INIT=yes IPV6ADDR=xxxx.xx::11 IPV6_DEFAULTGW=xxxx.xx::1 IPV6_AUTOCONF=no Add the the necessary firewall rules to ip6tables on the host…

  • NAT with port forwarding on Virtual Box

    You can use the host-only-adapter networking, if you require the virtual machine to be accessible only from the host machine. In this case your virtual machine will not have access to anywhere outside the host. Read more about virtual box networking at http://www.virtualbox.org/manual/ch06.html On the other hand NAT enabled interface can communicate with clients outside…

  • Convert KVM images to Virtual Box (VDI)

    The steps to convert KVM images to VirtualBox’s VDI format, ensuring cross-platform compatibility and a smoother transition. VirtualBox’s VDI (Virtual Disk Image) format comes with several advantages, making it a flexible choice for virtualization: Cross-Platform Compatibility: VDI images can run on Linux, macOS, or Windows, making them versatile and accessible. No Need for Virtualization-Enabled Processors:…

  • KVM image on LVM

    Virtualization has transformed the world of computing, offering flexibility, resource optimization, and cost-effectiveness. We’ll explore the process of converting qcow2/raw images to LVM logical volumes, giving you greater control over your virtualization resources. KVM is an excellent choice for virtualization on Linux, and when paired with LVM, it offers even more benefits. LVM allows you…

  • Virtualization with KVM under Redhat Linux, Migrate VMware virtual images to KVM

    KVM (Kernel Based Virtual Machine) stands out as a powerful, open-source solution that seamlessly integrates with Linux. It offers a cost-effective and efficient way to virtualize your systems without the need for additional licensing costs. In this guide, we’ll walk you through the process of installing KVM, migrating VMware virtual machines to KVM, creating bridge…