I recently replaced a laptop with a Mac M2 chip, and using the original Centos image to install the virtual machine directly reported an error "This virtual machine cannot be powered on because it requires an X86 computer architecture, which is not compatible with this Arm computer architecture host."
installation process
Front
In the past, Macs with Intel chips used Parallels Desktop to play virtual machines. Now the new Mac uses a new M2 chip. I thought that the x86 architecture would not need to be replaced with the arm architecture. As a result, I couldn’t install it successfully after surfing the Internet for a day. , has been stuck on the Install Centos 7 page and keeps jumping back. Later, I browsed a lot of blogs and found a lot of images to run. Finally, I found a suitable one that can be used. The following is the specific process of image installation. Those who need VMware Fusion can directly visit the official website Download and search for an activation code.
1. Download mirror
- To prevent failure, it is stored in my Aliyun disk
- https://www.aliyundrive.com/s/8U3eN5a8EMY
- The image suffix is changed to iso suffix after the download is complete
Second, install the virtual machine
- Directly select the downloaded image to install
- Set according to your actual needs
- Configure the processor, memory, hard disk, and others according to your actual needs
- Here I will configure the processor, memory and hard disk, close the page and start it after configuration
- Select the first installation, then press Enter, wait for him to finish running and enter the page
- Choose according to your actual situation, if you don’t understand English, you can choose Chinese
- Modify Time & Date
- Modify Software Selection according to your actual situation
- I can use Minimal to install it myself. For others, refer to the installation below
- Turn off Kdump (choose according to personal circumstances)
- Modify Network & Host Name
- Set root password and User account
- Passwords that are too simple need to be pressed twice
- Configure the hard disk, I personally use automatic
- After the configuration is complete, click the lower right corner to start the installation, and then wait for the restart to complete.
- The mini installation mode is directly the command line, and the desktop mode will have an additional visual operation page, which can be done according to the actual situation
- Here, congratulations, the installation is successful, start your operation
3. Configure static IP
- Operate under the root account
- vi /etc/sysconfig/network-scripts/ifcfg-eth160
- BOOTPROTO changed to static
- Add GATEWAY, IPADDR, NETMASK, and DNS, and configure them according to their actual conditions. There are also related configurations when starting the network.
- Ping www.baidu.com is smooth, the host pings the virtual machine normally, the host ssh connection is normal, and the installation is complete
4. Install the big data environment
Reference article: Linux Virtual Machine: Building a Basic Environment for Big Data Clusters (Hadoop, Spark, Flink, Hive, Zookeeper, Kafka, Nginx)