Thanks for the reply. I just attached my current files.

On Friday, September 16, 2016 at 10:24:44 AM UTC-7, Rjaydee wrote:
>
> I am trying to deploy and set a vm using packer and a kickstart file. This 
> packer code:
>
> {
>     "builders": [
>         {
>             "type": "vmware-iso",
>             "format": "ovf",
>             "vm_name": "PACKERTEST2",
>             "iso_url": 
> "http://ftp.riken.jp/Linux/centos/7/isos/x86_64/CentOS-7-x86_64-DVD-1511.iso";,
>             "iso_checksum": 
> "907e5755f824c5848b9c8efbb484f3cd945e93faa024bad6ba875226f9683b16",
>             "iso_checksum_type": "sha256",
>             "disk_size": "10240",
>             "disk_type_id": "thin",
>             "remote_host": "host",
>               "remote_datastore": "ds",
>               "remote_username": "root",
>               "remote_password": "pw",
>               "remote_type": "esx5",
>             "ssh_username": "root",
>             "guest_os_type": "centos-64",
>             "ssh_password": "ps",
>             "ssh_port": 22,
>             "ssh_wait_timeout": "800s",
>             "shutdown_command": "shutdown -h now",
>             "headless": false,
>             "floppy_files": [
>                   "kickstart/ks.cfg"
>             ],
>             "boot_command": "<esc> linux inst.text inst.ks=hd:fd0:/ks.cfg 
> <enter><wait>",
>             "boot_wait": "20s",
>             "keep_registered": "true",
>             "vmx_data": {
>                 "config.version": 8,
>                 "virtualHW.version": 8,
>                 "ethernet0.virtualDev": "vmxnet3",
>                 "ethernet0.networkName": "VM Network",
>                 "ethernet0.addressType": "generated",
>                 "ethernet0.present": "TRUE",
>                 "ethernet1.virtualDev": "vmxnet3",
>                 "ethernet1.networkName": "VLAN100",
>                 "ethernet1.addressType": "generated",
>                 "ethernet1.present": "TRUE",
>                 "ethernet0.pciSlotNumber": "9",
>                 "ethernet1.pciSlotNumber": "224",
>                 "memsize": "2048",
>                 "numvcpus": "2",
>                 "cpuid.coresPerSocket": "1",
>                 "RemoteDisplay.vnc.enabled": "TRUE",
>                 "RemoteDisplay.vnc.port":  "5900"
>
>             }
>         }
>     ]
> }
>
> This is the ks.cfg file I have:
>
>
> # SELinux configuration
> selinux --enforcing
>
> # Installation logging level
> logging --level=info
>
>
> # Run the Setup Agent on first boot
> firstboot --enable
>
>  # Reboot after installation
>  reboot
>
> # System timezone
> timezone --isUtc America/Los_Angeles
> # Network information
> network --activate --bootproto=static --device=eth0 --gateway=8.1.132.254 
> --netmask=255.255.255.0 --ip= 8.1.132.18 —hostname=myhost.com
>
> # System bootloader configuration
> bootloader --append="crashkernel=auto rhgb quiet" --location=mbr 
> --driveorder="sda"
>
> # Partition clearing information
> zerombr
> clearpart --all  --drives=sda
>
> # Disk partitioning information
> part /boot --fstype="ext4" --size=500
> part pv.008002 --grow --size=1
> volgroup vg_centos --pesize=4096 pv.008002
> logvol / --fstype=ext4 --name=lv_root --vgname=vg_centos --grow --size=1024 
> --maxsize=51200
> logvol swap --name=lv_swap --vgname=vg_centos --grow --size=3072 
> --maxsize=3072
>
> %packages --nobase
> @^minimal
> @core
> kexec-tools
>
> %end
>
> I however keep getting this error when I run it.
>
> => vmware-iso: Waiting for SSH to become available...
> ==> vmware-iso: Timeout waiting for SSH.
> ==> vmware-iso: Stopping virtual machine...
> ==> vmware-iso: Destroying virtual machine...
> Build 'vmware-iso' errored: Timeout waiting for SSH.
> Why do I getting this error message? Is it because my code in the ks.cfg file 
> to connect to a static ip address correct? Any thought would be greatly 
> appreciated.
>
>

-- 
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 packer-tool+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/f808893a-f777-4123-b2a4-24107f75baad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
#version=DEVEL
# System authorization information
auth --enableshadow --passalgo=sha512

# Firewall configuration
firewall --disabled --ssh --service=ssh

# USE CDROM installation media
cdrom

#Use graphical install
graphical

#Run the Setup Agent on first boot
firstboot --enable
ignoredisk --only-use=sda

 # Reboot after installation
 reboot


#Keyboard layouts
keyboard --vckeymap=us --xlayouts='us'

#System language
lang en_US.UTF-8


#Network Information
network --bootproto=static --device=eno16780032 --gateway=*** --ip=*** 
--nameserver=**** --netmask=255.255.252.0 --noipv6 --activate 
--hostname=host.ibm.com

# Root password
rootpw "testing"

#System timezone
timezone --isUtc America/Los_Angeles

#System bootloader configuration
bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=sda
autopart --type=lvm

#partition clearing information
clearpart --all --initlabel --drives=sda

%packages
@^minimal
@core
%end

Attachment: packertest.json
Description: application/json

Reply via email to