WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Cannot create guest domain

To: "Kevin Gilbert" <kev.gilbert@xxxxxxxxxx>
Subject: Re: [Xen-users] Cannot create guest domain
From: "Zhang Binbin" <binbinzh@xxxxxxx>
Date: Tue, 12 Dec 2006 14:21:13 +0800
Cc: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 11 Dec 2006 22:21:30 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <200612121522.36832.kev.gilbert@xxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Dom1 /etc/fstab must be modified to mount /dev/sdc2 as / and /dev/sdc3 as swap
Hope it helps. 

======== 2006-12-12 13:53:13 you wrote: ========

Hi,
I'm having trouble creating a guest domain. My config details are:
Fedora Core 6
kernel-xen-2.6.18-1.2798.fc6.i686.rpm
kernel-xen-devel-2.6.18-1.2798.fc6.i686.rpm
xen-3.0.3-0.1.rc3.i386.rpm
xen-devel-3.0.3-0.1.rc3.i386.rpm
xen-libs-3.0.3-0.1.rc3.i386.rpm
The domain config file is:
kernel = "/boot/vmlinuz-2.6.18-1.2798.fc6xen"
ramdisk = "/boot/initrd-2.6.18-1.2798.fc6xen.img"
memory = 128
name = "dom1"
vif = [ '' ]
disk = [ 'phy:sdc2,sdc2,w', 'phy:sdc3,sdc3,w' ]
root = "/dev/sdc2 ro"
extra = "3"
where sdc2 contains a copy of (most of) dom0's filesystem (ie, etc, bin, dev, 
usr & etc) and sdc3 is a swap partition. The thing to note here is that both 
partitions are on an external, USB-connected hard-drive. Using the command "xm 
create -c /etc/xen/vm1" to create the guest domain generates the following 
output.
[snip]
Using IPI No-Shortcut mode
XENBUS: Device with no driver: device/vbd/2082
XENBUS: Device with no driver: device/vbd/2083
XENBUS: Device with no driver: device/vif/0
Freeing unused kernel memory: 180k freed
Write protecting the kernel read-only data: 356k
Red Hat nash version 5.1.19 starting
Mounting proc filesystem
Mounting sysfs filesystem
Creating /dev
Creating initial device nodes
Setting up hotplug.
Creating block device nodes.
Loading uhci-hcd.ko module
USB Universal Host Controller Interface driver v3.0
Loading ohci-hcd.ko module
Loading ehci-hcd.ko module
Loading jbd.ko module
Loading ext3.ko module
Loading scsi_mod.ko module
SCSI subsystem initialized
Loading sd_mod.ko module
Loading libata.ko module
Loading ata_piix.ko module
Loading usb-storage.ko module
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
Waiting for driver initialization.
stabilized: stat /proc/bus/usb/devices: No such file or directory
Creating root device.
Mounting root filesystem.
mount: could not find filesystem '/dev/root'
Setting up other filesystems.
Setting up new root fs
setuproot: moving /dev failed: No such file or directory
no fstab.sys, mounting internal defaults
setuproot: error mounting /proc: No such file or directory
setuproot: error mounting /sys: No such file or directory
Switching to new root and running init.
unmounting old /dev
unmounting old /proc
unmounting old /sys
switchroot: mount failed: No such file or directory
Kernel panic - not syncing: Attempted to kill init!
The following is from /var/log/xen/xend.log
[2006-12-12 15:08:13 xend.XendDomainInfo 3296] DEBUG (XendDomainInfo:190) 
XendDomainInfo.create(['vm', ['name', 'dom1'], ['memory', 128], ['vcpus', 1], 
['image', ['linux', ['kernel', '/boot/vmlinuz-2.6.18-1.2798.fc6xen'], 
['ramdisk', '/boot/initrd-2.6.18-1.2798.fc6xen.img'], ['root', '/dev/sdc2 ro'], 
['args', '3'], ['vncunused', 1], ['display', ':0.0'], ['xauthority', 
'/root/.xauth1cLwYu']]], ['device', ['vbd', ['uname', 'phy:sdc2'], ['dev', 
'sdc2'], ['mode', 'w']]], ['device', ['vbd', ['uname', 'phy:sdc3'], ['dev', 
'sdc3'], ['mode', 'w']]], ['device', ['vif']]])
[2006-12-12 15:08:13 xend.XendDomainInfo 3296] DEBUG (XendDomainInfo:296) 
parseConfig: config is ['vm', ['name', 'dom1'], ['memory', 128], ['vcpus', 1], 
['image', ['linux', ['kernel', '/boot/vmlinuz-2.6.18-1.2798.fc6xen'], 
['ramdisk', '/boot/initrd-2.6.18-1.2798.fc6xen.img'], ['root', '/dev/sdc2 ro'], 
['args', '3'], ['vncunused', 1], ['display', ':0.0'], ['xauthority', 
'/root/.xauth1cLwYu']]], ['device', ['vbd', ['uname', 'phy:sdc2'], ['dev', 
'sdc2'], ['mode', 'w']]], ['device', ['vbd', ['uname', 'phy:sdc3'], ['dev', 
'sdc3'], ['mode', 'w']]], ['device', ['vif']]]
[2006-12-12 15:08:13 xend.XendDomainInfo 3296] DEBUG (XendDomainInfo:395) 
parseConfig: result is {'shadow_memory': None, 'uuid': None, 'on_crash': None, 
'on_reboot': None, 'localtime': None, 'image': ['linux', ['kernel', 
'/boot/vmlinuz-2.6.18-1.2798.fc6xen'], ['ramdisk', 
'/boot/initrd-2.6.18-1.2798.fc6xen.img'], ['root', '/dev/sdc2 ro'], ['args', 
'3'], ['vncunused', 1], ['display', ':0.0'], ['xauthority', 
'/root/.xauth1cLwYu']], 'on_poweroff': None, 'bootloader_args': None, 'cpus': 
None, 'name': 'dom1', 'backend': [], 'vcpus': 1, 'cpu_weight': None, 
'features': None, 'vcpu_avail': None, 'memory': 128, 'device': [('vbd', ['vbd', 
['uname', 'phy:sdc2'], ['dev', 'sdc2'], ['mode', 'w']]), ('vbd', ['vbd', 
['uname', 'phy:sdc3'], ['dev', 'sdc3'], ['mode', 'w']]), ('vif', ['vif'])], 
'bootloader': None, 'cpu': None, 'maxmem': None}
[2006-12-12 15:08:13 xend.XendDomainInfo 3296] DEBUG (XendDomainInfo:1253) 
XendDomainInfo.construct: None
[2006-12-12 15:08:13 xend.XendDomainInfo 3296] DEBUG (XendDomainInfo:1285) 
XendDomainInfo.initDomain: 40 1.0
[2006-12-12 15:08:13 xend 3296] INFO (image:214) configuring linux guest
[2006-12-12 15:08:13 xend 3296] DEBUG (balloon:127) Balloon: 131612 KiB free; 
need 131072; done.
[2006-12-12 15:08:13 xend 3296] INFO (image:138) buildDomain os=linux dom=40 
vcpus=1
[2006-12-12 15:08:13 xend 3296] DEBUG (image:193) dom = 40
[2006-12-12 15:08:13 xend 3296] DEBUG (image:194) image = 
/boot/vmlinuz-2.6.18-1.2798.fc6xen
[2006-12-12 15:08:13 xend 3296] DEBUG (image:195) store_evtchn = 1
[2006-12-12 15:08:13 xend 3296] DEBUG (image:196) console_evtchn = 2
[2006-12-12 15:08:13 xend 3296] DEBUG (image:197) cmdline = root=/dev/sdc2 ro 3
[2006-12-12 15:08:13 xend 3296] DEBUG (image:198) ramdisk = 
/boot/initrd-2.6.18-1.2798.fc6xen.img
[2006-12-12 15:08:13 xend 3296] DEBUG (image:199) vcpus = 1
[2006-12-12 15:08:13 xend 3296] DEBUG (image:200) features =
[2006-12-12 15:08:13 xend 3296] DEBUG (DevController:110) DevController: 
writing {'backend-id': '0', 'virtual-device': '2082', 'device-type': 'disk', 
'state': '1', 'backend': '/local/domain/0/backend/vbd/40/2082'} to 
/local/domain/40/device/vbd/2082.
[2006-12-12 15:08:13 xend 3296] DEBUG (DevController:112) DevController: 
writing {'domain': 'dom1', 'frontend': '/local/domain/40/device/vbd/2082', 
'dev': 'sdc2', 'state': '1', 'params': 'sdc2', 'mode': 'w', 'online': '1', 
'frontend-id': '40', 'type': 'phy'} to /local/domain/0/backend/vbd/40/2082.
[2006-12-12 15:08:13 xend 3296] DEBUG (DevController:110) DevController: 
writing {'backend-id': '0', 'virtual-device': '2083', 'device-type': 'disk', 
'state': '1', 'backend': '/local/domain/0/backend/vbd/40/2083'} to 
/local/domain/40/device/vbd/2083.
[2006-12-12 15:08:13 xend 3296] DEBUG (DevController:112) DevController: 
writing {'domain': 'dom1', 'frontend': '/local/domain/40/device/vbd/2083', 
'dev': 'sdc3', 'state': '1', 'params': 'sdc3', 'mode': 'w', 'online': '1', 
'frontend-id': '40', 'type': 'phy'} to /local/domain/0/backend/vbd/40/2083.
[2006-12-12 15:08:13 xend 3296] DEBUG (DevController:110) DevController: 
writing {'backend-id': '0', 'mac': '00:16:3e:3c:a6:70', 'handle': '0', 'state': 
'1', 'backend': '/local/domain/0/backend/vif/40/0'} to 
/local/domain/40/device/vif/0.
[2006-12-12 15:08:13 xend 3296] DEBUG (DevController:112) DevController: 
writing {'domain': 'dom1', 'handle': '0', 'script': 
'/etc/xen/scripts/vif-bridge', 'state': '1', 'frontend': 
'/local/domain/40/device/vif/0', 'mac': '00:16:3e:3c:a6:70', 'online': '1', 
'frontend-id': '40'} to /local/domain/0/backend/vif/40/0.
[2006-12-12 15:08:13 xend.XendDomainInfo 3296] DEBUG (XendDomainInfo:712) 
Storing VM details: {'shadow_memory': '0', 'uuid': 
'8bf78bae-5041-b812-85a4-bc6f6cc20c56', 'on_reboot': 'restart', 'start_time': 
'1165901893.92', 'on_poweroff': 'destroy', 'name': 'dom1', 
'xend/restart_count': '0', 'vcpus': '1', 'vcpu_avail': '1', 'memory': '128', 
'on_crash': 'restart', 'image': "(linux (kernel 
/boot/vmlinuz-2.6.18-1.2798.fc6xen) (ramdisk 
/boot/initrd-2.6.18-1.2798.fc6xen.img) (root '/dev/sdc2 ro') (args 3) 
(vncunused 1) (display :0.0) (xauthority /root/.xauth1cLwYu))", 'maxmem': '128'}
[2006-12-12 15:08:13 xend.XendDomainInfo 3296] DEBUG (XendDomainInfo:747) 
Storing domain details: {'console/ring-ref': '119302', 'console/port': '2', 
'name': 'dom1', 'console/limit': '1048576', 'vm': 
'/vm/8bf78bae-5041-b812-85a4-bc6f6cc20c56', 'domid': '40', 
'cpu/0/availability': 'online', 'memory/target': '131072', 'store/ring-ref': 
'260170', 'store/port': '1'}
[2006-12-12 15:08:13 xend.XendDomainInfo 3296] DEBUG (XendDomainInfo:933) 
XendDomainInfo.handleShutdownWatch
[2006-12-12 15:08:14 xend 3296] DEBUG (DevController:143) Waiting for devices 
vif.
[2006-12-12 15:08:14 xend 3296] DEBUG (DevController:149) Waiting for 0.
[2006-12-12 15:08:14 xend 3296] DEBUG (DevController:464) hotplugStatusCallback 
/local/domain/0/backend/vif/40/0/hotplug-status.
[2006-12-12 15:08:14 xend 3296] DEBUG (DevController:464) hotplugStatusCallback 
/local/domain/0/backend/vif/40/0/hotplug-status.
[2006-12-12 15:08:14 xend 3296] DEBUG (DevController:478) hotplugStatusCallback 
1.
[2006-12-12 15:08:14 xend 3296] DEBUG (DevController:143) Waiting for devices 
usb.
[2006-12-12 15:08:14 xend 3296] DEBUG (DevController:143) Waiting for devices 
vbd.
[2006-12-12 15:08:14 xend 3296] DEBUG (DevController:149) Waiting for 2082.
[2006-12-12 15:08:14 xend 3296] DEBUG (DevController:464) hotplugStatusCallback 
/local/domain/0/backend/vbd/40/2082/hotplug-status.
[2006-12-12 15:08:15 xend 3296] DEBUG (DevController:464) hotplugStatusCallback 
/local/domain/0/backend/vbd/40/2082/hotplug-status.
[2006-12-12 15:08:15 xend 3296] DEBUG (DevController:478) hotplugStatusCallback 
1.
[2006-12-12 15:08:15 xend 3296] DEBUG (DevController:149) Waiting for 2083.
[2006-12-12 15:08:15 xend 3296] DEBUG (DevController:464) hotplugStatusCallback 
/local/domain/0/backend/vbd/40/2083/hotplug-status.
[2006-12-12 15:08:16 xend 3296] DEBUG (DevController:464) hotplugStatusCallback 
/local/domain/0/backend/vbd/40/2083/hotplug-status.
[2006-12-12 15:08:16 xend 3296] DEBUG (DevController:478) hotplugStatusCallback 
1.
[2006-12-12 15:08:16 xend 3296] DEBUG (DevController:143) Waiting for devices 
irq.
[2006-12-12 15:08:16 xend 3296] DEBUG (DevController:143) Waiting for devices 
pci.
[2006-12-12 15:08:16 xend 3296] DEBUG (DevController:143) Waiting for devices 
ioports.
[2006-12-12 15:08:16 xend 3296] DEBUG (DevController:143) Waiting for devices 
tap.
[2006-12-12 15:08:16 xend 3296] DEBUG (DevController:143) Waiting for devices 
vtpm.
[2006-12-12 15:08:16 xend 3296] INFO (XendDomain:370) Domain dom1 (40) unpaused.
[2006-12-12 15:08:20 xend.XendDomainInfo 3296] WARNING (XendDomainInfo:875) 
Domain has crashed: name=dom1 id=40.
Any and all help from the resident experts will be gratefully received as, on 
this occasion, Google has not been my friend.
Cheers,
Kevin

= = = = = = = = = = = = = = = = = = = = = = 
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>