Re: [packer] Boots into UEFI interactive Shell

37 views
Skip to first unread message

Alvaro Miranda Aguilera

unread,
Aug 5, 2019, 11:52:45 AM8/5/19
to packe...@googlegroups.com
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 <jake...@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...@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.
For more options, visit https://groups.google.com/d/optout.


--
Alvaro

Thomas Hiller

unread,
Aug 20, 2019, 4:47:22 AM8/20/19
to Packer
Hi,

I have a similiar issue. I only use vboxmanage to set the firmware to efi. I'm running Windows 10.
When I boot the VM I end up in EFI shell, but cdrom and disk are not shown.
Virtualbox is 6.0.10.

Regards
Thomas
To unsubscribe from this group and stop receiving emails from it, send an email to packe...@googlegroups.com.


--
Alvaro

Reply all
Reply to author
Forward
0 new messages