VMware Configuration Example - Linux Host + Windows Guest + FireWall

xiaoxiao2021-03-06  85

Pattern Linux Host Windows (2000, XP) Guest Accessible Crowd: Most time works on Linux, sometimes you have to use the features in Windows, but the machine cannot restart (such as HTTP service is running) two advantages: 1. Linux runs on the hardware Native Speed ​​instead of virtual machine 2. Play the stability of Linux 3. You can use Linux firewall to protect Windows virtual machines, filtering (and monitored) known and unknown viruses (Trojans). 3. Experiments for proxy / DHCP / DNS / NAT / IPFILTER, improve application levels, or prototype development. Three specific configurations 1. Install VMware Workstation 4.0 / OR 4.5. 2. If there is no support for your kernel in the VMware distribution disk, you need to compile new modules. You need to install the compiler of Kernel-Source and GCC. Execute: Sudo VMware-Config.PL After compiling, configure the network, just select the host-only type, specify the network: (for example) 10.1.1.0 Netmask: 255.255.255.0 Do not select VMware Samba to share file sharing. 3. After completing, the VMware service should have started. Check the network interface / sbin / ifconfig should have a virtual interface: VMNet1 4. Execute VMware with a normal user to create a Windows 2000 / XP guest, pay attention, network type selection HOST- Only. 5. Use the DHCPD in Host to check the process PS-EF | GREP VMware You will find that VMware enables its own DHCP service on the virtual interface. In order to use the DHCP service in Host, it must be stopped. Method 1: Kill dropped this process method 2: Edit this file: /etc/init.d/vmware, find this line: vmware_start_hostonly "$ vhubnr" 'VMNET' "$ vhubnr" / "$ hostdd" "$ netmask" 'YES '"$ samba" changed' yes' to 'NO', so that the VMware service does not load the own DHCP service. Restart VMware Services SUDO / SBIN / Service VMware Restart 6. Configure iptables and DHCPD to now, you have got a machine with multiple network interfaces and a virtual intranet, now you can configure DHCP and firewalls for this virtual intranet. . DHCPD: Editor: / etc / sysconfig / dhcpd dhcpdargs = "Eth1 Vmnet1" Eth1 is the original network card (if any), VMNet1 is a web card for virtual intranet.

转载请注明原文地址:https://www.9cbs.com/read-96214.html

New Post(0)