Exported Virtual Box VM (CentOS 5.5 with Guest Additions Installed) - Success
Imported CentOS VM Successfully on another Windows Machine via Windows Batch
Problem :
VM After Import retains the same Mac Address and gets the same IP as it was exported from, is there a way one can either change / flush the IP & MAC while exporting or after Importing ?
a VBoxManage command may be? Which I can put in a batch file after import ?
Will be grateful for your assistance on this Kind Regards
You can change the macaddress of a machine with
vboxmanage modifyvm VMName --macaddressN macaddress
where
N
is the interface number and macaddress matches the regexp[0-9A-Fa-f][02468ACEace][0-9A-Fa-f]{10}
eg
vboxmanage modifyvm VMName --macaddress1 000027D15bE8
Did you set a static IP address on your base VM ?
EDIT
Based on the discussion below I think you will be better off using
vboxmanage modifyvm VMName --macaddressN auto
Which will set a new mac address once. The machine will then retain that new mac address.
Here is a simple sample script that I created. It may be useful as an example of what you can do.
A little side not there are only 8 network interfaces available for configuration