Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

Use Virtio devices by default in QEMU #15

Open
shunghsiyu opened this issue Jun 18, 2020 · 3 comments
Open

Use Virtio devices by default in QEMU #15

shunghsiyu opened this issue Jun 18, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@shunghsiyu
Copy link
Contributor

When running runltp-ng on openSUSE Tumbleweed (comes with QEMU 5.0.0) I notice that the guest VM created does not get a network interface card (NIC) by default, where as VM guests created openSUSE Leap 15.1 (QEMU 3.1.1.1) does get one.

Right now I just work around this by passing -nic user,model=virtio-net-pci inside the backend option opts.

Maybe its worth always passing a NIC option to QEMU explicitly? (Since backends needs to be able to reach internet after a successfull login/boot is one of the requirements of runltp-ng)

@shunghsiyu
Copy link
Contributor Author

shunghsiyu commented Jun 20, 2020

I take this back, there is a default e1000 NIC on the VM, it's just that the guest’s kernel did not come with an e1000 driver.

@richiejp
Copy link
Collaborator

Maybe we should use virtio NIC by default? All cloud providers should be using virtio nics, so using virtio will make testing more relevant to real world usage of VMs.

Same for other devices currently being emulated.

@richiejp richiejp reopened this Jun 22, 2020
@richiejp richiejp changed the title No network interface card attached to VM in newer QEMU version Use Virtio devices by default in QEMU Jun 22, 2020
@richiejp richiejp added the enhancement New feature or request label Jun 22, 2020
@shunghsiyu
Copy link
Contributor Author

Maybe we should use virtio NIC by default? All cloud providers should be using virtio nics, so using virtio will make testing more relevant to real world usage of VMs.

I second that.
It would certainly help in my use case as well.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants