Subject: Re: [edk2] OVMF networking revisited
From: Duane Voth <firstname.lastname@example.org>
To: Laszlo Ersek <email@example.com>
Date: 2013-03-26 19:48:45
On 03/11/13 21:11, Duane Voth wrote:
The following seems to work for me:> I can run OVMF without networking using qemu with no problem, and I have
> qemu with networking (using taps and a bridge) working properly, but
> when I use the network enabled OVMF.fd I get the blank vga console with
> no screen or network activity. OVFM.fd builds with no errors using:
>> build -D NETWORK_ENABLE -p OvmfPkg\OvmfPkgX64.dsc
> I copy OVMF.fd to bios.bin, but no OvmfVideo.rom file is created or
> available as suggested by the online sourceforge docs
> or the edk2\OvmfPkg\README.txt file, so I'm using the same
> CirrusLogic5446.rom that works with the non-networking OVMF.
> My qemu is version 1.2.0 (yes that is a 1 for the major version!) and
> I've tried it with the -no-kvm switch also.
> Any other ideas?
- At svn r14210, install the E1000 driver (md5sums):
- build it with
OvmfPkg/build.sh -p OvmfPkg/OvmfPkgX64.dsc \
-D FD_SIZE_2MB -D NETWORK_ENABLE \
-a X64 -b DEBUG -t GCC44 -n 4
- the output is "Build/OvmfX64/DEBUG_GCC44/FV/OVMF.fd"
- I tested with qemu v1.2.0 (built from git):
qemu-img create harddisk.img 10G
qemu-system-x86_64 -S -monitor stdio -enable-kvm -m 1024 \
-netdev user,id=net0 \
-device e1000,netdev=net0 \
-bios OVMF.fd \
-vga cirrus \
-debugcon file:debug.log \
-global isa-debugcon.iobase=0x402 \
-drive file=harddisk.img \
- once the "(qemu)" monitor prompt appears, start a vnc viewer from
- when the guest window appears, type into the qemu monitor:
This should boot OVMF. The firmware knows about the e1000 card; for
example there's a (failing & long) attempt to PXE-boot, and then
"ipconfig" in the shell can report the MAC. The logfile is full of messages.