HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   No network on virtual server (http://www.howtoforge.com/forums/showthread.php?t=7517)

ptomblin 17th October 2006 19:24

No network on virtual server
 
I'm trying to run through the "Perfect Xen 3.0 Setup for Debian". I had to make some changes because Xen now only installs 1 kernel, not separate ones for -xen and -xenU. But now that I've got a virtual machine running in step 4.2, it doesn't have any network.

Here is my /etc/xen/vm01-config.sxp
Code:

name="vm01"
kernel="/boot/vmlinuz-2.6-xen"
root="/dev/hda1"
memory=128
disk=['file:/home/vmserver/vm_base.img,hda1,w','file:/home/vmserver/vm_base-swap.img,hda2,w']

# network
vif=[ '' ]
dhcp="off"
ip="192.168.1.32"
netmask="255.255.255.0"
gateway="192.168.1.254"
hostname="xen0.xcski.com"

#extra="3"

I'm wondering if it was correct in step 4.1 where it says to only enable the loopback device in /etc/network/interfaces

After looging into it, I only see the loopback device when I do an ifconfig.

falko 18th October 2006 16:53

I've just played around with Xen 3.0.3, and in that version you don't need

Code:

dhcp="off"
ip="192.168.1.32"
netmask="255.255.255.0"
gateway="192.168.1.254"
hostname="xen0.xcski.com"

in /etc/xen/vm01-config.sxp, but you must have

Code:

auto lo
iface lo inet loopback
        address 127.0.0.1
        netmask 255.0.0.0

# The primary network interface
auto eth0
iface eth0 inet static
        address 192.168.1.32
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.254

in vm01's /etc/network/interfaces and xen0.xcski.com in vm01's /etc/hostname.

ptomblin 18th October 2006 18:37

Quote:

Originally Posted by falko
but you must have

Code:

auto lo
iface lo inet loopback
        address 127.0.0.1
        netmask 255.0.0.0

# The primary network interface
auto eth0
iface eth0 inet static
        address 192.168.1.32
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.254

in vm01's /etc/network/interfaces and xen0.xcski.com in vm01's /etc/hostname.

Yes, that's what I've ended up doing, and it works, but it goes against the intention of the howto. The howto was showing how you could have one basic set-up, and then copy it an instantiate it for several different virtual systems. If you have to edit the copy for each system, that's not as smooth as only having to edit the configuration file for each one.

falko 19th October 2006 15:22

The tutorial was written for Xen 3.0.1. If you use Xen 3.0.1, then you won't have problems.

cifroes 4th November 2006 04:50

Hi,

I installed Xen 3.0.2 and configured the ips in each VM. I can ping from the VMs to the outside and from the outside to the VMs. I just can't ping from vm01 to vm02, any way to do it?

How should I setup my networking for that configuration?

Thanks

falko 5th November 2006 16:32

Are your virtual machines on the same subnet?
Did you have a look at this tutorial? http://www.howtoforge.com/debian_sarge_xen_3.0.3


All times are GMT +2. The time now is 11:08.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.