Article 6H0Q0 No internet in a Qemu VM

No internet in a Qemu VM

by
Didier Spaier
from LinuxQuestions.org on (#6H0Q0)
I have built and installed Qemu 7.2.1 in Slint64-15.0 based on Slackware64-15.0, using the SlackBuild from SBo without any modification or specific setting.

I can start a VM, but can't get a wired connection in it. This did not happen using Qemu 6.2., using the same script in both cases, example pasted below. I have tried using two VMs, in which I got a connection previously.

Code:#!/bin/sh
qemu-system-x86_64 \
-cpu host \
-enable-kvm \
-boot menu=on \
-boot order=c \
-m 4G \
-device intel-hda \
-device hda-duplex \
-display gtk \
-vga std \
-drive if=pflash,format=raw,readonly=on,file=/data/qemu/firmware/OVMF_CODE.fd \
-drive if=pflash,format=raw,file=/data/qemu/firmware/OVMF_VARS.fd \
-fsdev local,id=vmdata,path=/data/,security_model=none \
-device virtio-9p-pci,fsdev=vmdata,mount_tag=data \
-drive file=/HD/bigfiles/fedora,format=qcow2,media=disk \
-cdrom /HD/images_iso_not_in_data/Fedora-Workstation-Live-x86_64-39-1.5.isoI am wondering: do i miss an option to set up the network? However this was not necessary with version 6.2.
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments