BlueMoon
2009-Dec-15 02:38 UTC
[Xen-users] Device *** (***) could not be connected. Hotplug scripts not working.
Hi,
This is a Xen newbie.
I have compiled and installed Xen-3.4.1.
And Dom0 is OK, but when I try to create the DomU, I encouter these message:
Device 0 (vif) could not be connected. Hotplug scripts not working.
I commented the vif in my configure file, but I encouter another one:
Device 2049(vbd) could not be connected. Hotplug scripts not working.
Can anybody give me a hand?
Thanks
Here are some commanded I used:
could not be connected. Hotplug scripts not working.
brctl show
bridge name bridge id STP enabled interfaces
eth1 8000.001e680f2ce7 no peth1
mkinitrd -v -f --builtin=ext3 --builtin=ide-generic --builtin=ide-disk
--builtin=usb-storage --builtin=ata_piix --builtin=mptbase --builtin=mptsas
--builtin=ehci-hcd --builtin=ohci-hcd --builtin=uhci-hcd --with=ide-disk
--with=sd_mod --with=ide-generic --with=ext3 --with=scsi_mod
/boot/initrd-2.6.18.8-xenU.img 2.6.18.8-xenU
mkdir /var/lib/xen/images
rm -rf /var/lib/xen/guestos0001.img
dd if=/dev/zero of=/var/lib/xen/guestos0001.img bs=1k seek=2048k count=1
mkfs -t ext3 /var/lib/xen/guestos0001.img
mount -o loop /var/lib/xen/guestos0001.img /mnt
cp -ax /{root,dev,var,etc,usr,bin,sbin,lib} /mnt
mkdir /mnt/{proc,sys,home,tmp}
umount /mnt
mkdir /etc/xen/vm
cp /etc/xen/xmexample.hvm /etc/xen/vm/xmguestos.hvm
vi /etc/xen/vm/xmguestos.hvm
name = "guestos0001"
memory = "512"
vcpus=1
on_reboot = ''destroy''
on_crash = ''destroy''
disk = [''file:/var/lib/xen/images/guestos0001.img,sda1,w'']
#vif = [ ''bridge=xenbr0'', ]
xm create -c /etc/xen/vm/xmguestos.hvm vmid=1
_________________________________________________________________
MSN十年回馈,每位用户可免费获得价值25元的卡巴斯基反病毒软件2010激活码,快来领取!
http://kaba.msn.com.cn/?k=1
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
Fajar A. Nugraha
2009-Dec-15 03:13 UTC
Re: [Xen-users] Device *** (***) could not be connected. Hotplug scripts not working.
2009/12/15 BlueMoon <moonblue333@hotmail.com>:> Hi, > This is a Xen newbie. > I have compiled and installed Xen-3.4.1. > And Dom0 is OK, but when I try to create the DomU, I encouter these > message: > Device 0 (vif) could not be connected. Hotplug scripts not working. > I commented the vif in my configure file, but I encouter another one: > Device 2049(vbd) could not be connected. Hotplug scripts not working. > Can anybody give me a hand?Do you have udev running? -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
BlueMoon
2009-Dec-15 03:41 UTC
RE: [Xen-users] Device *** (***) could not be connected. Hotplug scripts not working.
Hi, Xener:
I have compiled and installed Xen, even I still can NOT create DomU. I
would like to share the total process I done:
(OS: CentOS-5.4-i386-bin-DVD.iso) BT
http://mirrors.163.com/centos/5.4/isos/i386/CentOS-5.4-i386-bin-DVD.torrent
centos_install_from_usb_boot
mode: graphical
language: english
keyboard: us
method: hard_driver
partition: /dev/sdb1 (usb)
drivers: sda
MUST: remove all partitions on selected drivers and create default layout
MUST: dont choose sdb while select the driver(s) to use for this installation
MUST: review and modify partitioning layout
MUST: configure advanced boot loader options
MUST: change Driver Order and /dev/sda first
MUST: install boot loader record on /dev/sda Master Boot Record (MBR)
network: eth0 & eth1; dhcp; disable-ipv6;
region: shanghai
password: yourpasswordforcentos
//restart
firewall: disable
selinux: disable
wget
http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
rpm -Uvh rpmforge-release-0.3.6-1.el5.rf.i386.rpm
yum install mercurial
yum install gcc
yum install gcc-c++
yum install make
yum install binutils
yum install zlib-devel
yum install python-devel
yum install ncurses-devel
yum install openssl-devel
yum install libX11-devel
yum install bridge-utils
yum install iproute
yum install dev86
yum install texinfo
yum install tetex-latex
yum install gperf
yum install glib
wget http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev-140.tar.gz
tar -xzvf udev-140.tar.gz
cd udev-140
configure
make
make install
cd ..
#wget
http://bits.xensource.com/oss-xen/release/3.4.1/linux-2.6.18-xen-3.4.2.tar.gz
wget http://bits.xensource.com/oss-xen/release/3.4.1/xen-3.4.2.tar.gz
tar -xzvf xen-3.4.2.tar.gz
cd xen-3.4.2
cd tools/check/
./chk build
./chk install
cd ../../
make world
(for all options, please directly type enter)
make install
depmod 2.6.18.8-xen
mkinitrd -v -f /boot/initrd-2.6.18.8-xen.img 2.6.18.8-xen
vi /boot/grub/grub.conf
(to be append like this, make sure: uname -r)
default 3
title Xen 3.4.2 / XenLinux 2.6.18
root (hd0,0)
kernel /xen-3.4.2.gz
module /vmlinuz-2.6.18.8-xen ro root=/dev/VolGroup00/LogVol00 rhgb quiet
module /initrd-2.6.18.8-xen.img
iptables -L
iptables -F
vi /etc/xen/xend-config.sxp (to enable xen-api base on README under same
folder)
(xen-api-server ((9363 none)))
(xend-http-server yes)
(xend-port 8000)
service xend restart
service xendomains restart
service libvirtd restart
HERE: compiled and installed successfully. but, domU can not be created. Oh my
god.
Can ANYBODY share the compiling and intallation scripts (step by step)?
> Date: Tue, 15 Dec 2009 10:13:53 +0700
> Subject: Re: [Xen-users] Device *** (***) could not be connected. Hotplug
scripts not working.
> From: fajar@fajar.net
> To: moonblue333@hotmail.com
> CC: xen-users@lists.xensource.com
>
> 2009/12/15 BlueMoon <moonblue333@hotmail.com>:
> > Hi,
> > This is a Xen newbie.
> > I have compiled and installed Xen-3.4.1.
> > And Dom0 is OK, but when I try to create the DomU, I encouter
these
> > message:
> > Device 0 (vif) could not be connected. Hotplug scripts not
working.
> > I commented the vif in my configure file, but I encouter another
one:
> > Device 2049(vbd) could not be connected. Hotplug scripts not
working.
> > Can anybody give me a hand?
>
> Do you have udev running?
>
> --
> Fajar
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@lists.xensource.com
> http://lists.xensource.com/xen-users
_________________________________________________________________
约会说不清地方?来试试微软地图最新msn互动功能!
http://ditu.live.com/?form=TL&swm=1
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users