Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/41.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google compute engine 从GCE中的自定义映像启动。靴挂在;从0000:7c00“启动;_Google Compute Engine - Fatal编程技术网

Google compute engine 从GCE中的自定义映像启动。靴挂在;从0000:7c00“启动;

Google compute engine 从GCE中的自定义映像启动。靴挂在;从0000:7c00“启动;,google-compute-engine,Google Compute Engine,我正在做一个关于大数据的培训,因为它基于cloudera平台,所以我下载了cloudera quickstart vm for virtual box 我没有足够的硬件从笔记本电脑上打开它,所以我决定试试GCE。因此,我按照说明将虚拟盒图像转换为原始图像,然后将tar.gz转换为google GCE bucket 在这之前,一切都很顺利 我能够装箱新的实例,并在没有任何问题的情况下连接从以前的实例创建的磁盘 启动实例后,我意识到它没有响应,无法访问其外部IP。查看串行控制台,发现它显示消息,直到

我正在做一个关于大数据的培训,因为它基于cloudera平台,所以我下载了cloudera quickstart vm for virtual box

我没有足够的硬件从笔记本电脑上打开它,所以我决定试试GCE。因此,我按照说明将虚拟盒图像转换为原始图像,然后将tar.gz转换为google GCE bucket

在这之前,一切都很顺利

我能够装箱新的实例,并在没有任何问题的情况下连接从以前的实例创建的磁盘

启动实例后,我意识到它没有响应,无法访问其外部IP。查看串行控制台,发现它显示消息,直到“从0000:7c00启动”,然后什么都没有。似乎是与磁盘相关的启动问题

我试着将这个磁盘作为辅助磁盘安装到GCE中的另一个工作实例中,并且我能够看到它的内容。所以磁盘似乎是正常的。请参见下面LVM命令的一些输出

pvs

PV         VG            Fmt  Attr PSize  PFree
  /dev/sdb2  vg_quickstart lvm2 a--  63.51g    0

vgs

 VG            #PV #LV #SN Attr   VSize  VFree
  vg_quickstart   1   2   0 wz--n- 63.51g    0

lvs

LV      VG            Attr       LSize  Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  lv_root vg_quickstart -wi------- 55.51g                                                    
  lv_swap vg_quickstart -wi-------  8.00g

lvdisplay

--- Logical volume ---
  LV Path                /dev/vg_quickstart/lv_root
  LV Name                lv_root
  VG Name                vg_quickstart
  LV UUID                DAlCfT-ALEN-ggHE-OOt5-wqn9-ejlm-30RKN1
  LV Write Access        read/write
  LV Creation host, time quickstart.cloudera, 2015-06-09 10:04:48 +0000
  LV Status              NOT available
  LV Size                55.51 GiB
  Current LE             14210
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto

  --- Logical volume ---
  LV Path                /dev/vg_quickstart/lv_swap
  LV Name                lv_swap
  VG Name                vg_quickstart
  LV UUID                ScuNN9-IFtX-vdDd-Z4QM-sqap-2P0G-gw4ujd
  LV Write Access        read/write
  LV Creation host, time quickstart.cloudera, 2015-06-09 10:05:03 +0000
  LV Status              NOT available
  LV Size                8.00 GiB
  Current LE             2048
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
下面您可以看到完整的串行控制台输出:

