Port-xen archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

RE: How to set up a NAT networking for xen 4.2.5 domu without xend-config.sxp



It sounds discouraging,  but  vif = [ 'type=ioemu,bridge=bridge0' ]   is working,  I can get the tap0 interface, I think vif-bridge is called.

But when I try to set up a NAT networking, I remove the bridge0 interface, I set that vif-ip will be called, as a result I get the xvif interface which get the expected ip addr,  everything seems fine but ...   :(    

Any more suggestions and tips ?  Thank you.


Best regards 

John Fu


-----Original Message-----
From: Manuel Bouyer [mailto:bouyer%antioche.eu.org@localhost] 
Sent: Thursday, November 20, 2014 4:17 PM
To: Fu, Zeyi (付泽义)
Cc: 'port-xen%netbsd.org@localhost'
Subject: Re: How to set up a NAT networking for xen 4.2.5 domu without xend-config.sxp

On Thu, Nov 20, 2014 at 05:07:55AM +0000, Fu, Zeyi (???) wrote:
> 
> Ah, there it is, thanks. But it doesn't work for me.
> 
> First of all, I set up a hvm domu with the bridge mode, it works fine. Here it is:
> 
> --------------------------------------------------------------------------------------------------
> #kernel = '/usr/pkg/lib/xen/boot/hvmloader'
> builder = 'hvm'
> memory = '4096'
> vcpus = 2
> #device_model = '/usr/pkg/libexec/qemu-dm'

It's a HVM domU. So I guess the vif script is not called for the tap
interface, instead the qemu-ifup script is called. AFAIK there's no
way to change this script from the config file, you may need to hack the
script itself.

For a HVM domU, unless you have PV drivers for the network interface,
the interface used in the dom0 is a tap interface, not the xvif one.

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index