[ovs-dev] [PATCH] OVS: add some tips for kvm guest env

Zhi Yong Wu zwu.kernel at gmail.com
Thu May 30 21:59:32 UTC 2013


I tried to install OVS on my workstation, before starting kvm guest,
its route table is below:
default via 9.115.122.1 dev em1
9.115.122.0/24 dev em1  scope link

then i started kvm guest:
qemu-system-x86_64 -drive
file=/home/zwu/misc/image/debian_squeeze_i386_desktop.qcow2,if=virtio
-kernel arch/x86/boot/bzImage -append root=/dev/vda1 rw console=ttyS0
-drive file=/btrfs.img,if=virtio -drive file=/btrfs1.img,if=virtio
-drive file=/btrfs2.img,if=virtio -drive file=/btrfs3.img,if=virtio
-nographic -S -s -m 10240M

After kvm guest is started up, i tried to ping the host in kvm guest,
but it failed.
After i changed its route on the host as below:
default via 9.115.122.1 dev br0
9.115.122.0/24 dev br0  scope link
I again tried the host in kvm guest, and it can work.

Is it clear to you?


On Fri, May 31, 2013 at 5:47 AM, Ben Pfaff <blp at nicira.com> wrote:
> I don't know.  I think that you would have to describe your scenario,
> before we can say what (if anything) you are doing wrong.
>
> On Fri, May 31, 2013 at 05:45:06AM +0800, Zhi Yong Wu wrote:
>> If i don't add such a route, it seem to not work, do i miss other something?
>>
>> On Fri, May 31, 2013 at 2:23 AM, Ben Pfaff <blp at nicira.com> wrote:
>> > On Thu, May 30, 2013 at 06:40:26PM +0800, zwu.kernel at gmail.com wrote:
>> >> From: Zhi Yong Wu <wuzhy at linux.vnet.ibm.com>
>> >>
>> >>   Add some tips for kvm guest; You know, it is a bit difficult
>> >> to play for one starter if no such tips exist.
>> >>
>> >> Signed-off-by: Zhi Yong Wu <wuzhy at linux.vnet.ibm.com>
>> >
>> > It isn't normally necessary to add such a route.
>>
>>
>>
>> --
>> Regards,
>>
>> Zhi Yong Wu



-- 
Regards,

Zhi Yong Wu



More information about the dev mailing list