VmWare/QuickReference
From r00tedvw.com wiki
(Difference between revisions)
(→manually assign MAC address to VM) |
|||
Line 20: | Line 20: | ||
==manually assign MAC address to VM== | ==manually assign MAC address to VM== | ||
+ | http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=507 | ||
+ | 1.Open the virtual machine's .vmx configuration file with a text editor. For more information about editing a virtual machine's configuration file (.vmx), see Tips for editing a .vmx file (1714). | ||
− | + | 2.Remove the three lines from the configuration file that begin with: | |
− | + | ||
− | + | ||
ethernetN.generatedAddress | ethernetN.generatedAddress | ||
ethernetN.addressType | ethernetN.addressType | ||
ethernetN.generatedAddressOffset | ethernetN.generatedAddressOffset | ||
− | + | 3.Add a new static MAC address line to the configuration file with help of the following entries: | |
ethernetN.address = "00:50:56:XX:YY:ZZ" | ethernetN.address = "00:50:56:XX:YY:ZZ" | ||
ethernetN.addressType = “static” | ethernetN.addressType = “static” | ||
− | + | 4.Save the configuration file. |
Revision as of 18:57, 28 March 2013
clone
clone virtual machines and copy their own unique vmdk image to folder
- create the new VM choose custom settings
- select the existing Virtual Machine Image (base)
- finish creating
- ssh into box
- copy vmdk using: vmkfstools -i <source> <destination> -d thin (NOT the data file -flat.vmdk)
- when copy is complete, using vi, edit .vmx file in new VM directory. Point the data store (hdd file location) to the new copy that is now in the same folder
- start up VM
- shut down vm, double check and make sure store is showing in the correct location. Virtual Machine > Edit Settings > Hard Disk > review Disk File
notes: until the virtual machine is started for the first time, the Disk File location will still show as the prior location.
add cronjob to esxi 5.1
- edit /etc/rc.local.d/local.sh
/bin/kill $(cat /var/run/crond.pid) /bin/echo '5 0 * * * /full/path/to/script arguments/with/full/path > /full/path/to/logfile 2>&1' >> /var/spool/cron/crontabs/root /bin/busybox crond
manually assign MAC address to VM
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=507 1.Open the virtual machine's .vmx configuration file with a text editor. For more information about editing a virtual machine's configuration file (.vmx), see Tips for editing a .vmx file (1714).
2.Remove the three lines from the configuration file that begin with:
ethernetN.generatedAddress ethernetN.addressType ethernetN.generatedAddressOffset
3.Add a new static MAC address line to the configuration file with help of the following entries:
ethernetN.address = "00:50:56:XX:YY:ZZ" ethernetN.addressType = “static”
4.Save the configuration file.