【发布时间】:2021-07-08 18:50:29
【问题描述】:
我正在关注 wiki https://help.ubuntu.com/community/Xen#Manually_Create_a_PV_Guest_VM (部分 ” 设置初始访客配置
")
我从https://mirror.arizona.edu/ubuntu//ubuntu/dists/bionic/main/installer-amd64/current/images/netboot/xen/下载了netboot initrd.gz
但是在 .cfg 中,我应该为“disk =”行指定什么? ---- 我的主机箱没有使用 LVM,所以我必须为 PV 磁盘映像使用“文件支持的存储”。 (https://wiki.xenproject.org/wiki/Storage_options ,当我在 https://wiki.xenproject.org/wiki/Xen_Project_Beginners_Guide 中运行 xml-create 命令时给出 --dir= 而不是 --lvm= 时确实有效)
这是我当前的配置:
yy@yy-70A4000HUX:~/ub_xen$ cat ub_xen.cfg
name = "ubud1"
kernel = "/home/yy/ub_xen/vmlinuz"
ramdisk = "/home/yy/ub_xen/initrd.gz"
#bootloader = "/usr/lib/xen-4.4/bin/pygrub"
memory = 1024
vcpus = 1
# Custom option for Open vSwitch
vif = [ 'bridge=xenbr0' ]
disk = [ 'vdev=hda,target=/home/yy/ub_xen/images' ]
# You may also consider some other options
# [[http://xenbits.xen.org/docs/4.4-testing/man/xl.cfg.5.html]]
yy@yy-70A4000HUX:~/ub_xen$
我使用 sudo xl create -c ub_xen.cfg 运行命令
这首先工作得很好,给了我在控制台上的常规安装过程,从远程存档中提取安装文件,但是当涉及到磁盘分区的步骤时,它向我展示了一个“SCSI”分区选择,没有卷/分区/要选择的磁盘。
我猜这是因为我没有为“disk = []”选项设置正确的值。如果我为 PV 使用文件支持的存储(就像 VMware 一样),我应该在这里使用什么?
非常感谢 杨
【问题讨论】:
标签: xen