Public bug reported:

I'm trying to create new kvm virtual machines on a newly installed jaunty 
server, and it failed:
# vmbuilder kvm ubuntu --debug
2009-02-14 17:27:35,318 DEBUG    add_part - begin 0, length 4096, end 4095
2009-02-14 17:27:35,319 DEBUG    add_part - begin 4096, length 1024, end 5119
2009-02-14 17:27:35,319 DEBUG    ip: dhcp
2009-02-14 17:27:35,331 DEBUG    Temporary directory: /tmp/vmbuildervjh75w
2009-02-14 17:27:35,332 DEBUG    Creating the root mount directory: 
/tmp/vmbuildervjh75w/target
2009-02-14 17:27:35,332 DEBUG    Creating temporary root: 
/tmp/vmbuildervjh75w/root
2009-02-14 17:27:35,332 DEBUG    Creating destination directory: ubuntu-kvm
2009-02-14 17:27:35,371 INFO     Creating disk image: 
/tmp/vmbuildervjh75w/disk0.img
2009-02-14 17:27:35,372 DEBUG    ['/usr/bin/kvm-img', 'create', '-f', 'raw', 
'/tmp/vmbuildervjh75w/disk0.img', '5120M']
2009-02-14 17:27:35,379 DEBUG    Formatting '/tmp/vmbuildervjh75w/disk0.img', 
fmt=raw, size=5242880 kB
2009-02-14 17:27:35,380 INFO     Adding partition table to disk image: 
/tmp/vmbuildervjh75w/disk0.img
2009-02-14 17:27:35,380 DEBUG    ['parted', '--script', 
'/tmp/vmbuildervjh75w/disk0.img', 'mklabel', 'msdos']
2009-02-14 17:27:35,405 INFO     Adding type 1 partition to disk image: 
/tmp/vmbuildervjh75w/disk0.img
2009-02-14 17:27:35,406 DEBUG    ['parted', '--script', '--', 
'/tmp/vmbuildervjh75w/disk0.img', 'mkpart', 'primary', 'ext2', '0', '4095']
2009-02-14 17:27:35,417 INFO     Adding type 3 partition to disk image: 
/tmp/vmbuildervjh75w/disk0.img
2009-02-14 17:27:35,417 DEBUG    ['parted', '--script', '--', 
'/tmp/vmbuildervjh75w/disk0.img', 'mkpart', 'primary', 'linux-swap', '4096', 
'5119']
2009-02-14 17:27:35,429 INFO     Creating loop devices corresponding to the 
created partitions
2009-02-14 17:27:35,430 DEBUG    ['kpartx', '-av', 
'/tmp/vmbuildervjh75w/disk0.img']
2009-02-14 17:27:35,442 DEBUG    add map loop2p1 (252:4): 0 7998048 linear 
/dev/loop2 32
2009-02-14 17:27:35,444 DEBUG    add map loop2p2 (252:5): 0 2000000 linear 
/dev/loop2 7998080
2009-02-14 17:27:35,444 INFO     Creating file systems
2009-02-14 17:27:35,445 DEBUG    Oh, dear, an exception occurred
2009-02-14 17:27:35,445 INFO     Cleaning up
2009-02-14 17:27:35,445 DEBUG    ['kpartx', '-d', 
'/tmp/vmbuildervjh75w/disk0.img']
2009-02-14 17:27:35,455 DEBUG    loop deleted : /dev/loop2
2009-02-14 17:27:35,456 DEBUG    ['rmdir', 'ubuntu-kvm']
2009-02-14 17:27:35,462 DEBUG    ['rm', '-rf', '/tmp/vmbuildervjh75w']
Traceback (most recent call last):
  File "/usr/bin/vmbuilder", line 29, in <module>
    VMBuilder.run()
  File "/usr/lib/python2.5/site-packages/VMBuilder/__init__.py", line 66, in run
    frontend.run()
  File "/usr/lib/python2.5/site-packages/VMBuilder/plugins/cli/__init__.py", 
line 67, in run
    vm.create()
  File "/usr/lib/python2.5/site-packages/VMBuilder/vm.py", line 452, in create
    disk.create_partitions(self)
  File "/usr/lib/python2.5/site-packages/VMBuilder/disk.py", line 384, in 
create_partitions
    disk.create(vm.workdir)
  File "/usr/lib/python2.5/site-packages/VMBuilder/disk.py", line 117, in create
    part.mkfs()
  File "/usr/lib/python2.5/site-packages/VMBuilder/disk.py", line 220, in mkfs
    raise Exception('We can\'t mkfs before we have a mapper device')
Exception: We can't mkfs before we have a mapper device

** Affects: vm-builder (Ubuntu)
     Importance: Undecided
         Status: New

-- 
vmbuilder failed to create any machine
https://bugs.launchpad.net/bugs/329458
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to