Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Jul 2024 22:35:04 +0300
From:      Denis Kirjanov <kirjanov@gmail.com>
To:        Mario Marietto <marietto2008@gmail.com>
Cc:        FreeBSD virtualization <freebsd-virtualization@freebsd.org>
Subject:   Re: How to unload the vmm.ko module while FreeBSD is running...
Message-ID:  <CAHj3AVnSAYFRV9zrtV0XLJxd9wH3j2HX4LvZmF6zkrKXECPHgw@mail.gmail.com>
In-Reply-To: <CA%2B1FSijyH2EmUx95q8uudmYw-weAY4p480TKtancaRF3zdbvqA@mail.gmail.com>
References:  <CA%2B1FSijyH2EmUx95q8uudmYw-weAY4p480TKtancaRF3zdbvqA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000a23cc5061c48cf90
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

=D0=B2=D1=82=D0=BE=D1=80=D0=BD=D0=B8=D0=BA, 2 =D0=B8=D1=8E=D0=BB=D1=8F 2024=
=E2=80=AF=D0=B3. =D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D0=
=B5=D0=BB=D1=8C Mario Marietto <marietto2008@gmail.com>
=D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB:

> Hello.
>
> I'm trying to unload the vmm kernel module,but it fails :
>
> [root@marietto /bhyve]=3D=3D> kldunload -fv vmm
> Unloading vmm.ko, id=3D13
> 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]=3D=3D> 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]=3D=3D> kldstat | grep vmm
> 13    1 0xffffffff827ac000   37c9e8 vmm.ko
>
> how has it been loaded inside the memory ? Using /boot/loader.conf :
>
> vmm_load=3D"YES"
>
> and it is located inside the directory /boot/kernel and it is called vmm.=
ko
>

bhyvectl --destroy --vm=3D<name>




>
> Is there a way to unload it and reload it while FreeBSD is running,withou=
t
> rebooting the system ? thanks.
>
> --
> Mario.
>


--=20
Regards / Mit besten Gr=C3=BC=C3=9Fen,
Denis

--000000000000a23cc5061c48cf90
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<br><br>=D0=B2=D1=82=D0=BE=D1=80=D0=BD=D0=B8=D0=BA, 2 =D0=B8=D1=8E=D0=BB=D1=
=8F 2024=E2=80=AF=D0=B3. =D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=
=D1=82=D0=B5=D0=BB=D1=8C Mario Marietto &lt;<a href=3D"mailto:marietto2008@=
gmail.com">marietto2008@gmail.com</a>&gt; =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=
=B0=D0=BB:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;=
border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div><div>Hel=
lo.</div><div><br></div><div>I&#39;m trying to unload the vmm kernel module=
,but it fails :<br></div><div><br></div><div>[root@marietto /bhyve]=3D=3D&g=
t; kldunload -fv vmm</div>Unloading vmm.ko, id=3D13<br><div>kldunload: can&=
#39;t unload file: Device busy</div><div><br></div><div>I don&#39;t underst=
and why it fails,since I don&#39;t have any bhyve vm currently running :<br=
></div><div><br></div><div>[root@marietto /bhyve]=3D=3D&gt; ps ax | grep bh=
yve<br>6645 =C2=A04 =C2=A0RL+ =C2=A0 =C2=A0 0:00,00 grep bhyve (ggrep)</div=
><div><br></div><div>and yes,the vmm module is loaded in memory :</div><div=
><br></div><div>root@marietto /bhyve]=3D=3D&gt; kldstat | grep vmm<br>13 =
=C2=A0 =C2=A01 0xffffffff827ac000 =C2=A0 37c9e8 vmm.ko</div><br></div><div>=
how has it been loaded inside the memory ? Using /boot/loader.conf :<br></d=
iv><div><br></div><div>vmm_load=3D&quot;YES&quot;</div><div><br></div><div>=
and it is located inside the directory /boot/kernel and it is called vmm.ko=
</div></div></blockquote><div><br></div><div><pre class=3D"bbCodeCode" dir=
=3D"ltr" style=3D"box-sizing:border-box;font-family:Monaco,Menlo,Consolas,&=
quot;Roboto Mono&quot;,&quot;Andale Mono&quot;,&quot;Ubuntu Mono&quot;,mono=
space;font-size:13px;margin-top:0px;margin-bottom:0px;padding:10px;line-hei=
ght:1.4;overflow:auto;direction:ltr;color:rgb(20,20,20)"><code style=3D"box=
-sizing:border-box;font-family:inherit;font-size:1em">bhyvectl --destroy --=
vm=3D&lt;name&gt;</code></pre><pre class=3D"bbCodeCode" dir=3D"ltr" style=
=3D"box-sizing:border-box;font-family:Monaco,Menlo,Consolas,&quot;Roboto Mo=
no&quot;,&quot;Andale Mono&quot;,&quot;Ubuntu Mono&quot;,monospace;font-siz=
e:13px;margin-top:0px;margin-bottom:0px;padding:10px;line-height:1.4;overfl=
ow:auto;direction:ltr;color:rgb(20,20,20)"><code style=3D"box-sizing:border=
-box;font-family:inherit;font-size:1em"><br></code></pre></div><div>=C2=A0<=
/div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-le=
ft:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div><br></div><div>Is=
 there a way to unload it and reload it while FreeBSD is running,without re=
booting the system ? thanks.</div><div><br></div><div><span class=3D"gmail_=
signature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature" =
data-smartmail=3D"gmail_signature">Mario.<br></div></div></div>
</blockquote><br><br>-- <br>Regards / Mit besten Gr=C3=BC=C3=9Fen,<br>Denis=
<br><br>

--000000000000a23cc5061c48cf90--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHj3AVnSAYFRV9zrtV0XLJxd9wH3j2HX4LvZmF6zkrKXECPHgw>