Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Jul 2024 10:08:37 -0800
From:      Rob Wing <rob.fx907@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:  <CAF3%2Bn_d2Fnpx1gW8b5NfyPU=L7r1eLCS9XHa2aouOikbD09JNQ@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
--0000000000006553a3061c479aef
Content-Type: text/plain; charset="UTF-8"

Do you have any vm's that have been created but not destroyed?

check if there any device files living under /dev/vmm

On Tuesday, July 2, 2024, Mario Marietto <marietto2008@gmail.com> wrote:

> 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
>
> Is there a way to unload it and reload it while FreeBSD is running,without
> rebooting the system ? thanks.
>
> --
> Mario.
>

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

Do you have any vm&#39;s that have been created but not destroyed?<div><br>=
</div><div>check if there any device files living under /dev/vmm<br><br>On =
Tuesday, July 2, 2024, Mario Marietto &lt;<a href=3D"mailto:marietto2008@gm=
ail.com">marietto2008@gmail.com</a>&gt; wrote:<br><blockquote class=3D"gmai=
l_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left=
:1ex"><div dir=3D"ltr"><div><div>Hello.</div><div><br></div><div>I&#39;m tr=
ying to unload the vmm kernel module,but it fails :<br></div><div><br></div=
><div>[root@marietto /bhyve]=3D=3D&gt; kldunload -fv vmm</div>Unloading vmm=
.ko, id=3D13<br><div>kldunload: can&#39;t unload file: Device busy</div><di=
v><br></div><div>I don&#39;t understand why it fails,since I don&#39;t have=
 any bhyve vm currently running :<br></div><div><br></div><div>[root@mariet=
to /bhyve]=3D=3D&gt; ps ax | grep bhyve<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 mem=
ory ? Using /boot/loader.conf :<br></div><div><br></div><div>vmm_load=3D&qu=
ot;YES&quot;</div><div><br></div><div>and it is located inside the director=
y /boot/kernel and it is called vmm.ko</div><div><br></div><div>Is there a =
way to unload it and reload it while FreeBSD is running,without rebooting t=
he system ? thanks.</div><div><br></div><div><span class=3D"gmail_signature=
_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature" data-smar=
tmail=3D"gmail_signature">Mario.<br></div></div></div>
</blockquote></div>

--0000000000006553a3061c479aef--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAF3%2Bn_d2Fnpx1gW8b5NfyPU=L7r1eLCS9XHa2aouOikbD09JNQ>