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

[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@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®.