Copying VM from one machine to another

From Nuclear Physics Group Documentation Pages
Revision as of 17:38, 22 December 2009 by Tbow (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Not completed yet. First click Virtual Machine from the menu and select Add Virtual Machine to Inventory. Browse through and find the VM you want to add and select the .vmx file in the directory.

When you hit Power On you will get a message giving you two options to choose from when copying a VM from machine to machine and then starting that VM: I moved it I copied it

I moved it If you pick "I moved it" it preserves everything in the VM and as long as the VMWare server configuration is identical between the two machines the VM will start with no problems.

NOTE: If you copy the VM while it is running make sure to run

     rm -rf *.vmem *.lck in the copied directory before starting the VM

I copied it This will give you some trouble because when you copy the virtual machine and tell it you copied it, VMWare server will try to reconfigure things, and it will change the MAC addresses on the virtual interface. You can change the MAC on each interface in the main configuration of the machine on VMWare server. The easiest way is to go into the virtual console and recreate the interface files in /etc/sysconfig/network-scripts. In fedora 11 you can't login into the gui as root, so with the focus on the console just hit Ctrl-Alt-F1-9. NOTE:If interfaces don't come up then this may be due to a mismatch

    in MAC addresses and correcting the MACs in /etc/sysconfig/
    network-scripts sometimes will not work.  I found by going into
    /etc/udev/rules.d/70-persistent-net.rules and changing the eth0
    and eth1 MACs.  I was also lead to udev by doing a
    dmesg|grep eth and you will see something like "eth1 being renamed to eth4".