[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



Hi,Casey:

Thanks for your reply. I do have bridge-utils installed.

I am using the suggested configuration, and still, Dom0 has network, while i stuck in the waiting screen for DomU.

Here is a screenshot showing network manager, domu screen, and the interface file.

thanks!

Sisu

On Mon, May 14, 2012 at 1:04 AM, Casey DeLorme <cdelorme@xxxxxxxxx> wrote:
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






Attachment: Screenshot from 2012-05-14 01:12:26.png
Description: PNG image

_______________________________________________
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®.