Converting Sun Virtualbox vmi file To Vmware vmdk file

2 comments

This article show you how to convert Sun Virtualbox vmi file to Vmware vmdk file. Recently I have started using Ubuntu as my desktop in my company. And installed Sun Virtualbox for test VMs. But most of the people have vmplayer installed. So they donot know how to use this vmi images on a windows box. So here is a solution for converting those vdi image files to VMware .vmdk images.

When we install Sun Virtualbox we have so many command lines tools installed along with it. One good tool is VBoxManage, Please remember commands in Linux are case sensitive. So if you try to type vboxmange it will not work. You have to type exactly as VBoxManage.

Step1 : Convert from vdi to raw.
#VBoxManage internalcommands converttoraw /data/Vm-images/ubuntu-vm.vdi /data/Vm-images/ubuntu.raw

Step2 : Now install qemu, which is used to convert .raw files to .vmdk
#apt-get install qemu

Step3 : Convert .raw files to .vdmk using qemu-img command
#qemu-img convert -O vmdk /data/Vm-images/ubuntu.raw /data/Vm-images/ubuntu.vmdknow try to access this .vmdk file using your VMware workstation or VMware player.

So what about viseversa?here there are two methods are there
1. By default your Sun Virtualbox will support .vmdk vmware images.
2. If its not supported use the following way.

Step1 : Use again qemu-img to convert .vmdk disk to .rawqemu-img convert ubuntu.vmdk /tmp/ubuntu.raw

