<div dir="ltr"><div><div>Hi Rich<br><br></div>Thanks for the support you are providing.I have enabled virtio modules with (m) option now and below are the updated logs of libguestfs..<br><br>upermin: mounting /proc<br>supermin: uptime: 1.10 1567.28<br>
supermin: ext2 mini initrd starting up: 5.1.8 zlib<br>supermin: cmdline: panic=1 console=ttyS0 udevtimeout=6000 no_timer_check acpi=off printk.time=1 cgroup_disable=memory root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm<br>
supermin: mounting /sys<br>supermin: internal insmod crc32c.ko<br>[    1.136268] crc32c: disagrees about version of symbol crypto_unregister_shash<br>[    1.138006] crc32c: Unknown symbol crypto_unregister_shash (err -22)<br>
[    1.139571] crc32c: disagrees about version of symbol crypto_register_shash<br>[    1.141446] crc32c: Unknown symbol crypto_register_shash (err -22)<br>insmod: init_module: crc32c.ko: Invalid parameters<br>supermin: internal insmod virtio.ko<br>
[    1.145450] virtio: disagrees about version of symbol device_register<br>[    1.147131] virtio: Unknown symbol device_register (err -22)<br>[    1.148588] virtio: disagrees about version of symbol dev_set_name<br>[    1.150091] virtio: Unknown symbol dev_set_name (err -22)<br>
[    1.151494] virtio: disagrees about version of symbol device_unregister<br>[    1.153274] virtio: Unknown symbol device_unregister (err -22)<br>insmod: init_module: virtio.ko: Invalid parameters<br>supermin: internal insmod virtio_ring.ko<br>
[    1.157919] virtio_ring: disagrees about version of symbol dev_warn<br>[    1.159622] virtio_ring: Unknown symbol dev_warn (err -22)<br>[    1.161131] virtio_ring: disagrees about version of symbol dev_err<br>[    1.162845] virtio_ring: Unknown symbol dev_err (err -22)<br>
insmod: init_module: virtio_ring.ko: Invalid parameters<br>supermin: internal insmod virtio_blk.ko<br>[    1.167444] virtio_blk: disagrees about version of symbol device_create_file<br>[    1.169352] virtio_blk: Unknown symbol device_create_file (err -22)<br>
[    1.171105] virtio_blk: disagrees about version of symbol dev_notice<br>[    1.172818] virtio_blk: Unknown symbol dev_notice (err -22)<br>insmod: init_module: virtio_blk.ko: Invalid parameters<br>supermin: internal insmod virtio_console.ko<br>
[    1.177496] virtio_console: Unknown symbol hvc_instantiate (err 0)<br>[    1.179128] virtio_console: Unknown symbol hvc_alloc (err 0)<br>[    1.180676] virtio_console: Unknown symbol __hvc_resize (err 0)<br>[    1.182345] virtio_console: disagrees about version of symbol kobject_uevent<br>
[    1.184209] virtio_console: Unknown symbol kobject_uevent (err -22)<br>[    1.185952] virtio_console: disagrees about version of symbol device_destroy<br>[    1.187786] virtio_console: Unknown symbol device_destroy (err -22)<br>
[    1.189594] virtio_console: Unknown symbol hvc_remove (err 0)<br>[    1.191122] virtio_console: Unknown symbol hvc_kick (err 0)<br>[    1.192647] virtio_console: disagrees about version of symbol dev_warn<br>[    1.194444] virtio_console: Unknown symbol dev_warn (err -22)<br>
[    1.196488] virtio_console: disagrees about version of symbol dev_err<br>[    1.198096] virtio_console: Unknown symbol dev_err (err -22)<br>[    1.199528] virtio_console: disagrees about version of symbol device_create<br>
[    1.201388] virtio_console: Unknown symbol device_create (err -22)<br>[    1.202902] virtio_console: Unknown symbol hvc_poll (err 0)<br>insmod: init_module: virtio_console.ko: Unknown symbol in module<br>supermin: internal insmod virtio_net.ko<br>
[    1.207732] virtio_net: disagrees about version of symbol eth_type_trans<br>[    1.209575] virtio_net: Unknown symbol eth_type_trans (err -22)<br>[    1.211019] virtio_net: disagrees about version of symbol netif_carrier_on<br>
[    1.212874] virtio_net: Unknown symbol netif_carrier_on (err -22)<br>[    1.214353] virtio_net: disagrees about version of symbol netif_set_real_num_tx_queues<br>[    1.216418] virtio_net: Unknown symbol netif_set_real_num_tx_queues (err -22)<br>
[    1.218159] virtio_net: disagrees about version of symbol eth_validate_addr<br>[    1.220016] virtio_net: Unknown symbol eth_validate_addr (err -22)<br>[    1.221514] virtio_net: disagrees about version of symbol register_netdev<br>
[    1.223387] virtio_net: Unknown symbol register_netdev (err -22)<br>[    1.225142] virtio_net: disagrees about version of symbol skb_to_sgvec<br>[    1.226813] virtio_net: Unknown symbol skb_to_sgvec (err -22)<br>[    1.228288] virtio_net: disagrees about version of symbol eth_mac_addr<br>
[    1.229869] virtio_net: Unknown symbol eth_mac_addr (err -22)<br>[    1.231424] virtio_net: disagrees about version of symbol __netdev_alloc_skb<br>[    1.233164] virtio_net: Unknown symbol __netdev_alloc_skb (err -22)<br>
[    1.234708] virtio_net: disagrees about version of symbol unregister_netdev<br>[    1.236558] virtio_net: Unknown symbol unregister_netdev (err -22)<br>[    1.238062] virtio_net: disagrees about version of symbol free_netdev<br>
[    1.239754] virtio_net: Unknown symbol free_netdev (err -22)<br>[    1.241185] virtio_net: disagrees about version of symbol dev_kfree_skb_any<br>[    1.242849] virtio_net: Unknown symbol dev_kfree_skb_any (err -22)<br>
[    1.244566] virtio_net: disagrees about version of symbol __napi_schedule<br>[    1.246196] virtio_net: Unknown symbol __napi_schedule (err -22)<br>[    1.247668] virtio_net: disagrees about version of symbol skb_put<br>
[    1.249315] virtio_net: Unknown symbol skb_put (err -22)<br>[    1.250629] virtio_net: disagrees about version of symbol netif_napi_add<br>[    1.252301] virtio_net: Unknown symbol netif_napi_add (err -22)<br>[    1.253868] virtio_net: disagrees about version of symbol ethtool_op_get_link<br>
[    1.255579] virtio_net: Unknown symbol ethtool_op_get_link (err -22)<br>[    1.257192] virtio_net: disagrees about version of symbol dev_warn<br>[    1.258819] virtio_net: Unknown symbol dev_warn (err -22)<br>[    1.260210] virtio_net: disagrees about version of symbol netif_set_real_num_rx_queues<br>
[    1.262200] virtio_net: Unknown symbol netif_set_real_num_rx_queues (err -22)<br>[    1.263962] virtio_net: disagrees about version of symbol skb_trim<br>[    1.265564] virtio_net: Unknown symbol skb_trim (err -22)<br>
[    1.266920] virtio_net: disagrees about version of symbol netif_carrier_off<br>[    1.268638] virtio_net: Unknown symbol netif_carrier_off (err -22)<br>[    1.270149] virtio_net: disagrees about version of symbol __netif_schedule<br>
[    1.272013] virtio_net: Unknown symbol __netif_schedule (err -22)<br>[    1.273501] virtio_net: disagrees about version of symbol alloc_etherdev_mqs<br>[    1.275321] virtio_net: Unknown symbol alloc_etherdev_mqs (err -22)<br>
[    1.276891] virtio_net: disagrees about version of symbol kfree_skb<br>[    1.278407] virtio_net: Unknown symbol kfree_skb (err -22)<br>[    1.279942] virtio_net: disagrees about version of symbol skb_partial_csum_set<br>
[    1.281661] virtio_net: Unknown symbol skb_partial_csum_set (err -22)<br>[    1.283358] virtio_net: disagrees about version of symbol napi_complete<br>[    1.285016] virtio_net: Unknown symbol napi_complete (err -22)<br>
[    1.286457] virtio_net: disagrees about version of symbol netdev_notify_peers<br>[    1.288347] virtio_net: Unknown symbol netdev_notify_peers (err -22)<br>[    1.289889] virtio_net: disagrees about version of symbol consume_skb<br>
[    1.291580] virtio_net: Unknown symbol consume_skb (err -22)<br>[    1.293018] virtio_net: disagrees about version of symbol netif_receive_skb<br>[    1.294684] virtio_net: Unknown symbol netif_receive_skb (err -22)<br>
insmod: init_module: virtio_net.ko: Invalid parameters<br>supermin: internal insmod virtio_scsi.ko<br>[    1.299384] virtio_scsi: disagrees about version of symbol dev_printk<br>[    1.301099] virtio_scsi: Unknown symbol dev_printk (err -22)<br>
insmod: init_module: virtio_scsi.ko: Invalid parameters<br>supermin: internal insmod virtio_pci.ko<br>[    1.305167] virtio_pci: module is already loaded<br>insmod: init_module: virtio_pci.ko: Invalid parameters<br>supermin: internal insmod crc-itu-t.ko<br>
supermin: internal insmod libcrc32c.ko<br>[    1.310248] libcrc32c: disagrees about version of symbol crypto_shash_update<br>[    1.312136] libcrc32c: Unknown symbol crypto_shash_update (err -22)<br>[    1.313686] libcrc32c: disagrees about version of symbol crypto_destroy_tfm<br>
[    1.315484] libcrc32c: Unknown symbol crypto_destroy_tfm (err -22)<br>[    1.317041] libcrc32c: disagrees about version of symbol crypto_alloc_shash<br>[    1.318822] libcrc32c: Unknown symbol crypto_alloc_shash (err -22)<br>
insmod: init_module: libcrc32c.ko: Invalid parameters<br>func: main line 171 <br>func: main line 171 <br>func: main line 171 <br>func: main line 171 <br>func: main line 171 <br>func: main line 171 <br>func: main line 171 <br>
func: main line 171 <br>func: main line 171 <br>func: main line 171 <br>func: main line 171 <br>func: main line 171 <br>func: main line 171 <br>supermin: waiting another 1024000000 ns for /sys/block/sdb/dev to appear<br>^C<br>
<br><br></div>Please help regarding this.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 12, 2014 at 5:33 PM, Richard W.M. Jones <span dir="ltr"><<a href="mailto:rjones@redhat.com" target="_blank">rjones@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Thu, Jun 12, 2014 at 05:08:37PM +0530, abhishek jain wrote:<br>
> Hi Rich<br>
><br>
> I have all the virtio modules available in the kernel but I'm getting the<br>
> same result .<br>
<br>
</div>It doesn't appear to be using any kernel modules.  I would have<br>
expected to see output such as this:<br>
<br>
  supermin: internal insmod virtio.ko<br>
