hello without using packer, how do you create a VM in virtualbox that does what you need ?
what OS you use for the VM ? those settings may include legacy bios or UEFI. On Thu, Jul 18, 2019 at 4:53 PM StateFarm_94 <jakesh...@gmail.com> wrote: > I have this code that when I run the packer command on my .json, the VM > will boot up but will go into the UEFI interactive shell. > > Sample code is below: > > { > "variables": { > }, > "builders": [ > { > "type": "virtualbox-iso", > "guest_os_type": "Other_64", > "http_directory": "http", > "iso_url": "--the location of my .iso file", > "iso_checksum_type": "md5", > "iso_checksum": "the .iso's checksum", > "vm_name": "test_VM", > "vboxmanage": [ > ["modifyvm", "{{.Name}}", "--firmware", "efi"], > ["modifyvm", "{{.Name}}", "--ioapic", "on"], > ["modifyvm", "{{.Name}}", "--rtcuseutc", "on"], > ["modifyvm", "{{.Name}}", "--memory", "4096"], > ["modifyvm", "{{.Name}}", "--mouse", "usbtablet"], > ["modifyvm", "{{.Name}}", "--vram", "10"], > ["modifyvm", "{{.Name}}", "--cpus", "2"], > ["hostonlyif", "ipconfig", "vboxnet0", "--ip", "172.17.42.108"], > ["modifyvm", "{{.Name}}", "--hostonlyadapter1", "vboxnet0"], > ["modifyvm", "{{.Name}}", "--nic1", "hostonly"], > ["modifyvm", "{{.Name}}", "--nictype1", "82540EM"], > ["modifyvm", "{{.Name}}", "--cableconnected1", "on"], > ["storagectl", "{{.Name}}", "--name", "SATA Controller", "--add", > "sata"], > ["createmedium", "disk", "--filename", "{{.Name}}.vdi", "--size", > "512000", "--format", "VDI"], > ["storageattach", "{{.Name}}", "--storagectl", "SATA Controller", > "--medium", "{{.Name}}.vdi", "--port", "1", "--type", "hdd"], > ["modifyvm", "{{.Name}}", "--boot1", "dvd", "--boot2", "disk", > "--boot3", "none", "--boot4", "none"], > ["showvminfo", "{{.Name}}"] > ], > "headless": false, > "ssh_username": "root", > "ssh_password": "root", > "ssh_wait_timeout": "10000s", > "boot_wait": "5s", > "boot_command": [ > "<wait60>", > "<enter>", > "<wait2>", > "<enter>", > "<wait2>", > "<tab>", > "<wait2>", > "<enter>", > "<wait2>", > "<tab>", > "<enter>", > "<wait2>", > "<enter>", > "<wait400>", > "<insert>", > "<wait400>", > "<insert>", > "<enter>" > ], > "shutdown_command": "" > }] > } > > -- > 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+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/packer-tool/7a34b338-5bfc-4caf-a72f-97cf1ece5b55%40googlegroups.com > <https://groups.google.com/d/msgid/packer-tool/7a34b338-5bfc-4caf-a72f-97cf1ece5b55%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CAHqq0exWsPZ-Mw7NdwwKpvE%3DQQnB2g2ACqznhmqzSRTkTgtDZQ%40mail.gmail.com.