Index: [Article Count Order] [Thread]

Date:  Fri, 22 Jul 2005 01:21:59 +0800 (SGT)
From:  patricko (at mark) staff.singnet.com.sg
Subject:  [coba-e:02635] Simple steps: XEN for bluequartz
To:  coba-e (at mark) bluequartz.org
Message-Id:  <Pine.LNX.4.44.0507220039001.28898-100000 (at mark) staff.singnet.com.sg>
X-Mail-Count: 02635

Hi blues,

I have try Bluequartz on XEN. 
Its cool.

Download the DomU img files for Guest domain OS

http://www.kvadratrot.net/~xen/

http://www.kvadratrot.net/~xen/images/RedHat9.img.bz2
http://www.kvadratrot.net/~xen/images/CentOS4.img.bz2


[I am using CentOS4 (as Guest)with SUSE9.3 pro (as HOST)]


##### Download the CentOS guest OS image, then create another 
      harddisk slice via 'dd' for /home and mount it 
      after booting guestOS ##################

cat /etc/xen/centos4
kernel ="/boot/vmlinuz-2.6.11.4-21.7-xen"
memory = 150
name = "CentOS4"
nics = 1
disk = ['file:/OS/CentOS4.img,sda1,w',
        'file:/OS/CentOS4_home.img,sda2,w']
root = "/dev/sda1 ro"

>>>>>>>>>CENTOS4 GUEST>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
mount /dev/sda2 /home

df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1            1008M  824M  134M  87% /
none                   73M     0   73M   0% /dev/shm
/dev/sda2            1008M  1.3M  956M   1% /home


>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Things to check for Guest OS Networking to be upz
Make sure the the bridge interface, xen-br0 and the GuestOS NIC alias, 
vifx.0 is upz.


eth0      Link encap:Ethernet  HWaddr 00:90:27:E5:AD:x
          inet addr:x.x.x.x  Bcast:x.x.x.x  Mask:255.255.255.x
          inet6 addr: fe80::290:27ff:fee5:ad12/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:830008 errors:0 dropped:0 overruns:0 frame:0
          TX packets:196461 errors:0 dropped:0 overruns:0 carrier:189
          collisions:316 txqueuelen:1000
          RX bytes:52052432 (49.6 Mb)  TX bytes:12975536 (12.3 Mb)

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:4467 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4467 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:351219 (342.9 Kb)  TX bytes:351219 (342.9 Kb)

vif3.0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          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:2913 errors:0 dropped:334 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:181137 (176.8 Kb)

xen-br0   Link encap:Ethernet  HWaddr 00:90:27:E5:AD:12
          inet addr:x.x.x.x  Bcast:x.x.x.x  Mask:255.255.255.255
          inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:338672 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11014 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:17123961 (16.3 Mb)  TX bytes:2207110 (2.1 Mb)


################## Check bridge control #####################
brctl show
bridge name     bridge id               STP enabled     interfaces
xen-br0         8000.009027e5ad12       no              eth0
                                                        vif3.0

Cheers
Patrick


Refers:
http://www.ibm.com/developerworks/linux/library/l-xen/?ca=drs-l1105
http://www.fedoraproject.org/wiki/FedoraXenQuickstart
y