Skip to contentSkip to conversation

Report Xen-3.1.1-rc1 make install does not install /etc/hotplug

DISCUSSION Teck Choon Giam 2 participants 6 messages Sep 25, 2007 – Oct 3, 2007

lore
Share & tools
lore
#0 lore raw

Hi,

This is my testing in a fresh CentOS 5.0 system. I downloaded the xen-3.1.1-rc1 aka xen-3.1-testing.hg and do my normal make world and make install.

# ls -al /etc/hotplug/xen-backend.agent
ls: /etc/hotplug/xen-backend.agent: No such file or directory
# ls -al /usr/src/xen-3.1.1-rc1-src/dist/install/etc/hotplug/
total 12
drwxr-xr-x 2 root root 4096 Sep 25 12:44 .
drwxr-xr-x 7 root root 4096 Sep 25 12:44 ..
-rwxr-xr-x 1 root root  513 Sep  2 08:31 xen-backend.agent

I just did the mkdir /etc/hotplug and copy the xen-backend.agent to it or else domainU can't be started and will show you error such as:

Error: Device 0 (vif) could not be connected. Hotplug scripts not working.
Error: Device 2049 (vbd) could not be connected. Hotplug scripts not working.

Thanks.

Kindest regards,
Giam Teck Choon

#1 lore raw

'make install' probably decided that your system uses udev rather than hotplug. This will be because 'udevinfo -V' on your system indicates a version greater than or equal to 059.

-- Keir

Quoted 30 lines · Teck Choon Giam

Hi,

This is my testing in a fresh CentOS 5.0 system. I downloaded the xen-3.1.1-rc1 aka xen-3.1-testing.hg and do my normal make world and make install.

# ls -al /etc/hotplug/xen-backend.agent
ls: /etc/hotplug/xen-backend.agent: No such file or directory
# ls -al /usr/src/xen-3.1.1-rc1-src/dist/install/etc/hotplug/
total 12
drwxr-xr-x 2 root root 4096 Sep 25 12:44 .
drwxr-xr-x 7 root root 4096 Sep 25 12:44 ..
-rwxr-xr-x 1 root root  513 Sep  2 08:31 xen-backend.agent

I just did the mkdir /etc/hotplug and copy the xen-backend.agent to it or else domainU can't be started and will show you error such as:

Error: Device 0 (vif) could not be connected. Hotplug scripts not working.
Error: Device 2049 (vbd) could not be connected. Hotplug scripts not working.

Thanks.

Kindest regards,
Giam Teck Choon

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw
Quoted 3 lines · Keir Fraser

'make install' probably decided that your system uses udev rather than hotplug. This will be because 'udevinfo -V' on your system indicates a version greater than or equal to 059.

Hi Keir,

Thanks for your information about udevinfo. Yes, you are right as this is the output shown in my test CentOS 5.0:

# udevinfo -V
udevinfo, version 095

and in CentOS 4.5 it is:

# udevinfo -V
udevinfo, version 039

So would this means that for any udevinfo version greater than 059, I have to manually create /etc/hotplug folder and copy xen-backend.agent into it manually for future releases for Xen i.e. version 3.1.1?

Quoted 2 lines

-- Keir

Thanks Keir for your prompt reply :)

Kindest regards,
Giam Teck Choon

Quoted 36 lines · Teck Choon Giam
Quoted 31 lines

Hi,

This is my testing in a fresh CentOS 5.0 system. I downloaded the xen-3.1.1-rc1 aka xen-3.1-testing.hg and do my normal make world and make install.

# ls -al /etc/hotplug/xen-backend.agent
ls: /etc/hotplug/xen-backend.agent: No such file or directory
# ls -al /usr/src/xen-3.1.1-rc1-src/dist/install/etc/hotplug/
total 12
drwxr-xr-x 2 root root 4096 Sep 25 12:44 .
drwxr-xr-x 7 root root 4096 Sep 25 12:44 ..
-rwxr-xr-x 1 root root  513 Sep  2 08:31 xen-backend.agent

I just did the mkdir /etc/hotplug and copy the xen-backend.agent to it or else domainU can't be started and will show you error such as:

