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

Re: Xen-VM starten



ich schrieb am 16. Jun um 16:29 Uhr:

> in einem XEN-Hypervisor 4.1 mit wheezy-Dom0 versuche ich eine real
> existierende Jessie-Installation (auf derselben Platte) zu starten.
> 
> Jessie startet, hat aber nach 20 Sekunden noch kein root device und landet
> in der initrd-Shell.

es stellt sich nun so dar:

Das Root-Device (eine Partition der FP) wird schon an die VM übergeben,
allerdings unter dem Namen /dev/xvda (ohne Partitionsnummer im Namen!)

Das Gerät ist in der initrd ansprechbar, mit fstype (=ext4) und fsck (=clean).

Es gibt an verschiedenen Stellen Fehlermeldungen über das xen block device,
möglicherweise also ein Versionsproblem? Kann Jessie unter Xen 4.1 booten?
Hardware und Software sind 32 Bit.

Im Anhang habe ich die Infos nochmal zusammengestellt.

Vor allen Dingen fällt auf in der dmesg Ausgabe der VM:

  xenbus_probe_frontend: Device with no driver: device/vbd/769
  xenbus_probe_frontend: Device with no driver: device/vif/0  
  blkfront: xvda: flush diskcache: enabled; persistent grants:
      disabled; indirect descriptors: disabled;
  xvda: unknown partition table

Fehlt Jessie da ein Treiber? Die Meldung über die Partitionstabelle könnte
daher rühren, das ja bereits eine Partition, und keine Festplatte übergeben
wird.

(initramfs) lsmod
...
xen_netfront           25758  0
xen_blkfront           25406  0

Über Hinweise freut sich

Christian

-- 
Christian Knoke            * * *            http://cknoke.de
* * * * * * * * *  Ceterum censeo Microsoft esse dividendum.
vm.cfg:
-------
# xen version 4.1 using xm toolstack
name = "jessie"
kernel =  "/boot/vmlinuz-3.16.0-4-686-pae" 
ramdisk =  "/boot/initrd.img-3.16.0-4-686-pae" 
root =  "/dev/hda1" 
extra =  "ro" 
memory =  1024
disk = [ 'phy:sda5,hda1,w' ]


xm create --dry-run:
--------------------
(vm
    (name jessie)
    (memory 1024)
    (on_xend_start ignore)
    (on_xend_stop ignore)
    (vcpus 1)
    (oos 1)
    (image
        (linux
            (kernel /boot/vmlinuz-3.16.0-4-686-pae)
            (ramdisk /boot/initrd.img-3.16.0-4-686-pae)
            (root /dev/hda1)
            (videoram 4)
            (args ro)
            (tsc_mode 0)
            (nomigrate 0)
        )
    )
    (s3_integrity 1)
    (device (vbd (uname phy:sda5) (dev hda1) (mode w)))
)


Host dmesg:
-----------
[  684.447899] xen-blkback:ring-ref 8, event-channel 9, protocol 1 (x86_32-abi)
[ 1183.643452] xen-blkback:ring-ref 8, event-channel 9, protocol 1 (x86_32-abi)


Host Xen Log bei xm create:
---------------------------
[2017-06-16 16:01:39 2061] INFO (XendDomainInfo:2357) createDevice: vbd :
{'uuid': 'cc0894d7-21c3-e5eb-964a-5f7d567a75ea', 'bootable': 1, 'driver':
'paravirtualised', 'dev': 'hda1', 'uname': 'phy:sda5', 'mode': 'w'}

[2017-06-16 16:01:39 2061] DEBUG (DevController:95) DevController: writing
{'virtual-device': '769', 'device-type': 'disk', 'protocol': 'x86_32-abi',
'backend-id': '0', 'state': '1', 'backend':
'/local/domain/0/backend/vbd/4/769'} to /local/domain/4/device/vbd/769.

[2017-06-16 16:01:39 2061] DEBUG (DevController:97) DevController: writing
{'domain': 'jessie', 'frontend': '/local/domain/4/device/vbd/769', 'uuid':
'cc0894d7-21c3-e5eb-964a-5f7d567a75ea', 'bootable': '1', 'dev': 'hda1',
'state': '1', 'params': 'sda5', 'mode': 'w', 'online': '1', 'frontend-id':
'4', 'type': 'phy'} to /local/domain/0/backend/vbd/4/769.


VM dmesg:
---------
Started domain jessie (id=4)
[    0.000000] Booting paravirtualized kernel on Xen
[    0.000000] Xen version: 4.1.6.1 (preserve-AD)
...
[    0.069135] xen:grant_table: Grant tables using version 1 layout
[    0.069191] Grant table initialized
...
[    1.806537] xenbus_probe_frontend: Device with no driver: device/vbd/769
[    1.806548] xenbus_probe_frontend: Device with no driver: device/vif/0
[    2.009603] blkfront: xvda: flush diskcache: enabled; persistent grants: disabled; indirect descriptors: disabled;
[    2.014047]  xvda: unknown partition table


Startup:
--------
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Waiting for root file system ... Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
[repeat 28 times]
done.
Gave up waiting for root device.  Common problems:
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
   - Check root= (did the system wait for the right device?)
 - Missing modules (cat /proc/modules; ls /dev)
ALERT!  /dev/hda1 does not exist.  Dropping to a shell!

Initrd Console:
---------------
(initramfs) ls -l /dev/sd* /dev/hd* /dev/xv*
ls: /dev/sd*: No such file or directory
ls: /dev/hd*: No such file or directory
brw-------    1 0        0         202,   0 Jun 16 16:01 /dev/xvda

(initramfs) fstype /dev/xvda
FSTYPE=ext4
FSSIZE=19998441472

(initramfs) fsck /dev/xvda
fsck from util-linux 2.25.2
e2fsck 1.42.12 (29-Aug-2014)
/dev/xvda: clean, 290236/1220608 files, 2705535/4882432 blocks
[   85.335839]  xvda: unknown partition table

(initramfs) cat /proc/cmdline
root=/dev/hda1 ro

Block devices:
259 blkext
202 xvd

(initramfs) lsmod
Module                  Size  Used by    Not tainted
...
xen_netfront           25758  0 
xen_blkfront           25406  0 


Reply to: