pxe批量安装pxe esxi6.5有风险吗

PXE Boot the ESXi Installer by Using PXELINUX and a PXE Configuration File
PXE Boot the ESXi Installer by Using PXELINUX and a PXE Configuration File
You can use a TFTP server to PXE boot the ESXi installer, using PXELINUX and a PXE configuration file.
Prerequisites
Verify that your environment has the following components:
The ESXi installer ISO image downloaded from the VMware Web site.
TFTP server that supports PXE booting with gPXE. See .
DHCP server configured for PXE booting. See .
Server with a hardware configuration that is supported with ESXi 5.0. See the Hardware Compatibility Guide at .
Network security policies to allow TFTP traffic (UDP port 69)
(Optional) Installation script, the kickstart file. See .
Network adapter with PXE support on the target ESXi host
IPv4 networking. IPv6 is not supported for PXE booting.
Use a native VLAN in most cases. If you want to specify the VLAN ID to be used with PXE booting, check that your NIC supports VLAN ID specification.
1Create the /tftpboot/pxelinux.cfg directory on your TFTP server.
2On the Linux machine, install PXELINUX.
PXELINUX is included in the SYSLINUX package. Extract the files, locate the pxelinux.0 file and copy it to the /tftpboot directory on your TFTP server.
3Configure the DHCP server to send the following information to each client host:
The name or IP address of your TFTP server.
The name of your initial boot file. This is pxelinux.0.
4Copy the contents of the ESXi installer image to the /var/lib/tftpboot directory on the TFTP server.
5(Optional)
For a scripted installation, in the boot.cfg file, add the kernelopt option on the line following the kernel command, to specify the location of the installation script.
Use the following code as a model, where XXX.XXX.XXX.XXX is the IP address of the server where the installation script resides, and esxi_ksFiles is the directory containing the ks.cfg file.
kernelopt=ks=http://XXX.XXX.XXX.XXX/esxi_ksFiles/ks.cfg
6Create a PXE configuration file.
This file defines how the host boots when no operating system is present. The PXE configuration file references the boot files. Use the following code as a model, where XXXXXX is the build number of the ESXi installer image.
DEFAULT menu.c32
MENU TITLE ESXi-5.0.0-XXXXXX-full Boot Menu
TIMEOUT 80
LABEL install
KERNEL mboot.c32
APPEND -c location of boot.cfg
MENU LABEL ESXi-5.0.0-XXXXXX-full ^Installer
LABEL hddboot
LOCALBOOT 0x80
MENU LABEL ^Boot from local disk
7Name the file with the MAC address of the target host machine: 01-mac_address_of_target_ESXi_host.
For example, 01-23-45-67-89-0a-bc.
8Save the PXE configuration file in /tftpboot/pxelinux.cfg on the TFTP server.
9Boot the machine with the network adapter.
Related tasks查看: 10437|回复: 33
vmware esxi盗版风险问题
发表于 4-15-:33
想用,将主机放在内网ip,然后不假设center server
1、这样如果用算号器盗版,vmware公司是否会发现(主机用192地址,用实地址)?
2、如果不用算号器的话(评估版),是不是会有很多限制?
发表于 4-15-:04
如果不用vC,那就没有或者根本不需要高可用特性。
这种情况下,ESXi 5.5免费版足够了 —— ESXi 5.5免费版,现在不限定内存了。
发表于 4-15-:24
如果esxi和vc都在内网,和外网隔离的话,vmware除了上门来差,不可能知道你用的是盗版。
不过如果还用了update manager的话就难说了。
免费版单机用用倒也基本够用,不过如果有多台主机和共享存储的话迟早还要上vc的。
发表于 4-15-:00
如果esxi和vc都在内网,和外网隔离的话,vmware除了上门来差,不可能知道你用的是盗版。
不过如果还用了upd ...
你的意思是vmware无法通过虚拟机的对外http等服务得知你用的事vmware产品?
这个不可能吧&
发表于 4-15-
发表于 4-15-:10
如果不用vC,那就没有或者根本不需要高可用特性。
这种情况下,ESXi 5.5免费版足够了 —— ESXi 5.5免费版 ...
那cpu数量有没有限制?
发表于 4-15-:20
你的意思是vmware无法通过虚拟机的对外http等服务得知你用的事vmware产品?
这个不可能吧
发表于 4-15-:42
本帖最后由 TiGi 于 4-15- 编辑
各种限制, 自己看吧。
发表于 4-15-:13
一般VMWARE还没空来查这玩意,不过就怕万一。
这种风险不应该有IT来承担,还是要看领导层。
生产环境还是用正版吧。用免费版出了问题还是要你自己承担。
发表于 4-15-:26
本帖最后由 seanlaser 于 4-15- 编辑
不用VC,何必盗版?反正那些多出来的功能一个都用不了
vmware hyperwiser 本来就是免费,仅需注册。
没记错的话,我好像有好几个免费版的ESXi正式Key。哈哈。在决定买许可之前,申请了好几个。&
发表于 4-15-
发表于 4-15-:50
中国人,怕什么,先富强起来再按列强的规则来玩吧
发表于 4-16-:24
如果esxi和vc都在内网,和外网隔离的话,vmware除了上门来差,不可能知道你用的是盗版。
不过如果还用了upd ...
别忘了 vm tools,谁知道这个东西有没有偷偷地向 VM 打小报告。除了 ESXi 和 vCenter,还有 VM 可以连互联网啊。
这个可能性极低,vmware不是360,如果这么干,一旦被发现会后果会很严重&
发表于 4-16-
发表于 4-16-:07
免费的还不如上xenserver 6.2
是的啊,不想花钱干嘛不用xenserver,功能不是一样的嘛!&
发表于 4-18-
发表于 4-16-:02
别忘了 vm tools,谁知道这个东西有没有偷偷地向 VM 打小报告。除了 ESXi 和 vCenter,还有 VM 可以连互 ...
这个可能性极低,vmware不是360,如果这么干,一旦被发现会后果会很严重
发表于 4-16-:42
本帖最后由 TiGi 于 4-16- 编辑
理论上,通过软件后门、自动升级组件内的信息报送等途径,发现侵权,(厂商)也不会以此作为直接证据 —— 厂商一般会通过其他途径找证据。
例如:检举 —— 员工对公司不满 —— 不过,这样的员工,被知晓后,今后估计很难找饭碗了;卧底;倒钩(M$比较喜欢这个途径)。
一般厂商有把握用户使用未经授权的软件但是没确切证据,只会发一个不痛不痒的告知函。
如果用后门拿到的凭据要挟用户,就又是一个棱镜门了。。&
发表于 4-16-
发表于 4-16-:20
理论上,通过软件后门、自动升级组件内的信息报送等途径,发现侵权,(厂商)也不会以此作为直接证据 ——&&...
如果用后门拿到的凭据要挟用户,就又是一个棱镜门了。。
发表于 4-16-:55
买了正版的授权
然后算号器
次奥,,大部分单位都这么干~~~&
发表于 5-4-
发表于 4-17-:00
银行都大量用盗版的,你怕什么
发表于 4-17-:10
银行都大量用盗版的,你怕什么
真的嗎?一般小公司,都用正版的m$,大公司還敢用盗版,有種
买一部分授权,,然后~~~&
发表于 5-4-
大公司用盗版的多了,特别是政府!&
发表于 4-18-
发表于 4-18-:53
真的嗎?一般小公司,都用正版的m$,大公司還敢用盗版,有種
大公司用盗版的多了,特别是政府!
花了钱是一回事,用不用是另外一回事。
手上买了一堆KEY,装系统照样来一个什么深度啊雨林木风啊多了去了,不管大公司小公司。
因为M$只管你给钱了没有,给了钱就成!&
发表于 4-18-
政府现在都买正版了吧。每年政府有统一支付的。&
发表于 4-18-
发表于 4-18-:27
免费的还不如上xenserver 6.2
是的啊,不想花钱干嘛不用xenserver,功能不是一样的嘛!
发表于 4-18-:20
大公司用盗版的多了,特别是政府!
花了钱是一回事,用不用是另外一回事。
手上买了一堆KEY,装系统照样来一个什么深度啊雨林木风啊多了去了,不管大公司小公司。
因为M$只管你给钱了没有,给了钱就成!
从许可角度讲,买了相应的许可,然后安装非官方的介质,是可以的。
只有标准版许可,但是安装企业版,这是违规的。
————————————
此外,批量许可、OEM许可,绝大部分情况下,是可以降级的;外加功能版本&
发表于 4-18-
发表于 4-18-:26
花了钱是一回事,用不用是另外一回事。
手上买了一堆KEY,装系统照样来一个什么深度啊雨林木风啊多了去了 ...
从许可角度讲,买了相应的许可,然后安装非官方的介质,是可以的。
只有标准版许可,但是安装企业版,这是违规的。
————————————
此外,批量许可、OEM许可,绝大部分情况下,是可以降级的;外加功能版本的降级权利。所以购买了预装Windows 8.1U1专业版的品牌机,然后跑Windows XP Home w/o SP,也是可以的。
发表于 4-19-:02
生产环境不要盗版,如果真要免费用用xenserver 或openstack
发表于 4-20-:24
freebug 发表于 4-18-
是的啊,不想花钱干嘛不用xenserver,功能不是一样的嘛!
xen的功能还是不够完善哈,如果是我,宁愿用免费的 vSphere Hypervisor 也不想用xen
发表于 5-27-:10
公司就用正版呗,又不是自己的公司,自己玩玩就算了。哈哈,学习用。您好,欢迎访问本站博客!
如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧网站所有资源均来自网络,如有侵权请联系站长删除!
PXE安装ESXI6 注意事项
网站分享代码
&首先要明确一点的是:ESXi系统目前只支持uEFI方式的硬盘、光驱、usb key启动;是不支持uEFI方式的网络启动的,只支持传统BIOS(legacy BIOS firmware)的网络启动!!!老版本的syslinux是基于TFTP来传输所有的启动文件的,这个在跨网段的情况下,传输速度会比较慢gPXE支持通过HTTP和FTP方式传输引导文件前提:提取gpxe\gpxelinux.0、memdisk\memdisk和com32\menu\menu.c32文件放到tftp_root目录下gPXE引导ISO镜像的设置方法直接加载ISO镜像LABEL Mounting ISO installMENU LABEL ^Mounting ISO ESXi-5.0-update02initrd ftp://192.168.123.1/ISO/ESXi5.0.update02.isolinux ftp://192.168.123.1/memdiskappend raw iso1、&修改安装文件中的 boot.cfg添加 prefix=esxi6.5/& 同时将后面 modules=后面的/& 所有的都去掉 2、pexlinux.0引导文件中的default文件中区分大小写& 最好使用esxi中自带的这个& &ISOLINUX.CFG& 这个直接修改,或者对照修改记得将大小写和文件对应======改大小些在线工具: &英文大小写在线转换======否则出现 loading esxi6.0/tboot.b00Error loading esxi6.0/tboot.b00Compressed MD5: Decompressed MD5: Fatal error: 15 (Not found)试过那个 tftp不区分大小写规则 好像没有什么作用(要将目标去不小写 那不是碰到鬼哦)&3、上面是使用pexlinux.0引导 是linux下的tftp模式& 区分大小写&=======& 引导文件决定在dhcp中指定==========如果使用gpxelinux.0引导的话& 就可用ftp://10.233.233.239/esxi/esxi6.0/ftp不区分大小写了4、label Install VMware ESXi& #下面的参数注意区分大小写&& 检查下 menu.c32这些大小写 和esxi目录中的文件一致MENU label ^ Install VMware ESXi 6 from 10.233.233.239& KERNEL& ftp://10.233.233.239/esxi/esxi6.0/MBOOT.C32APPEND -c& ftp://10.233.233.239/esxi/esxi6.0/BOOT.CFGlabel Install VMware ESXiMENU label ^ Install VMware ESXi 6.5 from 10.233.233.239KERNEL& esxi6.5/MBOOT.C32APPEND -c& esxi6.5/BOOT.CFG上面是两种方法的例子#########所有文件的位置都是相对& pxelinux.cfg目录的位置进行指定#################5、default中还需要指定 菜单文件& 就用linux的就行& 不一定要用 esxi的menu.c32 或者 vesamenu.c32 都行 ,用哪个在 pxelinux.cfg 的default中指定如果出现这个错误:menu.c32 not a com32r image& 那就是 就是菜单重复使用的问题 或者的菜单配置大小写的问题&用户名:xiaoli110
文章数:149
评论数:219
访问量:385158
注册日期:
阅读量:1297
阅读量:3317
阅读量:585140
阅读量:470754
51CTO推荐博文
tftp环境的搭建请参考相关资料,操作步骤如下:
1 解压光盘
2 建立/tftpboot/vmware/esx5目录,拷贝光盘全部文件到此目录下
3 在/tftpboot/vmware/esx5下运行
& &ls | awk '{printf(&mv %s %s\n&, $0, tolower($0))|&sh&}'
& 将所有大写文件名转化成小写。
4 编辑/tftpboot/vmware/esx5/boot.cfg文件,内容如下:
bootstate=0
title=Loading ESXi installer
prefix=vmware/esx5
kernel=tboot.b00
modules=b.b00 --- useropts.gz --- k.b00 --- a.b00 --- ata-pata.v00 --- ata-pata.v01 --- ata-pata.v02 --- ata-pata.v03 --- ata-pata.v04 --- ata-pata.v05 --- ata-pata.v06 --- ata-pata.v07 --- block-cc.v00 --- ehci-ehc.v00 --- s.v00 --- weaselin.i00 --- ima-qla4.v00 --- ipmi-ipm.v00 --- ipmi-ipm.v01 --- ipmi-ipm.v02 --- misc-cni.v00 --- misc-dri.v00 --- net-be2n.v00 --- net-bnx2.v00 --- net-bnx2.v01 --- net-cnic.v00 --- net-e100.v00 --- net-e100.v01 --- net-enic.v00 --- net-forc.v00 --- net-igb.v00 --- net-ixgb.v00 --- net-nx-n.v00 --- net-r816.v00 --- net-r816.v01 --- net-s2io.v00 --- net-sky2.v00 --- net-tg3.v00 --- ohci-usb.v00 --- sata-ahc.v00 --- sata-ata.v00 --- sata-sat.v00 --- sata-sat.v01 --- sata-sat.v02 --- sata-sat.v03 --- scsi-aac.v00 --- scsi-adp.v00 --- scsi-aic.v00 --- scsi-bnx.v00 --- scsi-fni.v00 --- scsi-hps.v00 --- scsi-ips.v00 --- scsi-lpf.v00 --- scsi-meg.v00 --- scsi-meg.v01 --- scsi-meg.v02 --- scsi-mpt.v00 --- scsi-mpt.v01 --- scsi-mpt.v02 --- scsi-qla.v00 --- scsi-qla.v01 --- uhci-usb.v00 --- tools.t00 ---imgdb.tgz --- imgpayld.tgz
5 在http目录下创建esxi5ks.cfg文件,内容如下:
#Accept the VMware End User License Agreement
accepteula
# Set the root password for the DCUI and Tech Support Mode
rootpw 123456
clearpart --firstdisk --overwritevmfs
#Part disk
#install --firstdisk=local &--overwritevmfs
install --firstdisk --overwritevmfs
#Set the network to DHCP IP on the first network adapater
network --bootproto=dhcp --device=vmnic0
#Final reboot
6 编辑/tftpboot/pxelinux.cfg/default 增加vmware相关内容:
label vmware5
menu label [^5] &Boot VMware ESXi 5.0
kernel vmware/esx5/mboot.c32
append -c vmware/esx5/boot.cfg &ks=http://192.168.0.1/esxi5ks.cfg
参考文档:
/files/pdf/techpaper/vSphere-5-ESXi-Operations-Guide.pdf本文出自 “” 博客,请务必保留此出处
了这篇文章
类别:┆阅读(0)┆评论(0)查看:5592|回复:4
助理工程师
esxi的pxe安装
(vmsky的blog一直不能通过验证,郁闷,把文章先发这来吧)
&&esx的pxe安装是比较简单的,和redhat的pxe安装没有多大区别,都是使用vmlinuz进行引导安装,而esx3i实际上和xen一样是hypervisor架构,所以要pxe安装的话需要使用mboot.32来引导(mboot.c32是Syslinx的一个引导模块,支持多启动协议,适合用来引导xen或其它hypervisor架构),我们来看看具体步骤
1、enable tftp
#chkconfig tftp on
#service xinetd restart
2、设置dhcpd
# vi /etc/dhcpd.conf
内容修改如下:
ddns-update-
ignore client-
class &pxeclients& {
&&match if substring(option vendor-class-identifier,0,9) = &PXEClient&;
&&next-server 192.168.40.191;
&&filename &linux-install/pxelinux.0&;
subnet 192.168.40.0 netmask 255.255.255.0 {
& && &&&option subnet-mask& && && && &&&255.255.255.0;
& && &&&option domain-name& && && && & &&;
& && &&&option domain-name-servers& &&&192.168.40.235;
& && &&&option time-offset& && && && &&&-18000;
& && &&&default-lease-time 21600;
& && &&&max-lease-time 43200;
host esxi-1 {& && && &&&
& && && && && & hardware ethernet 00:09:6B:B5:CC:4E;
& && && && && & fixed-address 192.168.40.128;
}& && && &
具体内容根据自己设置修改
3、将esxi安装iso文件拷贝到pxe服务器上,并mount
#mount -o loop /root/VMware-VMvisor-InstallerCD-3.5.0_Update_3-6.iso /tftpboot/linux-install/esxi
4、准备tftp的内容
编辑/tftpboot/linux-install/pxelinux.cfg/default,增加内容如下:
&&kernel mboot.c32
&&append /esxi/vmkernel.gz --- /esxi/binmod.tgz --- /esxi/ienviron.tgz --- /esxi/cim.tgz --- /esxi/oem.tgz --- /esxi/license.tgz --- /esxi/install.tgz
#vi /tftpboot/linux-install/msgs/boot.msg
修改内容如下:
Enter number of the Operation System you wish to install:
0.&&Local Machine
1. /xenserver&&- xenserver
2. /esxi& &- esxi3u3
ok,这样pxe服务器就已经设置完成,启动服务器从pxe引导即可进行安装。
有一个最关键的地方就是mboot.c32必须使用esx3i iso文件中自带的mboot.c32,而不能使用/usr/lib/syslinux/mboot.c32,否则在后面安装一定是过不去的,我犯了经验主义的错误,在这上面浪费了很多时间。
助理工程师
助理工程师
有同学发短消息问我:
“根据你的帖子ESXI PXE安装设置mboot.c32为光盘中的,但是启动时显示“Fatal: SYSLINUX mboot.c32 needs at least version 2.12.”,你是否遇到过,如何解决的?谢谢”
我想回复,可是提示我必须通过验证才能回复,实在是让我难受地不行。先回复在这里:
错误表示syslinux版本不对,你用rpm -qa|grep -i syslinux查看一下syslinux版本,必须高于2.12,你的应该是低于2.12的。或者升级syslinux,或者改用rhel/centos4.5以上版本做分发服务器。
另外:散人快帮帮忙解决这个不能验证的问题,或者哪位好心告诉我什么后缀的邮箱可以通过验证,我的/hotmail都不行。我的blog好久不能更新了
助理工程师
关注一下,blog地验证,我尽快解决。
助理工程师
原帖由 bigmask 于 12-24- 发表
有同学发短消息问我:
“根据你的帖子ESXI PXE安装设置mboot.c32为光盘中的,但是启动时显示“Fatal: SYSLINUX mboot.c32 needs at least version 2.12.”,你是否遇到过,如何解决的?谢谢”
我 ... 非常感谢你的回复,我已经注意到syslinux的问题,也已经升级了,但是的确是在RHEL3上面做的,难道非要到RHEL4上做,那真是郁闷了。

我要回帖

更多关于 pxe安装linux 的文章

 

随机推荐