aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-07-23 20:27:48 +0200
committerDmitry Vyukov <dvyukov@google.com>2018-07-23 20:28:18 +0200
commita0512a53a3da05f4858c65eae54ddd8fea5fe626 (patch)
tree22db8a42007aff51ddec6341cd14359c6bf0643d
parent912c93d745d441150d0b8fa605c38d5ec18f75ab (diff)
vm/qemu: use e1000 instead of e1000e
e1000e fails on recent Debian distros with: Initialization of device e1000e failed: failed to find romfile "efi-e1000e.rom
-rw-r--r--vm/qemu/qemu.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/vm/qemu/qemu.go b/vm/qemu/qemu.go
index cb2f4bcfa..72fcb8444 100644
--- a/vm/qemu/qemu.go
+++ b/vm/qemu/qemu.go
@@ -295,7 +295,9 @@ func (inst *instance) Boot() error {
args := []string{
"-m", strconv.Itoa(inst.cfg.Mem),
"-smp", strconv.Itoa(inst.cfg.CPU),
- "-net", "nic",
+ // e1000e fails on recent Debian distros with:
+ // Initialization of device e1000e failed: failed to find romfile "efi-e1000e.rom
+ "-net", "nic,model=e1000",
"-net", fmt.Sprintf("user,host=%v,hostfwd=tcp::%v-:22", hostAddr, inst.port),
"-display", "none",
"-serial", "stdio",