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

[Xen-users] Enable support for HVM and domU's Ethernet interface


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: GNUbie <gnubie@xxxxxxxxx>
  • Date: Mon, 17 Sep 2007 17:05:54 +0800
  • Delivery-date: Mon, 17 Sep 2007 02:13:59 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=kF4h2GIAQwbXW87CxVHl8EOmx1H1UKqRk6scoLRe4ZE7yIUAqadImMVFLivTeyANqSKk2J5pJzaeuEUTwgsXBe5aU0gzqVpGdrvXFs/VhhiK1IvRKvN9wkUMZWY8+JktjtEwRBzBqXjtsp3kQVHD21+cZwD3fNDAfn6cORSlJR8=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Hello all,

I created my domU's Debian GNU/Linux Etch AMD64 using the debootstrap tool and I found out that it didn't installed a Linux kernel and modules.  What I did was I copied the /lib/modules/2.6.18-5-xen-amd64 from my dom0 to /lib/modules/ of my domU.  Was it right to do it that way?

Anyway, I have three (3) questions actually and here they are:

[1] How will I enable HVM support and make use of them on top of Xen?

[2] How will I enforce dom0's vif to use a single private IP address so that my domUs will use it as their default gateway?

[3] What Ethernet module shall I load on the domU side?  I tried bringing up the eth0 interface from the domU side but it doesn't work.

Below are the things I did so far and some information about my current setup:

- - - < s n i p > - - -

# uname -r
2.6.18-5-xen-amd64

# dpkg -l | grep xen
ii  linux-image-2.6.18-5-xen-amd64      2.6.18.dfsg.1-13etch2           Linux 2.6.18 image on AMD64
ii  linux-modules-2.6.18-5-xen-amd64    2.6.18.dfsg.1-13etch2           Linux 2.6.18 modules on AMD64
ii  xen-hypervisor-3.0.3-1-amd64        3.0.3-0-2                       The Xen Hypervisor on AMD64
ii  xen-ioemu-3.0.3-1                   3.0.3-0-2                       XEN administrative tools
ii  xen-linux-system-2.6.18-5-xen-amd64 2.6.18.dfsg.1-13etch2           XEN system with Linux 2.6.18 image on AMD64
ii  xen-utils-3.0.3-1                   3.0.3-0-2                       XEN administrative tools
ii  xen-utils-common                    3.0.3-0-2                       XEN administrative tools - common files

# cat /sys/hypervisor/properties/capabilities
xen-3.0-x86_64 hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64

# cat /etc/xen/xend- config.sxp
(network-script network-nat)
(vif-script     vif-nat)
(dom0-min-mem 196)
(dom0-cpus 0)

# cat /etc/xen/auto/domU1.conf
kernel = "/boot/vmlinuz-2.6.18-5-xen-amd64"
ramdisk = "/boot/initrd.img- 2.6.18-5-xen-amd64"
memory = 512
name = "domain.com"
vif = [ 'ip= 172.16.1.11' ]
disk = [ 'phy:/dev/vg0/domU1_root,sda1,w', 'phy:/dev/vg0/domU1_swap,sda2,w', 'phy:/dev/vg0/domU1_tmp,sda3,w', 'phy:/dev/vg0/domU1_usr,sda5,w', 'phy:/dev/vg0/domU1_var,sda6,w' ]
hostname = "host.domain.com"
root = "/dev/sda1 rw"
ip = " 172.16.1.11"
gateway = " 172.16.1.1"
netmask = "255.255.255.0"
hostname = " host.domain.com"
dhcp = "off"

# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:19:B9:EA:7B:D4
          inet addr:192.168.2.10  Bcast: 192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::219:b9ff:feea:7bd4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:975 errors:0 dropped:0 overruns:0 frame:0
          TX packets:512 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:91268 (89.1 KiB)  TX bytes:69902 (68.2 KiB)
          Interrupt:16 Memory:f8000000-f8011100

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:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

vif2.0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          inet addr:172.16.1.138  Bcast: 0.0.0.0  Mask:255.255.255.255
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:468 (468.0 b)

# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
172.16.1.11      0.0.0.0         255.255.255.255 UH    0      0        0 vif2.0
192.168.2.0     0.0.0.0          255.255.255.0   U     0      0        0 eth0
0.0.0.0         192.168.2.1     0.0.0.0          UG    0      0        0 eth0

