Convert Virtualbox .vdi to VMware .vmdk
I love VirtualBox because is fast and without a lot overhead. But network bridging is kind of pain in the ass with VirtualBox . I hope they change this fast. Anyways I had to convert my VirtualBox images to the VMware file format. This is easily done with qemu-img a nice tool bundled with qemu. It can handle several file formats:
Supported format: qcow2 vvfat vpc bochs dmg cloop vmdk qcow host_device raw
So you could convert some other stuff too. Converting is easily done (this example is for Linux by using qemu on centos):
qemu-img convert -O vmdk hdd.vdi hdd.vmdk
In this case we convert the disk hdd.vdi to hdd.vmdk. The input format is detected automatically but can be overridden by adding -f switch. Output is vmdk as given with the -O switch.
from:
http://www.xgrr.de/wordpress/2008/02/25/convert-virtualbox-vdi-to-vmware...
By far the most messy thing on CentOS 5.2 is adding Oracle's Java. I have never found great success from the different packages that are out there for installing java. I prefer to simply use the packages from Oracle.
Step (1) : Visit Oracle web site and download the latest version of Java (the *.bin file not the *-rpm.bin) (http://java.sun.com/javase/downloads/index.jsp)(pay close attention if you want the 32bit or 64bit version)
Step (2) :
[user@www]# cd /opt/
[user@www]# wget "[GIANT_SUN_URL_TO_GET_THE_JAVA_BIN_FILE_x64_IN_THIS_CASE]"
[user@www]# /bin/sh jdk-6u7-linux-x64.bin
Step (3) : Setup the alternatives correctly
[user@www]# alternatives --install /usr/bin/java java /opt/jdk1.6.0_07/bin/java 2
[user@www]# alternatives --config java
There are 2 programs which provide 'java'.
Selection Command
-----------------------------------------------
*+ 1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java
2 /opt/jdk1.6.0_07/bin/java
This tutorial explains how to install and configure RHEL6 to run as Xen dom0 (host), running Xen hypervisor 4.0. Note that this is unsupported by Redhat! See the end of the wiki page for more information about upcoming yum binary rpm repository etc.
As a default RHEL6 does NOT:
* RHEL6 does not ship Xen hypervisor or tools.
* RHEL6 does not ship Xen dom0 capable kernel.
As a default RHEL6 DOES:
* RHEL6 runs as Xen PV (paravirtual) domU using the pvops framework in the default kernel.
* RHEL6 runs as Xen HVM (fully virtualized) guest.
* RHEL6 ships with optimized Xen PV-on-HVM drivers for RHEL6 Xen HVM guests.
Topics in this tutorial:
* How to install and configure RHEL6 system for running as Xen dom0 (host).
* How to get Xen src.rpm from Fedora and rebuild and install it on RHEL6.
* How to install upstream Xen dom0 capable kernel on RHEL6.
* How to update the dom0 kernel to a newer version from the upstream git tree.
A while ago I thought it would be a good idea to make a backup of my Linux server by just dumping the complete disk to a file. In retrospect, it would have been much easier had I just dumped the individual filesystems.
When I finally got around to using this backup, long after the 10GB disk had perished I realized that to use the loopback device to mount a filesystem it actually needs a filesystem to mount. What I had was a disk image, including partition table and individual partitions. To further complicate matters the data partition was also not the first partition inside this image.
For reference, I created this image using the Unix ‘dd’ tool:
Today I’ll be showing you how to monitor MySQL with Munin on a DirectAdmin platform. I’ve tested this setup for a customer on a CentOS box. It should be fairly easy to adapt this to Debian. You probably won’t even need to change credentials at all on a Debian box given the fact that it has an /etc/mysql/debian.cnf file by default. Although I’m not sure DirectAdmin puts it to good use. Any Debian/DirectAdmin users out there? Feel free to comment.
Let’s start off by checking the proper MySQL login credentials on our CentOS/RHEL box:
From time to time I work on remote servers and some times it would be very useful to be able to mount the remote file system on my local machine. Recently I found sshfs, which is a filesystem client based on the SSH File Transfer Protocol and since most *nix like servers; Linux, FreeBSD, NetBSD, OpenBSD servers with OpenSSH installed already support this protocol it is very easy to set up – Read: on the server side there’s nothing to do, setup or configure. On the client side mounting the filesystem is as easy as logging into the server with SSH.
Win4lin, KVM, QEMU, Virtualbox and Xen are all widely used technologies, used in virtual servers. Fairly often a virtual server run from within a loop filesystem and generally start with a fairly small file (1GB is big for a normal file, but not when it is pretending to be an entire filesystem!)
I set out to accomplish a (seemingly) simple task: Install CentOS 5.4 with KVM Virtualization on a system and then create a CentOS 5.4 KVM VM with virtio Net and Disk drivers.
It turns out that there is more to this task than meets the eye. So, here’s my step by step procedure.
Step 1: Install Centos (Redhat 5.4) with KVM Virtualization on a Intel VT or AMD Pacifica enabled server (I used a Intel Core 2 Duo E6420/2GB/120GB SATA system)
rpm --import http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing
cd /etc/yum.repos.d
wget http://dev.centos.org/centos/5/CentOS-Testing.repo
yum --disablerepo=* --enablerepo=c5-testing update php
There are many guys asking me how to install OpenVPN on CentOS 5.2/5.4. I have a server with that system (minimal installation) exactly and I cannot find an all correct guide for this setup step. So I decide to write this post.
You cannot count on the post to explain what OpenVPN is. But if you just wanna a simple guide for installation, you’ve got it.
Preparation:
1 A server running with CentOS 5.2/5.4. I don’t know which services you’ve installed, so I have to install all necessary components by bash command. You can skip that command if you know that is installed.
2 A KVM, an SSH client or another way to connect to your server.
3 You must know how to use tool vi to edit file.
Setup guide: