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

Re: [Xen-users] domu has no network when installing (but Dom0 has) -- sisu



First, just in case, make sure you have the bridge-utils package installed (apt-get install bridge-utils).

As for the interfaces, when you bridge a network to a Xen virtual machine, you use a bridge (from bridge-utils).  Your interfaces file should have eth0 configuration inside of it.

Based on the fact that your interfaces file did not have a record for eth0, I am going to assume that you are using the Ubuntu GUI utility "Network Manager".  Interfaces will override the Network Manager, just be forewarned that the Ubuntu GUI may tell you that you have no iInternet connection when in fact you do.


If you are using DHCP on Ubuntu, your interfaces file can work as follows:


auto lo
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet manual

auto xenbr0
iface xenbr0 inet dhcp
bridge_ports eth0


When you add "auto xenbr0" you are effectively "creating" a new virtual network bridge called "xenbr0".  So xenbr0 is a virtual bridge, eth0 is a physical device.

You can flip-flop which is dhcp and which is manual, it only determines which device gives Ubuntu an IP address.


I believe the lack of connection with the previous configurations is because no physical device (eth0) was established in the interfaces file.

Give it a try and let me know.

~Casey


On Mon, May 14, 2012 at 1:53 AM, Sisu Xi <xisisu@xxxxxxxxx> wrote:
Hi, Casey:

Thanks for your reply. Could you be a little more specific?

I checked my /etc/networking/interfaces, it is:
auto lo
iface lo inet loopback.

I changed it to what you suggested:
auto xenbr0
iface xenbr0 inet manual
bridge_ports eth0
This time Dom0 has no network.

I also tried:
auto xenbr0
iface xenbr0 inet dhcp
bridge_ports eth0
Dom0 also has no network.

Thanks!

On Mon, May 14, 2012 at 12:36 AM, Casey DeLorme <cdelorme@xxxxxxxxx> wrote:
Hello,

Guessing eth0 isn't a bridge, have you tried creating a bridge and using that instead?

bridge-utils package installed and add to /etc/networking/interfaces:

auto xenbr0
iface xenbr0 inet manual
bridge_ports eth0

Then replace eth0 in the centos HVM configuration?


On Mon, May 14, 2012 at 1:25 AM, Sisu Xi <xisisu@xxxxxxxxx> wrote:
Hi, all:

I am using Ubuntu 12.04, 64bit. compiled Linux kernel from source, kernel is 3.3.6. Compiled Xen from source, version is 4.1.2.

so far so good.
Dom0 can boot without problem. Dom0 has network.

However, when I downloaded the vmlinuz and initrd.img for centos 6.2 and try to install it,
I first picked network install, then it asked me to pick network, I choose DHCP for both iipv4 and ipv6.
After that, it stops at
"Waiting for NetworkManager to configure eth0."
"Retry".

From the notification area, I can see that a vif2.0 has been created.

I disabled the firewall, and ubuntu seems don't have selinux problem. could someone help me with this?

Thanks in advance.

"xl info" gives:
host                   : xisisu-desktop
release                : 3.3.6
version                : #1 SMP Sun May 13 18:24:00 CDT 2012
machine                : x86_64
nr_cpus                : 12
nr_nodes               : 1
cores_per_socket       : 6
threads_per_core       : 2
cpu_mhz                : 3378
hw_caps                : bfebfbff:2c000800:00000000:00003f40:029ae3bf:00000000:00000001:00000000
virt_caps              : hvm hvm_directio
total_memory           : 12277
free_memory            : 1094
free_cpus              : 0
xen_major              : 4
xen_minor              : 1
xen_extra              : .2
xen_caps               : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64
xen_scheduler          : credit
xen_pagesize           : 4096
platform_params        : virt_start=0xffff800000000000
xen_changeset          : unavailable
xen_commandline        :
cc_compiler            : gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
cc_compile_by          : xisisu
cc_compile_domain      :
cc_compile_date        : Sun May 13 17:46:53 CDT 2012
xend_config_format     : 4


Here is the install configure file:

"name="centosinstall"
vcpus=2
memory=2048
disk=['file:/home/xisisu/Desktop/VM/vm1.img,xvda,w']
vif=['bridge=eth0']
kernel="/home/xisisu/Desktop/vmlinuz"
ramdisk="/home/xisisu/Desktop/initrd.img"
>>



 

_______________________________________________
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

 


Rackspace

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