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

posta 10 mesi fa66 visualizzazioni
Nessuna risposta

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande