Linux virtualization list
 help / color / mirror / Atom feed
From: Thomas Huth <huth@tuxfamily.org>
To: virtualization@lists.linux-foundation.org
Cc: Ganis Zulfa Santoso <ganis.zulfa@gmail.com>
Subject: Re: I can read/write in virtio BLK Device, but I can't run a hello world program in it
Date: Tue, 7 Jul 2015 08:55:04 +0200	[thread overview]
Message-ID: <20150707085504.11d15a8b@thh440s> (raw)
In-Reply-To: <C03726BC-3011-4295-9ED6-EF31E98EE7BD@gmail.com>

On Tue, 7 Jul 2015 10:52:01 +0900
Ganis Zulfa Santoso <ganis.zulfa@gmail.com> wrote:

> Hi Linux Virtualization Mailing List Members,
> 
> I am trying to develop a driver for virtio blk device in guest.

Why don't you simply use the driver that is already available in the
kernel?

> I can safely mount the virtual blk device with: mount /dev/vda /mnt/
> in /mnt/ I can read & write the device. But when I run a simple hello world program in /mnt/root/, this error happens:

Have you already verified that you can successfully read the _right_
data from your block device? I.e. something like

mount /dev/xxx /mnt
cp helloworld_static /mnt/root/helloworld_static
umount /mnt  # just to make sure that it is not cached
mount /dev/xxx /mnt
md5sum helloworld_static
md5sum /mnt/root/helloworld_static

... and then compare the two md5sums whether they are the same?

 Thomas

  reply	other threads:[~2015-07-07  6:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-07  1:52 I can read/write in virtio BLK Device, but I can't run a hello world program in it Ganis Zulfa Santoso
2015-07-07  6:55 ` Thomas Huth [this message]
2015-07-07  7:33   ` Ganis Zulfa Santoso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150707085504.11d15a8b@thh440s \
    --to=huth@tuxfamily.org \
    --cc=ganis.zulfa@gmail.com \
    --cc=virtualization@lists.linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox