Vmware虚拟机的安装和使用
生活随笔
收集整理的這篇文章主要介紹了
Vmware虚拟机的安装和使用
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
安裝虛擬機
一、安裝虛擬機Vmware Workstation
下一步 下一步
如果C盤剩余空間大(大于50G),可安裝在C盤
二、在虛擬機中安裝Linux系統:
準備工作:
Linux系統鏡像文件(ISO文件)
1 、新建虛擬機:
文件-》新建虛擬機,選擇典型、下一步
2 、安裝程序光盤映像:
3 、設置用戶名:
4、 設置虛擬機名稱和保存位置
提示:位置可選擇空間大的磁盤
5 、默認配置
開始安裝系統
提示:建議安裝過程中斷網安裝,不然會很慢
第一步選擇語言:默認為English
第二步:鍵盤設置 默認
第三至第九步: 默認回車
設置用戶:
Tab切換到底部Done確認
之后提示安裝內核
虛擬機的固定ip
默認配置為
# This file is generated from information provided by # the datasource. Changes to it will not persist across an instance. # To disable cloud-init's network configuration capabilities, write a file # /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following: # network: {config: disabled} network:ethernets:ens33:addresses: []dhcp4: trueversion: 2修改/etc/netplan/50-cloud-init.yaml為
# This file is generated from information provided by # the datasource. Changes to it will not persist across an instance. # To disable cloud-init's network configuration capabilities, write a file # /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following: # network: {config: disabled} network:ethernets:ens33:addresses: [192.168.139.100/24] //自定義ip地址以/24結束dhcp4: nogateway4: 192.168.139.2 //和下面的保持一致nameservers:addresses: [192.168.139.2] //和上方保持一致version: 2然后netplan apply使其生效之后查詢 ifconfig檢查ip信息
永久修改主機名稱
hostname 顯示當前主機名
第一步:先去/etc/cloud/cloud.cfg中的preserve_hostname: 改為true
第二步: /etc/hostname 修改主機名稱 重啟虛擬機后主機名生效
vim /etc/hosts
127.0.0.1 VM-API-1910
PATH路徑
在/usr/profile 改完記得source生效
總結
以上是生活随笔為你收集整理的Vmware虚拟机的安装和使用的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 蓝桥杯试题 算法提高 数组求和
- 下一篇: oracle中视图窗粉色的,Oracle