WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] One success case on creating multiple domains purely based o

To: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] One success case on creating multiple domains purely based on Live CD
From: Xuxian Jiang <jiangx@xxxxxxxxxxxxx>
Date: Sat, 11 Oct 2003 02:47:36 -0500 (EST)
Cc: Xuxian Jiang <jiangx@xxxxxxxxxxxxx>
Delivery-date: Sat, 11 Oct 2003 08:48:18 +0100
Envelope-to: steven.hand@xxxxxxxxxxxx
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
All,

  The following is the steps I followed to create multiple domains
successfully based on Live CD only. Hope it helps!

1) bootstrap the test machine with Live CD, choose the first option in
Grub menu, and login into with root

2) start dhclient and get one availabe IP. Another alternative would be
using ifconfig and ip command

eth0      Link encap:Ethernet  HWaddr 00:0C:29:47:F0:A3
          inet addr:192.168.1.129  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:44 errors:0 dropped:0 overruns:0 frame:0
          TX packets:38 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:5780 (5.6 Kb)  TX bytes:5431 (5.3 Kb)

  The reason to assign IP to interface is for the purpose of remote
operation and multiple console windows.

3) Login into the Xen Demo CD powered machine, and execute the following
commands. Name this console as console 1
[root@xendemo0 root]# xen_nat_enable
[root@xendemo0 root]# xen_read_console

4) Login into the Xen machine and get another console named 2, execute

[root@xendemo0 root]# xenctl domain new
Domain defaults:
   name            XenoLinux
   size            98304
   vifs            1
   domainImage     /boot/xenolinux.gz
   domainInitRD    /boot/initrd.gz
   rootDevice      /dev/ram0
   rootArgs        rw
   usrDevice       null
   NWIP            169.254.1.0+
   NWGW            169.254.1.0
   NWMask          255.255.0.0
   MaxDomainNumber 1000
   NWNFSServer     169.254.1.0
   NWNFSRoot       null
   XIToolsDir      /usr/local/bin/
   args            init=/linuxrc 4 DOMID=+
Domain created with arguments:
/usr/local/bin/xi_create 98304 XenoLinux
Domain built with arguments:
/usr/local/bin/xi_build 1 /tmp/xen-image-54980.tmp 1
initrd=/tmp/xen-initrd-54981.tmp
ip=169.254.1.1:169.254.1.0:169.254.1.0:255.255.0.0::eth0:off init=/linuxrc
4 DOMID=1  root=/dev/ram0 rw
VIF 0 initialized with arguments:
/usr/local/bin/xi_vifinit 1 0 169.254.1.1

[root@xendemo0 root]# xenctl physical grant -pcdrom_link -n1
warning: state file not found [/var/lib/xen/vdstate.xml]
Granted physical access to domain 1

[root@xendemo0 root]# xenctl domain start -n1
Started domain 1
[root@xendemo0 root]#


In console 1, you are able to see the output from domain1 kernel

