-
Notifications
You must be signed in to change notification settings - Fork 469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default NIC model_type virtio is not being setted when attach new NIC to the VM #6575
Comments
model_type == virtio
is not being setted when attach new NIC to the VM
Hi @Franco-Sparrow , I have found something curious: one/src/vmm_mad/remotes/kvm/attach_nic Lines 55 to 66 in 1e23efb
In the line 61 of the previews code, the environment loaded is the local one, but I assume that this action must run in the host, so I believe that the function that needs to called is the load_remote_env. I will do some test and i will back to you! |
Thanks @nachowork90 🥇 I tested your configuration and it works now!!! Hi @rsmontero, this is a confirmed issue that is present since PS: BTW, your commit when changing this file from Regards |
I just encountered the same error related to model name of NIC on the same ON version as mentioned by the OP. In my case, the issue is intermittent. I encountered the error while instantiating Windows VM, where it would not boot with a NIC attached when I'll try out your fix @nachowork90 and give feedback here. Thanks Also, thank you @Franco-Sparrow for the bug report and @rsmontero for adding fix to next release. |
So @Franco-Sparrow, changing to |
Hi Sir @rsmontero Yes, in my case I havent faced the issue that @ibrahimkahn explained, only when adding new nics and @nachowork90 's patch fixed the problem. |
This properly loads kvmrc values on attach nic, in particular DEFAULT_ATTACH_NIC_MODEL (cherry picked from commit cd5527e7d6e89d721938331a56d1679a1c85af4d)
Thanks, fix is now merge. In the meantime @ibrahimkahn you can apply the patch manually to |
Description
When you instantiate a new VM with a given number of NICs or just one, and you dont specify the model type, Opennebula is configured to set by default to use
virtio
. This works when the VM is instantiated, but not when you add NICs after being instantiated, without specify the emulated model type of the NIC, which should relay on the default driver (virtio). Instead of this, the new NIC is configured for driverRTL-8100/8101L/8139 PCI fast Ethernet Adapter (rev 20)
, in other words, Realtek.Issue confirmed for OpenNebula clusters running in
6.8.1
and6.8.2
.To Reproduce
Create a new VM. After created, add a new NIC Verify the PCI devices on the VM with
lspci
.Expected behavior
Added a new NIC using virtio driver, as configured by default.
Details
Additional context
Add any other context about the problem here.
Progress Status
The text was updated successfully, but these errors were encountered: