OEL8 post-processors to save on local server

Hi,

Can anyone help please. :smiley:

I have created a Oracle Linux 8 template that works OK. I run “#docker build x” form a Local Oracle Linux 7 server that takes the ISO form a location on the vsphire datastore and creates an build on the same vsphire.

But I’m trying to copy it back to my local Oracle Linux 7 server and then convert to OVF template, via the post-processors section.

But I cant seem to find anything about copying it back to a local Linux server, its all on VMware / AWS.

Thanks,
Neil

*** My Script ****

{
“builders”: [
{
“type”: “vsphere-iso”,
“vcenter_server”: “server.adidom.com”,
“username”: “user@vsphere.local”,
“password”: “password”,
“insecure_connection”: “true”,
“datacenter”: “zone01”,
“vm_name”: “packer-test-1”,
“datastore”:“zone01-v1-d7”,
“cluster”: “zone01-v1-c7”,
“network”: “pg-v2-vlan3”,
“ssh_username”: “user”,
“ssh_password”: “pass”,
“shutdown_command”: “echo ‘user’ | sudo -S shutdown -P now”,
“guest_os_type”: “oracleLinux8_64Guest”,
“CPUs”: 2,
“RAM”: 4096,
“RAM_reserve_all”: true,

  "disk_controller_type":  "pvscsi",
  "disk_size":        52768,
  "disk_thin_provisioned": true,

  "network_card": "vmxnet3",

  "iso_paths": [
      "[zone01-v1-d7] isos/OL8u2-boot.iso"
    ],
  "http_directory" : "http/kickstart",
  "boot_command": [
    "<tab><wait>",
    " ip=10.10.97.12::10.10.97.1:255.255.255.192::ens192:off inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks.cfg",
    "<enter>",
    "<enter>"
    ]
    }

],

“provisioners”: [
{
“type”: “shell”,
“inline”: [
“sudo bash -c ‘echo Server xxx.com >> /etc/chrony.conf’”,
“sudo bash -c ‘echo Server xxx.com >> /etc/chrony.conf’”,
“sudo bash -c ‘echo Server xxx.com >> /etc/chrony.conf’”,
“sudo systemctl enable chronyd”,
“sudo systemctl enable --now cockpit.socket”,
“sudo bash -c ‘echo echo **** Beta buld, for testing only ******* >> /etc/profile’”,

  ]
}

],
“post-processors”: [
{
“type”: “vsphere”,
“cluster”: " ?? ",
“host”: " ?? ",
“datacenter”: " ?? ",
“username”: " ?? ",
“password”: " ?? ",
“datastore”: " ?? ",
“vm_name”: " ?? ",
“vm_folder”: “/Templates”,
“insecure”: “true”,
“overwrite”: “true”
},^[

  {
    "type": "vsphere-template",
    "host": "  ??  ",
    "insecure": true,
    "username": "  ??  ",
    "password": "  ??  ",
    "datacenter": "  ??  ",
    "folder": "/tmp"
  }

]

}