/* From started Domain1 */
[root@xendemo0 root]# xen_read_console
[1] xen_console_init
[1] Linux version 2.4.22-xeno (iap10@xxxxxxxxxxxxxxxxxxxxxx) (gcc version
3.2.2
20030222 (Red Hat Linux 3.2.2-5)) #7 Tue Sep 30 12:48:02 BST 2003
[1] On node 0 totalpages: 24576
[1] zone(0): 4096 pages.
[1] zone(1): 20480 pages.
[1] zone(2): 0 pages.
[1] Kernel command line:
ip=169.254.1.1:169.254.1.0:169.254.1.0:255.255.0.0::eth
0:off init=/linuxrc 4 DOMID=1  root=/dev/ram0 rw
[1] Initializing CPU#0
[1] Xen reported: 2588.400 MHz processor.
[1] Calibrating delay loop... 10223.61 BogoMIPS
[1] Memory: 91152k/98304k available (1270k kernel code, 7152k reserved,
240k dat
a, 60k init, 0k highmem)
[1] Dentry cache hash table entries: 16384 (order: 5, 131072 bytes)
[1] Inode cache hash table entries: 8192 (order: 4, 65536 bytes)
[1] Mount cache hash table entries: 512 (order: 0, 4096 bytes)
[1] Buffer cache hash table entries: 4096 (order: 2, 16384 bytes)
[1] Page-cache hash table entries: 32768 (order: 5, 131072 bytes)
[1] CPU: L1 I cache: 12K, L1 D cache: 8K
[1] CPU: L2 cache: 512K
[1] CPU: Intel(R) Xeon(TM) CPU 2.60GHz stepping 08
[1] POSIX conformance testing by UNIFIX
[1] Linux NET4.0 for Linux 2.4
[1] Based upon Swansea University Computer Society NET3.039
[1] Initializing RT netlink socket
[1] Starting kswapd
[1] Journalled Block Device driver loaded
[1] Installing knfsd (copyright (C) 1996 okir@xxxxxxxxxxxx).
[1] Xeno console successfully installed
[1] Starting Xeno Balloon driver
[1] pty: 256 Unix98 ptys configured
[1] Skipping partition check on cdrom /dev/hda
[1] XenoLinux Virtual Segment Device Driver installed [device: 125]
[1] RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
[1] loop: loaded (max 8 devices)
[1] NET4: Linux TCP/IP 1.0 for NET4.0
[1] IP Protocols: ICMP, UDP, TCP
[1] IP: routing cache hash table of 512 buckets, 4Kbytes
[1] TCP: Hash tables configured (established 8192 bind 16384)
[1] XenoLinux Virtual Network Driver installed as eth0
[1] IP-Config: Complete:
[1]       device=eth0, addr=169.254.1.1, mask=255.255.0.0, gw=169.254.1.0,
[1]      host=169.254.1.1, domain=, nis-domain=(none),
[1]      bootserver=169.254.1.0, rootserver=169.254.1.0, rootpath=
[1] ip_conntrack version 2.1 (768 buckets, 6144 max) - 292 bytes per
conntrack
[1] ip_tables: (C) 2000-2002 Netfilter core team
[1] NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
[1] RAMDISK: ext2 filesystem found at block 0
[1] RAMDISK: Loading 4096 blocks [1 disk] into ram disk... |
[1]|
[1]done.
[1] Freeing initrd memory: 4096k freed
[1] root_device_name = ram0
[1] VFS: Mounted root (ext2 filesystem).
[1] Freeing unused kernel memory: 60k freed
[1] Looking for CD-ROM at /dev/hda... FIXME: support multisession CDs
later
[1] found!
[1] lrwxrwxrwx    1 0        0               8 Oct 11 00:39 /dev/cdrom ->
/dev/h
da
[1] FIXME: support multisession CDs later
INIT: version 2.84 booting
[1] Mounting proc filesystem:  [  OK  ]
[1] Configuring kernel parameters:  [  OK  ]
[1] Setting clock  (localtime): Sat Oct 11 00:39:30 UTC 2003 [  OK  ]
[1] Setting hostname xendemo1.localdomain:  [  OK  ]
[1] Remounting root filesystem in read-write mode:  [  OK  ]
[1] Mounting local filesystems:  [  OK  ]
[1] Turning on process accounting [  OK  ]
INIT: Entering runlevel: 4
[1] Entering non-interactive startup
[1] Setting network parameters:  [  OK  ]
[1] Bringing up loopback interface:  [  OK  ]
[1] Starting system logger: [FAILED]
[1] Starting kernel logger: [  OK  ]
[1] Initializing random number generator:  [  OK  ]
[1] Starting sshd:[  OK  ]
[1] Starting crond: [  OK  ]
[1] Starting xfs: [  OK  ]
[1] Starting anacron: [  OK  ]
[1]
[1] eth0      Link encap:Ethernet  HWaddr AA:00:00:0B:C3:43
[1]           inet addr:169.254.1.1  Bcast:169.254.255.255
Mask:255.255.0.0
[1]           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
[1]           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
[1]           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
[1]           collisions:0 txqueuelen:100
[1]           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
[1]
INIT: no more processes left in this runlevel


5) Loging into Xen machine, get console 3 which is used to login into
domain 1 by executing

[root@xendemo0 root]# ssh 169.254.1.1
The authenticity of host '169.254.1.1 (169.254.1.1)' can't be established.
RSA key fingerprint is 18:80:8d:5e:72:e1:c2:af:0f:b7:f0:11:c5:2e:d1:ea.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '169.254.1.1' (RSA) to the list of known hosts.
root@xxxxxxxxxxx's password:
/usr/X11R6/bin/xauth:  creating new authority file /root/.Xauthority
[root@xendemo1 root]# ifconfig
eth0      Link encap:Ethernet  HWaddr AA:00:00:0B:C3:43
          inet addr:169.254.1.1  Bcast:169.254.255.255  Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:45 errors:0 dropped:0 overruns:0 frame:0
          TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:5140 (5.0 Kb)  TX bytes:4455 (4.3 Kb)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          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)

[root@xendemo1 root]#

Cheers and Thanks for Xen Development Team!

Xuxian

---
Xuxian Jiang        (765)494-2957
Department of Computer Sciences
Purdue University
http://www.cs.purdue.edu/homes/jiangx
---



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] One success case on creating multiple domains purely based on Live CD, Xuxian Jiang <=