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

Re: [Xen-users] How to use DomU as network backend?



Hi Peter,

thank you for your reply.
It is almost the configuration i am looking for.

Peter Fokkinga wrote:
> Quoting Matthias Wolf <matze.wolf@xxxxxxx>:
> 
>> i really stuck. I am trying to get a DomU working as network backend.
>> All my systems are based on Gentoo with Xen 3.0.2 and Kernel 2.6.16.
>>
> 
> I'm not sure I completely understand your situation, but I have
> a domU that uses two physical PCI network cards and is connected
> to a bridge which is defined in dom0. Maybe the configuration
> below gives you some inspiration ;-)
> 
> Cheers, Peter
> 
> /etc/xen/vm.ein
> ---------------
> vmid = 3
> name = "ein"
> 
> kernel = "/vserver/kernels/vmlinuz-2.6.16-xenU"
> root   = "/dev/hda1"
> memory = 256
> extra  = "quiet 2"
> 
> pci = ['01:00.0', '02:00.0']
> 
> disk = ['phy:/dev/vg1/einU,hda1,w']
> 
> vif      = ['ip=10.0.2.1,bridge=xenbr0']
> ip       = "10.0.2.1"
> netmask  = "255.255.0.0"
> gateway  = "10.0.1.1"
> hostname = "ein.lan"

My configuration looks like this:

/etc/xen/firewall.cfg
---------------
name = "firewall"

kernel = "/boot/vmlinuz-2.6.16-xenU-firewall"
root = "/dev/sda1"
memory = 256
extra = "gentoo=nodevfs"

pci = ['01:00.0', '02:00.0']

disk = ['file:/mnt/xenimages/firewall.xen,sda1,w']

#make network backend
netif = 1
vif = ['']


Now i have another DomU which i want to connect to the firewall.

/etc/xen/dgs.cfg
---------------
name = "dgs"

kernel = "/boot/vmlinuz-2.6.16-xenU"
root = "/dev/sda1"
memory = 256
extra = "gentoo=nodevfs"

disk = ['file:/mnt/xenimages/dgs.xen,sda1,w']

#use firewall as network backend
vif = ['backend=firewall']      


And this is not working, i can't connect the network to the firewall.

Regards
Matze


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.