From: "Inaba" Subject: The Problem of Creating a domain Date: Mon, 9 Feb 2004 21:39:25 +0800 Sender: xen-devel-admin@lists.sourceforge.net Message-ID: <001601c3ef12$2270bf50$377519a3@linux0gdq9s4ub> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0013_01C3EF55.304F2E20" Return-path: Resent-To: xen-devel@lists.sourceforge.net Resent-Message-Id: <20040210180303.8A60A1D23B1@sc8-sf-uberspam1.sourceforge.net> Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: xen-announce@lists.sourceforge.net List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. ------=_NextPart_000_0013_01C3EF55.304F2E20 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable Hi all !! I have a problem of creating a domain, How can I solve this problem ? thanks for your help the messages received from xen_read_console as bellow [6] ctivating swap partitions: swapon: /dev/hda7: No such device or = address [6] [FAILED] [6] ioctl 80041272 not supported by xl_block [6] Finding module dependencies: depmod: Can't open = /lib/modules/2.4.24-xeno/modules.dep for writing [6] [FAILED] [6] Checking filesystems [6] Couldn't find matching filesystem: LABEL=3D/policy [6] Checking all file systems. [6] [FAILED] [6] [6] *** An error occurred during the file system check. [6] *** Dropping you to a shell; the system will reboot [6] *** when you leave the shell. [6] Give root password for maintenance fdisk -l /dev/hda=20 Disk /dev/hda: 30.6 GB, 30606151680 bytes 255 heads, 63 sectors/track, 3720 cylinders Units =3D cylinders of 16065 * 512 =3D 8225280 bytes Device Boot Start End Blocks Id System /dev/hda1 * 1 653 5245191 7 HPFS/NTFS /dev/hda2 654 3719 24627645 f Win95 Ext'd (LBA) /dev/hda5 654 1175 4192933+ 83 Linux /dev/hda6 1176 1828 5245191 83 Linux /dev/hda7 1829 1893 522081 82 Linux swap /dev/hda8 1894 3719 14667313+ 83 Linux configuration of my domain image =3D "/boot/xenolinux.gz" ramdisk =3D "" #ramdisk =3D "/boot/initrd.gz" builder_fn=3D'xc.linux_build' # this is a linux domain mem_size =3D 64 domain_name =3D "This is VM %d" % vmid vfr_ipaddr =3D = [XenoUtil.add_offset_to_ip(XenoUtil.get_current_ipaddr(),vmid), XenoUtil.add_offset_to_ip('169.254.1.0',vmid),] vbd_list =3D [ ('phy:hda8','hda8','w')] vbd_expert =3D 0 netmask =3D XenoUtil.get_current_ipmask() gateway =3D XenoUtil.get_current_ipgw() nfsserv =3D '169.254.1.0' =20 cmdline_ip =3D = "ip=3D"+vfr_ipaddr[0]+":"+nfsserv+":"+gateway+":"+netmask+"::eth0:on" cmdline_root =3D "root=3D/dev/hda8 ro" cmdline_extra =3D "4 VMID=3D%d usr=3D/dev/hda8" % vmid ------=_NextPart_000_0013_01C3EF55.304F2E20 Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable
Hi all !!
 
I have a problem of creating a domain, How can I solve this problem = ?
 
thanks for your help
 
the messages received from xen_read_console as bellow
 
[6] ctivating swap partitions:  swapon: /dev/hda7: No such = device or=20 address
[6] [FAILED]
[6] ioctl 80041272 not supported by = xl_block
[6]=20 Finding module dependencies:  depmod: Can't open=20 /lib/modules/2.4.24-xeno/modules.dep for writing
[6] [FAILED]
[6] = Checking=20 filesystems
[6] Couldn't find matching filesystem: = LABEL=3D/policy
[6]=20 Checking all file systems.
[6] [FAILED]
[6]
[6] *** An error = occurred=20 during the file system check.
[6] *** Dropping you to a shell; the = system=20 will reboot
[6] *** when you leave the shell.
[6] Give root = password for=20 maintenance
 
fdisk -l /dev/hda
 
Disk /dev/hda: 30.6 GB, 30606151680 bytes
255 heads, 63 = sectors/track,=20 3720 cylinders
Units =3D cylinders of 16065 * 512 =3D 8225280 = bytes
 
   Device Boot   =20 Start       End   =20 Blocks   Id  System
/dev/hda1  =20 *        =20 1       653   = 5245191   =20 7 =20 HPFS/NTFS
/dev/hda2        &nb= sp; =20 654      3719  24627645    = f =20 Win95 Ext'd=20 (LBA)
/dev/hda5         &= nbsp;=20 654      1175   4192933+  = 83 =20 Linux
/dev/hda6          = 1176      1828   5245191   = 83 =20 Linux
/dev/hda7          = 1829      1893    = 522081  =20 82  Linux=20 swap
/dev/hda8         =20 1894      3719  14667313+  83 =20 Linux
 
configuration of my domain
 

image =3D "/boot/xenolinux.gz"
ramdisk =3D ""
#ramdisk = =3D=20 "/boot/initrd.gz"
builder_fn=3D'xc.linux_build' # this is a linux = domain
 
mem_size =3D 64
 
domain_name =3D "This is VM %d" % vmid
 
vfr_ipaddr  =3D=20 [XenoUtil.add_offset_to_ip(XenoUtil.get_current_ipaddr(),vmid),
 =       =20 XenoUtil.add_offset_to_ip('169.254.1.0',vmid),]
 
vbd_list =3D [ ('phy:hda8','hda8','w')]
 
vbd_expert =3D 0
 
netmask =3D XenoUtil.get_current_ipmask()
gateway =3D=20 XenoUtil.get_current_ipgw()
nfsserv =3D '169.254.1.0' 
 
cmdline_ip =3D=20 "ip=3D"+vfr_ipaddr[0]+":"+nfsserv+":"+gateway+":"+netmask+"::eth0:on"
 
cmdline_root =3D "root=3D/dev/hda8 ro"
cmdline_extra =3D "4 = VMID=3D%d=20 usr=3D/dev/hda8" % vmid
 
 
------=_NextPart_000_0013_01C3EF55.304F2E20-- ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click