VMware Installing Fedora Core 3 experience and various experience problems [reproduced]

xiaoxiao2021-03-05  21

Recently contact this, find information online, share it with you. I forgot this author of this article, I am sorry here.

Summary: This thing is that I have a summary of Linux, which records some of the VMware virtual machines to install Linux and resolve, covering network settings in VMware, VMware-Tools, through HGFS to Host and Guest data, disk appendages, etc. And the view is not right, but maybe some help you. So take it out and share it.

The goals need to be achieved: 1. Because I am in the environment network condition, I hope to use the network in installation, update, and learning. Usually use wireless networks (for internal network addresses) in the laboratory, use the Internet Ethernet to use the Internet address directly in the dormitory. 2. Because I only have 30G hard drive, and you need to use Windows (such as Matlab et al.), But some programs need to run Linux (I have another desktop computer), so consider considering WinXP VMware (Linux) platform 3.Linux needs to be accessed. Main data: 1) Learning: Other Server 2) Entertainment: Windows 3) System Update: Internet 4. If the notebook is not enough, you can temporarily back up the virtual machine file (such as burn DVD), When there is space, it is recovered. Require backup and recovery faster, and does not affect the virtual machine

Software Preparation: 1.VMware Station for WIN (currently the latest version 4.5.2 Build 8848), available on the Internet. 2.Fedora Core 3 and Update, School FTP Station has (Anonymous can be in-enhanced) 3. Multimedia software (XMM, XMM MP3, MPLAYER), I can download 4.KDE 3.4 on the Internet, to www.kde.org station, find FC3 RPM. Finally, the appropriate FTP or HTTP will be selected.

Terminology: Host: WinXP Prof SP2) Guest: Virtual Machine (Fedora Core 3) VNET0-VNET8: VMware Software Supported 9 logical subsidies, the default VNET0 is HOST physical network connection, VNET1 is VPN connection, VNET8 is internal connection

Network configuration: VMware can support multiple network policies such as DHCP, NAT, Bridge, and the network topology is: GUEST and HOST are connected via VNET8 and enable NAT, and HOST is connected to external networks via VNET0. VNET8 subnet and NAT settings: 192.168.253.0/255.255.255.0 Default Gate: 192.168.253.2guest IP settings: IP: 192.168.253.5/255.255.255.0 Default Gateway: DNS: host VNET8 Connection Properties: IP: 192.168.253.1/255.255.255.0 Open files and print sharing can hook Windows logins, regardless of Host is in wireless networks, or in wired networks, Guests can not be changed without any changes. Access, external network, keep your notebook portability.

VMware installation: 1. Install VMware software under WinXP 2. New Virtual Machine, choose Redhat 9 or Linux Kernel 2.6, hard disk selection 4G, fixed down (preLocated), new CDROM, and floppy disk (do not know why VMware does not support IMG file Therefore, the floppy disk does not actually use channels of external exchange data). The memory is set to 192M (192M is the minimum requirement of the Fedora graphical interface, I have tried smaller, but often causes memory tuning, slow speed. Relative to Host's 512M physical memory, and WinXP's frenzy, 192m is not good 3. Close the Snapshot function in Advanced to increase the speed and keep the virtual machine's size of the disk. Note: The VMware Analog Sound Card is SB PCI, the analog network card is AMD PCNET32, which can use acceleration instructions in Host (such as MMX, SSE, etc.) FEDORA CORE 3 FTP installation 1. Boot.iso (5M) from the FTP station As a start-up CD, assign the guest CDROM image 2. Start the guest, press F2 to enter the BIOS setup, set to the disc priority to start, save the BIOS3. You can see the Fedora launch screen, select Simplified Chinese as a language, regional Shanghai (Note: Multiple choices may be better, it is convenient to switch to English after installation, no manual settings) 4. Select FTP in the installation medium to fill in the original design IP address, mask, default gateway, and DNS5. In the FTP station setting, fill in the site IP address (do not have / in the end), fill in the path (generally / pub / fedora / ...) Enter. 6. In partition settings, three parts (this is not seen, just I have set it): / dev / hda 100m / boot ext3 / dev / hdb 3600m / ext3swap 300M swap7. Software installation options, select custom installation . Because the Guest hard disk is only 3.6g, you need to save, don't install too much software (6.7G completely installed). I am appreciated by KDE, so all Gnone software is not selected. Note Select the System Settings section (it is a lot of system-config- * commands, corresponding to the previous RedHat-Config- * command). 8.Fedora installation will prompt the input administrator account (non-root permission!), Recommended input (I have a pity that there is no input). In the past, the user account will not be prompted. The root account input will prompt. 9. Waiting for the software download and installation (I went to sleep at the time, so I don't know how long it is.

Fedora Core 3 Update: 1. After the installation is completed, restart, set the hard disk in the BIOS, start, and see the graphical landing interface after startup. Select the default session method to log in with root. Don't rush to set the system and do VMware Install2. Verify the network to work (of course, it is ftp installation.) Ping www.ibm.com See display. 3. Try Yum Update Update 4. Try Up2DATE Update. (I am going to KDE, I found that more than 2 more can be updated, but the applet of this prompt I don't know the start command) Up2date will connect to redhat.com for updates, wait. . . Note: Because I am ready to update the KDE to update 3.4, the update list here will not be all the names of KDE started) 5. Test can reconnect the FTP station to add software. Type System-Config-Package - Tree = Select a small software to install the test. Then use rpm -e to delete. 6. Download the 3.4 version of Release. Try the command firefox to start the browser to download the originally selected KDE3.4 software station. (Note: KDETOYS, KDEEDU, KDEBIND can not download, because the system is not required, indicating that there is no need, and the system does not have the KDEACCESibility is going to be, because 3.4 claims to add a text to the TTS engine, this is Look at it) 7. Install KDE (if you may not be good, there is a better way to please tell me). You need to use RPM -UVH (update), -f (forcibly), - NODEPS, etc. -q (query), - a (all), - i (information), - L (file list), - P (external RPM file specified), etc. may also be used. In order to break the cycle association, the update is often once to the package itself and its deb package (rpm command can provide multiple RPM files at a time) QTDesigner-> Qt, Qt-wevel-> KDebase, KDebase-wexxx1-Devel -> KDEXXX2, KDEXXX2-Devel -> ...-> kdesdk, kdesdk-devel8. Add user. AddUser MyNamePasswd MyName 8. All get it. Restart the guest, select KDE in the session, log in with MyName, you can see the KDE3.4 screen. If the sound card is detected, you can try TTS.

