Hey,
I cloned a Mandriva Linux 2006 VM using Workstation 6.0, and the resulting clone has the same IP address.
Is there a way that i can "change" this? I'm trying to test out some basic features of VM's and VMware.
Basically, can I clone a VM and give it a different IP address? If so, how?
Thanks,
Sean
Where can i edit the hostname & IP?
In the Guest OS.
If you are using DHCP, so long as you have a different MAC address, the DHCP server will automatically issue a different IP address.
Hi Sean,
You will need to just change the hostname & IP within the guest OS when making a clone.
hmm, well when i do a clone (maybe i'm doing this wrong)
I just click on the VM i want and click "Clone this virtual machine"
A wizard pops up and asks me several questions:
\- Clone from current state or previous snapshot (I choose current state)
\- Linked Vs. Full clone (I choose full clone because i want it to be independent)
\- To name the VM (I named it something different)
And then it starts to clone!
Where can i edit the hostname & IP?
Where can i edit the hostname & IP?
In the Guest OS.
If you are using DHCP, so long as you have a different MAC address, the DHCP server will automatically issue a different IP address.
I have it setup with DHCP enabled...
But the computer I'm running this on is a standalone one
(Not connected to the internet, and not connected to any networks)
I'm not sure if that would affect things?
They are both Mandriva Linux 2006 VM's, and i ran the "ifconfig" command in both of them and it printed out their IP addresses, which both came up as the same.
You could edit the file /etc/sysconfig/network-scripts/ifcfg-eth0 and change the value of IPADDR in your Mandriva guest OS, but I am sure that Mandriva has a GUI to enter this information.
The VMware clone process is not going to do this for you. This is a manual process that you will need to perform in the guest OS.
A few things... So I open the file and there are only three lines:
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
I don't see a IPADDR line, unless you want me to manually type in:
"IPADDR=192.-.-.--" ...or something?
In addition, I see how it makes sense that you could manually edit the IP address, but if i wanted to mass produce VM's for "my company" and have each computer setup using a clone of the same VM, I'd have to manually change the IP address of every one of them?
(Or run some sort of a script to do it?)
Ok. I think I may have figured it out.
\- If you setup the ethernet setting as "custom" (choose desired VMnet#)
\- Then go, Edit : Virtual Network Settings... : DHCP
\- Then click on the VMnet# you chose and select properties
This tells you the Start/End IP Addresses.
The DHCP IP Address for the two virtual machines are impossible to be the same, right?
Also if you select "Host Virtual Network Mapping" and click on the ">" and select "subnet" for the VMnet# you chose, this tells you a specific IP Address and Subnet Mask.
Whereas if u click "NAT" (or click on the NAT tab on the top and click edit) I believe it tells you the specific IP Address of your VMnet#... If i understand correctly.
Do I need to configure two seperate VMnet#'s for the two different VM's in order to ensure they have different IP addresses (and be able to check them)?
I'm assuming this is what you want to see... if not please let me know!
Main VM:
