將XEN虛擬機器鏡像從RHEL(32位)遷移到CentOS(64位)的過程

來源:互聯網
上載者:User

【環境】

Dell R905伺服器 (CPU 4路4核,記憶體32GB,硬碟1.8TB)

原作業系統為RHEL 5.2 i386,虛擬機器使用xen,上面開了幾台虛擬機器。

【問題】

由於32位作業系統不能識別大記憶體(只認出14GB) ,因此將作業系統重新安裝為CentOS 5.6 x86_64。

虛擬機器鏡像和設定檔在重裝前備份到NFS伺服器上,重裝後又拷回。

但是啟動虛擬機器時,發現無法正常啟動,虛擬機器狀態一直處於Running,VNC無法串連,ssh也無法串連,無法ping通虛擬機器,虛擬機器只能用Shutdown->Force off來關閉。
通過virt-manager以vnc串連虛擬機器,出現提示:

console is not yet active for guest

【解決】

查看xen設定檔

[root@211-98-26-3 cacti_collector]# cat cacti_collector
name = "cacti_collector"
uuid = "3d7239be-c5b3-ef78-db6b-9381b26860bd"
maxmem = 2048
memory = 2048
vcpus = 2
builder = "hvm"
kernel = "/usr/lib/xen/boot/hvmloader"
boot = "c"
pae = 1
acpi = 1
apic = 1
localtime = 0
on_poweroff = "destroy"
on_reboot = "restart"
on_crash = "restart"
device_model = "/usr/lib/xen/bin/qemu-dm"      #此句應改成=> device_model = "/usr/lib64/xen/bin/qemu-dm" 
sdl = 0
vnc = 1
vncunused = 1
vnclisten = "127.0.0.1"
keymap = "en-us"
disk = [ "file:/bak/cacti_collector/hda.img,hda,w", ",hdc:cdrom,r", "file:/bak/cacti_collector/hdb.img,hdb,w", "file:/bak/cacti_collector/hdd.img,hdd,w" ]
vif = [ "mac=00:16:3e:6f:a4:8e,bridge=xenbr0,script=vif-bridge" ]
parallel = "none"
serial = "pty"

修改完儲存設定檔,然後重啟虛擬機器,即可正常啟動。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.