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

asked 9 months ago63 views
No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions