This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
buildcfg:vmware_settings [2012/04/17 18:22] mcb30 |
buildcfg:vmware_settings [2014/01/13 10:42] mcb30 |
||
---|---|---|---|
Line 7: | Line 7: | ||
===== Header file ===== | ===== Header file ===== | ||
- | Configured via ''[[http://git.ipxe.org/ipxe.git/blob/HEAD:/src/config/sideband.h|config/sideband.h]]''. | + | Configured via ''[[http://git.ipxe.org/ipxe.git/blob/HEAD:/src/config/settings.h|config/settings.h]]''. |
===== Examples ===== | ===== Examples ===== | ||
Line 21: | Line 21: | ||
GuestInfo settings can be configured in the ''.vmx'' file that defines the virtual machine. The general syntax for a GuestInfo setting is | GuestInfo settings can be configured in the ''.vmx'' file that defines the virtual machine. The general syntax for a GuestInfo setting is | ||
- | guestinfo.ipxe.<setting>[.<type>] = "<value>" | + | guestinfo.ipxe[.<network device>].<setting name>[.<setting type>] = "<value>" |
- | + | ||
- | or | + | |
- | + | ||
- | guestinfo.ipxe.<network device>.<setting>[.<type>] = "<value>" | + | |
+ | For example: | ||
+ | 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.filename = "http://boot.ipxe.org/demo/boot.php" | ||
+ | guestinfo.ipxe.dns = "192.168.0.1" | ||
+ | | ||
+ | guestinfo.ipxe.scriptlet = "ifopen net0 && chain ${filename}" | ||
===== See also ===== | ===== See also ===== | ||
Line 38: | Line 42: | ||
===== Notes ===== | ===== Notes ===== | ||
+ | You can use an [[:embed|embedded script]] (or the ''[[:cfg:scriptlet]]'' setting) to avoid the use of DHCP. For example, if you define the GuestInfo settings: | ||
+ | |||
+ | 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.filename = "http://boot.ipxe.org/demo/boot.php" | ||
+ | guestinfo.ipxe.dns = "192.168.0.1" | ||
+ | |||
+ | and use the embedded script: | ||
+ | |||
+ | #!ipxe | ||
+ | | ||
+ | ifopen net0 | ||
+ | chain ${filename} | ||
+ | |||
+ | then the virtual machine will be able to boot using the static IP address configured in the ''.vmx'' file. | ||