VMware-Tools Installation and Problem Correction (Visible Part) 1. Confirm that Guest has started, select Install VMware-Tools in the VMware VM menu. According to VMware-Tools Help, its installation is divided into 3 steps: 1) decompose disc image, 2) Install software in the text interface. 3) Start VMware-Toolbox in the graphical interface. The second step is the most important, and HGFS is installed (in order to dock the Shared Folders in Guest Virtual Machine, open the Guest and Host file exchange channels, do not have to set Samba, in the complex network, the Samba communication protocol causes a lot of installation issues, We will also install VMware XServer (in Fedora has already contracted) .2. First, solve the optical disk image. Where is the disc image from? In fact, it is just in install vmware-tools, it makes an optical disk image. At this time, please confirm the disc Which device is default / dev / cdrom. But because Fedora uses udev and specialty in the Guest machine, the disc device is not necessarily / cdrom, my Guest machine is / dev / hdc. (Which device, You can see automatic Mount devices, help analysis. / cistrib.tar.gzumount / dev / hdc After discovering the directory called VMware-Tools-Distrib, the executable file VMware-Install.pl is this Under the directory. Execution this command requires super administrator privileges and text interface. 3. Prepare text interfaces and enters super administrator privileges. Many articles introduce ID: 5: InitDefault: 5: InitDefault: 5:00 3, It can be restarted to enter the text interface, but it will undoubtedly restart too much trouble. You can use SSH login (default installation, SSHD is running), get the text interface, and don't have to install SSH software in Host (of course if installed, Better). In KDE, enter the system settings -> security settings, set the firewall policy to be SSH trusted (tick in the SSH box), if there is no KDE interface, you can run System-Config-SecurityLevel. This will be released. The firewall side effects on SSH. In the terminal interface, the SSH root@192.168.253.5192.168.253.5 is the address of Guest (for the terminal) (see the IP address specified). In order to prevent some encoding In the SSH text interface, extra characters (especially for HOST software software), resulting in VMware-Install questions, YES / NO is interfered, preferably set to English export lang = en.u TF8EXPORT LANGUAGE = en.uTf8cd /Home/Myname/vmware-tools-distribr./vmware-install.pl question problem is that the return option is available. Try EXIT exits SSH. You can choose to restart or run /etc/init.d/vmware-tools start to test whether VMware-Tools is normal.

If normal, in addition to OK / OK, you can also find a directory called HGFS in LS / MNT. HGFS is a special file system created by VMware for the guest. In Linux Guest, the Shared Folders accessed via / MNT / HGFS, and the Shared Folders is accessed by //.host/, there is no need for any Mount or Samba / NFS implementation. The file is a very good design and technology in Guest / Host. Related Module is VMHGFS.O, placed in / lib / modules / `uname -r` / Misc. However, BUG may appear, and the following is eliminated one by one. 4. Modify the encoding method. If you do not modify the encoding method, then the Chinese file name may not be displayed correctly. Query VMware's Knowledge Base, known this because HGFS is UTF-8 encoding, so if guest selects other codes, it will result in the unable to display other characters outside English. At present, SUSE and MANDRAKE have used UTF8 unified encoding, and Fedora is also supported from FC1, but selecting languages ​​to "Simplified Chinese" when installing, "Simplified Chinese" will result in encoding as zh_cn.gb18030, so Fedora is garbled to UTF8. Workaround: Modify / etc / sysconfig / i18n (Locale Settings for this file definition system) LANG or the like is set to lang = "zh_cn.utf8" language = "zh_cn.utf8: en_cn.gb2312: en_cn" supported = "zh_cn. UTF-8: zh_cn: en "Other settings will remain unchanged. (Note: Some people may see the online suggestion is set to lang = en_us.utf8, there is a lot of benefits, such as there are no extra characters in the console, but according to the post of the VMware Knowledge Base website, such settings can be used in HGFS Chinese characters File name. I have not tried it.) More related coded information, visible http://www.freebsdchina.org/forum/viewtopic.php?

T = 8420 & SID = BBF6C12F09ACD7278AFC1D30DEFBFB3D This article. It seems that Unicode Howto has no such article so good. From the article (if the information is correct I understand correct), UTF8 is a big trend encoding all countries, as for GB2312, GBK, GB18030 will return to the GB13000 road. WinXP is the underlying UTF8 (I can support Chinese and traditional Chinese simplicity, but also hint this), but is limited by the national standard 18030, indicating that the layer is used 18030. Many Linux Distros also becomes the underlying coding into UTF8, reflecting different representation layer coding by table conversion technology. FreeBSD does not seem to have this movement. From this point of view, perhaps HGFS does not matter (I can't find Locale and UTF words in its source code), it just said that the system underlayer (byte alignment is no such problem in strings, even if there is, It is not very exactly that VMware is mechanically scribed in Host's library. Of course, these are guess, I don't have time to analyze source code. HGFS is working properly. After the I18N file is changed, if Linux is restarted, you should be able to see the Chinese characters in / mnt / hgfs display normal, while other Chinese characters display (such as KDE, etc.) remain normally unchanged. It seems that Fedora is still a good job in encoding conversion. 5. My machine is not normal between HGFS (Shared Folder) and GUEST, and a 10K file will copy 300M and still keep listening to the song. This problem does not seem to happen, my classmates will not be in redhat as3). After querying VMware Forum, it is found that the source code is needed, recompile it. Note: My current VMware Station is 4.5.2 Build 8848. This version of the VMware-Tools source code is not necessarily. Source code is placed in VMware-Tools-Distrib / Lib / MODULES / SOURCE / VMHGFS.TAR, first unlocked CDTAR -XPVF VMware-Tools-Distrib / Lib / Modules / Source / VMHGFS.TAR will create a VMHGFS directory. The problem occurs in the DRIVE.C of this directory. CD VMHGFSVI Drive.c Looking for the following string (2 times): / * xxx shop this be "* offset = ..."? * / its next line is: file-> f_pos = actualcount; It modified to * Offset = actualcount; Note DRIVE.C, the string appeared twice, once in the READ function, another in the WRITE FUNCTION, write two operations from Host and HOST, respectively. The deployment (Note Write protection with W! Command breakthrough file) exits. After re-compiling make cleanmake, it will find that VMHGFS.O, replace the original Bug version in the last directory (ie, home directory). CDSU rootcp vmhgfs.o / lib / module / `uname -r` / misc / exit Why don't you send a province? This is the requirements of VMware-Tools. Vmhgfs.o is seriously related to the Linux kernel version.

After Up2date updated Fedora Core 3 to 2.6.10, I had to recompile VMware-Tools. Remind again that this problem does not seem to be generally existed, be sure to confirm that your HGFS has this COPY file that is not stopped, and makes this change. 6. VMware-Tools daemon abnormal work issues is related to the two kernels. The problem is: It turns out that Fedora is 2.6.9 kernel. After the VMware-Tools is installed, the system starts normally during the system, but after the 2.6.10 patch is installed, the system starts twice (later is SERVICE DAEMON) Specifies started), the first normal, but since vmhgfs.o is transferred in memory, the second time, then START will fail in the vmhgfs.o part, since there is failed, VMware-Tools determine the installation failure, in the system again When starting (or manually starting /etc/init.d/vmware-tools restart), prompt to reinstall VMwaret-Tools. However, after reinstallation, it has been reinstalled as a reinstalled prompt. This is so loop. The cause of this problem is unknown. I use the following two solutions 1) When temporarily debug, I can delete a logo file, the existence of the file (0 bytes), and the other VMware-Tools is not normal. Su Rootrm / etc / vmware-tools / not_configuredexit2) Simply remove or delete an earlier kernel. If you don't keep it, it is recommended to remove Su Rootcd / lib / modulesmv .OLDEXIT is removed, not only to delete this directory, in / boot Some files may be deleted. 7. The problem of HGFS is all solved. But X Windows has problems - unable to start X, always prompting to find mouse. This problem is due to the existence of Udev and the VMware-Tools XFree86 Server configuration and Fedora's XORG is not compatible. The solution is: 1) Mouse problem: Modify XF86Configsu rootvi / etc / xf86config Looking for the definition of the mouse, usually find the / dev / mouse string. Modify / dev / mouse to / dev / input / mice If your mouse supports scrolling, additional lines plus scrolling definition ZAXISMAPPING 4 5 does not have this line, no matter how to change the mouse in the setup program, it is useless. 2) This, X is already able to start, but since the beginning is Xfree86, it is a brown grid, and then turn into blue xorg definition, it is very uncomfortable, I hope to wipe off XFree86, and VMware-Tools The default installed server is for xfree86 3.3.6, the version is too low. I haven't found the exact way, but I will reinstall XORG-X11 can solve this problem (including the first question, that is, I don't need to edit XF86Config), download xorg-x11, pay attention to the version of Patch, Update Directory in the FTP station There is. RPM -UVH --ReplacePkgs To here, VMware-Tools is solved in Fedora Core 3.

