-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ubuntu 18.04, install of sgx_linux_x64_driver_1.35.bin silently fails #124
Comments
Not sure why it went silent. Is the regular Ubuntu image or cloud flavor (e.g. Azure flavor)? 4.15 kernel is supported. Did you try to uninstall old driver before installing new one? |
It’s a regular Ubuntu image.
I think the problem is that I can’t get the v1.20 driver to uninstall.
I uninstalled the PSW and all SGX components first.
sudo /opt/intel/sgxdriver/uninstall.sh
Uninstall failed because the kernel module is in use
modinfo intel_sgx
filename: /lib/modules/4.15.0-112-generic/updates/dkms/intel_sgx.ko
version: 1.20
license: Dual BSD/GPL
author: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
description: Intel SGX Driver
srcversion: AA38F3484C7F0D7582A954D
alias: acpi*:INT0E0C:*
depends:
retpoline: Y
name: intel_sgx
vermagic: 4.15.0-112-generic SMP mod_unload
signat: PKCS#7
signer:
sig_key:
sig_hashalgo: md4
lsmod | grep intel_sgx
intel_sgx 45056 0
From: Haitao Huang <notifications@github.com>
Sent: Tuesday, August 4, 2020 12:44 PM
To: intel/SGXDataCenterAttestationPrimitives <SGXDataCenterAttestationPrimitives@noreply.github.com>
Cc: Noel Gifford <Noel.Gifford@microsoft.com>; Author <author@noreply.github.com>
Subject: Re: [intel/SGXDataCenterAttestationPrimitives] Ubuntu 18.04, install of sgx_linux_x64_driver_1.35.bin silently fails (#124)
Not sure why it went silent. Is the regular Ubuntu image or cloud flavor (e.g. Azure flavor)?
4.15 kernel is supported. Did you try to uninstall old driver before installing new one?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fintel%2FSGXDataCenterAttestationPrimitives%2Fissues%2F124%23issuecomment-668789265&data=02%7C01%7Cnoel.gifford%40microsoft.com%7C89028054fe3944c1c6ca08d838aeb766%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637321670342321998&sdata=900OSTY3nmIBEqDgooA3xSPJOkYxxKdJsas%2FnsdQ5U8%3D&reserved=0>, or unsubscribe<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAPFZT2OUUPSISQCGY6HYXGLR7BQHPANCNFSM4PURACOQ&data=02%7C01%7Cnoel.gifford%40microsoft.com%7C89028054fe3944c1c6ca08d838aeb766%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637321670342331986&sdata=OZCnEFWCE%2BTUtx58dAEktaiLmRCoUmBu37aZqeh%2BTOg%3D&reserved=0>.
|
You need stop AESM before uninstalling driver. But uninstalling PSW usually does that. You might have something else using it. |
I was finally able to get the driver removed and the v1.35 driver installed.
I don’t know what the issue was, but it’s fixed now.
Thanks.
From: Haitao Huang <notifications@github.com>
Sent: Wednesday, August 5, 2020 11:50 AM
To: intel/SGXDataCenterAttestationPrimitives <SGXDataCenterAttestationPrimitives@noreply.github.com>
Cc: Noel Gifford <Noel.Gifford@microsoft.com>; Author <author@noreply.github.com>
Subject: Re: [intel/SGXDataCenterAttestationPrimitives] Ubuntu 18.04, install of sgx_linux_x64_driver_1.35.bin silently fails (#124)
You need stop AESM before uninstalling driver. But uninstalling PSW usually does that. You might have something else using it.
Try use "lsof | grep sgx" to see if running process is using /dev/sgx*.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fintel%2FSGXDataCenterAttestationPrimitives%2Fissues%2F124%23issuecomment-669398364&data=02%7C01%7Cnoel.gifford%40microsoft.com%7Cc9ae9a61e37f4495b21108d839705e43%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637322502062793514&sdata=ytBwA1aP4b2U1xX73Gu6948v%2FuL4sZWXHVY92RYniPk%3D&reserved=0>, or unsubscribe<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAPFZT2MTS52AP7BEEQ5WJ23R7GSVZANCNFSM4PURACOQ&data=02%7C01%7Cnoel.gifford%40microsoft.com%7Cc9ae9a61e37f4495b21108d839705e43%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637322502062793514&sdata=g8GaidANBaXUCWXSnsk%2FLZCBPruHG3rzWP6n9aOY3xY%3D&reserved=0>.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is installing the 1.35 SGX driver with Ubuntu 18.04 and Kernel 4.15 a supported configuration?
Ubuntu 18.04, Kernel 4.15
Intel SGX Driver 1.20 is installed.
When I attempt to install 1.35 SGX driver, the installation fails with no error message.
Intel SGX Driver 1.20 is still installed.
OE Sample application helloworld now fails.
./host/helloworld_host ./enclave/enclave.signed
2020-08-03T22:54:23.000000Z [(H)ERROR] tid(0x7f952ffeeb80) | enclave_create with ENCLAVE_TYPE_SGX1 type failed (err=0x1) (oe_result_t=OE_PLATFORM_ERROR) [/source/host/sgx/sgxload.c:oe_sgx_create_enclave:480]
2020-08-03T22:54:23.000000Z [(H)ERROR] tid(0x7f952ffeeb80) | :OE_PLATFORM_ERROR [/source/host/sgx/create.c:oe_sgx_build_enclave:812]
2020-08-03T22:54:23.000000Z [(H)ERROR] tid(0x7f952ffeeb80) | :OE_PLATFORM_ERROR [/source/host/sgx/create.c:oe_create_enclave:960]
oe_create_helloworld_enclave(): result=21 (OE_PLATFORM_ERROR)
Rebooting doesn't resolve the failure.
The issue is fixed after
sudo apt update
sudo apt upgrade
SGX driver is still at 1.20.
The text was updated successfully, but these errors were encountered: