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