Home Operation and Maintenance Linux Operation and Maintenance Deploy CentOs7 shared directory in Vmware

Deploy CentOs7 shared directory in Vmware

Apr 26, 2019 pm 01:39 PM
centos7 vmware

The main content of this article is to tell you how to deploy CentOs7 shared directory in Vmware. It has certain learning value and interested friends can learn about it.

First download the images of VMware and CentOs7

To install VMware, I refer to https://www.cnblogs.com/wuyx/p/7246675.html, which is very detailed

Then you need to configure the network. Reference

https://www.linuxidc.com/Linux/2017-07/145845.htm

https://www.cnblogs.com/ CoolJayson/p/8017049.html

https://www.cnblogs.com/loeng/p/6540104.html

The third step is to build the lnmp environment https://lnmp.org/

Set up shared directory Reference: https://blog.csdn.net/joson_yuan/article/details/71805269?utm_source=itdadao&utm_medium=referral

https://blog.csdn.net/ qq_19004627/article/details/78689641

1. Install VMWare tools (The location of the compressed package is inside the VMware compressed package. My package name is VMwareTools-10.2.5-8068393.tar and then upload this file to the server Decompress and install)

2. Set the shared directory in the virtual machine

Use the mount -t vmhgfs .host:/shared /mnt/hgfs command to mount the shared folder (note: with . number), where .host:/Documents is the share name, just replace Documents with
The directory obtained by using the vmware-hgfsclient command, /mnt/hgfs is the mount point

is set to Automatically mount after random startup
Edit /etc/fstab and add the following line
.host:/shared /mnt/hgfs vmhgfs defaults 0 0 (write on demand)

where host:/share The share in is the share name. You can use the command: vmware-hgfsclient to view

VMware’s default share path is in /mnt/hgfs, which is hard-coded in the script of VMware Tools , we can find it from /etc/init.d/vmware-tools:


vmhgfs_mnt="/mnt/hgfs"
#Mount all hgfs filesystems" 
 vmware_mount_vmhgfs() {
  if [ "`is_vmhgfs_mounted`" = "no" ]; then
   if [ "`vmware_vmhgfs_use_fuse`" = "yes" ]; then
    mkdir -p $vmhgfs_mnt
    vmware_exec_selinux "$vmdb_answer_BINDIR/vmhgfs-fuse \
     -o subtype=vmhgfs-fuse,allow_other $vmhgfs_mnt"
   else
     vmware_exec_selinux "mount -t vmhgfs .host:/ $vmhgfs_mnt"
   fi
 fi
 }
Copy after login

For more tutorials, please follow PHP Chinese website!

The above is the detailed content of Deploy CentOs7 shared directory in Vmware. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to enable copy and paste for VMware virtual machines How to enable copy and paste for VMware virtual machines Feb 21, 2024 am 10:09 AM

You can easily copy and paste text and files between VMware virtual machines (VMs) and physical systems. This capability allows you to easily transfer images, formatted and unformatted text, and even email attachments between virtual machines and host systems. This article will show you how to enable this feature and demonstrate methods for copying data, files, and folders. How to Enable Copy/Paste in VMware VMware provides three different ways to copy data, files or folders from a virtual machine to a physical computer and vice versa, as explained below: Copy and Paste Elements Drag and Drop Feature Folder Sharing 1 ] Enable copy-paste using VMware Tools You can use the keyboard if your VMWare installation and guest operating system meet the requirements

Solution to crash and freeze of Win11 running VMware virtual machine Solution to crash and freeze of Win11 running VMware virtual machine Feb 14, 2024 pm 02:36 PM

Many users need to install virtual machines on their computers due to certain needs or hobbies, but recently some Win11 friends found that their computers crashed and crashed as soon as they ran the VMware virtual machine. What should they do? In fact, this problem is not difficult to solve. The editor below brings you four solutions, hoping to help you. Method 1: Hyper-V solution 1. Open Control Panel-Programs-Enable or turn off Windows functions. You may find that there is no Hyper-V on your computer, and even the vm cannot be used (if you have it open, check it as shown below) , just restart the computer). There is no Hyper-V that needs to be installed. You can go to step 1.2 below to install it. 2. Install Hyper-V on the system and create a new note

