Current location - Quotes Website - Signature design - Mac virtual machine mac virtual linux
Mac virtual machine mac virtual linux

How to install Linux on MacOS?

It is divided into two types: virtual machine installation and physical machine installation.

The first method is to install the pd virtual machine, then open the software and select the Linux system, and it will automatically help you install it.

Second, different Linux systems have different installation methods. The first is to make a Linux boot disk. You can use the Linux boot disk to make it. I forgot the name. You can search for tutorials on how to install ubuntu on MacBook.

The second step is to turn off System Integrity Protection.

How to use Linux virtual network card tap?

Multiple ways to add virtual network cards in Linux. Sometimes, a server needs to set up multiple IPs, but you don’t want to add multiple network cards, so you need to set up virtual network cards. Here are several ways to add virtual network cards to a Linux server. Add a virtual network card on eth0. We add a virtual network card to eth0: The first method: express create and delete the virtual network card sudoifconfigeth0:0192.168.10.10up. The above command can create a virtual network card called eth0:0 on the eth0 network card. The address is: 192.168.1.63 If ??you no longer want this virtual network card, you can use the following command to delete it: sudoifconfigeth0:0down After restarting the server or network, the virtual network card will be gone. hzhsan: But I found that the added virtual network card and the physical address of the original network card are Same.

Second method: Modify the network card configuration file. Under ubuntu, the network card configuration file is /etc/network/interfaces, so we modify it: sudovim/etc/network/interfaces and add the following to this file. Content and save: autoeth0:0ifaceeth0:0inetstaticaddress192.168.10.10netmask255.255.255.0#network192.168.10.1#broadcast192.168.1.255 After saving, we need to restart the network card (reload the configuration file) for it to take effect. Use the following command to restart The advantage of :sudo/etc/init.d/networkingrestart is that restarting the server or network card configuration will not be lost. -----------------------------------------------How to virtualize the network card in Linux The third method: Create a tap. The first two methods have one feature. The created network cards can have different IP addresses, but the Mac address is the same. Cannot be used to create virtual machines. Add a virtual network card taptunctl-b Attached are the relevant commands: Display bridge information brctlshow Add a network bridge brctladdbrvirbr0 Activate the bridge iplinksetvirbr0up Add a virtual network card taptunctl-btap0 -------> Executing the above mission will generate a tap, with the suffix starting from 0 , 1, and 2 activate the created tapiplinksettap0up in ascending order to add the tap0 virtual network card to the specified network bridge. brctladdifbr0tap0 Configure the IP address for the bridge ifconfigvirbr1169.254.251.4up Unbind the network card eth5 bound to the virbr1 bridge brctldelifvirb1eth5 Add the network card eth6 to the virbr1 bridge brctladdifvirbr1eth6

Does Mac have a virtual machine?

Mac has a virtual machine. It can be said that virtual machine software is used by some Apple users, because many software are not compatible with Mac, and most of them are developed and designed based on the Windows framework. Although there is also a Mac version, its release is often delayed for a long time.

For Apple users, you may want to try the virtual machine software ParallelsDesktop. It is mainly developed for Mac systems. It can simulate running Win, Linux, Android and other operating systems and software at the same time without restarting the computer, and can switch between different systems at will.