# xm info
host                   : host.domain.com
release                : 2.6.18-5-xen-amd64
version                : #1 SMP Thu Aug 30 02:48:14 UTC 2007
machine                : x86_64
nr_cpus                : 8
nr_nodes               : 1
sockets_per_node       : 2
cores_per_socket       : 4
threads_per_core       : 1
cpu_mhz                : 1861
hw_caps                : bfebfbff:20100800:00000000:00000140:0004e3bd:00000000:00000001
total_memory           : 4095
free_memory            : 3254
xen_major              : 3
xen_minor              : 0
xen_extra              : .3-1
xen_caps               : xen-3.0-x86_64 hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64
xen_pagesize           : 4096
platform_params        : virt_start=0xffff800000000000
xen_changeset          : Tue Oct 17 22:09:52 2006 +0100
cc_compiler            : gcc version 4.1.2 20061028 (prerelease) (Debian 4.1.1-19)
cc_compile_by          : ultrotter
cc_compile_domain      : debian.org
cc_compile_date        : Fri Nov  3 00:21:27 CET 2006
xend_config_format     : 2

# xm list
Name                                      ID Mem(MiB) VCPUs State   Time(s)
Domain-0                                   0      256     8 r-----     28.7
domain.com                                 2      512     1 -b----      4.1

# xm console domain.com
Bootdata ok (command line is  ip= 172.16.1.11:1.2.3.4:172.16.1.1:255.255.255.0:host.domain.com:eth0:off root=/dev/sda1 rw)
Linux version 2.6.18-5-xen-amd64 (Debian 2.6.18.dfsg.1-13etch2) (dannf@xxxxxxxxx g) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #1 SMP Thu Aug 30  02:48:14 UTC 2007
BIOS-provided physical RAM map:
 Xen: 0000000000000000 - 0000000020800000 (usable)
