hi,
but i met some problem.
1)create domU using xen-tools(i install rpmstrap prevously).
do
[root@server02 pvm]# xen-create-image --host SystemHA --ip 192.168.226.242 --dir /home/xen --force
General Information -------------------- Hostname : SystemHA Distribution : centos-5 Mirror : http://mirrors.163.com/centos/5.6/os/x86_64/Partitions : swap 1Gb (swap) / 4Gb (ext3) Image type : sparse Memory size : 512Mb Kernel path : /boot/vmlinuz-2.6.32.40 Initrd path : /boot/initrd.img-2.6.32.40
Networking Information ---------------------- IP Address 1 : 192.168.226.242 [MAC: 00:16:3E:13:B7:66] Netmask : 255.255.255.0 Broadcast : 192.168.226.255 Gateway : 192.168.226.1
WARNING ------- Loopback module not loaded and you're using loopback images Run the following to load the module:
modprobe loop max_loop=255
Creating partition image: /home/xen/domains/SystemHA/swap.img Done
Creating swap on /home/xen/domains/SystemHA/swap.img Done
Creating partition image: /home/xen/domains/SystemHA/disk.img Done
Creating ext3 filesystem on /home/xen/domains/SystemHA/disk.img Done Installation method: rpmstrap Done System installation failed. Aborting /tmp/Y8mXDEdAPQ/etc/ssh/ssh_host_rsa_key.pub: No such file or directory Running command 'umount /tmp/Y8mXDEdAPQ/proc 2>&1' failed with exit code 256. Aborting See /var/log/xen-tools/SystemHA.log for details Can't remove directory /tmp/Y8mXDEdAPQ: Device or resource busy at /usr/lib/perl5/5.8.8/File/Temp.pm line 898
(see the configure file /etc/xen-tools/xen-tools)
[root@server02 pvm]# cat /etc/xen-tools/xen-tools.conf install-method = rpmstrap size = 4Gb # Disk image size. memory = 512Mb # Memory size swap = 1Gb # Swap size fs = ext3 # use the EXT3 filesystem for the disk image. dist = centos-5 # 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 kernel = /boot/vmlinuz-2.6.32.40 initrd = /boot/initrd-2.6.32.40.img mirror = http://mirrors.163.com/centos/5.6/os/x86_64/ext3_options = noatime,nodiratime,errors=remount-ro ext2_options = noatime,nodiratime,errors=remount-ro xfs_options = defaults reiserfs_options = defaults btrfs_options = defaults
and the domU configure is as follows:
name = "centos5.4" memory = "1024" disk = [ 'tap2:aio:/home/xen/tpl/pvm/vmdisk.img,xvda,w', ] root = "/dev/xvda ro" vif = [ 'bridge=xenbr0', ] vcpus=1
in domU do:
[root@localhost ~]# ls /boot/ config-2.6.18-194.el5xen System.map-2.6.18-194.el5xen grub vmlinuz-2.6.18-194.el5xen initrd-2.6.18-194.el5xen.img xen.gz-2.6.18-194.el5 message xen-syms-2.6.18-194.el5 symvers-2.6.18-194.el5xen.gz [root@localhost ~]# uname -a Linux localhost.localdomain 2.6.18-194.el5xen #1 SMP Fri Apr 2 15:34:40 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
but when i run command in dom0 :remus centos5.4,error message is as follows:
[root@server02 ~]# remus centos5.4 Disk is not replicated: tap:aio:/home/xen/tpl/pvm/vmdisk.img,xvda,w WARNING: suspend event channel unavailable, falling back to slow xenstore signalling PROF: suspending at 1314859043.422012 installing buffer on ifb0... done. PROF: resumed at 1314859043.454169 PROF: flushed memory at 1314859043.456038 PROF: suspending at 1314859043.633453 domain 1 not shut down xc: error: Suspend request failed: Internal error xc: error: Domain appears not to have suspended: Internal error PROF: resumed at 1314859043.653831
i have no idea about what is the problem.Could anybody thell me how to address this problem in details?
Best regards~
yours
yunjie du
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|