linux 在xenserver上安裝如何顯示圖形介面

來源:互聯網
上載者:User

標籤:

centos5.8 64-bit和 centos 6.5 64-bit

xenserver安裝linux的時候預設使用的VHM,選擇對應的虛擬機器範本安裝linux是Linux Text介面。

VHM 轉 PV 方法摸索中…

centos5.8 的安裝

以centos5 64-bit模板安裝,Advanced OS boot parameters 加 vnc (是不是utf8 導致啟動中文版linux中文不顯示亂碼呢?難道要改成Unicobe?)

CD Found 選 skip

Choose a language 選 英文(要不然重啟後console台內中文顯示亂碼,但不影響系統。後期的VNC串連顯示中文也沒問題)

Configure TCP/IP 選自訂IPv4設定並將IPv6關閉。

Manual TCP/IP Configuration 設定IP地址、掩碼、網關、DNS即可。

系統進入如下介面

這個時候用vnc串連就會如顯示了,正常安裝系統就可以了。

安裝完系統後,重啟系統,console台顯示是這樣的:

xenserver xs-tools工具的安裝

XenCenter掛在xs-tools.iso

[[email protected] ~]# mount /dev/xvdd /mnt
mount: block device /dev/xvdd is write-protected, mounting read-only

在/mnt/Linux目錄下,運行./install.sh 按y確認 安裝成功後重啟。

VNC的配置過程:

1、配置VNC的設定檔

vi /etc/sysconfig/vncservers

VNCSERVERS="0:root" #引號內是串連使用者ID和使用者名稱,用空格隔開如"0:root 1:abc"

VNCSERVERARGS[0]="-geometry 1024x768" #設定一個解析度即可。中括弧內ID對應使用者ID

2、設定VNC的訪問密碼

[[email protected] ~]# vncserver passwd

3、設定VNC的案頭顯示方式

[[email protected] ~]# vi /root/.vnc/xstartup
#!/bin/sh

# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm & "it‘s used KDE"
gnome session &   # "it‘s used GNOME"

4、啟動VNC並設定隨系統啟動

service vncserver start

chconfig vncserver on

5、關閉iptables或者設定VNC連接埠允許存取

6、關閉SElinux

7、點擊XenCenter Console視窗右上方的Switch to Graphical Console按鈕(在沒設定VNC時這個按鈕是灰色的)

Centos6.5 64-bit 的安裝跟5.8一樣,只不過不用配置“設定VNC的案頭顯示方式”

linux 在xenserver上安裝如何顯示圖形介面

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.