CentOS7 with packer

35 views
Skip to first unread message

ksac...@gmail.com

unread,
Aug 29, 2018, 3:49:36 AM8/29/18
to Packer
I am trying to use packer to do CentOS 7 install. But my kickstart errors out. But after my kicstart tries to install, linux complains about less disk, not sure why.
Please see the attached image for the error. Also I am attaching my kickstart and json files as well. This is on a Ubuntu laptop I am trying. It has got something to do with "ignoredisk" param in ks file I guess
centos7-basetainted.json
c7v2.cfg

Rickard von Essen

unread,
Sep 2, 2018, 1:50:05 PM9/2/18
to packe...@googlegroups.com
Hi,

I had some time to look into this. And I found several things. 

1) It seems Virtio is not support by default by the CentOS install so changing net_device to e1000 (or any other supported device) and disk_interface to ide makes the build successful.

Virtio can probably be used if you install the necessary drivers, but this have to be without network.

I have attached the template and ks.cfg I have used.

// Rickard


On Wed, 29 Aug 2018 at 09:49, <ksac...@gmail.com> wrote:
I am trying to use packer to do CentOS 7 install. But my kickstart errors out. But after my kicstart tries to install, linux complains about less disk, not sure why.
Please see the attached image for the error. Also I am attaching my kickstart and json files as well. This is on a Ubuntu laptop I am trying. It has got something to do with "ignoredisk" param in ks file I guess

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/fae9f66f-096c-44a1-a246-cf30a6ab801e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
centos7-basetainted.json
c7v2.cfg

Rickard von Essen

unread,
Sep 2, 2018, 1:50:54 PM9/2/18
to packe...@googlegroups.com
And disk_image should be false when booting from ISO.

Reply all
Reply to author
Forward
0 new messages