Packer : Not created the vitrual Images and gracefully halting virtual machine error.

175 views
Skip to first unread message

balubhai555

unread,
Sep 27, 2016, 10:16:00 AM9/27/16
to Packer
Hello Team, 

Packer is not able to create Virtual machine image on the top of centos7 in Windows8.1 OS and gave the below error. 

==> vmware-iso: Gracefully halting virtual machine...
    vmware-iso: Waiting for VMware to clean up after itself...
==> vmware-iso: Deleting unnecessary VMware files...
    vmware-iso: Deleting: C:\Users\miracle\Desktop\CompleteMSBImage\vmware.log
==> vmware-iso: Compacting the disk image
==> vmware-iso: Cleaning VMX prior to finishing up...
    vmware-iso: Unmounting floppy from VMX...
    vmware-iso: Detaching ISO from CD-ROM device...
    vmware-iso: Disabling VNC server...
==> vmware-iso: Running post-processor: vagrant
==> vmware-iso (vagrant): Creating Vagrant box for 'vmware' provider
    vmware-iso (vagrant): Copying: C:\Users\miracle\Desktop\CompleteMSBImage\disk-s001.vmdk
    vmware-iso (vagrant): Copying: C:\Users\miracle\Desktop\CompleteMSBImage\disk-s002.vmdk
    vmware-iso (vagrant): Copying: C:\Users\miracle\Desktop\CompleteMSBImage\disk-s003.vmdk
    vmware-iso (vagrant): Copying: C:\Users\miracle\Desktop\CompleteMSBImage\disk-s004.vmdk
    vmware-iso (vagrant): Copying: C:\Users\miracle\Desktop\CompleteMSBImage\disk-s005.vmdk
    vmware-iso (vagrant): Copying: C:\Users\miracle\Desktop\CompleteMSBImage\disk-s006.vmdk
    vmware-iso (vagrant): Copying: C:\Users\miracle\Desktop\CompleteMSBImage\disk-s007.vmdk
    vmware-iso (vagrant): Copying: C:\Users\miracle\Desktop\CompleteMSBImage\disk-s008.vmdk
    vmware-iso (vagrant): Copying: C:\Users\miracle\Desktop\CompleteMSBImage\disk-s009.vmdk
    vmware-iso (vagrant): Copying: C:\Users\miracle\Desktop\CompleteMSBImage\disk-s010.vmdk
    vmware-iso (vagrant): Copying: C:\Users\miracle\Desktop\CompleteMSBImage\disk.vmdk
    vmware-iso (vagrant): Copying: C:\Users\miracle\Desktop\CompleteMSBImage\packer-vmware-iso.nvram
    vmware-iso (vagrant): Copying: C:\Users\miracle\Desktop\CompleteMSBImage\packer-vmware-iso.vmsd
    vmware-iso (vagrant): Copying: C:\Users\miracle\Desktop\CompleteMSBImage\packer-vmware-iso.vmx
    vmware-iso (vagrant): Copying: C:\Users\miracle\Desktop\CompleteMSBImage\packer-vmware-iso.vmxf
    vmware-iso (vagrant): Compressing: Vagrantfile
    vmware-iso (vagrant): Compressing: disk-s001.vmdk
    vmware-iso (vagrant): Compressing: disk-s002.vmdk
    vmware-iso (vagrant): Compressing: disk-s003.vmdk
    vmware-iso (vagrant): Compressing: disk-s004.vmdk
    vmware-iso (vagrant): Compressing: disk-s005.vmdk
    vmware-iso (vagrant): Compressing: disk-s006.vmdk
    vmware-iso (vagrant): Compressing: disk-s007.vmdk
    vmware-iso (vagrant): Compressing: disk-s008.vmdk
    vmware-iso (vagrant): Compressing: disk-s009.vmdk
    vmware-iso (vagrant): Compressing: disk-s010.vmdk
    vmware-iso (vagrant): Compressing: disk.vmdk
    vmware-iso (vagrant): Compressing: metadata.json
    vmware-iso (vagrant): Compressing: packer-vmware-iso.nvram
    vmware-iso (vagrant): Compressing: packer-vmware-iso.vmsd
    vmware-iso (vagrant): Compressing: packer-vmware-iso.vmx
    vmware-iso (vagrant): Compressing: packer-vmware-iso.vmxf
Build 'vmware-iso' finished.

==> Builds finished. The artifacts of successful builds are:
--> vmware-iso: 'vmware' provider box: centos-7-1-x64-vmware.box



Here no packer image is not avalible. 

Please find the attachment. 

Rickard von Essen

unread,
Sep 27, 2016, 10:44:05 AM9/27/16
to Packer
From the part of the log you provided everything looks fine. Build finished shows that the build is successful and you should have a centos-7-1-x64-vmware.box file.
(The attachment is missing)

If you expected something else or think there is something wrong describe your expectation in detail and provide a example template file and full log from PACKER_LOG=1 packer build template.json

balubhai555

unread,
Sep 27, 2016, 12:43:06 PM9/27/16
to Packer
these are 1)template.json  2)software.sh 3)Xampp.sh files. 

My goal is to create a vmware image for the above files as well as vmware vagrant box.
Please observer and tell me the required changes to create vmware image along this  centos-7-1-x64-vmware.box . 

"output_directory" : "C:/Users/miracle/Desktop/CompleteMSBImage1",

But packer automatically closes the vmware and the created output directory.  I am expecting this output directory as we will get when we build a packer image file. So here i am expecting CompleteMSBImage1 folder which contains the below  files (ScreenShot(1086.png))

Please suggest a good way
    
Centos7Template.json
kickstart.cfg
softwares.sh
Xampp.sh
Screenshot (1086).png

Rickard von Essen

unread,
Sep 27, 2016, 12:55:18 PM9/27/16
to packe...@googlegroups.com
Add "keep_input_artifact": true to your vagrant post-processor. See https://www.packer.io/docs/templates/post-processors.html

--
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/087f58a8-d465-440c-97f4-2c96bb2c02b6%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

balubhai555

unread,
Sep 27, 2016, 2:45:29 PM9/27/16
to Packer
After adding "keep_input_artifact": true the result was the same. Graefully Halting virtual machine.  No image created and all the files deleted automatically. please Help me..

 
And are we do the installation of Xampp7-linux(64).installer.run using packer? 

I am assuming due to the installation of Xampp7, It goes to halting automatically. Suggest me please. 

Thank you. 
 

Alvaro Miranda Aguilera

unread,
Sep 27, 2016, 3:39:36 PM9/27/16
to packe...@googlegroups.com
can you share a gist of the new template and update logs?

--
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.

For more options, visit https://groups.google.com/d/optout.



--
Alvaro

balubhai555

unread,
Sep 27, 2016, 4:00:08 PM9/27/16
to Packer
please find Attachment 
Centos7Template.json
Screenshot (1085).png

Alvaro Miranda Aguilera

unread,
Sep 27, 2016, 5:34:52 PM9/27/16
to packe...@googlegroups.com
hello

please use gist for logs:

thanks
Alvaro

On Tue, Sep 27, 2016 at 10:00 PM, balubhai555 <balub...@gmail.com> wrote:
please find Attachment 

--
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.

For more options, visit https://groups.google.com/d/optout.



--
Alvaro

balubhai555

unread,
Sep 28, 2016, 11:07:39 AM9/28/16
to Packer
Thank you Team, 

Now Working Fine
 
Reply all
Reply to author
Forward
0 new messages