Step2 : VBoxManage convertdd /tmp/ubuntu.raw ubuntu.vdiplease share your thoughts.

  • Like the post? Please Subscribe to free RSS feed to get updates
  • File Types In Linux

    0 comments

    "How many types of files are there and what are they?" This is a common question to every person who started learing Linux.

    Why is this so much important to know file types?
    Ans : This is because Linux will consider every thing as files. The Answer to this question is little bit confusing with different answers.

    Let me put it in this way to clarify. By default Unix have only 3 types of files..
    They are.


    1. Regular files
    2. Directory files
    3. Special files(This is the file type who is the culprit for different answers. This catagory is having 5 sub types.)


    So Total file types in Linux are 7. Remeber I am saying in linux there are only 7 types of files but if it comes to unix it is 8 types.

    Here are those files. And you can see the file type indication at leftmost part of “ls -l” command
    1. Regular file(-)
    2. Directory files(d)
    Special files
    3. Block file(b)
    4. Character device file(c)
    5. Named pipe file or just a pipe file(p)
    6. Symbolic link file(l)
    7. Socket file(s)


    For your information there is one more file called door files(D) which is present in Sun Solaris. A door is a special file for inter-process communication between a client and server(so total 8 types in Unix machines.).

    Regular files : These are the files are indicated with "-" in ls -l output. And these files are.1. Readable files or
    2. A binary files or

    3. Image files or
    4. Compressed files etc.

    How to create them?
    Ans : Use touch command.

    Example listing of regular files :-rw-r--r-- 1 krishna krishna 20986522 2010-01-31 13:48 test.wmv

    -rw-r--r-- 1 krishna krishna 173448 2010-01-30 21:20 Transformers-Teaser-Wallpaper-310.jpg


    -r-xr-xr-x 1 root root 135168 2009-12-12 19:14 VIDEO_TS.VOB

    -rw-r--r-- 1 krishna krishna 2113536 2009-12-01 13:32 Aditya 365 – Janavule.mp3

    -rwxrwxrwx 1 root root 168 2010-02-14 14:12 xyz.sh


    Directory files : These contains the name and location of files/folders/special files stored on a physical device. And this type of files will be in blue in color.

    How to create them?
    Ans : Use mkdir command


    Example listing of directories.drwxr-xr-x 2 surendra surendra 4096 2010-01-19 18:37 bin
    drwxr-xr-x 5 surendra surendra 4096 2010-02-15 18:46 Desktop
    drwxr-xr-x 2 surendra surendra 4096 2010-01-18 14:36 Documents
    drwxr-xr-x 2 surendra surendra 4096 2010-02-13 17:45 Downloads


    Block files : These files are hardware files most are present in /dev

    How to create them?
    Ans : Use fdisk command or create virtual partition.

    Example listing of Block files(for you to see these file, they are located in /dev).
    brw-rw---- 1 root disk 8, 1 2010-02-15 09:35 sda1
    brw-rw---- 1 root disk 8, 2 2010-02-15 09:35 sda2
    brw-rw---- 1 root disk 8, 5 2010-02-15 09:35 sda5


    Character devices files : Provide only a serial stream of input or output.

    Example listing of character files(located in /dev)
    crw-rw-rw- 1 root tty 5, 0 2010-02-15 16:52 tty
    crw--w---- 1 root root 4, 0 2010-02-15 09:35 tty0
    crw------- 1 root root 4, 1 2010-02-15 09:35 tty1


    Pipe files : The other sort of pipe is a “named” pipe, which is sometimes called a FIFO. FIFO stands for “First In, First Out” and refers to the property that the order of bytes going in is the same coming out. The “name” of a named pipe is actually a file name within the file system. --www.linux.com

    How to create them?Ans : Use mkfifo command.
    Example listing of pipe files
    prw-r----- 1 root root 0 2010-02-15 09:35 /dev/.initramfs/usplash_outfifo
    prw-r----- 1 root root 0 2010-02-15 09:35 /dev/.initramfs/usplash_fifo
    prw------- 1 syslog syslog 0 2010-02-15 15:38 /var/run/rsyslog/kmsg


    Sybolic link files : These are linked files to other files.

    How to create them?
    Ans : use ln command

    Example listing of linked files
    lrwxrwxrwx 1 root root 24 2010-02-15 09:35 sndstat -> /proc/asound/oss/sndstat
    lrwxrwxrwx 1 root root 15 2010-02-15 09:35 stderr -> /proc/self/fd/2
    lrwxrwxrwx 1 root root 15 2010-02-15 09:35 stdin -> /proc/self/fd/0
    lrwxrwxrwx 1 root root 15 2010-02-15 09:35 stdout -> /proc/self/fd/1


    Socket files : A socket file is used to pass information between applications for communication purpose

    How to create them?
    Ans : You can create a socket file using socket() system call avialable under

    Example
    int sockfd = socket(AF_INET, SOCK_STREAM, 0);
    You can refer to this socket file using the sockfd. This is same as the file descriptor, and you can use read(), write() system calls to read and write from the socket.

    Example listing of socket files.
    srw-rw-rw- 1 root root 0 2010-02-15 09:35 /dev/log
    srwxrwxrwx 1 root root 0 2010-02-15 10:07 /var/run/cups/cups.sock
    srwxrwxrwx 1 root root 0 2010-02-15 09:35 /var/run/samba/winbindd_privileged/pipe
    srwxrwxrwx 1 mysql mysql 0 2010-02-15 09:35 /var/run/mysqld/mysqld.sock


    A tip for you guys.
    How to find your desired type of a file ?Ans : Use find command with -type option.

    For example if you want to find socket file, just use below command.
    find / -type sIf you want to find linked file then how?Find / -type l

    Thats it.. You got it.. :) Enjoy reading..

  • Like the post? Please Subscribe to free RSS feed to get updates
  • How to : Confiugre Pidgin To Connect Microsoft OCS/LCS IM Server

    2 comments

    Note:I am seeing so many people visiting this page, but leaving early.. please feel free to comment at comment section what problems you faced in installing PIDGIN, i am very much interested in helping you..

    Good news for all the Linux lovers who are working in Corporate companies where most of the communication is through Microsoft OCS(Office Communicator Software)/IBM Same time IM clients. OCS is primarily used for IM communications, but if you want to use OCS in Linux its not possible till this point. Recently Pidgin started supporting SIP(Session Initiation Protocol) Protocol. So for the people how know about MS OCS. Here is the short notes for you.

    MS OCS is a properitery software is an enterprise real-time communications server, providing the infrastructure for enterprise instant messaging, presence, file transfer, Peer to peer and multiparty voice and video calling, ad hoc and structured conferences (audio, video and web) and PSTN connectivity. These features are available within an organization, between organizations, and with external users on the public internet, or standard phones, on the PSTN as well as SIP trunking.


    --Wikipedia.org
    Its little bit tricky to install and use it. Here are the steps how to accomplish this.

    Note : By default Pidgin will not support MS OCS. We require a third party (
    pidgin-sipe) to accesses MS OCS.

    Step1 : Check if pidgin is installed or not, From Ubuntu9.10 pidgin is removed as default IM client. So you have to install it.

    Installation in Ubuntu :
    #apt-get install pidgin

    Installing in Redhat/Fedora/CentOS :
    #yum install pidgin

    Step2 : Install
    Pidgin-sipe plugin

    Installation in Ubuntu :
    #apt-get install pidgin-sipe

    Installation in Redhat/Fedora/CentOS :
    I am not sure if its included in Fedora/Redhat/CentOS repos. If you get error in installing through YUM, install it through source package.
    #yum install pidgin-sipe
    or
    Download source from Soruceforge
    here.
    #mkdir ~/temp
    #cd ~/temp
    #wget http://sourceforge.net/projects/sipe/files/sipe/pidgin-sipe-1.8.0/pidgin-sipe-1.8.0.tar.gz/download
    #tar xvfz pidgin-sipe-1.8.0.tar.gz#cd pidgin-sipe
    #./configure;make;make install

    Step3 : Most of the time when you install software/packages in Linux you no need to restart the mechine. But this addon/plugin to work you have to restart your machine(its my observation, if its works without restart its good).

    Step4 : Configuring Pidgin to support OCS.

    Go to Applications
    __Internet
    __Pidgin instant messanger
    __Accounts
    __Manage Accounts
    __Add
















    Here is the screen shots what you have to do from here.


































    Enjoy using MS OCS in linux.








  • Like the post? Please Subscribe to free RSS feed to get updates
  • Archive

    Translate this page

     

    The Linux Juggernaut | Copyright 2006-2009 Surendra Kumar Anne | Surendra's Home Page | Give us feedback how we are doing, Click here