You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/getting-started/graalvm-enterprise/oci/compute-instances.md
+24-15Lines changed: 24 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -18,16 +18,19 @@ To replicate the steps in this guide, [create a compute VM instance and connect
18
18
19
19
## Install GraalVM Enterprise
20
20
21
-
For convenient installation, GraalVM Enterprise RPMs have been made available in the OCI YUM repository.
21
+
For convenience, GraalVM Enterpriise RPMs are available in the Oracle YUM repository.
22
+
Each RPM is self-contained and will automatically pull in all the required dependencies.
23
+
22
24
That means that OCI customers can use the GraalVM Enterprise environment in their cloud instances by installing it with `yum` - a package-management utility for the Linux operating systems.
23
25
24
-
For demonstration purposes, a demo-instance of the **VM.Standard.E4.Flex** shape with the **Oracle Linux 7.9** pre-built image was created.
25
-
The following SSH command is then used to connect to a Linux instance from a Unix-style system:
26
-
```shell
27
-
ssh -i .ssh/id_rsa opc@INSTANCE_PUBLIC_IP
28
-
```
26
+
The following instructions have been tested on an OCI Compute Instance with **Oracle Linux 7.9** and **VM.Standard.E4.Flex** with 1 OCPU and 16 GB RAM.
27
+
Use the following command to connect to the OCI Compute Instance from a Unix-style system:
28
+
29
+
```shell
30
+
ssh -i .ssh/id_rsa opc@INSTANCE_PUBLIC_IP
31
+
```
29
32
30
-
In this instance, `.ssh/id_rsa` is the full path and name of the file containing the private SSH key, `opc` is the default name for the Oracle Linux image, and `INSTANCE_PUBLIC_IP` is the instance IP address provisioned from the console.
33
+
The `.ssh/id_rsa` part is the full path and name of the file containing the private SSH key, `opc` is the default name for the Oracle Linux image, and `INSTANCE_PUBLIC_IP` is the instance IP address provisioned from the console.
31
34
For more details, refer to the [Connecting to Your Linux Instance Using SSH](https://docs.cloud.oracle.com/iaas/Content/GSG/Tasks/testingconnection.htm) tutorial.
32
35
33
36
1. Having connected to the instance, verify which GraalVM Enterprise RPMs are available for the installation, narrowing down the search to the latest release, and Java 11.
@@ -44,7 +47,7 @@ For example, to install the latest version of "Oracle GraalVM Enterprise Edition
44
47
sudo yum install graalvm22-ee-11-jdk
45
48
```
46
49
Confirm if the installed package size is okay by typing `yes` at the prompt.
47
-
It will install the latest version of **graalvm22-ee-11-jdk** which includes the JVM runtime, the Graal compiler, and all dependent packages, for example, `libpolyglot`, `llvm`, etc.
50
+
It will install the latest version of **graalvm22-ee-11-jdk** which includes the JVM runtime with the Graal compiler.
48
51
49
52
After the installation, the GraalVM Enterprise binary is placed in _/usr/lib64/graalvm_. You can check this with:
50
53
@@ -69,18 +72,24 @@ For example, to install the latest version of "Oracle GraalVM Enterprise Edition
69
72
source~/.bashrc
70
73
```
71
74
72
-
- Verify the values of `PATH` and `JAVA_HOME` to check if it was successful:
75
+
- Verify the values of `PATH` and `JAVA_HOME`:
73
76
74
77
```shell
75
78
echo$JAVA_HOME
76
79
echo$PATH
77
80
```
81
+
- Run the following command to confirm the version of GraalVM Enterprise JDK installed:
82
+
83
+
```shell
84
+
java -version
85
+
```
78
86
79
87
Now you have a ready-to-go VM instance with GraalVM Enterprise installed.
80
88
81
89
## Install Additional Features
82
90
83
-
GraalVM Enterprise is shipped with core components (to save the filesize) and can be extended with more features on demand. For example, you can install Native Image, the Node.js runtime, the LLVM toolchain, etc. Find information on available features [here](https://docs.oracle.com/en/graalvm/enterprise/22/docs/overview/architecture/).
91
+
GraalVM Enterprise consists of different features and components - JDK, Native Image, Python runtime, Node.js runtime, LLVM toolchain, etc. - each of which can be installed separately or as an add-on to an existing component.
92
+
See [Distribution Components List](https://docs.oracle.com/en/graalvm/enterprise/22/docs/overview/architecture/#distribution-components-list) for more information.
84
93
85
94
To add additional features to GraalVM Enterprise, use the `yum install <package_name>` command.
86
95
@@ -92,7 +101,7 @@ To add additional features to GraalVM Enterprise, use the `yum install <package_
92
101
The printed list is enormous. If you are interested in a particular component, for example, the Python runtime, narrow down the search providing the exact package name:
93
102
94
103
```shell
95
-
sudo yum provides graalvm21-ee-11-python*
104
+
sudo yum provides graalvm22-ee-11-python*
96
105
```
97
106
98
107
2. Install the component to GraalVM Enterprise with the `yum install <package_name> command` command. To install the Python runtime, run:
@@ -110,7 +119,7 @@ To add additional features to GraalVM Enterprise, use the `yum install <package_
110
119
1. Search for Native Image PRMs available for your installation:
111
120
112
121
```shell
113
-
sudo yum provides graalvm21-ee-11-native-image*
122
+
sudo yum provides graalvm22-ee-11-native-image*
114
123
```
115
124
2. Install Native Image using the `yum install <package_name> command` command. All required dependencies will be automatically resolved.
116
125
@@ -153,16 +162,16 @@ The `yum` package manager for Oracle Linux can be used to update an existing Gra
153
162
java -version
154
163
```
155
164
156
-
The **graalvm22-ee-17-jdk** package is installed alongside **graalvm21-ee-11-jdk**in the _/usr/lib64/graalvm_ directory. Note that regardless the version printed to the console, the `PATH` and `JAVA_HOME` environment variables still point to the old version. Reset the variables as described in [Install GraalVM Enterprise](#install-graalvm-enterprise), step 3.
165
+
The **graalvm22-ee-17-jdk** package is installed alongside **graalvm22-ee-11-jdk**in the _/usr/lib64/graalvm_ directory. Note that regardless the version printed to the console, the `PATH` and `JAVA_HOME` environment variables still point to the old version. Reset the variables as described in [Install GraalVM Enterprise](#install-graalvm-enterprise), step 3.
157
166
158
167
### Note on `yum upgrade`
159
168
160
169
The `yum upgrade`command can be used to update on the same year package line, for example, to upgrade from GraalVM Enterprise 22.0.0 to version 22.0.1 when this RPM package becomes available:
161
170
162
171
```shell
163
-
sudo yum upgrade graalvm22-ee-17-jdk
172
+
sudo yum upgrade graalvm22-ee-11-jdk
164
173
```
165
-
If there is no newer package available, you will see the `No packages marked for update` message.
174
+
As there are no newer package available, you will see the `No packages marked for update` message.
166
175
167
176
It will update the whole system and remove the obsolete GraalVM Enterprise installation.
0 commit comments