虚拟机软件: vmware workstation
镜像:openSUSE-Leap-15.2
提前建立安装目录
1、双击vmware workstation ,点击创建新的虚拟机
2、
3、
4、
5、
6、
7、
8、
9、
10、
11、
12、
13、
14、
15、
16、
17、
18、移除这三项
19、
20、
21、
22、鼠标锁定在虚拟机(鼠标点击虚拟机空白处即可),然后按F2
23、在English(US)回车
24、移动至Installation处回车
25、
26、
27、
28、
29、
30、
31、
32、
33、已安装完成
34、打开终端
35、
xiaoshayu@localhost:~> whoami xiaoshayu xiaoshayu@localhost:~> hostnamectl Static hostname: n/a Transient hostname: localhost.localdomain Icon name: computer-vm Chassis: vm Machine ID: 5da4a2c4f5e64010aaa388d924bafaec Boot ID: c300c023ec5d439ba75b89d655f79666 Virtualization: vmware Operating System: openSUSE Leap 15.2 CPE OS Name: cpe:/o:opensuse:leap:15.2 Kernel: Linux 5.3.18-lp152.57-default Architecture: x86-64
36、测试网络
xiaoshayu@localhost:~> ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 00:0c:29:a9:a9:e9 brd ff:ff:ff:ff:ff:ff inet 192.168.3.35/24 brd 192.168.3.255 scope global dynamic noprefixroute eth0 ## IP valid_lft 86080sec preferred_lft 86080sec inet6 fe80::2009:c0c7:6530:8afa/64 scope link noprefixroute valid_lft forever preferred_lft forever xiaoshayu@localhost:~> ping www.baidu.com ## 测试外网 PING www.a.shifen.com (39.156.66.18) 56(84) bytes of data. 64 bytes from 39.156.66.18 (39.156.66.18): icmp_seq=1 ttl=51 time=13.4 ms 64 bytes from 39.156.66.18 (39.156.66.18): icmp_seq=2 ttl=51 time=13.4 ms 64 bytes from 39.156.66.18 (39.156.66.18): icmp_seq=3 ttl=51 time=13.2 ms ^C --- www.a.shifen.com ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 5020ms rtt min/avg/max/mdev = 13.247/13.389/13.464/0.138 ms xiaoshayu@localhost:~> ping 192.168.3.4 ## 测试物理机 PING 192.168.3.4 (192.168.3.4) 56(84) bytes of data. 64 bytes from 192.168.3.4: icmp_seq=1 ttl=128 time=0.258 ms 64 bytes from 192.168.3.4: icmp_seq=2 ttl=128 time=0.215 ms 64 bytes from 192.168.3.4: icmp_seq=3 ttl=128 time=0.201 ms ^C --- 192.168.3.4 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2050ms rtt min/avg/max/mdev = 0.201/0.224/0.258/0.029 ms
网络连通。