The process seems to have a bit trouble, so tap: 1) MOUNT CD Image and Undering Packet 2) Enter SSH Installation Files 3) Modifying I18N UTF84) If the COPY file in Shared Fold does not stop, you need to modify the source code and recompile Replace the original module5) Reinstall XORG-X11 to solve the problem of x and mice. Installing Media Player Fedora Because it is too strict to avoid copyright issues, there is no built-in practical video decoder, and even MP3 decoders do not bring, so the media player is installed in Fedora's desktop applications. The results seen from http://www.linuxquestions.org/ Online investigation are MPlayer and Xine (Video) and XMM (Audio) have the highest ticket, so I have installed Helix Player (about fedora main player Is it possible to say that RealPlayergold10 downloaded from www.real.com seems to be used in Fedora Core 3 because of Glibstd . SO.5 issues. Fortunately, there is a RM encoder in MPlayer (but I don't know if I can support the VB version of RM). 1. MPlayerMPlayer installation address (this excellent software is due to copyright issues to be closed, downloaded) http://www.mplayerhq.hu/ The Download section of this station will have a connection to http: // luna. Cs.ccsu.edu/Dominik/mplayer/, here is provided with the MPLAYER of the RPM version. Don't compile themselves to .tar.gz. However, MPlayer is guaranteed, or to be compiled, so download .SRC.rpm mplayer, the compile instruction is different from the machine, and there is a introduction in the second website. The compiled command I use is: rpmbuild --Rebuild --with Arts - Target I686 MPlayer-1.0pre6-1.src.rpm should also have better instructions (I haven't carefully studied the introduction, sweat) After compiler / usr / src / redhat / i686 / rpms / form multiple files. Where the GUI part RPM needs to download with SKIN's RPM. Skin's RPM, and CODEC's RPM, you can download this site. I found that the first CODEC (all in one essentialcodec) in the station is enough (it's enough to see Realplay), other CODEC does not need to download. 2.xinehq I was initially installed, but I found that even if I listened, I was very slow, I didn't understand. However, MPlayer has already had, and there is no study. 3.RealPlay version 10 Because of Glicstdc . SO.5 problem cannot be used, the older version has not been tried. 4.xmm, use system-config-package --tree = ftp: // ftp .... (Note that there is no in Update, if there is a path in Update) Reconnect the FTP station, select XMM and install . Go online search and download an MP3 encoder Plugin installed. Or go to http://www.xmms.org/ to download an XMMS full version. These are all completed, it feels even if they look at the video and listening to MP3 even in VMware. (Note: My notebook is 1.3G centrino.)

