代码之家  ›  专栏  ›  技术社区  ›  Golo Roden

VMware Fusion 11上的Ubuntu 18.04.1导致打包机出现内核恐慌

  •  1
  • Golo Roden  · 技术社区  · 7 年前

    尽管boot命令包含 noapic . 还有,设置 acpi=off

    enter image description here

    封隔器配置如下所示:

    {
      "type": "vmware-iso",
      "vmx_data": {
        "numvcpus": "2",
        "memsize": "2048"
      },
      "http_directory" : "http",
      "boot_command": [
        "<esc><wait>",
        "<esc><wait>",
        "<enter><wait>",
        "/install/vmlinuz<wait>",
        " auto<wait>",
        " console-setup/ask_detect=false<wait>",
        " console-setup/layoutcode=us<wait>",
        " console-setup/modelcode=pc105<wait>",
        " debconf/frontend=noninteractive<wait>",
        " debian-installer=en_US<wait>",
        " fb=false<wait>",
        " initrd=/install/initrd.gz<wait>",
        " kbd-chooser/method=us<wait>",
        " keyboard-configuration/layout=USA<wait>",
        " keyboard-configuration/variant=USA<wait>",
        " locale=en_US<wait>",
        " netcfg/get_domain=vm<wait>",
        " netcfg/get_hostname=vagrant<wait>",
        " grub-installer/bootdev=/dev/sda<wait>",
        " noapic<wait>",
        " preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg<wait>",
        " -- <wait>",
        "<enter><wait>"
      ],
      "boot_wait": "10s",
      "disk_size": 10000,
      "guest_os_type": "ubuntu-64",
      "headless": false,
      "iso_url": "http://cdimage.ubuntu.com/releases/18.04.1/release/ubuntu-18.04.1-server-amd64.iso",
      "iso_checksum": "e8264fa4c417216f4304079bd94f895e",
      "iso_checksum_type": "md5",
      "ssh_username": "guest",
      "ssh_password": "guest",
      "ssh_timeout": "30m",
      "shutdown_command": "echo 'packer' | sudo -S shutdown -P now"
    }
    

    如前所述,引导机器基本工作,直到Packer输入引导命令并按下 <Enter>

    具体的机器配置为:

    • 马科斯莫哈韦10.14.1
    • VMware Fusion 11.0.2

    有没有关于可能出现的问题以及如何解决的想法?

    1 回复  |  直到 7 年前
        1
  •  4
  •   Golo Roden    7 年前

    似乎我找到了解决这个问题的方法(变通方法?):如果您只是删除

    noapic<wait>
    

    从boot命令来看,一切正常(这对于VMware和VirtualBox都是如此)。我不知道这是否是最好的解决方案,但至少这让事情重新开始