0

I have CentOS-7-x86_64-GenericCloud-20140929_01.qcow2 image. When i boot it via virt-manager gui, it comes up well. No issues..

But i used virt-install to bring up the same qcow2 image as,

virt-install --name demo-vm --ram 1024 --disk /home/sk/images/vm-s/crap-vms.qcow2,size=8,format=qcow2 --vcpus 1 --os-type linux --os-variant fedora7 --network bridge=virbr0 --graphics none --noautoconsole --import

It starts reaching out to cloud-init and throws warning as,

url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [2/120s]: unexpected error ['ConnectionError' object has no attribute 'response']

The error is bombarding my console, making it impossible to type anything.

I am sure one of my virt-install parameter is wrong, not sure which one!!

Saravana Kumar
  • 169
  • 1
  • 1
  • 6
  • virt-install is meant to _install_ the operating system! There is no point to using it with an already existing OS! – Michael Hampton Aug 09 '15 at 04:28
  • thanks Mich... `virsh create ` works... – Saravana Kumar Aug 09 '15 at 04:40
  • normal behavior from cloud-init. You can disable the external datasource with a ``dpkg-reconfigure cloud-init`` inside your host (need just to wait couple of minutes for the boot with these errors going). – FlogFR Jan 24 '18 at 20:42

0 Answers0