Adding CD Drives to Packer Virtual Machines

QuickFix: Add additional CD Drives to Packer Machines

VirtualBox:
Add the following top section:
"./scripts/oracle-cert.cer" --- existing command
       ],
      "vboxmanage": [
         [ "modifyvm", "{{.Name}}", "--memory", "8192" ],
         [ "modifyvm", "{{.Name}}", "--cpus", "2" ],
           [ "storagectl", "{{.Name}}", "--name", "Sata Controller", "--add", "sata", "--controller",      "IntelAHCI" ],
           [ "storageattach", "{{.Name}}", "--storagectl", "IDE Controller", "--port", "1", "--device",
           "0", "--type", "dvddrive", "--medium",
           "/home/svanschalkwyk/Projects/packer-windows/iso/wsusoffline-w63-x64.iso"
           ]
       ]
     }
VMWare:
                    "./scripts/openssh.ps1" --- existing command 
             ],
             "vmx_data": {
                     "ide1:1.devicetype": "cdrom-image",
                     "ide1:1.filename": "/home/svanschalkwyk/Projects/packer-windows/iso/wsusoffline-w63-x64.iso",
                     "ide1:1.present": "true",               
                     "RemoteDisplay.vnc.enabled": "false",
                 "RemoteDisplay.vnc.port": "5900",
                 "memsize": "8192",
                 "numvcpus": "2",
                 "scsi0.virtualDev": "lsisas1068"
             }
Hope this helps someone.

Leave a Reply

Your email address will not be published. Required fields are marked *