Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
howto:vmware [2011/12/06 01:07]
mcb30
howto:vmware [2012/04/17 18:40]
mcb30
Line 4: Line 4:
  
 ===== Selecting the network adapter ===== ===== Selecting the network adapter =====
- 
-{{ :​clipart:​nic.jpeg?​237x222|A network card}} 
  
 VMware is capable of emulating several network adapters: VMware is capable of emulating several network adapters:
 +
 +{{ :​clipart:​nic.jpeg?​237x222|A network card}}
  
 ^ VMware name  ^ iPXE driver name ^ PCI vendor:​device IDs ^ iPXE ROM image      | ^ VMware name  ^ iPXE driver name ^ PCI vendor:​device IDs ^ iPXE ROM image      |
Line 14: Line 14:
 | vlance ​      | pcnet32 ​         | ''​1022:​2000'' ​        | ''​10222000.rom'' ​   | | vlance ​      | pcnet32 ​         | ''​1022:​2000'' ​        | ''​10222000.rom'' ​   |
 | vmxnet ​      | (not supported) ​ | ''​15ad:​0720'' ​        ​| ​                    | | vmxnet ​      | (not supported) ​ | ''​15ad:​0720'' ​        ​| ​                    |
-| vmxnet3 ​     | (not supported)  ​| ''​15ad:​07b0'' ​        ​| ​                    ​|+| vmxnet3 ​     | vmxnet3 ​         ​| ''​15ad:​07b0'' ​        ​| ​''​15ad07b0.rom'' ​   ​|
  
 Select one of the supported network adapters, and ensure that your virtual machine is configured to use this adapter. ​ You can do this by editing the [[http://​kb.vmware.com/​kb/​1714|.vmx file]] that defines your virtual machine, and changing the setting Select one of the supported network adapters, and ensure that your virtual machine is configured to use this adapter. ​ You can do this by editing the [[http://​kb.vmware.com/​kb/​1714|.vmx file]] that defines your virtual machine, and changing the setting
Line 28: Line 28:
 [[:​download|Download]] iPXE and then build ROM images for all of the supported network adapters using: [[:​download|Download]] iPXE and then build ROM images for all of the supported network adapters using:
  
-    make bin/​8086100f.mrom bin/​808610d3.mrom bin/​10222000.rom+    make bin/​8086100f.mrom bin/​808610d3.mrom bin/​10222000.rom bin/​15ad07b0.rom
  
-Copy the iPXE ROM images ''​8086100f.mrom'',​ ''​808610d3.mrom'' ​and ''​10222000.rom''​ to a suitable location (e.g. to the directory ''/​usr/​lib/​vmware/​resources/''​).+Copy the iPXE ROM images ''​8086100f.mrom'',​ ''​808610d3.mrom''​''​10222000.rom''​ and ''​15ad07b0.rom''​ to a suitable location (e.g. to the directory ''/​usr/​lib/​vmware/​resources/''​).
  
 ===== Configuring the virtual machine ===== ===== Configuring the virtual machine =====
Line 41: Line 41:
     nbios.filename = "/​usr/​lib/​vmware/​resources/​10222000.rom"​     nbios.filename = "/​usr/​lib/​vmware/​resources/​10222000.rom"​
     # nxbios.filename = ""​     # nxbios.filename = ""​
-    ​nx3bios.filename = ""​+    nx3bios.filename = "/​usr/​lib/​vmware/​resources/​15ad07b0.rom"
  
 (replacing ''/​usr/​lib/​vmware/​resources/''​ with the name of the directory to which you copied the iPXE ROM images). (replacing ''/​usr/​lib/​vmware/​resources/''​ with the name of the directory to which you copied the iPXE ROM images).
Line 54: Line 54:
  
 {{ :​clipart:​smile.png?​200x200 |Success}} {{ :​clipart:​smile.png?​200x200 |Success}}
 +
 +===== Advanced features =====
 +
 +==== The VMware logfile console ====
 +
 +VMware creates a log file for each virtual machine, which is usually the file ''​vmware.log''​ in the same directory as the virtual machine'​s ''​.vmx''​ file.  You can record the output from iPXE in this log.  For example:
 +
 +    2012-02-28T23:​23:​58.016Z| vmx| I120: Ethernet0 MAC Address: 00:​0c:​29:​3a:​7d:​f2
 +    2012-02-28T23:​23:​59.145Z| vmx| I120: VMX_PowerOn:​ ModuleTable_PowerOn = 1
 +    2012-02-28T23:​23:​59.356Z| vcpu-0| I120: Intel VT enabled.
 +    2012-02-28T23:​23:​59.359Z| vcpu-0| I120: VMM initialized.
 +    2012-02-28T23:​23:​59.362Z| vcpu-0| I120: Monitor has started
 +    2012-02-28T23:​24:​02.775Z| vcpu-0| I120: Guest:
 +    2012-02-28T23:​24:​02.778Z| vcpu-0| I120: Guest: iPXE 1.0.0+ --  http://​ipxe.org
 +    2012-02-28T23:​24:​02.781Z| vcpu-0| I120: Guest: Features: iSCSI HTTP DNS bzImage PXE PXEXT
 +
 +You can record output from iPXE in the VMware log file by enabling the build option ''​[[:​buildcfg:​CONSOLE_VMWARE]]''​.
 +
 +==== VMware GuestInfo settings ====
 +
 +You can configure iPXE settings directly in the virtual machine'​s ''​.vmx''​ file using VMware'​s GuestInfo feature. ​ For example, to configure a static IP address, default gateway, DNS server, and boot filename:
 +
 +    guestinfo.ipxe.net0.ip = "​192.168.0.15"​
 +    guestinfo.ipxe.net0.netmask = "​255.255.255.0"​
 +    guestinfo.ipxe.net0.gateway = "​192.168.0.1"​
 +    guestinfo.ipxe.dns = "​192.168.0.1"​
 +    guestinfo.ipxe.filename = "​http://​boot.ipxe.org/​demo/​boot.php"​
 +
 +This could be used in conjunction with an [[:​embed|embedded script]] to boot without using DHCP.  For example:
 +
 +    #!ipxe
 +    ​
 +    ifopen net0
 +    chain ${filename}
 +
 +You can enable the VMware GuestInfo settings using the build option ''​[[:​buildcfg:​VMWARE_SETTINGS]]''​.
  
howto/vmware.txt ยท Last modified: 2012/07/14 23:36 by mcb30
Recent changes RSS feed CC Attribution-Share Alike 4.0 International Driven by DokuWiki
All uses of this content must include an attribution to the iPXE project and the URL https://ipxe.org
References to "iPXE" may not be altered or removed.