VMware Horizon Client cannot be opened [Fix] VMware Horizon Client cannot be opened [Fix] Feb 19, 2024 pm 11:21 PM

VMware Horizon Client helps you access virtual desktops conveniently. However, sometimes the virtual desktop infrastructure may experience startup issues. This article discusses the solutions you can take when the VMware Horizon client fails to start successfully. Why won't my VMware Horizon client open? When configuring VDI, if the VMWareHorizon client is not open, an error may occur. Please confirm that your IT administrator has provided the correct URL and credentials. If everything is fine, follow the solutions mentioned in this guide to resolve the issue. Fix VMWareHorizon Client Not Opening If VMW is not opening on your Windows computer

How to share files between Win11 and VMware virtual machines? How to share files between Win11 and VMware virtual machines? Jan 29, 2024 pm 09:39 PM

VMware virtual machines allow users to run two or more Windows, DOS, and LINUX systems simultaneously on one machine. So how to share files between VMware virtual machines and hosts? Today, the editor will take Win11 as an example to share with you a tutorial on setting up file sharing between VMware virtual machines and hosts. Virtual machine file sharing? 1. Set the network of the installed VMware virtual machine to bridge mode. In a VMware virtual machine, you can configure shared folders through the following steps: Click Virtual Machine->Virtual Machine Settings->Options, enable shared folders, and click the Add button to set the folder path. Note: Opening shared folders needs to be done when shutting down the virtual machine. 4. To share files

Convert VMware to VirtualBox and vice versa Convert VMware to VirtualBox and vice versa Feb 19, 2024 pm 05:57 PM

Virtual machines are an affordable way to experience and use multiple operating systems on a single computer. VMWare and VirtualBox are the two major brands in the virtual machine industry. You can easily convert a VMware virtual machine to a VirtualBox virtual machine and vice versa, giving you the flexibility to switch machines between them without having to recreate them. Migrating a virtual machine from VMWare to VirtualBox or vice versa is not complicated. Just follow the instructions below and it's easy to do. How to convert VMware to VirtualBoxVMwareVM is stored in .vmx format and then converted to .ovf, this is VirtualBox and VMWare

VMware Horizon client freezes or stalls while connecting [Fix] VMware Horizon client freezes or stalls while connecting [Fix] Mar 03, 2024 am 09:37 AM

When connecting to a VDI using the VMWareHorizon client, we may encounter situations where the application freezes during authentication or the connection blocks. This article will explore this issue and provide ways to resolve this situation. When the VMWareHorizon client experiences freezing or connection issues, there are a few things you can do to resolve the issue. Fix VMWareHorizon client freezes or gets stuck while connecting If VMWareHorizon client freezes or fails to connect on Windows 11/10, do the below mentioned solutions: Check network connection Restart Horizon client Check Horizon server status Clear client cache Fix Ho

CentOS7 various version image download addresses and version descriptions (including Everything version) CentOS7 various version image download addresses and version descriptions (including Everything version) Feb 29, 2024 am 09:20 AM

When loading CentOS-7.0-1406, there are many optional versions. For ordinary users, they don’t know which one to choose. Here is a brief introduction: (1) CentOS-xxxx-LiveCD.ios and CentOS-xxxx- What is the difference between bin-DVD.iso? The former only has 700M, and the latter has 3.8G. The difference is not only in size, but the more essential difference is that CentOS-xxxx-LiveCD.ios can only be loaded into the memory and run, and cannot be installed. Only CentOS-xxx-bin-DVD1.iso can be installed on the hard disk. (2) CentOS-xxx-bin-DVD1.iso, Ce

Steps to enter CentOS 7 emergency repair mode Steps to enter CentOS 7 emergency repair mode Jan 13, 2024 am 09:36 AM

Open the centos7 page and appear: welcome to emergency mode! afterloggingin, type "journalctl -xb" to viewsystemlogs, "systemctlreboot" toreboot, "systemctldefault" to tryagaintobootintodefaultmode. giverootpasswordformaintenance(??Control-D???): Solution: execute r

See all articles