Error could not find any device /dev/loop

Bug #1287116 reported by Kenjiro NAKAYAMA
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
VMBuilder
New
Undecided
Unassigned

Bug Description

When I use vmbuilder on Fedora, I got following error.

$sudo vmbuilder kvm ubuntu

2014-03-03 18:39:52,630 INFO : Calling hook: preflight_check
2014-03-03 18:39:52,633 INFO : Calling hook: set_defaults
2014-03-03 18:39:52,633 INFO : Calling hook: bootstrap
2014-03-03 18:46:14,993 INFO : Calling hook: configure_os
2014-03-03 18:46:41,287 INFO :
2014-03-03 18:46:41,287 INFO : Current default time zone: 'Etc/UTC'
2014-03-03 18:46:41,289 INFO : Local time is now: Mon Mar 3 09:46:41 UTC 2014.
2014-03-03 18:46:41,290 INFO : Universal Time is now: Mon Mar 3 09:46:41 UTC 2014.
2014-03-03 18:46:41,290 INFO :
Extracting templates from packages: 100%
2014-03-03 18:51:15,424 INFO :
2014-03-03 18:51:15,424 INFO : Current default time zone: 'Etc/UTC'
2014-03-03 18:51:15,426 INFO : Local time is now: Mon Mar 3 09:51:15 UTC 2014.
2014-03-03 18:51:15,427 INFO : Universal Time is now: Mon Mar 3 09:51:15 UTC 2014.
2014-03-03 18:51:15,427 INFO : Run 'dpkg-reconfigure tzdata' if you wish to change it.
2014-03-03 18:51:15,427 INFO :
2014-03-03 18:51:18,511 INFO : stop: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
2014-03-03 18:51:22,473 INFO : Updating certificates in /etc/ssl/certs... WARNING: Skipping duplicate certificate brasil.gov.br.pem
2014-03-03 18:51:22,474 INFO : 0 added, 1 removed; done.
2014-03-03 18:51:22,475 INFO : Running hooks in /etc/ca-certificates/update.d....done.
2014-03-03 18:51:23,056 INFO : start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
2014-03-03 18:51:23,397 INFO : restart: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
2014-03-03 18:51:23,533 INFO : start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
2014-03-03 18:51:25,336 INFO : Calling hook: post_install
2014-03-03 18:51:25,338 INFO : Calling hook: preflight_check
2014-03-03 18:51:25,338 INFO : Calling hook: configure_networking
2014-03-03 18:51:25,346 INFO : Calling hook: configure_mounting
2014-03-03 18:51:25,352 INFO : Calling hook: mount_partitions
2014-03-03 18:51:25,353 INFO : Mounting target filesystems
2014-03-03 18:51:25,353 INFO : Creating disk image: "/tmp/tmpL2NIw0" of size: 5120MB
2014-03-03 18:51:26,167 INFO : Adding partition table to disk image: /tmp/tmpL2NIw0
2014-03-03 18:51:26,377 INFO : Adding type 4 partition to disk image: /tmp/tmpL2NIw0
2014-03-03 18:51:26,380 INFO : Warning: The resulting partition is not properly aligned for best performance.
2014-03-03 18:51:26,380 INFO : Adding type 3 partition to disk image: /tmp/tmpL2NIw0
2014-03-03 18:51:26,383 INFO : [0] filesys.c:148 (ped_file_system_type_get): File system alias linux-swap(new) is deprecated
2014-03-03 18:51:26,383 INFO : Creating loop devices corresponding to the created partitions
2014-03-03 18:51:26,414 INFO : mount: could not find any device /dev/loop#Bad address
2014-03-03 18:51:26,415 INFO : can't set up loop
2014-03-03 18:51:26,415 ERROR : Process (['kpartx', '-av', '/tmp/tmpL2NIw0']) returned 1. stdout: , stderr: mount: could not find any device /dev/loop#Bad address
can't set up loop

Traceback (most recent call last):
  File "/bin/vmbuilder", line 24, in <module>
    cli.main()
  File "/usr/lib/python2.7/site-packages/VMBuilder/contrib/cli.py", line 117, in main
    hypervisor.install_os()
  File "/usr/lib/python2.7/site-packages/VMBuilder/hypervisor.py", line 65, in install_os
    self.call_hooks('mount_partitions', self.chroot_dir)
  File "/usr/lib/python2.7/site-packages/VMBuilder/distro.py", line 66, in call_hooks
    call_hooks(self, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/VMBuilder/util.py", line 165, in call_hooks
    getattr(context, func, log_no_such_method)(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/VMBuilder/hypervisor.py", line 89, in mount_partitions
    disk.map_partitions()
  File "/usr/lib/python2.7/site-packages/VMBuilder/disk.py", line 127, in map_partitions
    kpartx_output = run_cmd('kpartx', '-av', self.filename)
  File "/usr/lib/python2.7/site-packages/VMBuilder/util.py", line 120, in run_cmd
    raise VMBuilderException, "Process (%s) returned %d. stdout: %s, stderr: %s" % (args.__repr__(), status, mystdout.buf, mystderr.buf)
VMBuilder.exception.VMBuilderException: Process (['kpartx', '-av', '/tmp/tmpL2NIw0']) returned 1. stdout: , stderr: mount: could not find any device /dev/loop#Bad address
can't set up loop

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.