Git Product home page Git Product logo

Comments (4)

charandas avatar charandas commented on August 19, 2024

Phew. I was wrong. With "OVA", its one file. With "OVF", it is two files.

packer-coreos-baseimage-1513391377-disk001.vmdk
packer-coreos-baseimage-1513391377.ovf

I am gonna try inserting artifice before adding your plugin tomorrow, to see if it understands I want to use a different OVF, in which I will maintain the same root disk uuid as the one that was generated by the virtualbox-iso builder.

<Disk ovf:capacity="41943040000" ovf:diskId="vmdisk1" ovf:fileRef="file1" ovf:format="http://www.vmware.com/interfaces/specifications/vmdk.html#streamOptimized" vbox:uuid="ff72c28b-fbf3-4103-8a8b-1b59b289c8b6"/>

from packer-post-processor-vsphere-template.

charandas avatar charandas commented on August 19, 2024

I think my idea above with artifice won't work.

But even before I go there, I wanted to ask, why would the following configuration generate this error:

    coreos-baseimage: Executing: export packer-coreos-baseimage-1513453383 --output output-coreos-baseimage/packer-coreos-baseimage-1513453383.ovf
==> coreos-baseimage: Deregistering and deleting VM...
==> coreos-baseimage: Running post-processor: vsphere-template
Build 'coreos-baseimage' errored: 1 error(s) occurred:

* Post-processor failed: Line 66: OVF hardware element 'ResourceType' with instance ID '5': No support for the virtual hardware device type '35'.
{
  "variables": {
    "name": "coreos-baseimage",
    "release": "stable",
    "iso_checksum": "",
    "iso_checksum_type": "none",
    "disk_size": "40000",
    "cpus": "4",
    "memory": "2048",
    "boot_wait": "15s",
    "ignition": "ignition.json",
    "vsphere_host": "some_value",
    "vsphere_username": "[email protected]",
    "vsphere_password": "some_password",
    "vsphere_datacenter": "some_dc",
    "vsphere_resource_pool": "some_pool",
    "vsphere_folder": "some_folder",
    "vsphere_datastore": "some_store"
  },
  "builders": [{
    "name": "{{user `name`}}",
    "guest_os_type": "Linux_64",
    "type": "virtualbox-iso",
    "iso_url": "coreos_production_iso_image.iso",
    "iso_checksum": "d97ed6c250f2037b6fd92471c2890176",
    "iso_checksum_type": "md5",
    "ssh_username": "core",
    "ssh_password": "packer",
    "shutdown_command": "sudo shutdown -h now",
    "format": "ovf",
    "boot_wait": "{{user `boot_wait`}}",
    "boot_command": [
      "sudo passwd core<enter><wait>",
      "packer<enter>",
      "packer<enter>",
      "sudo systemctl start sshd.service<enter>"
    ],
    "vboxmanage": [
      ["modifyvm", "{{.Name}}", "--memory",  "{{user `memory`}}"],
      ["modifyvm", "{{.Name}}", "--cpus",  "{{user `cpus`}}"]
    ]
  }],
  "provisioners": [
    {
      "type": "file",
      "source": "{{ user `ignition` }}",
      "destination": "/tmp/ignition.json"
    },
    {
        "type": "shell",
        "inline": [
            "sudo coreos-install -d /dev/sda -C {{ user `release` }} -i /tmp/ignition.json -o vmware_raw"
        ]
    }
  ],
  "post-processors": [{
      "type":            "vsphere-template",
      "host":            "{{user `vsphere_host`}}",
      "username":        "{{user `vsphere_username`}}",
      "password":        "{{user `vsphere_password`}}",
      "datacenter":      "{{user `vsphere_datacenter`}}",
      "resource_pool":   "{{user `vsphere_resource_pool`}}",
      "folder":          "{{user `vsphere_folder`}}",
      "datastore":       "{{user `vsphere_datastore`}}"
    }]
  ]
}

from packer-post-processor-vsphere-template.

charandas avatar charandas commented on August 19, 2024

Seems like its a sound card:

<Item>
        <rasd:AddressOnParent>3</rasd:AddressOnParent>
        <rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
        <rasd:Caption>sound</rasd:Caption>
        <rasd:Description>Sound Card</rasd:Description>
        <rasd:ElementName>sound</rasd:ElementName>
        <rasd:InstanceID>5</rasd:InstanceID>
        <rasd:ResourceSubType>ensoniq1371</rasd:ResourceSubType>
        <rasd:ResourceType>35</rasd:ResourceType>
      </Item>

from packer-post-processor-vsphere-template.

charandas avatar charandas commented on August 19, 2024

Ha, just needed to add this to packer config:

"vboxmanage": [
     ...
      ["modifyvm", "{{.Name}}", "--audio",  "none"]
    ]

I have also shifted to the fork of this project here which has a few more recent commits.

Overall, great work. I may end up modifying the plugin to inject the custom ProductSection part in the OVF that I need.

from packer-post-processor-vsphere-template.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.