Install vhost-net module
Bug #1254690 reported by
Ian Wells
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cisco Openstack |
New
|
Undecided
|
Unassigned |
Bug Description
libvirt will use the vhost-net kernel module, if it's in the kernel at the time you start a VM. This significantly improves network performance for VMs. There's no good reason not to turn it on, and it should be added to the default COI setup.
(Needs to be probed and also put in /etc/modules)
To post a comment you must log in.
Trivial and somewhat naive way to do it:
define load_module() {
"addmod_ $title" : $title" ];
exec {
command => "/bin/echo '$title' >>/etc/modules",
unless => "/bin/egrep '^$title' /etc/modules",
notify => Exec["modprobe_
}
exec {
"modprobe_ $title" :
refreshonl y => true;
command => "/sbin/modprobe ${name} || :",
}
}
... then call from node os_base (in Grizzly).
Be nicer if it had present/absent and also if it used augeas, but I couldn't find a lens that works with the Ubuntu-shipping version.