I am also getting this error with virt-install When running the following in ubuntu 15.04;
virt-install -n dummy -r 512 --vcpus=1 --os-type=linux --os-variant=rhel7 -w bridge:virbr0 --disk path=/var/lib/libvirt/images/dummy.qcow2,size=8 -l http://pubmirrors.dal.corespace.com/centos/7/isos/x86_64/ --dry-run I am given "ERROR global name 'fetcher' is not defined." Enabling debug shows ( snipped output ) [Thu, 21 May 2015 14:20:07 virt-install 13914] ERROR (cli:235) global name 'fetcher' is not defined [Thu, 21 May 2015 14:20:07 virt-install 13914] DEBUG (cli:237) Traceback (most recent call last): File "/usr/share/virt-manager/virt-install", line 875, in <module> sys.exit(main()) File "/usr/share/virt-manager/virt-install", line 860, in main guest = build_guest_instance(conn, options, parsermap) File "/usr/share/virt-manager/virt-install", line 470, in build_guest_instance get_install_media(guest, options.location, options.cdrom) File "/usr/share/virt-manager/virt-install", line 233, in get_install_media validate_install_media(guest, location, cdpath, cdinstall) File "/usr/share/virt-manager/virt-install", line 243, in validate_install_media guest.installer.check_location(guest) File "/usr/share/virt-manager/virtinst/distroinstaller.py", line 471, in check_location urlfetcher.detectMediaDistro(guest, self.location) File "/usr/share/virt-manager/virtinst/urlfetcher.py", line 360, in detectMediaDistro store = getDistroStore(guest, fetcher) File "/usr/share/virt-manager/virtinst/urlfetcher.py", line 338, in getDistroStore if store.isValidStore(): File "/usr/share/virt-manager/virtinst/urlfetcher.py", line 960, in isValidStore elif fetcher.hasFile("initrd.gz") and fetcher.hasFile("linux"): NameError: global name 'fetcher' is not defined My python-fu is quite weak and I can't figure this out. I was able to run > python setup.py test_urls Some URLs Errored, 1 failed, many passed. The packages associated for ubuntu 15.04 are; ii virt-manager 1:1.0.1-5ubuntu all desktop application for managing virtual mach ii virtinst 1:1.0.1-5ubuntu all For what it's worth. I install virt-manager 1.2 from source (required an additional library libosinfo-1.0-0:amd64 (0.2.11-1.1, automatic)) and found other errors trying to verify the source of the .iso, however, I did not get the python global name error that you get from running the ubuntu 15.04 version. I contacted the owner of the package and was told " I think this is an ubuntu specific bug, either a botched backport or some broken custom patch they have, since I don't see code like that in v1.0.1 virt-manager. I'd suggest filing a bug with them" -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1391673 Title: error creating new machine with "Fedora20+" profile To manage notifications about this bug go to: https://bugs.launchpad.net/hundredpapercuts/+bug/1391673/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
