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

[Xen-users] prob HVM boot image sco



Hallo xenusers!


I want port a very old sco to to xenU.

xen (HVM) cannot boot this image.
This Partition cannot mounted.
Whats going wrong?
Is HD-geometry a cause of this problem?

regards Torsten
Launoc

----------------------------------------------------------------------
Details:

sco # uname -a
SCO_SV n7275sc1 3.2 2 i386

sco # fdisk

        1. Display Partition Table
        2. Use Entire Disk for UNIX
        3. Use Rest of Disk for UNIX
        4. Create UNIX Partition
        5. Activate Partition
        6. Delete Partition
        7. Create Partition

Enter your choice or 'q' to quit: 1

Current Hard Disk Drive: /dev/rhd00


+-------------+----------+-----------+---------+---------+---------+
        | Partition   | Status   | Type      |   Start |     End |    Size|

+-------------+----------+-----------+---------+---------+---------+
        | 1           | Active   | UNIX      |       1 |  134129 |  134129|

+-------------+----------+-----------+---------+---------+---------+



- create img

sco # dd if=/dev/rhd00 | rcmd $rhost -l admin dd of=$hdimg

xen # fdisk -l $hdimg
You must set cylinders.
You can do this from the extra functions menu.

Disk sco.dd: 0 MB, 0 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

 Device Boot      Start         End      Blocks   Id  System
 sco.dd4   *           1         526     4225063+  63  GNU HURD or SysV



------------------------------------------------------------------
- test 1 boot_xenu


xen:~# xm create vm3_sco -c
Using config file "/etc/xen/vm3_sco".
Started domain vm3


Boot from Hard Disk failed: could not read the boot disk
FATAL: No bootable device


-------------------------------------------------------------------
- test 2 mount_partition

hdimg=sco.dd
fdisk -l $hdimg
Cb=1
seekblk=$((($Cb-1)*63*255)); ## fdisk
echo "Cb=$Cb Ctmp=$Ctmp seekblk=$seekblk"

## lese-test HDimg (s. qemu/060204.test_qemu_img_create)
devloop=`losetup -f`
mntdir=/mnt/tmp
losetup -o $seekblk $devloop $hdimg
mount $devloop $mntdir
# or:  lomount -diskimage $hdimg -partition 4 $mntdir
df  $mntdirdst
umount  $mntdirdst
losetup -d $devloop

-------------
  - result:
# lsmod | grep sysv
sysv                   28804  0

# lomount -diskimage $hdimg -partition 4 $mntdir
mount: you must specify the filesystem type

# mount -t sysv $devloop $mntdir
mount: wrong fs type, bad option, bad superblock on /dev/loop1,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so


-------------------------------------------------------------------

- geometry of orginal HD:
  C     H       S
  526   255     63

- geometry supported by qemu (man qemu)
  x     16      63

-------------------------------------------------------------------




_______________________________________________
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®.