Re: How to unload the vmm.ko module while FreeBSD is running...
- In reply to: Denis Kirjanov : "Re: How to unload the vmm.ko module while FreeBSD is running..."
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 02 Jul 2024 20:01:20 UTC
ok. I've been able to unload vmm : [root@marietto /dev/vmm]==> bhyvectl --vm=vm0:12 --destroy [root@marietto /dev/vmm]==> cd /dev/vmm cd: no such file or directory: /dev/vmm [root@marietto /dev/vmm]==> kldunload vmm OK. but now I would like to load it again : [root@marietto /dev/vmm]==> kldload vmm kldload: can't load vmm: module already loaded or in kernel [root@marietto /dev/vmm]==> kldstat | grep vmm [root@marietto /dev/vmm]==> ls /dev/vmm ls: /dev/vmm: No such file or directory On Tue, Jul 2, 2024 at 9:35 PM Denis Kirjanov <kirjanov@gmail.com> wrote: > > > вторник, 2 июля 2024 г. пользователь Mario Marietto < > marietto2008@gmail.com> написал: > >> Hello. >> >> I'm trying to unload the vmm kernel module,but it fails : >> >> [root@marietto /bhyve]==> kldunload -fv vmm >> Unloading vmm.ko, id=13 >> kldunload: can't unload file: Device busy >> >> I don't understand why it fails,since I don't have any bhyve vm currently >> running : >> >> [root@marietto /bhyve]==> ps ax | grep bhyve >> 6645 4 RL+ 0:00,00 grep bhyve (ggrep) >> >> and yes,the vmm module is loaded in memory : >> >> root@marietto /bhyve]==> kldstat | grep vmm >> 13 1 0xffffffff827ac000 37c9e8 vmm.ko >> >> how has it been loaded inside the memory ? Using /boot/loader.conf : >> >> vmm_load="YES" >> >> and it is located inside the directory /boot/kernel and it is called >> vmm.ko >> > > bhyvectl --destroy --vm=<name> > > > > >> >> Is there a way to unload it and reload it while FreeBSD is >> running,without rebooting the system ? thanks. >> >> -- >> Mario. >> > > > -- > Regards / Mit besten Grüßen, > Denis > > -- Mario.