xend fails to connect guest to dom0 block device or loopback file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xen-3.2 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
xen-tools (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I have been having troubles with Xen simply being unable to run paravirt domUs since I built a gutsy server a while ago. When booting a domU it would bomb out to the initrd busybox shell because it could not find its root device. (The same config works fine on an Ubuntu 7.04 Xen server.) Used dist-upgrade to track hardy, trying xen-3.1 and then xen-3.2 packges. After a while I blamed the problems on EVMS because I was using EVMS volumes for the root and swap devices for domUs. However then after trying the loopback file method I couldn't get the domU to start either. The error message is the same that is posted in another bug report:
https:/
So, today I put in a new system disk into this problem server and installed from scratch using hardy i386 alpha 2008-03-16 CD. Then apt-get update to current (2008-03-23) packages. Installed ubuntu-xen-server, rebooted to Xen dom0 kernel. System is an oldPentium 4, no HVM, no x86_64; single IDE 80Gb hard drive partitioned by Ubuntu installer.
Linux dom0 2.6.24-12-xen #1 SMP Thu Mar 13 01:23:51 UTC 2008 i686 GNU/Linux
Built a test domU system:
sudo xen-create-image --verbose --accounts --cache --image=full --size=4Gb --swap=1024Mb --memory=256Mb --dhcp --dir=/xen --hostname=domU
Trying to start it up gives this error:
sysadmin@dom0:~$ sudo xm create -c /etc/xen/domU.cfg
Using config file "/etc/xen/
Error: Device 2049 (vbd) could not be connected. losetup /dev/loop0 /xen/domains/
However Xen seems to be fibbing:
sysadmin@dom0:~$ sudo losetup -a
/dev/loop0: [fe00]:1015812 (/xen/domains/
/dev/loop1: [fe00]:1015813 (/xen/domains/
With the default xen-tools.conf the device names are sdX, I tried changing them to xvdX but this did not fix the problem. Of course before trying an 'xm create' again I ran
sudo losetup -d /dev/loop0
sudo losetup -d /dev/loop1
So losetup works, and I can loopback-mount the disk.img filesystem onto /mnt without any problems.
The following are xen-related entries from /var/log/syslog at the time I was trying to start this domU.
Mar 23 17:30:59 dom0 logger: /etc/xen/
Mar 23 17:30:59 dom0 logger: /etc/xen/
Mar 23 17:30:59 dom0 logger: /etc/xen/
Mar 23 17:31:00 dom0 logger: /etc/xen/
Mar 23 17:31:00 dom0 logger: /etc/xen/
Mar 23 17:31:00 dom0 logger: /etc/xen/
Mar 23 17:31:00 dom0 logger: /etc/xen/
Mar 23 17:31:01 dom0 logger: /etc/xen/
Mar 23 17:31:01 dom0 logger: /etc/xen/
Mar 23 17:31:01 dom0 logger: /etc/xen/
Mar 23 17:31:01 dom0 logger: /etc/xen/
Mar 23 17:31:02 dom0 logger: /etc/xen/
Mar 23 17:31:02 dom0 logger: /etc/xen/
Mar 23 17:31:02 dom0 logger: /etc/xen/
Mar 23 17:31:02 dom0 logger: /etc/xen/
Mar 23 17:31:03 dom0 logger: /etc/xen/
Mar 23 17:31:03 dom0 logger: /etc/xen/
Mar 23 17:31:03 dom0 logger: /etc/xen/
Mar 23 17:31:03 dom0 logger: /etc/xen/
/var/log/
xenstore-read: couldn't read path backend/
xenstore-read: couldn't read path backend/
And the last section of /var/log/
[2008-03-23 17:31:00 4665] DEBUG (DevController:150) Waiting for devices vif.
[2008-03-23 17:31:00 4665] DEBUG (DevController:155) Waiting for 0.
[2008-03-23 17:31:00 4665] DEBUG (DevController:594) hotplugStatusCa
[2008-03-23 17:31:00 4665] DEBUG (DevController:594) hotplugStatusCa
[2008-03-23 17:31:00 4665] DEBUG (DevController:608) hotplugStatusCa
[2008-03-23 17:31:00 4665] DEBUG (DevController:150) Waiting for devices vbd.
[2008-03-23 17:31:00 4665] DEBUG (DevController:155) Waiting for 2049.
[2008-03-23 17:31:01 4665] DEBUG (DevController:594) hotplugStatusCa
[2008-03-23 17:31:01 4665] DEBUG (DevController:608) hotplugStatusCa
[2008-03-23 17:31:01 4665] DEBUG (XendDomainInfo
[2008-03-23 17:31:01 4665] DEBUG (XendDomainInfo
[2008-03-23 17:31:01 4665] DEBUG (XendDomainInfo
[2008-03-23 17:31:01 4665] DEBUG (XendDomainInfo
[2008-03-23 17:31:01 4665] DEBUG (XendDomainInfo
[2008-03-23 17:31:01 4665] DEBUG (XendDomainInfo
[2008-03-23 17:31:01 4665] DEBUG (XendDomainInfo
[2008-03-23 17:31:01 4665] DEBUG (XendDomainInfo
[2008-03-23 17:31:01 4665] DEBUG (XendDomainInfo
[2008-03-23 17:31:01 4665] DEBUG (XendDomainInfo
[2008-03-23 17:31:01 4665] DEBUG (XendDomainInfo
[2008-03-23 17:31:01 4665] DEBUG (XendDomainInfo
So I'm not really sure where my problem is. xenstore? /etc/xen/
Can someone please help. It is driving me seriously up the wall that I cannot build a working Xen server with Ubuntu.
Andrew S.
Did you try tap:aio instead of file: in the guest config file?
Also, there have been a number of problems fixed, but a couple lingering issues with the latest packages.
see: /bugs.launchpad .net/ubuntu/ +source/ xen-3.2
https:/
also, make sure that the modules (loaded by /etc/init.d/xend are being loaded properly) /bugs.launchpad .net/ubuntu/ +source/ xen-3.2/ +bug/199533
for some reference see:
https:/