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

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

Virtual Windows7 LSI53C895A SCSI Drivers on Qemu (KVM)

Today I installed Windows 7 to a virtual machine. I use Linux Ubuntu 10.04 Lucid Lynx as a host and qemu/KVM for virtualization. Windows was installed to qcow2 image. Later I needed to add a whole physical SATA disk. So I added:

<disk type=’block’ device=’disk’> <source dev=’/dev/sdb’/> <target dev=’hdb’ bus=’scsi’/> </disk>

(dont use bus=’ide’ . . . → Read More: Virtual Windows7 LSI53C895A SCSI Drivers on Qemu (KVM)

How to Fix LXC’s Error: PTY allocation request failed, stdin: is not a tty

I like LXC very much. But this error was killing me for a few days. Google gave me no answer about that.

I have Ubuntu 10.04 Lucid Lynx as a host and as LXC guest. This is what I was getting while trying to ssh to virtual host “hostingas”:

nzn@servukas:~$ ssh root@hostingas root@hostingas’s password: . . . → Read More: How to Fix LXC’s Error: PTY allocation request failed, stdin: is not a tty

How to Create a LXC CentOS Template

Make Your custom CentOS template. . . . → Read More: How to Create a LXC CentOS Template