Friday, March 29, 2013

Move Virtual Box Virtual Machines to New Server/Location

Step 1: Locate and move the Virtual Machine
You will be looking for a .vdi file. The location of this file will depend upon the host platform. On Linux host, the file will be found in ~/VirtualBox VMs.

On Mac Host, the file will be found in Go>Home>VirtualBox VMs

Within that directory, you will find sub-directories of all your virtual machines. Within the virtual machine directory in question, you will find the .vdi file — that is, the file that must be moved to the new host. Copy that file to an external or shared drive and then copy it onto the new host (the location doesn’t matter).


Step 2: Create a new virtual machine
The process of creating the new virtual machine will be the same as if you were creating a standard virtual machine until you get to the Virtual Hard Disk creation screen (Figure-1). You will select Use Existing Hard Disk, click the folder icon, navigate to the newly copied .vdi file, select the file in question, and then click Next.



Step 3: Copy All MAC addressess
When you move your VM to new location it is good to copy your network card MAC address from Old Virtual Box and past into new Virtual Box virtual machine, For doing this you will not face any complicated network connectivity issue after starting your machine.

Follow the step below:

1..Select newly created Virtual machine in virtual box.
2..Click on setting
3..Click on Network
4..Delete existing MAC address and Past the same mac address as it was in old Virtual Box VM.
5..Do it with all network Cards.
6..Also make same setting for network like "NAT or Bridge" etc.


------------------------------------------------------------------------------------------------------


Since your mac address have changed you no longer have an interface called eth0, this name is reserved for an interface with the "old" mac-address. The "new" interface should have the next free name (eg. ethN).


To see all the interfaces on the machine you can use this command:

ifconfig -a

If you want to reset the name reservations for network interfaces you can remove the file

/etc/udev/rules.d/70-persistent-net.rules

and restart the machine (or remove/insert the device, though this is not possible in this case).

Alternatively you can change the interface-name that you have configured to what ever the new one is called by changing all occurences of the old name with the new one in the file


/etc/network/interfaces

Saturday, March 23, 2013

How to mount Folder into the folder from another Drive folder in Windows 7

A symbolic link is a reference to another file or folder on your drive. Symbolic links or short symlinks are originally a linux-only feature, but since 2000 Windows supports them too. The difference between symbolic links and junction points is that a symbolic link can also point to a file or remote SMB network path (which means that you can also create cross-system symlinks, which could come in handy in a network if you don’t want to copy all of the files). Let’s say you want to launch a game or application from another PC, normally, you’d have to copy it to your own PC, but with symlinks you can launch it as long as you are connected to the other PC.

 Create & Remove Junction Points in Windows 7

Download Junction v1.05 for Windows
Copy it somewhere e.g. to \windows\system32\
You can then create junction points via the command line:
CD: C:\Windows\system32
junction.exe “c:\new folder” “d:\path\real folder”
Remove junction points:
junction.exe -d “c:\new folder”




Friday, March 22, 2013

How do you mount a directory as a drive in Windows 7?

How do you mount a directory as a drive in Windows 7?
---------------------------------------------------------
If you have touched DOS before, you might still remember what this old school command subst

is all about. It is a command used for substituting local paths on physical and logical

drives, known as virtual drives. For example, if you want to have a logical drive N: mapped

to a local folder on your computer, say c:\temp, you can simply use the following command to

make it.

    subst N: c:\temp

If you want to have it permanent, there is a really nasty and hidden trick, creating a new

key in the registry.

You have to go to

HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\DOS Devices

and there create a key named with the drive letter you want, colon included
(N: in our example) and with this value:

\??\c:\\windows


you can obviously change c: and windows for whatever folder you want, but remember to double the backslash after the unit letter, because it won’t work with a single backslash.
Reboot and enjoy your new N: :)

To Delete the subst drive

subst X: /d


TIP:
There is also a great freeware utility called Visual Subst to make things even easier:












How do you mount a directory as a drive in Windows 7?

How do you mount a directory as a drive in Windows 7?
---------------------------------------------------------
If you have touched DOS before, you might still remember what this old school command subst

is all about. It is a command used for substituting local paths on physical and logical

drives, known as virtual drives. For example, if you want to have a logical drive N: mapped

to a local folder on your computer, say c:\temp, you can simply use the following command to

make it.

    subst N: c:\temp

If you want to have it permanent, there is a really nasty and hidden trick, creating a new

key in the registry.

You have to go to

HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\DOS Devices

and there create a key named with the drive letter you want, colon included
(N: in our example) and with this value:

\??\c:\\windows


you can obviously change c: and windows for whatever folder you want, but remember to double the backslash after the unit letter, because it won’t work with a single backslash.
Reboot and enjoy your new N: :)

To Delete the subst drive

subst X: /d


TIP:
There is also a great freeware utility called Visual Subst to make things even easier:












HOW TO SHARE EXTERNAL HARD DRIVE FROM MAC OS X TO LINUX UBUNTU

IN MAC
---------
To Enable file sharing:
-----------------------
1..From the Apple drop-down list, select System Preferences....
2..Click the Sharing icon.
3..In Mac OS X select 10.4 select the Services tab.
4..Check on "File Sharing" and "Remote Log in"
5..When finished, close the Sharing window.

To check Username (administrator) of External Drive
----------------------------------------------------
1..Right Click on External Exp drive
2..Click on Get info
3..Click Under the Sharing and Permission
(Note supper username for this External hard drive that is usually your admin and password)


IN UBUNTU
--------------
1..$sudo apt-get install sshfs
2..Go to Places and click "Connect to Server"
3..From the "Type" select ssh
4..in the Server put IP of your remote server
5..in the user detail put username and password of the remote server
6..Click connect
7..Done

NOW YOU CAN BROWS/COPY/PAST THE WHOLE REMOTE COMPUTER AND ITS DRIVES AS YOU CAN IN UBUNTU.