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 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南