Building debian8+ on vmware-iso

32 views
Skip to first unread message

Алексей Широких

unread,
May 8, 2018, 5:05:58 PM5/8/18
to Packer
Hi. I am trying to automate tests for our software.
The best i found is to start from iso and get my pipeline on gitlab-ci to vmware-template.

Scheme works like a charm for centos7, oel7.

Then i starts to implement one with debian 8.
My pipeline looks like that. Gitlab-ci -> custom docker image file with ovftool and needed plugins -> several workers on different machines -> vmware-iso -> vmware template.

I've been using floppy files to set kickstart file.
But for debian 8 there is no support for floppies. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=783982
Also because of docker and the way how gitlab launches it i can't use http way. (job worker starts on some machine without any open ports)
Also i've tried to set https link for preseed file to my raw file in giltab. But there are no support for https in busybox.

According to https://www.debian.org/releases/jessie/i386/apbs02.html.en there is another options.
One is to build custom vdmk file and place it to hd-media. Another is mount is as second cdrom. But there is no support from packer side.

Any ideas how to make it work ?

Alvaro Miranda Aguilera

unread,
May 9, 2018, 5:56:51 AM5/9/18
to packe...@googlegroups.com
hello

vmware-iso starts from an iso

vmware-vmx starts from an existing VM. So its way faster. seconds vs minutes.

I would suggest build either a VM you can use it as starting point, and then with packer + vmware-vmx you can keep it upto date and use for your test.

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 packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/0c7aaa84-ae5b-48fc-b270-12911c137f12%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Алексей Широких

unread,
May 9, 2018, 6:48:07 AM5/9/18
to packe...@googlegroups.com
Yep. thx. i know.
but i have to build vmx somehow, and building it by hands is not what am i looking for.

ср, 9 мая 2018 г. в 12:56, Alvaro Miranda Aguilera <kik...@gmail.com>:
hello

vmware-iso starts from an iso

vmware-vmx starts from an existing VM. So its way faster. seconds vs minutes.

I would suggest build either a VM you can use it as starting point, and then with packer + vmware-vmx you can keep it upto date and use for your test.

Alvaro.
On Tue, May 8, 2018 at 11:05 PM, Алексей Широких <frees...@gmail.com> wrote:
Hi. I am trying to automate tests for our software.
The best i found is to start from iso and get my pipeline on gitlab-ci to vmware-template.

Scheme works like a charm for centos7, oel7.

Then i starts to implement one with debian 8.
My pipeline looks like that. Gitlab-ci -> custom docker image file with ovftool and needed plugins -> several workers on different machines -> vmware-iso -> vmware template.

I've been using floppy files to set kickstart file.
But for debian 8 there is no support for floppies. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=783982
Also because of docker and the way how gitlab launches it i can't use http way. (job worker starts on some machine without any open ports)
Also i've tried to set https link for preseed file to my raw file in giltab. But there are no support for https in busybox.

According to https://www.debian.org/releases/jessie/i386/apbs02.html.en there is another options.
One is to build custom vdmk file and place it to hd-media. Another is mount is as second cdrom. But there is no support from packer side.

Any ideas how to make it work ?

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



--
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 packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CAHqq0eyYd2EmBdimz%2BAYZC3Bf1DwMAdzAg%3D3W0XvH8FdmgcwNw%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.
--
С уважением,
Алексей Широких.

Rickard von Essen

unread,
May 9, 2018, 7:47:41 AM5/9/18
to packe...@googlegroups.com
You preprocess the ISO and put the Kickstart file in it.

(Something like: loop back mount the ISO, use an overlay fs to add the Kickstart file, and finaly create a new iso with mkisofs) 

Reply all
Reply to author
Forward
0 new messages