Error could not find any device /dev/loop
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/
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-
2014-03-03 18:51:23,056 INFO : start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/
2014-03-03 18:51:23,397 INFO : restart: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/
2014-03-03 18:51:23,533 INFO : start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/
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_
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_
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/
hypervisor.
File "/usr/lib/
self.
File "/usr/lib/
call_
File "/usr/lib/
getattr(
File "/usr/lib/
disk.
File "/usr/lib/
kpartx_output = run_cmd('kpartx', '-av', self.filename)
File "/usr/lib/
raise VMBuilderException, "Process (%s) returned %d. stdout: %s, stderr: %s" % (args.__repr__(), status, mystdout.buf, mystderr.buf)
VMBuilder.
can't set up loop