<br>
It seems as if you might not be setting SUPERMIN_MODULES; or maybe you<br>
don't have any modules that match the internal list in supermin:<br>
<br>
  <a href="https://github.com/libguestfs/supermin/blob/master/src/ext2_initrd.ml#L33" target="_blank">https://github.com/libguestfs/supermin/blob/master/src/ext2_initrd.ml#L33</a><br>
<br>
Anyhow, virtio-scsi definitely isn't working, as you can see from the<br>
appliance kernel output.  You can force the direct backend to use<br>
virtio-blk instead by editing the function src/launch-direct.c:<br>
qemu_supports_virtio_scsi.<br>
<div class="im HOEnZb"><br>
Rich.<br>
<br>
--<br>
Richard Jones, Virtualization Group, Red Hat <a href="http://people.redhat.com/~rjones" target="_blank">http://people.redhat.com/~rjones</a><br>
Read my programming and virtualization blog: <a href="http://rwmj.wordpress.com" target="_blank">http://rwmj.wordpress.com</a><br>
</div><div class="HOEnZb"><div class="h5">virt-df lists disk usage of guests without needing to install any<br>
software inside the virtual machine.  Supports Linux and Windows.<br>
<a href="http://people.redhat.com/~rjones/virt-df/" target="_blank">http://people.redhat.com/~rjones/virt-df/</a><br>
</div></div></blockquote></div><br></div>