Amazon Linux 2 guest VM on KVM

0

Hello, I am working on replacing Debian and centos VM with Amazon Linux 2 . I am using KVM hypervisor. I am calling "virt-install" command with following parameters - sudo virt-install
--memory 2048
--vcpus 2
--name test_ami2 \
--cpu host \
--cdrom ./seed.iso \
--disk "$updqcowfile".qcow2,device=disk,bus=virtio,format=qcow2 \
--os-type Linux \
--os-variant rhel7 \
--video vga \
--network default,model=virtio \
--virt-type kvm \
--graphics none \
--import \

I am not clear about if I am using "--cdrom" and "--disk" option correctly. Here is what I am seeing -

  1. If I do not pass "--cdrom ./seed.iso " option, then I see my AMI 2 Guest VM running. But I cannot access or connect t it.
  2. If I use "--cdrom" (as shown above) to pass seed.iso which has information about default users and network interfaces, then I get error - "" ERROR Only one install method can be used (--location URL, --cdrom CD/ISO, --pxe, --import, --boot hd|cdrom|...) ""

So, I do I pass seed.io and also install AMI on guest VM

Thanks

preguntada hace 10 meses66 visualizaciones
No hay respuestas

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas