Xen

嘗試在 Xen 上創建 ElementaryOS PV 來賓

  • May 15, 2014

我正在嘗試將 ElementaryOS 作為 pv 來賓安裝在我的伺服器上以進行測試。

Elementary OS 是 Ubuntu Precise 的一個分支。Elementary 不支持 PV,但是,我可以從以下位置獲取相應的 ubuntu 圖像:

$$ mirror $$/ubuntu/dists/precise/main/installer-amd64/current/images/netboot/xen/initrd.gz $$ mirror $$/ubuntu/dists/precise/main/installer-amd64/current/images/netboot/xen/vmlinuz

這是我的elementaryOS.cfg 的副本

name = "elementary"
kernel = "/home/curios/elementary/vmlinuz"
ramdisk = "/home/curios/elementary/initrd.gz"
memory = "1024"
disk = [ "phy:/dev/vg0/elementary,sda1,w", "file:/home/curios/elementary/elementaryos-stable-amd64.20130810.iso,sdb,r" ]
vif = ['bridge=xenbr0']
on_reboot = 'destroy'
on_poweroff = 'destroy'

到目前為止它正在工作,但我剛剛收到以下我擔心的錯誤。有人會查看我的 cfg 並確保我的所有設置都正確嗎?

 ┌────────────────────────┤ [!!] Partition disks ├─────────────────────────┐
 │                                                                         │
 │ Error informing the kernel about modifications to partition             │
 │ /dev/xvda1p1 -- Invalid argument.  This means Linux won't know about    │
 │ any changes you made to /dev/xvda1p1 until you reboot -- so you         │
 │ shouldn't mount it or use it in any way before rebooting.               │
 │                                                                         │
 │ ERROR!!!                                                                │
 │                                                                         │
 │                                Ignore                                   │
 │                                Cancel                                   │
 │                                                                         │
 │     <Go Back>                                                           │
 │                                                                         │
 └─────────────────────────────────────────────────────────────────────────┘

當然,我可以將elementaryOS 安裝為HVM 來賓,但這更具挑戰性。

感謝您的幫助和建議

原帖:Xen 項目郵件列表http://goo.gl/nDsyo5

Looks like you're mapping the LV as xvda1. Don't do that if you're
using OS installer. Map it as xvda instead.

You should only map block devices as (xv/s/h)da1 if you're using tools
like debootstrap/yum or doing manual copy from an existing system.

Also if you want to use ext4 as "/", don't forget to have a separate
/boot with ext3 since like Mark said, by default Centos' pygrub
doesn't support ext4.

-- 
Fajar

就我而言,我已將 filename.cfg xvda1 更改為 xvda(參見範例):

disk        = [
                 'phy:/dev/vgxen/calculus-root,xvda,w'
             ]

引用自:https://serverfault.com/questions/569890