我已经设置并设置了构建 vmdk 格式虚拟机的环境,然后使用 ec2 api 工具将其转换、捆绑并上传到 AWS 云。但是,我在这方面面临一些挑战。
- 创建了vmdk格式的虚拟机。
- 使用 ec2-bundle-image 创建图像包。
- 使用 ec2-upload-bundle 上传捆绑包。
- 从 aws 控制台注册清单文件。
- 启动实例。
启动实例后,我收到以下错误:
Xen Minimal OS!
start_info: 0xb10000(VA)
nr_pages: 0x6a400
shared_inf: 0x00b9b000(MA)
pt_base: 0xb13000(VA)
nr_pt_frames: 0x9
mfn_list: 0x967000(VA)
mod_start: 0x0(VA)
mod_len: 0
flags: 0x0
cmd_line: root=/dev/sda1 ro 4
stack: 0x946780-0x966780
MM: Init
_text: 0x0(VA)
_etext: 0x61e65(VA)
_erodata: 0x76000(VA)
_edata: 0x7b6d4(VA)
stack start: 0x946780(VA)
_end: 0x966d34(VA)
start_pfn: b1f
max_pfn: 6a400
Mapping memory range 0xc00000 - 0x6a400000
setting 0x0-0x76000 readonly
skipped 0x1000
MM: Initialise page allocator for e6c000(e6c000)-0(6a400000)
MM: done
Demand map pfns at 6a401000-7a401000.
Heap resides at 7a402000-ba402000.
Initialising timer interface
Initialising console ... done.
gnttab_table mapped at 0x6a401000.
Initialising scheduler
Thread "Idle": pointer: 0x7a402008, stack: 0x6a030000
Initialising xenbus
Thread "xenstore": pointer: 0x7a402478, stack: 0x6a040000
Dummy main: start_info=0x966880
Thread "main": pointer: 0x7a4028e8, stack: 0x6a050000
"main" "root=/dev/sda1" "ro" "4"
vbd 2049 is hd0
******************* BLKFRONT for device/vbd/2049 **********
backend at /local/domain/0/backend/vbd/7502/2049
Failed to read /local/domain/0/backend/vbd/7502/2049/feature-barrier.
Failed to read /local/domain/0/backend/vbd/7502/2049/feature-flush-cache.
2503680 sectors of 0 bytes
**************************
vbd 2050 is hd1
******************* BLKFRONT for device/vbd/2050 **********
backend at /local/domain/0/backend/vbd/7502/2050
Failed to read /local/domain/0/backend/vbd/7502/2050/feature-barrier.
Failed to read /local/domain/0/backend/vbd/7502/2050/feature-flush-cache.
312705024 sectors of 0 bytes
**************************
vbd 2051 is hd2
******************* BLKFRONT for device/vbd/2051 **********
backend at /local/domain/0/backend/vbd/7502/2051
Failed to read /local/domain/0/backend/vbd/7502/2051/feature-barrier.
Failed to read /local/domain/0/backend/vbd/7502/2051/feature-flush-cache.
1835008 sectors of 0 bytes
**************************
[H
[J
GNU GRUB version 0.97 (1740800K lower / 0K upper memory)
[ Minimal BASH-like line editing is supported. For
the first word, TAB lists possible command
completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grubdom>
[9;10H
答案1
Raju,如果您还没有这样做,我将参考 AWS 文档以获取有关 VM 导入/导出功能的最佳实践:
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UsingVirtualMachinesinAmazonEC2.html 您将需要使用 ec2-import-instance 和 ec2-import-volume 命令将您的 VMDK 实例和相关卷推送到 AWS。
如果您有能力快速组建一个 VMware vCenter 主机,我建议您这样做 - 因为 AWS 有一个免费插件可以帮助完成此过程:http://aws.amazon.com/ec2/vcenter-portal/
希望有帮助!