Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Mar 2021 17:32:19 +0100
From:      Sebastian Strollo <seb@strollo.org>
To:        freebsd-virtualization@freebsd.org
Subject:   Nested virtualization with VirtualBox OSE 6.1.8, any success?
Message-ID:  <2963C20D-25C2-4613-A878-908D16D5C4C0@strollo.org>

next in thread | raw e-mail | index | archive | help

--Apple-Mail=_2B081441-6F8F-4266-9AE8-EB4BBDD14A25
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Hi

I=E2=80=99m running 12.2-RELEASE-p4 (on an Intel i7-10710U cpu w 64G =
RAM) as the host OS and using virtualbox-ose-nox11-6.1.18 (from pkg).

I have a guest VM that runs Ubuntu 20.04, and for some testing and =
development I need it to be able to run KVM, hence I need =E2=80=9Cnested =
virtualization=E2=80=9D. Has anyone had any luck with the =
"--nested-hw-virt on=E2=80=9D option?

I=E2=80=99m not having any luck at all, if I try to enable it then =
startup of my VM just hangs, I get the following error in VBoxSVC.log =
(which I think is the relevant one, the whole log is attached - I =
suspect the disk that it can=E2=80=99t close is just a result of it =
shutting down even though it comes before in the log)


  00:54:00.390457 Watcher  ERROR [COM]: aRC=3DE_ACCESSDENIED =
(0x80070005) aIID=3D{d0a0163f-e254-4e5b-a1f2-011cf991c38d} =
aComponent=3D{VirtualBoxWrap} aText=3D{The object is not ready}, =
preserve=3Dfalse aResultDetail=3D0


And looking for that id in xpti.dat I find =E2=80=9CIVirtualBox=E2=80=9D:


  % grep d0a0163f-e254-4e5b-a1f2-011cf991c38d =
~/.config/VirtualBox/xpti.dat
  329,IVirtualBox,{d0a0163f-e254-4e5b-a1f2-011cf991c38d},0,-1,1


If I =E2=80=9Cvboxmanage modifyvm --nested-hw-virt off=E2=80=9D then my =
VM starts up fine, so I=E2=80=99ve eliminated other problems.

I assume that the kernel has to allow VirtualBox to do this kind of =
stuff? Is there perhaps a sysctl setting to permit this, or is it simply =
not doable in FreeBSD-12?

Thanks,

/Sebastian

PS. I=E2=80=99d actually much rather run my VM under bhyve, anyone know =
the status of nested virtualization there?



--Apple-Mail=_2B081441-6F8F-4266-9AE8-EB4BBDD14A25
Content-Disposition: attachment;
	filename=VBoxSVC.log
Content-Type: application/octet-stream;
	x-unix-mode=0600;
	name="VBoxSVC.log"
Content-Transfer-Encoding: 7bit

00:00:00.000349 main     VirtualBox XPCOM Server 6.1.18 r142142 freebsd.amd64 (Mar 13 2021 17:24:09) release log
00:00:00.000354 main     Log opened 2021-03-17T15:18:23.329141000Z
00:00:00.000355 main     Build Type: release
00:00:00.000360 main     OS Product: FreeBSD
00:00:00.000363 main     OS Release: 12.2-RELEASE-p4
00:00:00.000365 main     OS Version: FreeBSD 12.2-RELEASE-p4 GENERIC
00:00:00.000366 main     Firmware type: failed - VERR_NOT_SUPPORTED
00:00:00.000378 main     Host RAM: 65202MB (63.6GB) total, 62900MB (61.4GB) available
00:00:00.000382 main     Executable: /usr/local/lib/virtualbox/VBoxSVC
00:00:00.000382 main     Process ID: 1323
00:00:00.000383 main     Package type: BSD_64BITS_GENERIC (OSE)
00:00:00.001353 main     IPC socket path: /tmp/.vbox-seb-ipc/ipcd
00:00:00.108950 nspr-2   VirtualBox: object creation starts
00:00:00.109005 nspr-2   Home directory: '/home/seb/.config/VirtualBox'
00:00:00.109184 nspr-2   Loading settings file "/home/seb/.config/VirtualBox/VirtualBox.xml" with version "1.12-freebsd"
00:00:01.172367 nspr-2   HostDnsMonitor: initializing
00:00:01.172407 nspr-2   NAT: resolv.conf: nameserver 10.11.11.1
00:00:01.172430 nspr-2   HostDnsMonitor: updating information
00:00:01.172440 nspr-2   HostDnsMonitor: old information
00:00:01.172444 nspr-2     no server entries
00:00:01.172448 nspr-2     no domain set
00:00:01.172451 nspr-2     no search string entries
00:00:01.172454 nspr-2   HostDnsMonitor: new information
00:00:01.172457 nspr-2     server 1: 10.11.11.1
00:00:01.172461 nspr-2     domain: kanten.strollo.org
00:00:01.172467 nspr-2     search string 1: kanten.strollo.org
00:00:01.172470 nspr-2     search string 2: strollo.org
00:00:01.172791 nspr-2   VD: VDInit finished with VINF_SUCCESS
00:00:01.172854 nspr-2   ERROR [COM]: aRC=NS_ERROR_FAILURE (0x80004005) aIID={027bc463-929c-40e8-bf16-fea557cd8e7e} aComponent={SystemPropertiesWrap} aText={Cannot determine default Guest Additions ISO location. Most likely they are not available}, preserve=false aResultDetail=0
00:00:01.173131 nspr-2   Loading settings file "/store/vbox-vms/rhea/rhea.vbox" with version "1.17-freebsd"
00:00:01.173400 nspr-2   Loading settings file "/store/vbox-vms/utest/utest.vbox" with version "1.16-freebsd"
00:00:01.173597 nspr-2   VirtualBox: object created
00:00:01.178295 nspr-2   Saving settings file "/store/vbox-vms/rhea/rhea.vbox" with version "1.17-freebsd"
00:53:55.317121 nspr-2   Saving settings file "/store/vbox-vms/rhea/rhea.vbox" with version "1.17-freebsd"
00:54:00.389943 main     VirtualBox: object deletion starts
00:54:00.389975 main     ERROR [COM]: aRC=VBOX_E_OBJECT_IN_USE (0x80bb000c) aIID={ad47ad09-787b-44ab-b343-a082a3f2dfb1} aComponent={MediumWrap} aText={Medium '/store/vbox-vms/rhea/disk0.vmdk' cannot be closed because it is still attached to 1 virtual machines}, preserve=false aResultDetail=0
00:54:00.390275 main     HostDnsMonitor: shutting down ...
00:54:00.390282 main     HostDnsMonitor: shut down
00:54:00.390457 Watcher  ERROR [COM]: aRC=E_ACCESSDENIED (0x80070005) aIID={d0a0163f-e254-4e5b-a1f2-011cf991c38d} aComponent={VirtualBoxWrap} aText={The object is not ready}, preserve=false aResultDetail=0
00:54:00.390522 main     VirtualBox: object deleted

--Apple-Mail=_2B081441-6F8F-4266-9AE8-EB4BBDD14A25--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2963C20D-25C2-4613-A878-908D16D5C4C0>