Install and import Ubuntu systems under VMware command line

Source: Internet
Author: User

Premise:

Given that personal PC performance is too weak, consider whether it is possible to migrate an environment built on a PC to a high-performance server. When you think about it, do it.

After downloading the corresponding operating system installation package, follow these steps:

Installation package Name: Vmware-workstation-full-12.5.2-4638234.x86_64.bundle

1. Installation commands

首先添加可执行权限: chmod +x VMware-Workstation-Full-12.5.2-4638234.x86_64.bundleTo run the installation command parameter description:

#--console #以命令行模式安装, the default is GUI mode.

#--eulas-agreed #自动同意安装协议, if not used, you need to press Q and yes.

The #--required is #显示安装协议后 and installed automatically.

#-s vmware-workstation serialnumber #输入vmware序列号

  . /VMware-Workstation-Full-12.5.2-4638234.x86_64.bundle  --console \     --eulas-agreed \     --required \     -s vmware-workstation serialNumber xxxxxxxNote: The uninstall command./vmware-installer-u vmware-workstation View the installation status command vmware-modconfig -- install -status2. Connect to remote VMware via local VMware and create a new virtual machine on the remote server, select the disk file This step selects the 4CPU 4Core memory selected using the existing virtual disk hardware configuration as 8G, which is the highest configuration supported by Vmware12.

Quick installation is complete.

When creating a virtual machine, the brain has a choice of bridging mode, half a day through the shell is not connected to the back of a NAT quickly connected.

Perform the same task performance comparison

Host

Cpu/core

strong> memory /G

time consuming /h

PC

4  [email protected]

1

4

Server

[email protected]

8

strong>0.5

Tips:

The difference between bridging and NAT:

the installation process of the pit is recorded :

1. Command line to start the virtual machine

#-t Identification Type
#ws represents workstation
#nogui do not start the interface
Vmrun-t ws START/DATA/VMWARE/WIN7/WIN7.VMX Nogui

2. Get the IP address of the UBUBTU machine

VMRUN-GU-GP copyfilefromguesttohost ubuntu\ubuntu.vmx/etc/network/interfaces Addr.txt

3. Adjust the virtual machine CPU and memory configuration

This method did not find a workable way, so the use of open, to go back and forth to reload about 5 times.


Tips Bridging and Nat differences:
Bridge connection

Bridge network refers to the local physical network card and virtual network card through the VMnet0 Virtual Switch Bridge, physical network card and virtual network card in the topology map on the same status, then the physical network card and virtual network card is equivalent to the same network segment, Virtual switch is equivalent to a real network switch, Therefore, the IP address of the two network card should also be set to the same network segment.

So when we want to use a virtual machine on the LAN, to provide services to other local area network PCs, such as FTP, provide SSH, provide HTTP services, then choose the bridge mode.

For example, there is a router in the university dormitory, the dormitory four people connect this router, the router's Wanip ignore, this IP is dynamically obtained, and Lanip default is 192.168.1.1, subnet mask is 255.255.255.0. While the other four people are automatically acquiring IP, assume that the IP of four people is:

a:192.168.1.100/255.255.255.0, b:192.168.1.101/255.255.255.0, c:192.168.1.102/255.255.255.0, D:192.168.1.103/ 255.255.255.0

Then the IP address of the virtual machine can be set 192.168.1.2-192.168.1.99,192.168.1.104-192.168.1.254 (except for the network address of all 0 and all 1, and then the IP address of ABCD four person)

Then the IP address of the virtual machine can be set to 192.168.1.98/255.255.255.0, set the IP address, ABCD These four people can access the virtual machine through the 192.168.1.98, if the virtual machine needs Sisu Network, then also need to configure the virtual machine routing address, is 192.168.1.1, so that the virtual machine can sisu network, but, the internet we generally go through the domain name to access the external network, so we also need to set up a virtual machine Set up a DNS server, we can simply point to the DNS server address configured as Google's DNS server: 8.8.8.8, the virtual machine will be able to surf the Internet.

Nat

In NAT mode, the virtual machine is allowed to access the public network by means of a NAT (network address translation) function, which is located on the network hosting the machine.

In NAT mode, the network of the virtual machine's NIC and the physical NIC, not the same network, the virtual machine's NIC, is a virtual network provided in VMware.

Comparison of Nat and bridging:

(1) Nat mode and bridge mode virtual machine can be Sisu network.

(2) because the NAT network in a virtual network provided by VMware, so the other host network is unable to access the virtual machine, and the host can access the virtual machine, the virtual machine can access all the hosts of the local area network, because the real LAN relative to the NAT virtual network, is the network of NAT virtual network, People who don't understand can check the knowledge of NAT.

(3) In bridge mode, multiple virtual machines can access each other, and in NAT mode, multiple virtual machines can also access each other.

If you build a virtual machine, just give yourself to use, do not need to give other people to the LAN, then you can choose NAT, after all, the NAT mode of the virtual system's TCP/IP configuration information is provided by the VMNET8 (NAT) virtual network DHCP server, as long as the network configuration of the virtual machine is DHCP, Then you do not need to do any other configuration, only the host machine can access the Internet, you can let the virtual machine network.

For example, if you want to build multiple virtual machine clusters for testing purposes, the host may be a notebook and IP is not fixed. This scenario, we need to adopt the NAT mode, but we have to consider a problem, the virtual machine is required to exchange visits, the default DHCP, the virtual machine IP each reboot, IP is not fixed, so we need to manually set the IP address of the virtual machine.

But we don't know anything about the virtual network where the virtual machine card is located, such as the routing address and subnet mask of the virtual machine network, so we need to check the information of the NAT virtual network first.

Using VMware, as shown in the Edit->virtual network editor after configuring the virtual networking information, note that VMNET8,VMNET8 is equivalent to a router in this machine, and the virtual machine sets up the NAT to go online via this route. You can view its network address, routing address, and subnet mask.

Select Vmnet8->nat settings, you can see the subnet IP display as 192.168.233.0, the subnet mask is 255.255.255.0, that route address, is actually the gateway IP, are the same thing, here is 192.168.233.2.

Next is good to do, in the corresponding virtual machine set IP, subnet mask, routing address can be Sisu network, as for DNS can be set to 8.8.8.8.




Reference: command-line installation http://marse.blog.51cto.com/11586237/1842842
Bridging and Nat differences http://www.cnblogs.com/ggjucheng/archive/2012/08/19/2646007.html

Install and import Ubuntu systems under VMware command line

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.