From: Amit Shah <amit.shah@redhat.com>
To: Liang YANG <brinewsor@gmail.com>
Cc: qemu list <qemu-devel@nongnu.org>
Subject: [Qemu-devel] Re: hi, may I ask some help on the paravirtualization of KVM?
Date: Tue, 23 Mar 2010 19:29:47 +0530 [thread overview]
Message-ID: <20100323135947.GD3080@amit-x200.redhat.com> (raw)
In-Reply-To: <3a240e801003230646o65a87014xff6d0832fb8bccb@mail.gmail.com>
Hello,
[any reason you dropped the CC list? CC'ing qemu-devel, where this is
relevant.]
On (Tue) Mar 23 2010 [21:46:28], Liang YANG wrote:
> I check the 'lspci -v' result, only find RTL-8139 realtek ethernet. I
> think the option model=virtio does't make effect.
Then something is wrong. I get a virtio ethernet device using
model=virtio.
Which qemu version are you using?
> Simultaneously, I have the a look at the code. The function pc_init1()
> seem not change the network model as the option assigned.
>
> Do you ever meet this case?
I've not seen this.
> On Tue, Mar 23, 2010 at 9:08 PM, Amit Shah <amit.shah@redhat.com> wrote:
> > On (Sun) Mar 21 2010 [20:18:53], Liang YANG wrote:
> >> I want to set up the virtio-net for the GuestOS on KVM. Following is my steps:
> >>
> >> 1.Compile the kvm-88 and make, make install.
> >> 2.Compile the GuestOS(redhat) with kernel version 2.6.27.45(with
> >> virtio support). The required option are all selected.
> >> o CONFIG_VIRTIO_PCI=y (Virtualization -> PCI driver for
> >> virtio devices)
> >> o CONFIG_VIRTIO_BALLOON=y (Virtualization -> Virtio balloon driver)
> >> o CONFIG_VIRTIO_BLK=y (Device Drivers -> Block -> Virtio block driver)
> >> o CONFIG_VIRTIO_NET=y (Device Drivers -> Network device
> >> support -> Virtio network driver)
> >> o CONFIG_VIRTIO=y (automatically selected)
> >> o CONFIG_VIRTIO_RING=y (automatically selected)
> >> 3.Then start up the GuestOS by such command:
> >> x86_64-softmmu/qemu-system-x86_64 -m 1024 /root/redhat.img
> >> -net nic,model=virtio -net tap,script=/etc/kvm/qemu-ifup
> >> 4.Result is this:
> >> * The Guest OS start up.
> >> * But the network not, no eth-X device found.
> >> * lsmod | grep virtio get none module about virtio
> >
> > Since you selected the virtio options as 'y', they are directly compiled
> > into the kernel and hence you won't see the modules.
> >
> > Check your 'lspci -v' output. You should see the virtio device there.
> > You can also try some usual things like 'ifconfig eth0 up', etc., to get
> > the interface.
> >
> > Amit
> > --
> > http://log.amitshah.net/
> >
>
>
>
> --
> BestRegards.
> YangLiang
> _____________________________________________
> Department of Computer Science .
> School of Electronics Engineering & Computer Science .
> _____________________________________________
Amit
--
http://log.amitshah.net/
next prev parent reply other threads:[~2010-03-23 14:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-21 12:18 hi, may I ask some help on the paravirtualization of KVM? Liang YANG
2010-03-23 11:16 ` Fwd: " Liang YANG
2010-03-23 13:08 ` Amit Shah
[not found] ` <3a240e801003230646o65a87014xff6d0832fb8bccb@mail.gmail.com>
2010-03-23 13:59 ` Amit Shah [this message]
2010-03-23 14:09 ` [Qemu-devel] " Liang YANG
2010-03-24 3:35 ` Liang YANG
2010-03-24 4:13 ` Amit Shah
2010-03-24 22:48 ` Charles Duffy
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=20100323135947.GD3080@amit-x200.redhat.com \
--to=amit.shah@redhat.com \
--cc=brinewsor@gmail.com \
--cc=qemu-devel@nongnu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.