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

질문됨 10달 전66회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인