libguestfs on Debian

libguestfs now compiles and passes most of the tests on Debian.

debian5x64:~/d/libguestfs$ LIBGUESTFS_QEMU=~/d/qemu/qemu.wrapper ./fish/guestfish 

Welcome to guestfish, the libguestfs filesystem interactive shell for
editing virtual machine filesystems.

Type: 'help' for help with commands
      'quit' to quit the shell

><fs> alloc /tmp/test 100M
><fs> run
><fs> sfdisk /dev/sda 0 0 0 ,
><fs> mkfs ext3 /dev/sda1
><fs> 
debian5x64:~/d/libguestfs$ file /tmp/test 
/tmp/test: x86 boot sector; partition 1: ID=0x83, starthead 0, startsector 1, 192779 sectors

You need the latest febootstrap and libguestfs from git, and read my previous posting about getting febootstrap to work on Debian.

Someone want to file an RTP or ITP …? I filed ITPs for febootstrap (530425) and libguestfs (530427). I’d really like someone to run with these packages as although I filed ITPs I’m not sure I’m best qualified to maintain them in Debian. Preliminary Debian packages can be found here.

Update: Debian unstable qemu 0.10.4 can’t boot the appliance – it hangs very early in the boot sequence (BIOS, before kernel). Solution is to compile qemu from git and use a qemu wrapper. qemu 0.10.5 added to Debian unstable today works.

Update #2: All tests now pass on Debian:

  1/140 test_find_0
  2/140 test_find_1
  3/140 test_find_2
  4/140 test_lvresize_0
  5/140 test_zerofree_0
test_zerofree_0 skipped (reason: SKIP_TEST_* variable set)
  6/140 test_hexdump_0
  7/140 test_strings_e_0
  8/140 test_strings_e_1
test_strings_e_1 skipped (reason: test disabled in generator)
  9/140 test_strings_0
 10/140 test_strings_1
 11/140 test_equal_0
 12/140 test_equal_1
 13/140 test_equal_2
 14/140 test_ping_daemon_0
 15/140 test_dmesg_0
 16/140 test_drop_caches_0
 17/140 test_mv_0
 18/140 test_mv_1
 19/140 test_cp_a_0
 20/140 test_cp_0
 21/140 test_cp_1
 22/140 test_cp_2
 23/140 test_grub_install_0
 24/140 test_zero_0
 25/140 test_fsck_0
 26/140 test_fsck_1
 27/140 test_set_e2uuid_0
 28/140 test_set_e2uuid_1
 29/140 test_set_e2uuid_2
 30/140 test_set_e2uuid_3
 31/140 test_set_e2label_0
 32/140 test_pvremove_0
 33/140 test_pvremove_1
 34/140 test_pvremove_2
 35/140 test_vgremove_0
 36/140 test_vgremove_1
 37/140 test_lvremove_0
 38/140 test_lvremove_1
 39/140 test_lvremove_2
 40/140 test_mount_ro_0
 41/140 test_mount_ro_1
 42/140 test_tgz_in_0
 43/140 test_tar_in_0
 44/140 test_checksum_0
 45/140 test_checksum_1
 46/140 test_checksum_2
 47/140 test_checksum_3
 48/140 test_checksum_4
 49/140 test_checksum_5
 50/140 test_checksum_6
 51/140 test_checksum_7
 52/140 test_download_0
 53/140 test_upload_0
 54/140 test_blockdev_rereadpt_0
 55/140 test_blockdev_flushbufs_0
 56/140 test_blockdev_getsize64_0
 57/140 test_blockdev_getsz_0
 58/140 test_blockdev_getbsz_0
 59/140 test_blockdev_getss_0
 60/140 test_blockdev_getro_0
 61/140 test_blockdev_setrw_0
 62/140 test_blockdev_setro_0
 63/140 test_statvfs_0
 64/140 test_lstat_0
 65/140 test_stat_0
 66/140 test_command_lines_0
 67/140 test_command_lines_1
 68/140 test_command_lines_2
 69/140 test_command_lines_3
 70/140 test_command_lines_4
 71/140 test_command_lines_5
 72/140 test_command_lines_6
 73/140 test_command_lines_7
 74/140 test_command_lines_8
 75/140 test_command_lines_9
 76/140 test_command_lines_10
 77/140 test_command_0
 78/140 test_command_1
 79/140 test_command_2
 80/140 test_command_3
 81/140 test_command_4
 82/140 test_command_5
 83/140 test_command_6
 84/140 test_command_7
 85/140 test_command_8
 86/140 test_command_9
 87/140 test_command_10
 88/140 test_command_11
 89/140 test_file_0
 90/140 test_file_1
 91/140 test_file_2
 92/140 test_umount_all_0
 93/140 test_umount_all_1
 94/140 test_mounts_0
 95/140 test_umount_0
 96/140 test_umount_1
 97/140 test_write_file_0
 98/140 test_write_file_1
 99/140 test_write_file_2
100/140 test_write_file_3
101/140 test_write_file_4
102/140 test_write_file_5
103/140 test_mkfs_0
104/140 test_lvcreate_0
105/140 test_vgcreate_0
106/140 test_pvcreate_0
107/140 test_is_dir_0
108/140 test_is_dir_1
109/140 test_is_file_0
110/140 test_is_file_1
111/140 test_exists_0
112/140 test_exists_1
113/140 test_mkdir_p_0
114/140 test_mkdir_p_1
115/140 test_mkdir_p_2
116/140 test_mkdir_0
117/140 test_mkdir_1
118/140 test_rm_rf_0
119/140 test_rmdir_0
120/140 test_rmdir_1
121/140 test_rmdir_2
122/140 test_rm_0
123/140 test_rm_1
124/140 test_rm_2
125/140 test_read_lines_0
126/140 test_read_lines_1
127/140 test_lvs_0
128/140 test_lvs_1
129/140 test_vgs_0
130/140 test_vgs_1
131/140 test_pvs_0
132/140 test_pvs_1
133/140 test_list_partitions_0
134/140 test_list_partitions_1
135/140 test_list_devices_0
136/140 test_ls_0
137/140 test_cat_0
138/140 test_touch_0
139/140 test_sync_0
140/140 test_mount_0

except zerofree. They need to package zerofree.

2 Comments

Filed under Uncategorized

2 responses to “libguestfs on Debian

  1. foo

    Looks like you already filed an ITP:

    http://bugs.debian.org/530425

    qemu 0.10.5 is in unstable now:

    http://packages.debian.org/search?keywords=qemu

    zerofree is in Debian since lenny:

    http://packages.debian.org/search?keywords=zerofree

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.