[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-users] Xen xl toolstack on Debian 7.3.0; can't ssh to VM
On Mon, Jan 20, 2014 at 01:56:04PM +0000, Dale Mellor wrote: > I've got DOM0 and DOMU running (both Debian 7.3.0 AMD64), and can use > both individually and can `ssh localhost` on both with the expected > results. I am setting up the networking by hand to understand how it > all goes. The problem comes down to, no matter what I try, if I `ssh > w.x.y.z` on DOM0 in the hope of having a shell on DOMU, I always end up > with a shell on DOM0; the vif-bridge does not seem to carry the traffic > across and in to the DOMU. > > Could someone describe the simplest setup which would achieve this, > using just the `xl`, `ip`, `brctl` and `iptables` commands please? > > > To be more concrete and provide maybe a starting point, here's a setup > I'm currently trying: > > ===/etc/xen/s1-0-2============================= > > name="s1-0-2" > memory=2048 > kernel='/root/s1-0-2--vmlinuz' > ramdisk='/root/s1-0-2--initrd' > extra='root=/dev/xvda1 -- console=hvc0' > e820_host=1 > disk = [ 'phy:/dev/roots/s1-0-2,xvda,w' ] > vif=[ 'mac=02:12:12:12:12:02,bridge=s1-0-2' ] > vfb = [ 'type=vnc,vncdisplay=2' ] > vnc=1 > stdvga=1 > > =============================================== > > > And then on DOM0 (eth1 is a physical interface without a wire plugged > into it): > > echo 1 > /proc/sys/net/ipv4/ip_forward > iptables -t nat -I POSTROUTING -j MASQUERADE > brctl addbr s1-0-2 > brctl addif s1-0-2 eth1 > xl create /etc/xen/s1-0-2 > ip add add 10.133.33.3/24 dev eth1 > Why do you need this? What is this physical interface for? Normally I just set an IP address for the bridge in the same subnet of DomU and it just works. Say, I have DomU's IP address be 192.168.1.100/24 and the bridge (in your example s1-0-2) be 192.168.1.1/24 then you should be able to ssh from Dom0 to DomU without trouble. (routing table should also be automatically set up in that case but you can check by hand just to be sure) Wei. > working on the DOMU console: > > ip add add 10.133.33.3/24 dev eth0 > ip route add default via 10.133.33.3 dev eth0 > > and then when back on DOM0 I do > > ssh 10.133.33.3 > > I get a shell prompt on DOM0, whereas I would hope for a shell prompt on > DOMU. > > _______________________________________________ > Xen-users mailing list > Xen-users@xxxxxxxxxxxxx > http://lists.xen.org/xen-users _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxx http://lists.xen.org/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |