Pré-projetando ou corrigindo “Force UEFI installation” na instalação do Hyper-V?

0

Estou tentando criar um modelo de empacotador do Ubuntu no Hyper-V como uma máquina virtual da Geração 2, o que significa configurar uma instalação autônoma. Com base no que aprendi com o Bento do Chef, a maior parte da configuração que eles estão usando parece funcionar no Hyper-V sem engate.

Este é o comando de inicialização exato que estou usando:

...
"boot_command": [
  "c<wait>",
  "linuxefi<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>",
  " 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>",
  " preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ubuntu-16.10/preseed.cfg<wait>",
  " -- <wait>",
  "<enter><wait>",
  "initrdefi<wait>",
  " /install/initrd.gz<wait>",
  "<enter><wait>",
  "boot<wait>",
  "<enter><wait>"
],
...

(Eu tentei tanto linux como linuxefi / initrd e initrdefi como os comandos, ambos tiveram os mesmos resultados. O Fedora exigiu as efi variants, então eu deixei lá por consistência.)

O arquivo de prese real é exatamente o mesmo fornecido pelo Bento.

No entanto, estou com um problema durante o particionamento de disco. A caixa de diálogo completa é

This machine's firmware has started the installer in UEFI mode but it looks like there may be existing operating systems already installed using "BIOS compatibility mode". If you continue to install Debian in UEFI mode, it might be difficult to reboot the machine into any BIOS-mode operating systems later.

If you wish to install in EUFI mode and don't care about keeping the ability to boot one of the existing systems, you have the option to force that here. If you wish to keep the option to boot an existing operating system, you should choose NOT to force UEFI installation here.

Force UEFI installation?

Estou bastante confuso sobre isso porque, por exemplo, a unidade deve estar completamente vazia, pois foi criada através do Hyper-V.

Existe uma maneira de pré-configurar ou definir uma opção de inicialização para este valor como true , ou melhor ainda, para configurar a instalação do Hyper-V para que ela não apareça de todo?

    
por Aetylus 21.12.2016 / 01:56

1 resposta

0

Esta solução funcionou para mim quando eu estava trabalhando em um modelo gen2 link

    
por theo 13.01.2017 / 14:03