Hi, Lisa
In ~/.bash_profile, I've added JAVA_HOME to the end. Follow is ~/.bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
JAVA_HOME=/usr/java/latest
export JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH
export PATH
Follow is $JAVA_HOME.
Issue JAVA_HOME:
[root@client1 ~]# echo $JAVA_HOME
/usr/java/latest
[root@client1 ~]# ls -l $JAVA_HOME
total 0
lrwxrwxrwx 1 root root 8 Mar 15 20:35 bin -> /usr/bin
I don't see JDK in java -version, but I can see jdk1.8.0_171-amd64 that I newly install in /usr/java.
Googling that, in the second line of java -version, it may be something like
"OpenJDK Runtime Environment xxx" or "Java(TM) SE Runtime Environment xxx".
I remember that before updated java to 1.8 version in vm, it started with OpenJDK.
Do you think I should use OpenJDK?
Follow is some other information about my java.
[root@client1 ~]# which java
/usr/java/latest/bin/java
[root@client1 ~]# java -version
java version "1.8.0_171"
Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)
[root@client1 opt]# ls /usr/java/
default jdk1.8.0_112 jdk1.8.0_171-amd64 latest
About the network, on host, I've set up two bridges, br3 and br4.
Br3 for external network for vms and client.
Br4 for internal network for vms. (I also add client to this bridge for debug reason, I'm not sure if it will cause any problems?)
host br3 192.1.1.254
infra tap1-1 192.1.1.1
web tap1-2 192.1.1.2
mail tap1-3 192.1.1.3
app tap1-4 192.1.1.4
db tap1-5 192.1.1.5
batch tap1-6 192.1.1.6
client tap1-7 192.1.1.7
host br4 192.2.1.254
infra tap1-1-i 192.2.1.1
web tap1-2-i 192.2.1.2
app tap1-4-i 192.2.1.4
db tap1-5-i 192.2.1.5
client tap1-7-i 192.2.1.7
I set up bridges and taps on host with br_tap.sh(attached below).
'ifconfig' output is in ifconfig.txt(attached below).
Actually I use qemu directly to start and config vms, not with libvirt.
In vms, ip connection is ok via 192.1.1.x or 192.2.1.x.
All vm start command is attached below.
thanks,
Tang