Categories

How to Install VMware Tools to Centos via YUM repository

I used this to install VMware tools to CentOS 6.2 on ESXi 4.1

Add VMware GPG keys:

rpm –import http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-DSA-KEY.pub rpm –import http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub

Edit /etc/yum.repos.d/vmware-tools.repo:

[vmware-tools] name=VMware Tools baseurl=http://packages.vmware.com/tools/esx/4.1latest/rhel6/$basearch enabled=1 gpgcheck=1

Install VMware Tools:

yum install vmware-open-vm-tools-nox

vCenter should show “Unmanaged” – this means that CentOS package manager is responsible for updates.

How to create Ubuntu 11.04 Natty Narwhal LXC template

First create a network configuration file:

lxc.network.type = veth lxc.network.flags = up lxc.network.link = br0

…and run lxc-create:

root@servukas:~# lxc-create -n natty-lxc-template -t natty -f /tmp/natty-template-network.conf debootstrap is /usr/sbin/debootstrap Checking cache download in /var/cache/lxc/natty/rootfs-amd64 … Downloading ubuntu natty minimal … … Copy /var/cache/lxc/natty/rootfs-amd64 to /var/lib/lxc/natty-lxc-template/rootfs … Copying rootfs to /var/lib/lxc/natty-lxc-template/rootfs …Please change root-password ! . . . → Read More: How to create Ubuntu 11.04 Natty Narwhal LXC template

How to install Windows 3.11 to VirtualBox on Ubuntu

Why? Because it is funny :) . . . → Read More: How to install Windows 3.11 to VirtualBox on Ubuntu

How to make MS-DOS 6.22 to stop consuming 100% CPU in VirtualBox on Ubuntu

So you have a MS-DOS installed to a virtual machine on your super new multicore computer and it consumes 100% of your CPU (well… 100% of one core actually…)? . . . → Read More: How to make MS-DOS 6.22 to stop consuming 100% CPU in VirtualBox on Ubuntu

How to install MS-DOS 6.22 to VirtualBox on Ubuntu

Why? Because it is funny :) . . . → Read More: How to install MS-DOS 6.22 to VirtualBox on Ubuntu

“mknod: `/lib/udev/devices/ppp’: Operation not permitted” when updating Ubuntu 10.04 on virtual LXC machine

Today I wanted to update my virtual LXC Ubuntu and I got an error: mknod: `/lib/udev/devices/ppp’: Operation not permitted . . . → Read More: “mknod: `/lib/udev/devices/ppp’: Operation not permitted” when updating Ubuntu 10.04 on virtual LXC machine

How to solve Redmine error “Permission denied – /etc/redmine/default/session.yml” on Ubuntu 10.04

After installing Redmine on Ubuntu 10.04 Lucid Lynx from repositories (apt-get install redmine redmine-mysql) I got an error: Permission denied – /etc/redmine/default/session.yml . . . → Read More: How to solve Redmine error “Permission denied – /etc/redmine/default/session.yml” on Ubuntu 10.04

Workaround “/usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?)” on diskless Ubuntu

When trying to “aptitude upgrade” a diskless Ubuntu 10.04 machine I gen an arror:

update-initramfs: Generating /boot/initrd.img-2.6.32-23-generic Running postinst hook script /usr/sbin/update-grub. /usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?). User postinst hook script [/usr/sbin/update-grub] exited with value 1 dpkg: error processing linux-image-2.6.32-23-generic (–configure): subprocess installed post-installation script returned error exit . . . → Read More: Workaround “/usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?)” on diskless Ubuntu

KVM failed to start with error: internal error unable to start guest: chardev: opening backend “pty” failed

This is just a quick workaround.

After restarting my Ubuntu 10.04 server KVM virtual machines didn’t start. Tried manually:

virsh # start saturn error: Failed to start domain saturn error: internal error unable to start guest: chardev: opening backend “pty” failed

I needed a fast solution. Very fast googling and this gave me a . . . → Read More: KVM failed to start with error: internal error unable to start guest: chardev: opening backend “pty” failed

Convert Many Filenames Encoding with convmv to UTF8

Today I had to convert almost 5000 filenames with international symbols to UTF8. Some Googling and convmv (mirror) helped me. It is a very useful utility written in perl. Used it on Solaris and Ubuntu Linux.