Cameron Camp
2011-Apr-22 17:55 UTC
[Xen-users] debian lenny -> squeeze domU migration /dev/sdaX not found
I''m migrating a Lenny/2.6.26-1 kernel non-lvm file based DomU to a new
Squeeze Dom0 server (non-lvm hardware RAID1 sdX) running kernel
2.6.32-5-xen-amd64, xen-hypervisor-4.0-amd64, xen-tools 4.2-1. When I do
xm create whatever.domain.com.cfg
it starts, but then when I login with xm console I get:
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin:
Running /scripts/local-top ... done.
Begin: Waiting for root file system ... 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/sda2 does not exist. Dropping to a shell!
BusyBox v1.17.1 (Debian 1:1.17.1-8) built-in shell (ash)
Enter ''help'' for a list of built-in commands.
/bin/sh: can''t access tty; job control turned off
(initramfs)
apparently it can''t find /dev/sda2, which is specified in
whatever.domain.cfg as:
root = ''/dev/sda2 ro''
disk = [
''file:/home/xen/domains/whatever.domain.com/swap.img,sda1,w'',
''file:/home/xen/domains/whatever.domain.com/disk.img,sda2,w'',
]
along with updated kernel entries like:
kernel = ''/boot/vmlinuz-2.6.32-5-xen-amd64''
ramdisk = ''/boot/initrd.img-2.6.32-5-xen-amd64''
#kernel = ''/boot/vmlinuz-2.6.26-1-xen-amd64''
#ramdisk = ''/boot/initrd.img-2.6.26-1-xen-amd64''
also,
/home/xen/domains/whatever.domain.com/disk.img and swap.img
exist and have the same ownership/permissions as a newly created
(successful) DomU on this same box using Debian Squeeze xen-tools, which
is working fine.
why can''t the old DomU see /dev/sda2
as /home/xen/domains/whatever.domain.com/disk.img ? Is there something I
can edit at xm console inside DomU to make it see those .img''s?
I''ve
tried mount, but don''t see the fs, and fdisk -l doesn''t work.
thx,
Cam
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
Mark Pryor
2011-Apr-22 18:37 UTC
Re: [Xen-users] debian lenny -> squeeze domU migration /dev/sdaX not found
--- On Fri, 4/22/11, Cameron Camp <cameron@campworkz.com> wrote:> From: Cameron Camp <cameron@campworkz.com> > Subject: [Xen-users] debian lenny -> squeeze domU migration /dev/sdaX not found > To: xen-users@lists.xensource.com > Date: Friday, April 22, 2011, 10:55 AM > I''m migrating a Lenny/2.6.26-1 kernel > non-lvm file based DomU to a new > Squeeze Dom0 server (non-lvm hardware RAID1 sdX) running > kernel > 2.6.32-5-xen-amd64, xen-hypervisor-4.0-amd64, xen-tools > 4.2-1. When I do > > xm create whatever.domain.com.cfg > > it starts, but then when I login with xm console I get:in domU config /dev/sda -> /dev/xvda in domU: fstab and menu.lst /dev/sda -> /dev/xvda (or use extra = "" and append to vmlinuz) -- Mark _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Cameron Camp
2011-Apr-22 19:14 UTC
Re: [Xen-users] debian lenny -> squeeze domU migration /dev/sdaX not found
> in domU config > > /dev/sda -> /dev/xvda > > in domU: fstab and menu.lst > > /dev/sda -> /dev/xvda > > (or use extra = "" and append to vmlinuz) >works! All I needed to do was change: /etc/xen/whatever.domain.com.cfg #root = ''/dev/sda2 ro'' root = ''/dev/xvda2 ro'' then xm create whatever.domain.com.cfg xm console whatever.domain.com vi /etc/apt/sources.list :%s/lenny/squeeze/g apt-get update && apt-get upgrade apt-get dist-upgrade and now it''s Squeeze running the right kernel! Sometimes I get an "out memory" error still, is this related to the original issue, or something else? Hope this post helps someone else. thx, Cam _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users