Install Intrepid Server PV DomU at Xen 3.3.0 Intrepid Server Dom0 (kernel 2.6.26-1-xen-amd64)

Attempting to reproduce How-To: Run Xen in Ubuntu Intrepid without compiling a Kernel by yourself from blog Chris’ World ([1]), i had to disable any xen bridge definitions inside /etc/xen/xend-config.sxp and manually add the bridge to /etc/network/interfaces configuration file.
Otherwise, i wouldn’t be able get xen-bridging network running with debian 2.6.26-1-xen-amd64 kernel under Xen 3.3 Interpid Hypervisor installed on the system via Synaptic Manager.
Per [1] downloaded from the Net:-

linux-modules-2.6.26-1-xen-amd64_2.6.26-12_amd64.deb
inux-image-2.6.26-1-xen-amd64_2.6.26-12_amd64.deb

Installed packages

root@IntrepidSRV:/DebianXenKernel# dpkg -i linux-modules-2.6.26-1-xen-amd64_2.6.26-12_amd64.deb
Selecting previously deselected package linux-modules-2.6.26-1-xen-amd64.
(Reading database ... 116406 files and directories currently installed.)
Unpacking linux-modules-2.6.26-1-xen-amd64 (from linux-modules-2.6.26-1-xen-amd64_2.6.26-12_amd64.deb) ...
Setting up linux-modules-2.6.26-1-xen-amd64 (2.6.26-12) ...
root@IntrepidSRV:/DebianXenKernel# dpkg -i linux-image-2.6.26-1-xen-amd64_2.6.26-12_amd64.deb
(Reading database ... 118718 files and directories currently installed.)
Preparing to replace linux-image-2.6.26-1-xen-amd64 2.6.26-12 (using linux-image-2.6.26-1-xen-amd64_2.6.26-12_amd64.deb) ...
Unpacking replacement linux-image-2.6.26-1-xen-amd64 ...
Setting up linux-image-2.6.26-1-xen-amd64 (2.6.26-12) ...
update-initramfs: Generating /boot/initrd.img-2.6.26-1-xen-amd64
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found Xen hypervisor 3.3, kernel: /boot/vmlinuz-2.6.26-1-xen-amd64
Found kernel: /boot/vmlinuz-2.6.27-9-server
Found kernel: /boot/vmlinuz-2.6.27-7-server
Found kernel: /boot/memtest86+.bin
Replacing config file /var/run/grub/menu.lst with new version
Updating /boot/grub/menu.lst ... done

Commented out all xen-bridge declarations in /etc/xen/xend-config.sxp
Manually edited /etc/network/interfaces as follows :-

root@IntrepidSRV:~# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth1
iface eth1 inet dhcp
auto br0
iface br0 inet static
address 192.168.1.45
network 192.168.0.0
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1
bridge_ports eth1
bridge_fd 9
bridge_hello 2
bridge_maxage 12
bridge_stp off

Rebooted the system and ran :-

root@IntrepidSRV:~# xm info

host : IntrepidSRV
release : 2.6.26-1-xen-amd64
version : #1 SMP Mon Dec 15 20:07:26 UTC 2008
machine : x86_64
nr_cpus : 2
nr_nodes : 1
cores_per_socket : 2
threads_per_core : 1
cpu_mhz : 3005
hw_caps : bfebfbff:20100800:00000000:00000140:0008e3fd:00000000:00000001:00000000
virt_caps : hvm
total_memory : 8191
free_memory : 16
node_to_cpu : node0:0-1
node_to_memory : node0:16
xen_major : 3
xen_minor : 3
xen_extra : .0
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
cc_compiler : gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu9)
cc_compile_by : buildd
cc_compile_domain : buildd
cc_compile_date : Mon Oct 6 18:11:58 UTC 2008
xend_config_format : 4

root@IntrepidSRV:~# brctl show

bridge name bridge id STP enabled interfaces
br0 8000.001e8c25cca5 no eth1
pan0 8000.000000000000 no

root@IntrepidSRV:~# ifconfig

br0 Link encap:Ethernet HWaddr 00:1e:8c:25:cc:a5
inet addr:192.168.1.45 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::21e:8cff:fe25:cca5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10387 errors:0 dropped:0 overruns:0 frame:0
TX packets:9072 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:23709253 (23.7 MB) TX bytes:937257 (937.2 KB)
eth0 Link encap:Ethernet HWaddr 00:1e:8c:25:d9:23
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:17
eth1 Link encap:Ethernet HWaddr 00:1e:8c:25:cc:a5
inet6 addr: fe80::21e:8cff:fe25:cca5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:55382 errors:0 dropped:0 overruns:0 frame:0
TX packets:39418 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:80800515 (80.8 MB) TX bytes:2916410 (2.9 MB)
Interrupt:16 Base address:0x6c00
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:22797 errors:0 dropped:0 overruns:0 frame:0
TX packets:22797 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:117429741 (117.4 MB) TX bytes:117429741 (117.4 MB)
wlan0 Link encap:Ethernet HWaddr 00:15:af:51:c2:c0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
wmaster0 Link encap:UNSPEC HWaddr 00-15-AF-51-C2-C0-00-00-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

At this point i was able successfully reproduce [2] in new environment.






References
1.How-To: Run Xen in Ubuntu Intrepid without compiling a Kernel by yourself
2.Pygrub&Loading Ubuntu Intrepid Server PV DomU via serial console at Xen 3.3 CentOS 5.2 Dom0

About these ads

8 Responses to Install Intrepid Server PV DomU at Xen 3.3.0 Intrepid Server Dom0 (kernel 2.6.26-1-xen-amd64)

  1. Chris K. says:

    I feel like I should reply :)
    I have a rather complex network setup on the DomU (three bridges):
    /e/x/xen-config.spx
    (network-script network-dummy)
    (vif-script vif-bridge)

    /e/n/interfaces
    # lan bridge
    auto lanbr0
    iface lanbr0 inet static
    address 10.1.16.3
    netmask 255.255.255.0
    gateway 10.1.16.1
    bridge_ports eth0

    # xen bridge
    auto xenbr0
    iface xenbr0 inet manual
    bridge_ports eth1

    # guest bridge
    …cut…

    I guess this is pretty similar what you have now?

  2. Name says:

    Why Ubuntu?

    Fedora
    Mandriva

  3. dbaxps says:

    That’s right.

  4. [...] Install Intrepid Server PV DomU at Xen 3.3.0 Intrepid Server Dom0 … [...]

  5. bill says:

    “Does Mandriva have a pv_ops in DomU ?”

    sure

  6. Good evening to you. Thanks for the read! My wife have been searching for this type of post for a while and I know that your view on the issue at hand is spot on. I are going to be sure to pass on this blog to my nephew. Can you tell me how to receive your new blog posts? Keep on writing!

  7. dbaxps says:

    Sorry, i don’t know.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: