diff --git a/vm-ansible/__main__.py b/vm-ansible/__main__.py index a92b05e..eccc3a5 100644 --- a/vm-ansible/__main__.py +++ b/vm-ansible/__main__.py @@ -50,7 +50,7 @@ vm = lv.Domain(conf.name, ) ], cloudinit = cloudinit.id, vcpu = conf.vcpu, - disks = [ lv.DomainDiskArgs(volume_id = volume.id) ], + disks = [ lv.DomainDiskArgs(volume_id = volume.id, scsi=True) ], memory = int(conf.ram), network_interfaces = [ lv.DomainNetworkInterfaceArgs( network_name = "default", diff --git a/vm-ansible/cloud-images.yaml b/vm-ansible/cloud-images.yaml index 600df75..3c8c74d 100644 --- a/vm-ansible/cloud-images.yaml +++ b/vm-ansible/cloud-images.yaml @@ -1,4 +1,4 @@ buster: https://cloud.debian.org/images/cloud/buster-backports/latest/debian-10-backports-generic-amd64.qcow2 bullseye: https://cloud.debian.org/images/cloud/bullseye-backports/latest/debian-11-backports-generic-amd64.qcow2 bookworm: https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-generic-amd64.qcow2 -centos7: https://cloud.centos.org/centos/7/images/CentOS-7-ppc64le-GenericCloud-2009.qcow2 +centos7: https://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud-2211.qcow2 diff --git a/vm/__main__.py b/vm/__main__.py index 4722ff4..578a845 100644 --- a/vm/__main__.py +++ b/vm/__main__.py @@ -37,7 +37,7 @@ vm = lv.Domain(conf.name, boot_devices=[lv.DomainBootDeviceArgs(devs=["hd", "cdrom"])], cloudinit=cloudinit.id, vcpu=conf.vcpu, - disks=[lv.DomainDiskArgs(volume_id=volume.id)], + disks=[lv.DomainDiskArgs(volume_id=volume.id, scsi=True)], memory=int(conf.ram), network_interfaces=[lv.DomainNetworkInterfaceArgs( network_name="default", diff --git a/vm/cloud-images.yaml b/vm/cloud-images.yaml index 600df75..3c8c74d 100644 --- a/vm/cloud-images.yaml +++ b/vm/cloud-images.yaml @@ -1,4 +1,4 @@ buster: https://cloud.debian.org/images/cloud/buster-backports/latest/debian-10-backports-generic-amd64.qcow2 bullseye: https://cloud.debian.org/images/cloud/bullseye-backports/latest/debian-11-backports-generic-amd64.qcow2 bookworm: https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-generic-amd64.qcow2 -centos7: https://cloud.centos.org/centos/7/images/CentOS-7-ppc64le-GenericCloud-2009.qcow2 +centos7: https://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud-2211.qcow2