一般virtualbox安裝centos安裝完成後預設是800x600的解析度。
安裝guest additions。安裝完成後,解析度可以修改為1024x768,還有一些更高的解析度,但是沒有1366x768。
修改/etc/x11/xorg.config
安裝完guest additions後,檔案預設內容為(或者類似)
# virtualbox generated configuration file
# based on /etc/x11/xorg.conf.
section "monitor"
identifier "monitor[0]"
modelname "virtualbox virtual output"
vendorname "oracle corporation"
endsection
section "device"
boardname "virtualbox graphics"
driver "vboxvideo"
identifier "device[0]"
vendorname "oracle corporation"
endsection
section "screen"
subsection "display"
depth 24
endsubsection
device "device[0]"
identifier "screen[0]"
修改section "screen",新增欄位modes "800x600" "1366x768" (可新增需要的任意解析度)
section "screen"
subsection "display"
depth 24
modes "800x600" "1366x768"
endsubsection
device "device[0]"
identifier "screen[0]"
注意:modes要新增在subsection之間,而且不能只新增1366x768,要同時新增800x600。
mac通過virtual box安裝centos7
安裝virtual box 對於virtual box如何安裝系統本文不進行累述,主要是說一下遇到的坑 1.無法聯網 wget或者crul都會報錯 開啟vi etc sysconfig network scripts 編輯檔名為ifcfg enp0s3 內容設定onboot yes,然後重啟系統re...
SSH連線VirtualBox中的CentOS
通過ssh連線virtualbox中的centos 想通過ssh方式連線virtualbox中的centos,才知道和vmware的設定完全不一 樣,不過相比較而言設定更簡單一些。通過簡單的兩步就可以完成 www.2cto.com 在centos中開啟sshd服務 chkconfig sshd on...
SSH到VirtualBox裡面的CentOS
這段時間用到了虛擬機器,為了上網我選擇了nat模式,但那個ip是固定的,而且外面不能訪問,可我想ssh進去,無奈之下想其它方法了 1 hostonly模式,通過共享上網 2 nat下埠 方法1 是我用vmware 時經常用的,virtualbox 下沒成功過,pass 掉 方法 2沒試過,我之前的一...