Changing serial settings was 0/0 now 3/0
Start bios (version 1.7.2-20150226_170051-google)
Unable to unlock ram - bridge not found
Ram Size=0xc0000000 (0x0000000030000000 high)
Relocating low data from 0x000e5810 to 0x000ef780 (size 2161)
Relocating init from 0x000e6081 to 0xbffd3540 (size 51612)
CPU Mhz=2300
=== PCI bus & bridge init ===
PCI: pci_bios_init_bus_rec bus = 0x0
=== PCI device probing ===
Found 4 PCI devices (max PCI bus is 00)
=== PCI new allocation pass #1 ===
PCI: check devices
=== PCI new allocation pass #2 ===
PCI: map device bdf=00:03.0  bar 0, addr 0000c000, size 00000040 [io]
PCI: map device bdf=00:04.0  bar 0, addr 0000c040, size 00000040 [io]
PCI: map device bdf=00:03.0  bar 1, addr febfe000, size 00001000 [mem]
PCI: map device bdf=00:04.0  bar 1, addr febff000, size 00001000 [mem]
PCI: init bdf=00:01.0 id=8086:7110
PIIX3/PIIX4 init: elcr=00 0c
PCI: init bdf=00:01.3 id=8086:7113
Using pmtimer, ioport 0xb008, freq 3579 kHz
PCI: init bdf=00:03.0 id=1af4:1004
PCI: init bdf=00:04.0 id=1af4:1000
Found 1 cpu(s) max supported 1 cpu(s)
MP table addr=0x000fdaf0 MPC table addr=0x000fdb00 size=240
SMBIOS ptr=0x000fdad0 table=0x000fd970 size=352
Memory hotplug not enabled. [MHPE=0xffffffff]
ACPI DSDT=0xbfffe070
ACPI tables: RSDP=0x000fd940 RSDT=0xbfffe030
Scan for VGA option rom
Machine UUID 99d5a402-078d-aa7b-e703-5927bca16259
Found 4 serial ports
found virtio-scsi at 0:3
Searching bootorder for: /pci@i0cf8/*@3/*@0/*@0,0
Searching bootorder for: /pci@i0cf8/*@3/*@0/*@1,0
virtio-scsi vendor='Google' product='PersistentDisk' rev='1' type=0 removable=0
virtio-scsi blksize=512 sectors=134217728
Searching bootorder for: /pci@i0cf8/*@3/*@0/*@2,0
Searching bootorder for: /pci@i0cf8/*@3/*@0/*@3,0
Searching bootorder for: /pci@i0cf8/*@3/*@0/*@4,0
Searching bootorder for: /pci@i0cf8/*@3/*@0/*@5,0
Searching bootorder for: /pci@i0cf8/*@3/*@0/*@6,0
...
Searching bootorder for: /pci@i0cf8/*@3/*@0/*@253,0
KBD: int09 handler: AL=0
PS2 keyboard initialized
All threads complete.
Scan for option roms
Searching bootorder for: HALT
drive 0x000fd900: PCHS=0/0/0 translation=lba LCHS=1024/255/63 s=134217728
Space available for UMB: 000c0000-000eb800
Returned 122880 bytes of ZoneHigh
e820 map has 7 items:
  0: 0000000000000000 - 000000000009fc00 = 1 RAM
  1: 000000000009fc00 - 00000000000a0000 = 2 RESERVED
  2: 00000000000f0000 - 0000000000100000 = 2 RESERVED
  3: 0000000000100000 - 00000000bfffe000 = 1 RAM
  4: 00000000bfffe000 - 00000000c0000000 = 2 RESERVED
  5: 00000000fffbc000 - 0000000100000000 = 2 RESERVED
  6: 0000000100000000 - 0000000130000000 = 1 RAM
Unable to lock ram - bridge not found
KBD: int09 handler: AL=0
enter handle_19:
  NULL
Booting from Hard Disk 0...
Booting from 0000:7c00
这个虚拟机出了什么问题?谢谢!

找到了解决方案

磁盘必须只包含一个分区(根分区),其中包含引导目录,而不是像我以前那样包含一个引导分区


我不是100%确定,但可能GCE从逻辑卷(lv)启动时出现问题。应该通过将新分区和dd数据从lv根分区构建到标准ext分区来避免这种情况。

您遵循了哪一个教程?此视频[1]应该很有用,此链接[2]列出了运行映像的所有GCE要求。[1]:[2]:经过一段时间的反复之后,我能够使它启动。显然,GCE不能从启动分区启动,它们只需要一个根分区和/boot目录。我甚至只使用根分区和内部的“boot”也遇到了类似的问题。