No mptable found.
Built 1 zonelists.  Total pages: 133120
Kernel command line:  ip= 172.16.1.11:1 .2.3.4:172.16.1.1:255.255.255.0:host.domain.com:eth0:off root=/dev/sda1 rw
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 32768 bytes)
Xen reported: 1861.913 MHz processor.
Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
Software IO TLB disabled
Memory: 493568k/532480k available (1948k kernel code, 30164k reserved, 879k data , 148k init)
Calibrating delay using timer specific routine.. 4657.25 BogoMIPS (lpj=9314518)
Security Framework v1.0.0 initialized
SELinux:  Disabled at boot.
Capability LSM initialized
Mount-cache hash table entries: 256
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 4096K
CPU: Physical Processor ID: 1
CPU: Processor Core ID: 3
(SMP-)alternatives turned off
Brought up 1 CPUs
migration_cost=0
checking if image is initramfs... it is
Grant table initialized
NET: Registered protocol family 16
Brought up 1 CPUs
PCI: setting up Xen PCI frontend stub
ACPI: Interpreter disabled.
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI: disabled
xen_mem: Initialising balloon driver.
usbcore: registered new driver usbfs
usbcore: registered new driver hub
PCI: System does not support PCI
PCI: System does not support PCI
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 6, 262144 bytes)
TCP established hash table entries: 131072 (order: 9, 2097152 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
audit: initializing netlink socket (disabled)
audit(1190012037.163:1): initialized
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
rtc: IRQ 8 is not free.
Linux agpgart interface v0.101 (c) Dave Jones
RAMDISK driver initialized: 16 RAM disks of 65536K size 1024 blocksize
Xen virtual console successfully installed as tty1
Event-channel device installed.
netfront: Initialising virtual ethernet driver.
PNP: No PS/2 controller found. Probing ports directly.
i8042.c: No controller found.
mice: PS/2 mouse device common for all mice
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 8
NET: Registered protocol family 20
Registering block device major 8
netfront: device eth0 has flipping receive path.
Loading, please wait...
Begin: Loading essential drivers... ...
Done.
Begin: Running /scripts/init-premount ...
FATAL: Error inserting fan (/lib/modules/2.6.18-5-xen-amd64/kernel/drivers/acpi/ fan.ko): No such device
processor: Unknown symbol pm_idle
WARNING: Error inserting processor (/lib/modules/2.6.18-5-xen-amd64/kernel/drive rs/acpi/processor.ko): Unknown symbol in module, or unknown parameter (see dmesg )
thermal: Unknown symbol acpi_processor_set_thermal_limit
FATAL: Error inserting thermal (/lib/modules/2.6.18-5-xen-amd64/kernel/drivers/a cpi/thermal.ko): Unknown symbol in module, or unknown parameter (see dmesg)
Done.
Begin: Mounting root file system... ...
Begin: Running /scripts/local-top ...
device-mapper: ioctl: 4.7.0-ioctl (2006-06-24) initialised: dm-devel@xxxxxxxxxx
Done.
Begin: Running /scripts/local-premount ...
Done.
kjournald starting.  Commit interval 5 seconds
EXT3 FS on sda1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
Begin: Running /scripts/local-bottom ...
Done.
Done.
Begin: Running /scripts/init-bottom ...
Done.
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
INIT: version 2.86 booting
INIT: /etc/inittab[13]: id field too long (max 4 characters)
Starting the hotplug events dispatcher: udevd.
Synthesizing the initial hotplug events...done.
Waiting for /dev to be fully populated...input: PC Speaker as /class/input/input 0
done.
Activating swap...Adding 1048568k swap on /dev/sda2.  Priority:-1 extents:1 acro ss:1048568k
done.
Checking root file system...fsck 1.40-WIP (14-Nov-2006)
/dev/sda1: clean, 3164/131072 files, 32768/262144 blocks
done.
EXT3 FS on sda1, internal journal
Setting the system clock..
Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of our search for an access method.
Cleaning up ifupdown....
Loading kernel modules...done.
Loading device-mapper support.
Checking file systems...fsck 1.40-WIP (14-Nov-2006)
/dev/sda3: clean, 11/131072 files, 12645/262144 blocks
/dev/sda5: clean, 11385/262144 files, 70088/524288 blocks
/dev/sda6: clean, 1052/524288 files, 64731/1048576 blocks
done.
Setting kernel variables...done.
Mounting local filesystems...kjournald starting.  Commit interval 5 seconds
EXT3 FS on sda3, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3 FS on sda5, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3 FS on sda6, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
done.
Activating swapfile swap...done.
Setting up networking....
Configuring network interfaces...SIOCSIFADDR: No such device
eth0: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
SIOCSIFBRDADDR: No such device
eth0: ERROR while getting interface flags: No such device
eth0: ERROR while getting interface flags: No such device
Failed to bring up eth0.
done.
INIT: Entering runlevel: 2
Starting system log daemon: syslogd.
Starting kernel log daemon: klogd.
eth0: error fetching interface information: Device not found
eth0: error fetching interface information: Device not found
Netfilter messages via NETLINK v0.30.
ip_conntrack version 2.4 (2080 buckets, 16640 max) - 304 bytes per conntrack
ip_tables: (C) 2000-2006 Netfilter Core Team
ipt_LOG: not logging via system console since somebody else already registered f or PF_INET
/usr/sbin/ipkungfu: line 903: echo: write error: Invalid argument
Failed to fetch http://ftp.hk.debian.org/debian/dists/etch/Release.gpg  Temporar y failure resolving ' ftp.hk.debian.org'
Failed to fetch http://security.debian.org/dists/etch/updates/Release.gpg  Tempo rary failure resolving ' security.debian.org'
E: Some index files failed to download, they have been ignored, or old ones used  instead.
E: Unmet dependencies. Try using -f.
Starting OpenBSD Secure Shell server: sshdNET: Registered protocol family 10
lo: Disabled Privacy Extensions
IPv6 over IPv4 tunneling driver
.
Starting the system activity data collector: sadc.
Starting periodic command scheduler: crond.

Debian GNU/Linux 4.0 host.domain.com tty1

login: admin
Password:
Last login: Sun Sep 16 11:55:53 2007 on tty1
Linux host.domain.com 2.6.18-5-xen-amd64 #1 SMP Thu Aug 30 02:48:14 UTC 2007 x86_6 4

$ su -
Password:

# ifconfig
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:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

# lsmod
Module                  Size  Used by
ipv6                  286176  10
ipt_TOS                 6912  17
xt_multiport            8064  5
xt_tcpudp               7936  81
iptable_nat            12292  1
xt_limit                7424  40
xt_state                6912  15
ipt_LOG                11264  40
ipt_recent             14360  14
iptable_mangle          7552  1
ipt_ULOG               14088  0
iptable_filter          7808  1
ip_tables              25576  3 iptable_nat,iptable_mangle,iptable_filter
x_tables               21896  10 ipt_TOS,xt_multiport,xt_tcpudp,iptable_nat,xt_l imit,xt_state,ipt_LOG,ipt_recent,ipt_ULOG,ip_tables
ip_conntrack_ftp       13136  0
ip_nat_irc              7296  0
ip_nat                 24492  2 iptable_nat,ip_nat_irc
ip_conntrack_irc       12240  1 ip_nat_irc
ip_conntrack           63140  6 iptable_nat,xt_state,ip_conntrack_ftp,ip_nat_irc ,ip_nat,ip_conntrack_irc
nfnetlink              11976  2 ip_nat,ip_conntrack
evdev                  15360  0
pcspkr                  7808  0
8250                   39880  0
serial_core            26752  1 8250
ext3                  138512  4
jbd                    65392  1 ext3
mbcache                14216  1 ext3
dm_mirror              25344  0
dm_snapshot            20664  0
dm_mod                 62928  2 dm_mirror,dm_snapshot

# ifup eth0
SIOCSIFADDR: No such device
eth0: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
SIOCSIFBRDADDR: No such device
eth0: ERROR while getting interface flags: No such device
eth0: ERROR while getting interface flags: No such device
Failed to bring up eth0.

- - - < s n i p > - - -

Thank you in advance.

GNUbie

Attachment: hardware_specs.txt
Description: Text document

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

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