thank you Mr Alvaro for repley I'll follow your advice and i ll share the result to you .. have a good day.
On Monday, April 30, 2018 at 8:38:42 AM UTC+1, Alvaro Miranda Aguilera wrote: > > hello > > that won't do what you want to do. > > I suggest please have a working install using dhcp > > then move to use floppy to pass the kickstart otherwise you wont be able > to download the kickstart file, > > and the ip= netmask= gateway= on the boot command will do nothing, those > are not valid boot commands for anaconda, > > so is not packer issue is a rh configuration misinformation. > > Alvaro. > > > On Mon, Apr 30, 2018 at 3:43 AM, <[email protected] <javascript:>> > wrote: > >> is that a packer issue or esxi issue >> >> >> On Monday, April 30, 2018 at 2:41:30 AM UTC+1, [email protected] >> wrote: >>> >>> im building a vm in esxi6 >>> with template >>> >>> { >>> "builders": [ >>> { >>> "name": "vmware", >>> "type": "vmware-iso", >>> "iso_url": >>> "/home/yucef/wspace/devOps/packer/iso/CentOS-6.9-x86_64-minimal.iso", >>> "iso_checksum": >>> "422af57b493b8af49d485885a730c5a1d955f803fac85aa51311c393168b9080", >>> "iso_checksum_type": "sha256", >>> "ssh_host":"10.0.0.140", >>> "ssh_username": "root", >>> "ssh_password": "vagrant", >>> "ssh_wait_timeout": "12000s", >>> "vnc_disable_password": true, >>> "disk_size": "16000", >>> "tools_upload_flavor": "linux", >>> "guest_os_type": "centos-64", >>> "http_directory": "http", >>> "vmdk_name": "centos7", >>> "boot_command": [ >>> "<tab> ip=10.0.0.140 netmask=255.255.255.0 gateway=10.0.0.1 text >>> ks=hd:fd0:/centos6.cfg<enter><wait> " >>> ], >>> "floppy_files": [ >>> "./http/centos6.cfg" >>> ], >>> "shutdown_command": "echo 'shutdown -P now' > /tmp/shutdown.sh; echo >>> 'vagrant'|sudo -S sh '/tmp/shutdown.sh'", >>> >>> "remote_type": "esx5", >>> "remote_host": "{{user `esxi_host`}}", >>> "remote_datastore": "{{user `esxi_datastore`}}", >>> "remote_username": "{{user `esxi_username`}}", >>> "remote_password": "{{user `esxi_password`}}", >>> "keep_registered": true, >>> "vmx_data": { >>> "memsize": "512", >>> "numvcpus": "1", >>> "vhv.enable": "TRUE", >>> "ethernet0.virtualDev": "vmxnet3", >>> "ethernet0.present":"true", >>> "ethernet0.startConnected": "true", >>> "ethernet0.addressType": "generated", >>> "ethernet0.networkName": "VM Network" >>> } >>> } >>> ], >>> "provisioners": [ >>> { >>> "type": "shell", >>> "scripts": [ >>> "scripts/vmware-tools.sh", >>> "scripts/cleanup.sh" >>> ], >>> "execute_command": "echo 'vagrant'|sudo -S bash '{{.Path}}'" >>> } >>> ] >>> } >>> and kickstart >>> install >>> text >>> cdrom >>> lang en_US.UTF-8 >>> keyboard us >>> network --onboot=yes --bootproto=static --ip=10.0.0.140 >>> --netmask=255.255.255.0 >>> --gateway=10.0.0.1 --nameserver=8.8.8.8 --noipv6 >>> rootpw vagrant >>> firewall --disabled >>> authconfig --enableshadow --passalgo=sha512 >>> selinux --disabled >>> timezone --utc America/Chicago >>> zerombr >>> clearpart --all >>> part /boot --fstype=ext4 --size=512 >>> part pv.01 --grow --size=1 >>> volgroup vg_vagrantcentos --pesize=4096 pv.01 >>> logvol swap --name=lv_swap --vgname=vg_vagrantcentos --size=1024 >>> logvol / --fstype=ext4 --name=lv_root --vgname=vg_vagrantcentos --grow >>> --size=1 >>> bootloader --location=mbr --append="crashkernel=auto rhgb quiet" >>> user --name=vagrant --plaintext --password=vagrant >>> reboot >>> >>> %packages --nobase --ignoremissing --excludedocs >>> # vagrant needs this to copy initial files via scp >>> openssh-clients >>> sudo >>> kernel-headers >>> kernel-devel >>> gcc >>> make >>> perl >>> wget >>> nfs-utils >>> virt-what >>> -fprintd-pam >>> -intltool >>> >>> # unnecessary firmware >>> -aic94xx-firmware >>> -atmel-firmware >>> -b43-openfwwf >>> -bfa-firmware >>> -ipw2100-firmware >>> -ipw2200-firmware >>> -ivtv-firmware >>> -iwl100-firmware >>> -iwl1000-firmware >>> -iwl3945-firmware >>> -iwl4965-firmware >>> -iwl5000-firmware >>> -iwl5150-firmware >>> -iwl6000-firmware >>> -iwl6000g2a-firmware >>> -iwl6050-firmware >>> -libertas-usb8388-firmware >>> -ql2100-firmware >>> -ql2200-firmware >>> -ql23xx-firmware >>> -ql2400-firmware >>> -ql2500-firmware >>> -rt61pci-firmware >>> -rt73usb-firmware >>> -xorg-x11-drv-ati-firmware >>> -zd1211-firmware >>> -kernel-firmware >>> >>> %end >>> >>> %post --nochroot >>> cp /etc/resolv.conf /mnt/sysimage/etc/resolv.conf >>> %end >>> %post >>> # Force to set SELinux to a permissive mode >>> sed -i -e 's/\(^SELINUX=\).*$/\1permissive/' /etc/selinux/config >>> # sudo >>> echo "%vagrant ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/vagrant >>> %end >>> >>> >>> >>> and packer hangs with error >>> handshake failed: read tcp 10.0.0.1:41616->10.0.0.140:22: read: >>> connection reset by peer >>> any one can help me pleaze >>> >> -- >> This mailing list is governed under the HashiCorp Community Guidelines - >> https://www.hashicorp.com/community-guidelines.html. Behavior in >> violation of those guidelines may result in your removal from this mailing >> list. >> >> GitHub Issues: https://github.com/mitchellh/packer/issues >> IRC: #packer-tool on Freenode >> --- >> You received this message because you are subscribed to the Google Groups >> "Packer" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/packer-tool/a0420d7d-4dce-4bc7-a11b-6a8c4e66c18e%40googlegroups.com >> >> <https://groups.google.com/d/msgid/packer-tool/a0420d7d-4dce-4bc7-a11b-6a8c4e66c18e%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Alvaro > > -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/packer/issues IRC: #packer-tool on Freenode --- You received this message because you are subscribed to the Google Groups "Packer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/19c2f222-41a3-42e7-929d-42b08a40eedb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
