Port-xen archive

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

Re: using linux as domU. --- done!!!



I thought it might be something like that -- however
  I tried 32 offset
  I tried 64 offset
I relabeld the disk to be closer to what the bios reports and added a partition in the partition table via fdisk.
  -- and still no joy in mudville (:{

  Any other suggestions?
johnh...

Ps I tried to put this in as an additional disk to a domU Linux and tried to make a filesystem from inside of the Linux domU but had trouble with that. It reports hdb2 but does not succeed if formating it (this was before I put a boot partition on it - may linux needs that).


====
ar1204# vnconfig -l
vnd0: /Xen (/dev/wd0h) inode 1548290
vnd1: not in use
vnd2: not in use
vnd3: not in use
ar1204# ls
NetBSD-4.0.fs             Ubuntu.fs                 WindowsXP.fs
NetBSD-4.99.fs            UbuntuServer8.04-xen.fs
TestExt2.fs               UbuntuServer8.04.fs
ar1204# vnconfig vnd1 TestExt2.fs
ar1204# disklabel vnd1
# /dev/rvnd1d:
type: vnd
disk: vnd
label: fictitious
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 523
total sectors: 8388608
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

4 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
a: 8388500 63 Linux Ext2 0 0 # (Cyl. 0*- 522*) d: 8388608 0 unused 0 0 # (Cyl. 0 - 522*)
ar1204# fdisk vnd1
Disk: /dev/rvnd1d
NetBSD disklabel disk geometry:
cylinders: 4096, heads: 64, sectors/track: 32 (2048 sectors/cylinder)
total sectors: 8388608

BIOS disk geometry:
cylinders: 523, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 8388608

Partition table:
0: Linux native (sysid 131)
    start 63, size 8388545 (4096 MB, Cyls 0-522/42/32)
        PBR is not bootable: All bytes are identical (0x00)
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
Bootselector disabled.
No active partition.
ar1204# newfs_ext2fs /dev/vnd1a
newfs_ext2fs: /dev/vnd1a: open for write: Device busy
===

On Tue, 25 Nov 2008, Manuel Bouyer wrote:

Date: Tue, 25 Nov 2008 19:35:53 +0100
From: Manuel Bouyer <bouyer%antioche.eu.org@localhost>
To: John Hayward <John.C.Hayward%wheaton.edu@localhost>
Cc: Sarton O'Brien <bsd-xen%roguewrt.org@localhost>, NetBSD/xen 
<port-xen%NetBSD.org@localhost>
Subject: Re: using linux as domU. --- done!!!

On Tue, Nov 25, 2008 at 10:43:14AM -0600, John Hayward wrote:
[...]
=====
ar1204# cat /etc/motd
NetBSD 4.99.72 (XEN3_DOM0) #0: Mon Sep 29 12:08:41 PDT 2008
ar1204# vnconfig -l vnd6
vnd6: /Xen (/dev/wd0h) inode 1548295
ar1204# disklabel vnd6
# /dev/rvnd6d:
type: vnd
disk: vnd
label: fictitious
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 4096
total sectors: 8388608
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

4 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a:   8388608         0 Linux Ext2      0     0        # (Cyl.      0 -
 4095)
 d:   8388608         0     unused      0     0        # (Cyl.      0 -
 4095)
ar1204# newfs_ext2fs /dev/vnd6a
newfs_ext2fs: /dev/vnd6a: open for write: Device busy

make your 'a' partition start at a small offset from the beggining (e.g. 32,
as you have 32 sectors/track). The kernel prevent writting the
first sectors because it would trash the disklabel.

--
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
    NetBSD: 26 ans d'experience feront toujours la difference
--



Home | Main Index | Thread Index | Old Index