#1  
Old 17th October 2006, 19:24
ptomblin ptomblin is offline
Junior Member
 
Join Date: Oct 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.
Reply With Quote
Sponsored Links
  #2  
Old 18th October 2006, 16:53
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
Default

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.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 18th October 2006, 18:37
ptomblin ptomblin is offline
Junior Member
 
Join Date: Oct 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
Reply With Quote
  #4  
Old 19th October 2006, 15:22
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
Default

The tutorial was written for Xen 3.0.1. If you use Xen 3.0.1, then you won't have problems.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 4th November 2006, 04:50
cifroes cifroes is offline
Junior Member
 
Join Date: Nov 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
Reply With Quote
  #6  
Old 5th November 2006, 16:32
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
 
Default

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
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
php Apps email not going through palkat General 8 21st September 2011 05:35
Statistic not working mzo Installation/Configuration 49 20th April 2011 12:19
Perfect Xen 3.0 setup for Debian gurneyzap HOWTO-Related Questions 4 26th March 2006 11:30
Email - Ueb-Miau mazhar Installation/Configuration 5 21st December 2005 10:01
The Perfect Setup Suse 9.3 - Postfix problems new_bee05 HOWTO-Related Questions 20 25th November 2005 02:30


All times are GMT +2. The time now is 00:25.


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