custom OVMF Bios

Discussion in 'Proxmox VE: Installation and configuration' started by Spiros Papageorgiou, May 23, 2019.

Tags:
  1. Spiros Papageorgiou

    Joined:
    Aug 1, 2017
    Messages:
    57
    Likes Received:
    0
    Hi all,

    I want to run a virtual Nexus 9K (cisco switch) on my Proxmox. There is an qcow2 image that I have used to create a VM in proxmox.

    The GNS3 project (network simulation) also provide a OVMF-20160813.fd file that I understand it is the UEFI BIOS that the VM must boot from.
    https://docs.gns3.com/appliances/cisco-nxosv9k.html

    I have selected OVMF in BIOS options of my VM. The question is how can i use the provided OVMF file, for this VM, instead of the default one. Any ideas?

    Thanx,
    Sp
     
  2. dcsapak

    dcsapak Proxmox Staff Member
    Staff Member

    Joined:
    Feb 1, 2016
    Messages:
    3,536
    Likes Received:
    320
    look at the generated qemu commandline with 'qm showcmd ID --pretty' and identify
    the lines which include the ovmf images (should look like '-drive if=pflash,unit=...' )

    adapt those lines and add it in the 'args' of the config ( see man qm)
    now disable ovmf again in the config
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Spiros Papageorgiou

    Joined:
    Aug 1, 2017
    Messages:
    57
    Likes Received:
    0
    Hi,

    Black magic. It worked. Here is what i did:
    I added the line :
    drive 'if=pflash,unit=0,format=raw,readonly,file=/mnt/pve/useful/OVMF-20160813.fd'
    in /etc/pve/qemu-server/176.conf .

    Still complains about a ton of things, but i can get into a bootloader (see below).
    Then I do:
    loader > boot nxos.9.2.3.bin
    and voila!

    Many thanx!
    Sp

    Sysconf checksum failed. Using default values
    WARNING: No BIOS Info found
    Sysconf checksum failed. Using default values
    Sysconf checksum failed. Using default values
    Sysconf checksum failed. Using default values
    ATE0Q1&D2&C1S0=1
    Standalone chassis
    check_bootmode: grub2pxe: grub failed, launch ipxe
    Trying to load ipxe
    Loading Application:
    /Vendor(429bdb26-48a6-47bd-664c-801204061400)/UnknownMedia(6)/EndEntire
    cannot load imageFailed to launch ipxe
    Came back to grub, now load efi shell
    Trying to load efishell
    Loading Application:
    /Vendor(429bdb26-48a6-47bd-664c-801204061400)/UnknownMedia(6)/EndEntire
    cannot load imageFailed to launch shell
    Trying to read config file /boot/grub/menu.lst.local from (hd0,4)
    Filesystem type is ext2fs, partition type 0x83
    Trying to read config file /boot/grub/menu.lst.local from (hd0,5)
    Filesystem type is ext2fs, partition type 0x83
    No autoboot or failed autoboot. falling to loader



    Loader Version 5.9

    loader > boot
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice