美文网首页
Manjaro安装VMwareWorkstation

Manjaro安装VMwareWorkstation

作者: ZHOUZAIHUI | 来源:发表于2019-07-18 16:33 被阅读0次

    Manjaro安装VMwareWorkstation需要分成两个步骤:

    1 安装依赖

    Install the correct dependencies:
    
    fuse2 - for vmware-vmblock-fuse
    gtkmm - for the GUI
    linux-headers - for module compilation
    ncurses5-compat-libsAUR - needed by the --console installer
    libcanberra - for event sounds
    pcsclite
    

    来源:https://wiki.archlinux.org/index.php/VMware

    (1)安装 fuse2 gtkmm pcsclite libcanberra linux-headers

    sudo pacman -S fuse2 gtkmm  pcsclite libcanberra
    
    警告:fuse2-2.9.9-1 已经为最新 -- 重新安装
    警告:gtkmm-1:2.24.5-3 已经为最新 -- 重新安装
    警告:pcsclite-1.8.25-1 已经为最新 -- 重新安装
    警告:libcanberra-0.30+2+gc0620e4-2 已经为最新 -- 重新安装
    正在解析依赖关系...
    正在查找软件包冲突...
    
    软件包 (4) fuse2-2.9.9-1  gtkmm-1:2.24.5-3  libcanberra-0.30+2+gc0620e4-2
               pcsclite-1.8.25-1
    
    全部安装大小:  8.95 MiB
    净更新大小:  0.00 MiB
    
    :: 进行安装吗? [Y/n] 
    
    

    (2)安装linux-headers
    接着需要安装linux-headers,安装该依赖时需要确定linux内核版本,可以通过命令uname -r 命令查看

    (base) [zhou@zhou-pc ~]$ uname -r
    4.19.59-1-MANJARO
    

    内核版本号为4.19,然后就可以安装linux-headers

    sudo pacman -S linux-headers
    
    :: 有 13 个软件包可提供 linux-headers :
    :: 软件仓库 core
       1) linux316-headers  2) linux414-headers  3) linux419-headers
       4) linux44-headers  5) linux49-headers  6) linux51-headers
       7) linux52-headers
    :: 软件仓库 community
       8) linux419-rt-headers  9) linux50-rt-headers
    :: 软件仓库 archlinuxcn
       10) linux-lts316-headers  11) linux-lts414-headers
       12) linux-lts44-headers  13) linux-lts49-headers
    
    输入某个数字 ( 默认=1 ): 3
    正在解析依赖关系...
    正在查找软件包冲突...
    
    软件包 (1) linux419-headers-4.19.59-1
    
    下载大小:    8.47 MiB
    全部安装大小:  62.35 MiB
    
    :: 进行安装吗? [Y/n] 
    

    (3)安装ncurses5-compat-libs

    yay -S --noconfirm --needed ncurses5-compat-libs
    

    2 安装VMwareWorkSatation

    yay -S --noconfirm --needed  vmware-workstation
    
    yay -S vmware-workstation
    # 命令二选一即可
    

    3 安装完成后的设置

    (1)安装完成之后需要启动相应的服务

    Then, as desired, enable some of the following services:
    
    vmware-networks.service for guest network access
    vmware-usbarbitrator.service for connecting USB devices to guest
    vmware-hostd.service for sharing virtual machines
    
    Lastly, load the VMware modules:
    
    modprobe -a vmw_vmci vmmon
    

    来源:https://wiki.archlinux.org/index.php/VMware

    (2) 为相应的服务设置开机启动并启动相应的服务

    sudo systemctl enable vmware-networks.service  vmware-usbarbitrator.service vmware-hostd.service
    sudo systemctl start  vmware-networks.service  vmware-usbarbitrator.service vmware-hostd.service
    
    Created symlink /etc/systemd/system/multi-user.target.wants/vmware-networks.service → /usr/lib/systemd/system/vmware-networks.service.
    Created symlink /etc/systemd/system/multi-user.target.wants/vmware-usbarbitrator.service → /usr/lib/systemd/system/vmware-usbarbitrator.service.
    Created symlink /etc/systemd/system/multi-user.target.wants/vmware-hostd.service → /usr/lib/systemd/system/vmware-hostd.service.
    
    

    (3) 查看服务状态:

    sudo systemctl status vmware-networks.service  vmware-usbarbitrator.service vmware-hostd.service
    
    vmware-networks.service - VMware Networks
       Loaded: loaded (/usr/lib/systemd/system/vmware-networks.service; enabled; vendor preset: disabled)
       Active: active (running) since Thu 2019-07-18 16:00:42 CST; 13s ago
      Process: 7710 ExecStartPre=/sbin/modprobe vmnet (code=exited, status=0/SUCCESS)
      Process: 7711 ExecStart=/usr/bin/vmware-networks --start (code=exited, status=0/SUCCESS)
        Tasks: 6 (limit: 4915)
       Memory: 15.0M
       CGroup: /system.slice/vmware-networks.service
               ├─7729 /usr/bin/vmnet-bridge -s 6 -d /var/run/vmnet-bridge-0.pid -n 0
               ├─7738 /usr/bin/vmnet-netifup -s 6 -d /var/run/vmnet-netifup-vmnet1.pid /dev/vmnet1 vmnet1
               ├─7746 /usr/bin/vmnet-dhcpd -s 6 -cf /etc/vmware/vmnet1/dhcpd/dhcpd.conf -lf /etc/vmware/vmnet1/dhcpd>
               ├─7750 /usr/bin/vmnet-natd -s 6 -m /etc/vmware/vmnet8/nat.mac -c /etc/vmware/vmnet8/nat/nat.conf
               ├─7752 /usr/bin/vmnet-netifup -s 6 -d /var/run/vmnet-netifup-vmnet8.pid /dev/vmnet8 vmnet8
               └─7758 /usr/bin/vmnet-dhcpd -s 6 -cf /etc/vmware/vmnet8/dhcpd/dhcpd.conf -lf /etc/vmware/vmnet8/dhcpd>
    
    ● vmware-usbarbitrator.service - VMware USB Arbitrator
       Loaded: loaded (/usr/lib/systemd/system/vmware-usbarbitrator.service; enabled; vendor preset: disabled)
       Active: active (running) since Thu 2019-07-18 16:00:36 CST; 19s ago
     Main PID: 7624 (vmware-usbarbit)
        Tasks: 1 (limit: 4915)
       Memory: 1.5M
       CGroup: /system.slice/vmware-usbarbitrator.service
               └─7624 /usr/lib/vmware/bin/vmware-usbarbitrator -f
    
    ● vmware-hostd.service - VMware Host Daemon
       Loaded: loaded (/usr/lib/systemd/system/vmware-hostd.service; enabled; vendor preset: disabled)
       Active: active (running) since Thu 2019-07-18 16:00:37 CST; 19s ago
      Process: 7654 ExecStartPre=/usr/bin/mkdir -p /var/run/vmware (code=exited, status=0/SUCCESS)
     Main PID: 7655 (vmware-hostd)
        Tasks: 17 (limit: 4915)
       Memory: 33.3M
       CGroup: /system.slice/vmware-hostd.service
               └─7655 /usr/lib/vmware/bin/vmware-hostd -a /etc/vmware/hostd/config.xml
    
    

    (4)加载VMware模块
    方法一:

    sudo modprobe -a vmw_vmci vmmon
    

    方法二:

    sudo reboot  # 重启系统
    

    至此,VMwareWorkstation程序本身和所依赖的环境就安装完成,可以顺利启动程序。

    相关文章

      网友评论

          本文标题:Manjaro安装VMwareWorkstation

          本文链接:https://www.haomeiwen.com/subject/taillctx.html