SSH -P @ @ Nature, NAT has no effect on the transmission and return of the SSH message. Unfortunately, it is often connected (or no connection) network protocol, except that the X protocol can establish a connected Tunnel on the connected SSH, there is nothing to open the firewall (my notebook is between the laboratory server Hardware firewall, its strategy is not what I can modify), NFS and Samba are more fire-resistant, otherwise, setting this Fedora can be accessed access to the data on the server. In the final think of the virtual hard disk, my virtual hard disk is only 4G, and the burning DVD has a long amount of margin, and the Fedora has occupied nearly 3G capacity at this moment. The hard disk is nervous, you can choose to create a new virtual hard disk, separately for the SWAP area (my SWAP area is currently 300M) and / or for / home, so that when the disc is burned, you can choose not to burn the swap of the virtual disk, You can also set the / home virtual disk to dynamically increase (Don't allocate all the space).

Flexibility is displayed in burning and hard drives. 1. Create a virtual hard disk (the reason for selecting the IDE, only because the original 4G hard drive is already IDE, do not want Linux tube so many types of hard drives) Swap.Vmdk, 0.29g, select Allcoate All Disk space, Type = IDE (1 : 0), select IndependentHome.Vmdk, 1G, not select Allocate All Disk space, type = IDE (0: 1) 2. Start Guest, log in with root, set with fdisk / dev / hdc (就 swap.vmdk) And / DEV / HDB (already home.vmdk). View the virtual hard disk file size in Host, found home.vmdk still only 256K (although report 1G in Linux) 3. Replace SwapMkswap / DEV / HDC # Format Swapon / DEV / HDC # Enable this is to use Free, discover SWAP area size It has increased to more than 600, indicating that the successful swapoff / dev / hda3 # close the original SWAP and then modify the / etc / fstab file, change the original SWAP, change to / dev / hdc swap swap defaults 0 04. Replace / Homemkfs - T ext3 / dev / hdb1 # After formatting, HOME.VMDK still only 256 ktar -zcpvf /home.tar.gz / home # backup Home, the P parameter specifies that the file attribute I don't seem to find in the Man CP. COPY hides the file, so use tarmv / home /home.old #, do not delete MKDIR / HOME modification / etc / fstab, plus this sentence: / dev / hdb1 / home ext3 defaults 1 3 Restart Guest, log in with root, confirm SWAP Available and / Home is empty cd / tar -zxpvf home.tar.gz exits and re-logs in with MyName (note that the SU check is not complete enough, or log in) to open and create files to confirm that attributes and files exist. At this time, the file size of Home.Vmdk in Host has been significantly increased 5. The size of the original SWAP is deleted and increase the size of the original virtual partition (/ dev / hda2, mount) This can be done by the parted command. But Parted For data security, the device that is required to be operated cannot be used (the partition cannot be mounted, and the switching space cannot be enabled). The / dev / hda2 that needs to be modified is /, so it is necessary to use in Fedora's rescue mode. Turn off the GUEST system to the software FTP station downloads FC3-i386-rescuecd.iso (76M size), and configure it as a Guest system in VMware to start GUEST, press F2 into the BIOS, set to CDROM priority to restart Guest, enter rescue screen, when starting the network interface A. No question, "skip" parted / dev / hdarint display 1 0.031 101.975 primary ext3 boot2 101.975 3780.922 primary ext33 3780.923 4094.692 primary linux-swap partition automatically mount Looking: rm 3: resize 2 101,975 4094 , 692 Error: FileSystem Has Incompatible Feature Enabled.

This problem has not been resolved, and the Parted web page says Resizing of EXT3. Also, I found that VMware-Toolsbox made Shrink I added / dev / hdb1 because the other two virtual hard drives were pre-allocated all spaces. That is to say, / dev / hdb is not implemented in the use of flexible ideas. So the final method is to remove / dev / hdb, change / dev / hda3 to ext3, directly mount to / home, although only 300m, but be careful to use it. In the future, if you need to increase / home, you can do other expansion, the CP command in part, provides good support for the data replication of the expansion.

Note: The VMware Diskmount tool is also found when studying Shrinkable. You can download in the VMware website, but VMware will not provide technical support. This tool can run on Win2K, WinXP, Win2003, which will * .vmdk files directly on the host machine into a disk, but this also implies that the .vmdk virtual disk must be Windows recognized File System, this for my question no help. Only just.

End Note: A solution about VMware-Tools gives XORG-X11, in the "China VMware Forum", there is article "Installing VMware Tools issues for FC3" in the "China VMware Forum", the URL is: http://www.vmware .CN / BBS / DISPBBS.ASP? BoardId = 5 & ID = 1764, however, modified * .pl file feels upset, anyway, I will reload XORG-X11 can also solve it, it will not be verified. Ha ha.

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

New Post(0)