CentOS7 Installation Error Using Packer.

1,083 views
Skip to first unread message

Prasad Kompalli

unread,
Aug 24, 2016, 12:55:15 PM8/24/16
to Packer
Hello Team, 


Please Find the Attachment.

I am using VMWare Workstation. I want to install CentOS7 using Packer While Installation the below error is coming and stuck in this console.  :( :( :( 
  
I got the "dracut-initqueue[534] : warning : dracut-initqueue timeout -starting timeout scripts " 

Entering  emergency mode. Exit the Shell to continue. 

...
...
..
after mounting them and attach it to bug report.

dracut:/# _ 

  

Can anyone please give what is happening here in detailed solution. 

Thanks in advance for your quick response. 


Screenshot (1065).png
Screenshot (1066).png

Rickard von Essen

unread,
Aug 24, 2016, 1:21:55 PM8/24/16
to packe...@googlegroups.com
gist your template.json and kickstart files etc. and link here

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/77cc3658-e622-4a8d-bf9a-3fa046173119%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Prasad Kompalli

unread,
Aug 24, 2016, 2:09:20 PM8/24/16
to Packer
template.json
----------------------------------
{
  "variables": {
    "ssh_name": "packer",
    "ssh_pass": "packer",
"username" : "root",
"password" : "vagrant",
"autologin" : "true"
      },
  "builders": [
  
      {
      "type": "vmware-iso",
      "boot_command": [
        "<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks1.cfg<enter><wait>"
      ],
      "boot_wait": "20s",
      "disk_size": 40520,
      "guest_os_type": "centos-64",
      "http_directory": "http",
    "iso_checksum_type": "sha256",
    "iso_checksum" : "907e5755f824c5848b9c8efbb484f3cd945e93faa024bad6ba875226f9683b16",
"output_directory" : "C:/Users/miracle/Desktop/MSBImage8",
"communicator" : "ssh",
"ssh_username": "root",
     "ssh_password" : "vagrant",
      "ssh_port": 22,
      "ssh_wait_timeout": "10000s",
"ssh_pty" : "true",
"shutdown_command": "echo {{user `vagrant`}} | sudo -S shutdown -P now",
"tools_upload_flavor": "linux",
 
"vmx_data": {
        "memsize": "512",
        "numvcpus": "1",
        "cpuid.coresPerSocket": "1"
      }
    }
  ],
   "provisioners": [
  {
"type": "shell",
      "override": {
"vmware-iso": 
{
"execute_command" : "echo 'vagrant' | {{ .Vars }} sudo -E -S sh '{{ .Path }}'",
"inline" : [ "su -c 'yum install java-1.8.0-openjdk java-1.8.0-openjdk-devel' ",
"su -c 'yum install tomcat -y' " 
]
}
}
}
],
 "post-processors": [
    {
      "type": "vagrant",
      "override": 
 {
             "vmware":
{
          "output": "centos-7-1-x64-vmware.box"
         }
      }
    }
  ]  
 }
---------------------------------------------
ks1.cfg
-----------
install
cdrom 
lang en_US.UTF-8
keyboard us
network --onboot yes --device eth0 --bootproto dhcp --noipv6
rootpw --plaintext vagrant
firewall --enabled --service=ssh
authconfig --enableshadow --passalgo=sha256
selinux --disabled
timezone Asia/Kolkata
bootloader --location=mbr --driveorder=sda --append="crashkernel=auto rhgb quiet"  

text
skipx
zerombr

clearpart --all --initlabel
autopart

auth  --useshadow  --enablemd5
firstboot --disabled
reboot

%packages --ignoremissing
@core
bzip2
kernel-devel
kernel-headers
-ipw2100-firmware
-ipw2200-firmware
-ivtv-firmware
%end

%post
# sudo
echo "%vagrant ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/vagrant
sed -i "s/^[^#].*requiretty/#Defaults requiretty/" /etc/sudoers
%end

Prasad Kompalli

unread,
Aug 25, 2016, 6:44:43 PM8/25/16
to Packer
Hello Team, 

I got the Solution for this Network Error occurred in the CentOS7 installation. The solution for the above error is attached as a screen shots below. Please find attachments.

Previously, I got the error because of the selection of the NAT settings in the VMWare. But now, I changed from the NAT ---> Host only private network in the VMWare workstation. For this I clicked on the Restore settings of the Virtual Network editor in the Edit Menu of VMWorkstation. After that, It install the required components  and delete the unnecessary components of the VMWare. Then /dev/sr0 ,v /dev/sr1 ...../dev/sr12 type components are deleted and new Components like /dev/sdb are installed. So that my Error is resolved and creation of virtual image using packer and vagrant are done perfectly.

 But after that again, I am trying to create another image for the same configurations i got vmware connection error. I will research and explain what's error occurr here. 
 

Thank you.     
Screenshot (1069).png
Screenshot (1070).png
Screenshot (1071).png
Reply all
Reply to author
Forward
0 new messages