350608693
2011-Sep-08 12:49 UTC
[Xen-users] xen-create-image:ALERT! /dev/xvda2 does not exist. Dropping to a shell
hi, i install xen-4.2 on debian6.0(i386)/squeeze,and the dom0 kernel is 2.6.32.40. i create a domU successfully using xen-create-image:xen-create-image --hostname localhost --ip 192.168.226.242 --verbose ****************************************************** ............................... .............................. Installation Summary --------------------- Hostname : localhost Distribution : squeeze IP-Address(es) : 192.168.226.242 RSA Fingerprint : 4b:77:cb:03:27:ca:ae:06:08:f5:15:99:c3:6c:20:7f Root Password : N/A ******************************************************* but when i start this domU(xm create -c /etc/xen/localhost.cfg),error happens: Loading, please wait... [ 6.032277] udev[1065]: starting version 164 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/xvda2 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) and the /etc/xen-tools/xen-tools.conf is as follows: install-method = debootstrap size = 4Gb # Disk image size. memory = 512Mb # Memory size swap = 512Mb # Swap size fs = ext3 # use the EXT3 filesystem for the disk image. dist = squeeze # Default distribution to install. image = sparse # Specify sparse vs. full disk images. gateway = 192.168.226.1 netmask = 255.255.255.0 broadcast = 192.168.226.255 passwd=1 dir=/var/lib/xen kernel = /boot/vmlinuz-`uname -r` initrd = /boot/initrd.img-`uname -r` mirror_squeeze = http://mirrors.163.com/debian/ ext3_options = noatime,nodiratime,errors=remount-ro ext2_options = noatime,nodiratime,errors=remount-ro xfs_options = defaults reiserfs_options = defaults btrfs_options = defaults serial_device = hvc0 disk_device = xvda localhost.cfg is as follows: kernel = '/boot/vmlinuz-2.6.32.40' ramdisk = '/boot/initrd.img-2.6.32.40' vcpus = '1' memory = '512' # # Disk device(s). # root = '/dev/xvda2 ro' disk = [ 'file:/var/lib/xen/domains/localhost/disk.img,xvda2,w', 'file:/var/lib/xen/domains/localhost/swap.img,xvda1,w', ] # # Physical volumes # # # Hostname # name = 'localhost' # # Networking # vif = [ 'ip=192.168.226.242,mac=00:16:3E:AA:9A:30' ] # # Behaviour # on_poweroff = 'destroy' on_reboot = 'restart' on_crash = 'restart' I google it for days,but get no constructive suggestions.could anyone tell me how to address this problem in details? best regards yours yunjie du _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Christian Motschke
2011-Sep-08 13:14 UTC
Re: [Xen-users] xen-create-image:ALERT! /dev/xvda2 does not exist. Dropping to a shell
Am 08.09.2011 um 14:49 schrieb 350608693:> hi, > i install xen-4.2 on debian6.0(i386)/squeeze,and the dom0 kernel is 2.6.32.40. > i create a domU successfully using xen-create-image:xen-create-image --hostname localhost --ip 192.168.226.242 --verbose > ****************************************************** > ............................... > .............................. > Installation Summary > --------------------- > Hostname : localhost > Distribution : squeeze > IP-Address(es) : 192.168.226.242 > RSA Fingerprint : 4b:77:cb:03:27:ca:ae:06:08:f5:15:99:c3:6c:20:7f > Root Password : N/A > ******************************************************* > but when i start this domU(xm create -c /etc/xen/localhost.cfg),error happens: > Loading, please wait... > [ 6.032277] udev[1065]: starting version 164 > 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/xvda2 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) > > > and the /etc/xen-tools/xen-tools.conf is as follows: > install-method = debootstrap > size = 4Gb # Disk image size. > memory = 512Mb # Memory size > swap = 512Mb # Swap size > fs = ext3 # use the EXT3 filesystem for the disk image. > dist = squeeze # Default distribution to install. > image = sparse # Specify sparse vs. full disk images. > gateway = 192.168.226.1 > netmask = 255.255.255.0 > broadcast = 192.168.226.255 > passwd=1 > dir=/var/lib/xen > kernel = /boot/vmlinuz-`uname -r` > initrd = /boot/initrd.img-`uname -r` > mirror_squeeze = http://mirrors.163.com/debian/ > ext3_options = noatime,nodiratime,errors=remount-ro > ext2_options = noatime,nodiratime,errors=remount-ro > xfs_options = defaults > reiserfs_options = defaults > btrfs_options = defaults > serial_device = hvc0 > disk_device = xvda > > localhost.cfg is as follows: > kernel = ''/boot/vmlinuz-2.6.32.40'' > ramdisk = ''/boot/initrd.img-2.6.32.40''Wrong kernel? This kernel is not from squeeze but from unstable? You need to install a XEN kernel with block device driver for xvda. apt-get install linux-image-2.6-xen-amd64> vcpus = ''1'' > memory = ''512'' > # > # Disk device(s). > # > root = ''/dev/xvda2 ro'' > disk = [ > ''file:/var/lib/xen/domains/localhost/disk.img,xvda2,w'', > ''file:/var/lib/xen/domains/localhost/swap.img,xvda1,w'', > ] > > # > # Physical volumes > # > > # > # Hostname > # > name = ''localhost'' > # > # Networking > # > vif = [ ''ip=192.168.226.242,mac=00:16:3E:AA:9A:30'' ] > # > # Behaviour > # > on_poweroff = ''destroy'' > on_reboot = ''restart'' > on_crash = ''restart'' > I google it for days,but get no constructive suggestions.could anyone tell me how to address this problem in details? > > best regards > > yours > yunjie du > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
yunjiedu
2011-Sep-08 13:28 UTC
[Xen-users] Re: xen-create-image:ALERT! /dev/xvda2 does not exist. Dropping to a shell
yeal,you are right~ 1)root@debian:/bootapt-get install linux-image-2.6-xen-686(for i386) 2)root@debian:/boot# ls /boot/ config-2.6.32.40 initrd.img-2.6.32-5-xen-686 vmlinuz-2.6.32-5-686-bigmem config-2.6.32.40.old System.map-2.6.32.40 vmlinuz-2.6.32-5-xen-686 config-2.6.32-5-686-bigmem System.map-2.6.32.40.old xen-4.2.gz config-2.6.32-5-xen-686 System.map-2.6.32-5-686-bigmem xen-4.2-unstable.gz grub System.map-2.6.32-5-xen-686 xen-4.gz initrd.img-2.6.32.40 vmlinuz-2.6.32.40 xen.gz initrd.img-2.6.32-5-686-bigmem vmlinuz-2.6.32.40.old xen-syms-4.2-unstable 3)vim /etc/xen/localhost.cfg: *kernel = ''/boot/vmlinuz-2.6.32-5-xen-686'' ramdisk = ''/boot/initrd.img-2.6.32-5-xen-686''* vcpus = ''1'' memory = ''512'' # # Disk device(s). # root = ''/dev/xvda2 ro'' disk = [ ''file:/var/lib/xen/domains/localhost/disk.img,xvda2,w'', ''file:/var/lib/xen/domains/localhost/swap.img,xvda1,w'', ] # # Physical volumes # # # Hostname # name = ''localhost'' # # Networking # vif = [ ''ip=192.168.226.242,mac=00:16:3E:AA:9A:30'' ] # # Behaviour # on_poweroff = ''destroy'' on_reboot = ''restart'' on_crash = ''restart'' 4) i can start the domU successfully.that''s ok,thank you very very very very very much~~ -- View this message in context: http://xen.1045712.n5.nabble.com/xen-create-image-ALERT-dev-xvda2-does-not-exist-Dropping-to-a-shell-tp4782287p4782409.html Sent from the Xen - User mailing list archive at Nabble.com. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fantu
2011-Sep-08 13:42 UTC
[Xen-users] Re: xen-create-image:ALERT! /dev/xvda2 does not exist. Dropping to a shell
Official network install work perfectly from vnc xen except grub install (do continue without install bootloader). http://ftp.debian.org/debian/dists/squeeze/main/installer-amd64/current/images/netboot/xen/ After install mount -o loop the domu disk (if raw) on dom0 create minimal menu.lst: -------------------------------------------------------------------------- default 0 timeout 2 title Squeeze 64 bit (Debian 6) root (hd0,0) kernel /boot/vmlinuz-2.6.32-5-amd64 root=/dev/xvda1 ro initrd /boot/initrd.img-2.6.32-5-amd64 title Squeeze 64 bit (Debian 6) (Single-User) root (hd0,0) kernel /boot/vmlinuz-2.6.32-5-amd64 root=/dev/xvda1 ro single initrd /boot/initrd.img-2.6.32-5-amd64 -------------------------------------------------------------------------- Start domu, remove menu.lst and install effective grub2 working -- View this message in context: http://xen.1045712.n5.nabble.com/xen-create-image-ALERT-dev-xvda2-does-not-exist-Dropping-to-a-shell-tp4782287p4782473.html Sent from the Xen - User mailing list archive at Nabble.com. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
yunjiedu
2011-Sep-09 12:07 UTC
[Xen-users] Re: xen-create-image:ALERT! /dev/xvda2 does not exist. Dropping to a shell
hi, i try your method and download the vmlinuz and initrd.gz,then do as this: 1)#dd if=/dev/zero of=vmdisk.img bs=1M seek=6000 count=1 2)#mkfs.ext3 vmdisk.img 3)#vim vmdisk.cfg: /kernel = "vmlinuz" ramdisk = "initrd.gz" name = "debian-install" memory = "1024" disk = [ ''tap2:aio:/home/xen/tpl/pvm/debian/vmdisk.img,xvda,w'', ] vif = [ ''bridge=xenbr0'', ] vcpus=1 on_reboot = ''destroy'' on_crash = ''destroy''/ 3)#xm create -c vmdisk.cfg(then install debian xen domU as usual) 4)#vim vmdisk.cfg: /name = "squeeze" memory = "1024" disk = [ ''tap2:aio:/home/xen/tpl/pvm/debian/vmdisk.img,xvda,w'', ] root = "/dev/xvda ro" vif = [ ''bridge=eth0'', ] vcpus=1 on_reboot = ''restart'' on_crash = ''destroy'' on_poweroff = "destroy"/ 5)#mount -o loop vmdisk.img /mnt but error happens: *mount: you must specify the filesystem type* 6)i ignore aforementioned error.and do "xm create -c vmdisk.cfg",but error also happen: *Loading, please wait... mount: mounting /dev/xvda on /root failed: No such file or directory mount: mounting /dev on /root/dev failed: No such file or directory mount: mounting /sys on /root/sys failed: No such file or directory mount: mounting /proc on /root/proc failed: No such file or directory Target filesystem doesn''t have requested /sbin/init. No init found. Try passing init= bootarg. 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) * what is the problem?I am looking forward to your help. -- View this message in context: http://xen.1045712.n5.nabble.com/xen-create-image-ALERT-dev-xvda2-does-not-exist-Dropping-to-a-shell-tp4782287p4786096.html Sent from the Xen - User mailing list archive at Nabble.com. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users