custom OVMF Bios

Aug 1, 2017
63
0
6
39
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
 

dcsapak

Proxmox Staff Member
Staff member
Feb 1, 2016
3,798
345
83
31
Vienna
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
 
Aug 1, 2017
63
0
6
39
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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE and Proxmox Mail Gateway. We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!