linux命令之主機與虛擬機器之間掛載iso映象檔案

2021-06-26 03:21:47 字數 664 閱讀 8289

環境說明:

計算機為一台i7筆記本,裝的是64位win7系統,通過vmware workstation安裝了64位redhat linux作業系統。

檔案準備

redhat.enterprise.linux.v5.update.7.x86_64.iso 映象檔案(redhat虛擬機器也是通過此檔案安裝的)

步驟一,建立在win7中乙個共享資料夾/share,將iso檔案重新命名為redhat.iso檔案,放在share檔案中。

步驟二:將share資料夾掛載到redhat系統中,命令如下:

mount   /mnt/share1 -o username="nightd",password="123"

/mnt/share1 為redhat的掛載點,即將win7中的share資料夾中的內容,對映到share1中,share1需要手動通過mkdir命令建立

username="nightd",password="123" 這個為win7的使用者名稱和密碼

這部完成後,通過命令。

mount -o loop -t iso9660 /mnt/share1/redhat.iso /mnt/server  命令將iso檔案掛載到redhat系統中,此時iso檔案中的內容,就全部在server資料夾下了,server資料夾需要手動建立,然後才可用此命令。



windows主機與虛擬機器linux互通

1 建立windows loopback adapter computer manage device manager cn xx add legacy hardware 計算機 右鍵 管理 裝置管理 計算機名稱 右鍵 新增過時硬體 單擊next 選擇search for and install t...

Linux 虛擬機器與物理主機互聯

目的 虛擬機器中linux與主機互聯,便於通過ftp互轉檔案 設定為無線連線。在虛擬機器設定主機連線方式橋接方式 設定虛擬機器的ip位址 我的虛擬機器網絡卡是eth0,每個人可能不同根據具體情況來定 設定ip位址 sudo vim etc network inte ces auto eth0 ifa...

windows主機與虛擬機器Linux共享資料夾

步驟 1.vmware player選單選擇 virtual machine install vmware tools 系統自動掛在vmware tools。2.執行mount命令 不帶任何引數 確定系統是否自動掛載vmware tools virtual cd rom image 1 mount ...