Error: Device 0 (vif) could not be connected. Hotplug scripts not working.
Error: Device 2049 (vbd) could not be connected. Hotplug scripts not working.

Thanks.

Kindest regards,
Giam Teck Choon

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#3 lore raw
Quoted 5 lines · Teck Choon Giam

Thanks for your information about udevinfo. Yes, you are right as this is the output shown in my test CentOS 5.0:

# udevinfo -V
udevinfo, version 095
Quoted 7 lines

and in CentOS 4.5 it is:

# udevinfo -V
udevinfo, version 039

So would this means that for any udevinfo version greater than 059, I have to manually create /etc/hotplug folder and copy xen-backend.agent into it manually for future releases for Xen i.e. version 3.1.1?

The question is really why your system doesn't pick up the udev config files we install, and work properly with those. I wouldn't really expect it to need the hotplug config file.

-- Keir

#4 lore raw
Quoted 11 lines · Keir Fraser
Quoted 9 lines · Teck Choon Giam

Thanks for your information about udevinfo. Yes, you are right as this is the output shown in my test CentOS 5.0:

# udevinfo -V
udevinfo, version 095

and in CentOS 4.5 it is:

# udevinfo -V
udevinfo, version 039
Quoted 7 lines
Quoted 3 lines

So would this means that for any udevinfo version greater than 059, I have to manually create /etc/hotplug folder and copy xen-backend.agent into it manually for future releases for Xen i.e. version 3.1.1?

The question is really why your system doesn't pick up the udev config files we install, and work properly with those. I wouldn't really expect it to need the hotplug config file.

Maybe this is something to do with this bug?
http://bugs.centos.org/view.php?id=2141

It is uncommon to see error related to fd or cdrom especially if compare CentOS 4 and CentOS 5. In CentOS 4 using the exact same hardware and specs/configuration of the kernel I don't see the following errors:

# dmesg|grep -i error
hdd: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdd: packet command error: error=0x54 { AbortedCommand LastFailedSense=0x05 }
hdd: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdd: packet command error: error=0x54 { AbortedCommand LastFailedSense=0x05 }
hdd: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdd: packet command error: error=0x54 { AbortedCommand LastFailedSense=0x05 }

But in CentOS 5, the above errors are shown :/

Even doing yum update and updating kernels will see the above errors and even fd related error in one of my system... ...

I will try to append different boot option such as pci=noacpi etc and/or disable fd and/or cdrom the next time to the data center to see whether
xen-backend.rules in /etc/udev/rules.d/ works or not... ...

# ls -al /etc/udev/rules.d/
total 100
drwxr-xr-x 2 root root  4096 Sep 26 05:28 .
drwxr-xr-x 4 root root  4096 Sep 26 05:28 ..
-rw-r--r-- 1 root root   515 Mar 15  2007 05-udev-early.rules
-rw-r--r-- 1 root root 14344 Mar 15  2007 50-udev.rules
-rw-r--r-- 1 root root   471 Mar 15  2007 51-hotplug.rules
-rw-r--r-- 1 root root   143 Apr 11  2006 60-net.rules
-rw-r--r-- 1 root root  1088 Jan  7  2007 60-pcmcia.rules
-rw-r--r-- 1 root root   452 Mar 15  2007 60-raw.rules
-rw-r--r-- 1 root root    82 Mar 15  2007 90-hal.rules
-rw-r--r-- 1 root root   107 Mar 15  2007 95-pam-console.rules
-rw-r--r-- 1 root root  2319 Mar 28 13:48 bluetooth.rules
lrwxrwxrwx 1 root root    20 Sep 26 05:28 xen-backend.rules ->
../xen-backend.rules

Thanks Keir for the tip ;)

Kindest regards,
Giam Teck Choon

#5 lore raw
Quoted 4 lines

I will try to append different boot option such as pci=noacpi etc and/or disable fd and/or cdrom the next time to the data center to see whether
xen-backend.rules in /etc/udev/rules.d/ works or not... ...

Hi Keir,

Just FYI, I tested with boot option noacpi and udev can work with xen-backend.rules without xen hotplug configuration file. After that, I realized that the main cause of this is due to I never compile with CONFIG_INOTIFY... stupid me :p

Thanks.

Kindest regards,
Giam Teck Choon