DMA errors passing onboard USB controller to Guest domain
by Steven Haigh
Hi all,
I've got a P4 3Ghz doing 3 paravirtualised guests running various
software, however it seems that if I use pciback to pass the onboard
USB controller to a guest, after a while of use, the host starts
getting DMA read errors on the local hard disk.
The error I get is:
hda: DMA interrupt recovery
hda: lost interrupt
hda: dma_timer_expiry: dma status == 0x24
When this happens, all the xen guest domains and the host seem to
hang. Only a reboot via the reset button can bring the system back...
When I am not using the xen guest to stream media over the USB port
(it's a USB HDTV tuner), everything works fine.
I pass things to pciback using the following in /etc/rc.d/rc.local:
for SLOT in "0000:00:1d.0" "0000:00:1d.1" "0000:00:1d.2" "0000:00:1d.
3" "0000:00:1d.7" "0000:03:03.0" "0000:03:04.0" "0000:03:01.0"
"0000:03:01.1" "0000:03:01.2"; do
# Add a new slot to the PCI Backend's list
echo -n $SLOT > /sys/bus/pci/drivers/pciback/new_slot
# Now that the backend is watching for the slot, bind to it
echo -n $SLOT > /sys/bus/pci/drivers/pciback/bind
done
# lspci
00:00.0 Host bridge: Intel Corporation 82865G/PE/P DRAM Controller/
Host-Hub Interface (rev 02)
00:01.0 PCI bridge: Intel Corporation 82865G/PE/P PCI to AGP
Controller (rev 02)
00:03.0 PCI bridge: Intel Corporation 82865G/PE/P PCI to CSA Bridge
(rev 02)
00:1d.0 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB
UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB
UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB
UHCI Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB
UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R)
USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c2)
00:1f.0 ISA bridge: Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC
Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801EB/ER (ICH5/ICH5R) IDE
Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801EB/ER (ICH5/ICH5R) SMBus
Controller (rev 02)
01:00.0 VGA compatible controller: nVidia Corporation NV11DDR
[GeForce2 MX 100 DDR/200 DDR] (rev b2)
02:01.0 Ethernet controller: Intel Corporation 82547EI Gigabit
Ethernet Controller
03:00.0 SCSI storage controller: Advanced System Products, Inc ABP940-
U / ABP960-U (rev 03)
03:01.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
Controller (rev 50)
03:01.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
Controller (rev 50)
03:01.2 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 51)
03:03.0 Multimedia audio controller: Ensoniq ES1371 [AudioPCI-97]
(rev 06)
03:04.0 Network controller: Tiger Jet Network Inc. Tiger3XX Modem/
ISDN interface
# lspci -n
00:00.0 0600: 8086:2570 (rev 02)
00:01.0 0604: 8086:2571 (rev 02)
00:03.0 0604: 8086:2573 (rev 02)
00:1d.0 0c03: 8086:24d2 (rev 02)
00:1d.1 0c03: 8086:24d4 (rev 02)
00:1d.2 0c03: 8086:24d7 (rev 02)
00:1d.3 0c03: 8086:24de (rev 02)
00:1d.7 0c03: 8086:24dd (rev 02)
00:1e.0 0604: 8086:244e (rev c2)
00:1f.0 0601: 8086:24d0 (rev 02)
00:1f.1 0101: 8086:24db (rev 02)
00:1f.3 0c05: 8086:24d3 (rev 02)
01:00.0 0300: 10de:0111 (rev b2)
02:01.0 0200: 8086:1019
03:00.0 0100: 10cd:1300 (rev 03)
03:01.0 0c03: 1106:3038 (rev 50)
03:01.1 0c03: 1106:3038 (rev 50)
03:01.2 0c03: 1106:3104 (rev 51)
03:03.0 0401: 1274:1371 (rev 06)
03:04.0 0280: e159:0001
# cat /etc/xen/xend-pci-permissive.sxp
(unconstrained_dev_ids
( 'e159:0001' ### TDM400P for
domain: Asterisk
'1274:1371' ### PCI Sound card
for domain: Scanner
'1106:3038' '1106:3038' '1106:3104' ### USB2 card for
domain: Scanner
'8086:24d2' '8086:24d4' '8086:24d7' '8086:24de' '8086:24dd'
### Onboard USB controllers for domain: dvb
)
)
# cat /etc/xen/dvb
# Automatically generated xen config file
name = "dvb"
memory = "256"
disk = [ 'tap:aio:/home/virtuals/dvb/dvb.root.img,xvda,w', ]
vif = [ 'mac=00:16:3e:6c:d3:4b, bridge=xenbr0', ]
nographic=1
uuid = "d3d2eb8a-a2b0-e67c-d65a-52b768de25a6"
bootloader="/usr/bin/pygrub"
vcpus=2
pci = [ '0,1d,0' , '0,1d,1' , '0,01d,2' , '0,1d,3' , '0,1d,7' ]
on_reboot = 'restart'
on_crash = 'restart'
Anybody have any ideas on this?
--
Steven Haigh
Email: netwiz(a)crc.id.au
Web: http://www.crc.id.au
Phone: (03) 9017 0597 - 0412 935 897
17 years, 5 months
FC6 xen networking: child domain can't see outside and vice versa
by Nadeem Shahbaz
Hi List,
I have deployed xen in FC6 and setup one child domain. Child is
working fine but it is facing problem to access to outer world. It can
ping to dom0 but can't ping other host. Same dom0 can ping this child
domain but no other host can. xen is configured to use route mode. And
dom0 using 12.158.188.XXX and child domain using 12.158.190.XXX. child
IP has been routed to dom0. Child domain has set to use eth0 as
gateway. There is no firewall at dom0. Forwarding is also enabled at
dom0. Please advise to solve this problem.
Thanks,
17 years, 5 months
RE: [Fedora-xen] SELinux and /etc/xen/scripts
by Steve Brueckner
I think you'd be better off asking on one of the SELinux mailing lists.
They help a lot of people configure their SELinux policy to allow unusual
applications to run or to allow normal applications to run in unusual
configurations. Although the NSA mailing list is the "official" SELinux
list ( http://www.nsa.gov/selinux/info/subscribe.cfm ), you may have better
luck on the Fedora list (yes, they answer SELinux questions for other
distros): http://www.redhat.com/mailman/listinfo/fedora-selinux-list .
Steve Brueckner, ATC-NY
-----Original Message-----
From: Darryl Bond [mailto:dbond@nrggos.com.au]
Sent: Thursday, December 21, 2006 12:31 AM
To: fedora-xen(a)redhat.com
Subject: [Fedora-xen] SELinux and /etc/xen/scripts
I have set up a xen box with multiple network interfaces.
I found some documentation about using wrapper scripts to bridge from each
interface to the DomU clients.
(http://www.unix-tutorials.com/go.php?id=734)
This documentation says to place a wrapper script into /etc/xen/scripts to
call network-bridge for each interface. and change xend-config.sxp to suit.
The problem is that SELinux in enforcing mode prevents the new script from
running. Disabling selinux allows xend to start the multiple bridges.
How to enable the execution of the script with SELinux enforcing?
Regards
Darryl
____________________________________________________________________________
______
DISCLAIMER
The contents of this electronic message and any attachments are intended
only for the addressee and may contain legally privileged, personal,
sensitive or confidential information. If you are not the intended
addressee, and have received this email, any transmission, distribution,
downloading, printing or photocopying of the contents of this message or
attachments is strictly prohibited. Any legal privilege or confidentiality
attached to this message and attachments is not waived, lost or destroyed by
reason of delivery to any person other than intended addressee. If you have
received this message and are not the intended addressee you should notify
the sender by return email and destroy all copies of the message and any
attachments. Unless expressly attributed, the views expressed in this email
do not necessarily represent the views of the company.
--
Fedora-xen mailing list
Fedora-xen(a)redhat.com
https://www.redhat.com/mailman/listinfo/fedora-xen
17 years, 5 months
Re: [Fedora-xen] 4gb seg fixup, process on FC6 domU
by Asrai khn
On 12/20/06, Daniel P. Berrange <berrange(a)redhat.com> wrote:
>
> On Wed, Dec 20, 2006 at 07:19:06PM +0500, Asrai khn wrote:
> > Hi Dan,
> >
> >
> > Both of those are redundant/wrong for FC6.
> > >
> > >First, there is no separate /lib/tls anymore - FC6 ditched old pthreads
> > >implementation, and the new NPTL is the default in /lib. So renaming
> the
> > >empty /lib/tls directory is irrelevant.
> > >
> > >Second, the 'hwcap 0 nosegneg' stuff is automatically installed by the
> > >Xen kernel RPM, eg
> > >
> > > $ rpm -qf /etc/ld.so.conf.d/kernelcap-2.6.18-1.2868.fc6.conf
> > > kernel-xen-2.6.18-1.2868.fc6
> >
> >
> > When i do this on host machine gives me...
> >
> > rpm -qf /etc/ld.so.conf.d/kernelcap-2.6.18-1.2849.fc6.conf
> > kernel-xen-2.6.18-1.2849.fc6
> >
> > but gives nothing on guest, i don't have /etc/ld.so.conf.d/kernelcap-
> > 2.6.18-1.2849.fc6.conf on guests
>
> So, have you actually got a kernel-xen installed in your guest ? It
> sounds very much like you dont....
yes we don't have xen kernel on guest coz we are not using pygrub.
> I'm launching guest using xm create vms.cfg
> >
> > and vms.cfg is as under
> >
> > kernel = "/boot/vmlinuz-2.6.18-1.2849.fc6xen"
> > ramdisk = "/boot/initrd-2.6.18-1.2849.fc6xen-domU.img"
>
> The fact that you are explicitly listing kernels from Dom0 instead of
> using the regular pygrub bootloader, also suggests to me you've not
> got kernel-xen installed in your guest image
True, no pygrub
> memory = 128
> > name = "xxxx"
> > #vif = [ 'mac=00:16:3e:11:69:85, bridge=xenbr0' ]
> > vif = [ 'ip=66.xxx.xxx.xxx' ]
> > disk = ['tap:aio:/var/uml/vm3/root,sda1,w',
> > 'tap:aio:/var/uml/vm3/var,sda2,w', 'tap:aio:/var/uml/vm3/swap,sda3,w']
> > root = "/dev/sda1 ro"
> > on_reboot = 'restart'
> > on_crash = 'restart'
> >
> > So the kernel running on guest ... and i have also copied the xen kernel
> > modules /lib/modules/ on guest disk image by mounting it.
>
> If you're not using pygrub, then you'll at least need to make sure the
> correct 'kernelcap' file is installed in the guest, with file name
> matching the kernel version.
What do you mean by install 'kernelcap' file on guest?
you want me to create this file manually in the specific path and then echo
'something' to it?
Thanks. Askar
Dan.
> --
> |=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496
> -=|
> |=- Perl modules: http://search.cpan.org/~danberr/
> -=|
> |=- Projects: http://freshmeat.net/~danielpb/
> -=|
> |=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B
> 9505 -=|
>
17 years, 5 months
Re: virt-manager (with dbus) hangs
by Felix Schwarz
Lin Lancaster schrieb:
> Check some of the earlier posts. There is a problem with the /etc/hosts
> file not having the definition of the machine name for 127.0.0.1
> stopping the virt-manager from opening after installing the updates.
Do you mean the thread with the subject "error when trying to connect with virt-manager"?
The solution seems to be the same as in
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=216975.
Unfortunately, this does not resolve my issues.
[root@ws2 fs]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
::1 ws2.schwarz.lokal localhost localhost.localdomain
127.0.0.1 ws2.schwarz.lokal localhost localhost.localdomain
I suspect, it has something to do with GCONF/D-Bus:
[root@ws2 fs]# virt-manager &
[1] 14202
[root@ws2 fs]# ps u
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
(..)
root 13675 0.0 0.0 65264 1612 pts/5 S 21:32 0:00 bash
root 14202 19.0 0.6 316252 22648 pts/5 S 22:02 0:00 python
/usr/share/virt-manager/virt-manager.py
root 14204 10.5 0.1 87936 4972 pts/5 S 22:02 0:00 /usr/libexec/gconfd-2 8
root 14205 0.0 0.0 64684 952 pts/5 R+ 22:02 0:00 ps u
[root@ws2 fs]#
So gconf is started but after that, it waits for something. Can the D-bus be blocked by
some faulty application?
fs
17 years, 5 months
SELinux and /etc/xen/scripts
by Darryl Bond
I have set up a xen box with multiple network interfaces.
I found some documentation about using wrapper scripts to bridge from
each interface to the DomU clients.
(http://www.unix-tutorials.com/go.php?id=734)
This documentation says to place a wrapper script into /etc/xen/scripts
to call network-bridge for each interface. and change xend-config.sxp to
suit.
The problem is that SELinux in enforcing mode prevents the new script
from running. Disabling selinux allows xend to start the multiple bridges.
How to enable the execution of the script with SELinux enforcing?
Regards
Darryl
__________________________________________________________________________________
DISCLAIMER
The contents of this electronic message and any attachments are intended only
for the addressee and may contain legally privileged, personal, sensitive or
confidential information. If you are not the intended addressee, and have
received this email, any transmission, distribution, downloading, printing or
photocopying of the contents of this message or attachments is strictly
prohibited. Any legal privilege or confidentiality attached to this message and
attachments is not waived, lost or destroyed by reason of delivery to any
person other than intended addressee. If you have received this message and
are not the intended addressee you should notify the sender by return email and
destroy all copies of the message and any attachments. Unless expressly
attributed, the views expressed in this email do not necessarily represent the
views of the company.
17 years, 5 months
Moving existing machines to xen
by Bill Davidsen
I have several small machines which I would like to virtualize. I have
found that I can take a physical dump of the boot/root partition, copy
it to another machine, and boot it on the other machine. So the question
is, since I have hvm, can I do the same on xen, and just boot the
machine ready to go? Other than changing one line in the modules.conf
file to load the proper network driver, the original hardware is
compatible with the xen hvm machine.
--
bill davidsen <davidsen(a)tmr.com>
CTO TMR Associates, Inc
Doing interesting things with small computers since 1979
17 years, 5 months
FC6 and updates for xen?
by Pasi Kärkkäinen
Hi list!
xen-3.0.3-1.fc6.i386.rpm seems to be in updates-testing for FC6.
Are there other xen updates planned for FC6.. ie. is 3.0.4 (or even 3.0.5)
going to packaged for FC6?
Thanks.
-- Pasi
17 years, 5 months
cobbler problem virt_mem virt_file_size
by Mario Verbelen
Hi,
As you can see below there is a bug when you don't use the default
virt_ram virt_file_size
Even when I give it to the profile add the settings are correctly saved
(/var/lib/cobbler/profiles)
but when cobbler list you don't see your setting
when using koan he also doesn't see the setting
my problem is that i don't have 512MB free memory so it fails
cobbler profile add --name=fc6test --distro=fc6test --virt-file-size=3
--virt-ram=96
cobbler list
defaults
kernel options : append devfs=nomount ramdisk_size=16438 lang= vga=788
ksdevice=eth0
distro 1 : fc6test
kernel : /boot/vmlinuz-2.6.18-1.2798.fc6xen
initrd : /boot/initrd-2.6.18-1.2798.fc6xen.img
kernel options :
architecture : x86
ks metadata :
distro 2 : var_www_cobbler_localmirror_fc6_images_pxeboot
kernel : /var/www/cobbler/localmirror/fc6/images/pxeboot/vmlinuz
initrd : /var/www/cobbler/localmirror/fc6/images/pxeboot/initrd.img
kernel options :
architecture : x86
ks metadata :
profile 1 : fc6test
distro : fc6test
kickstart : /etc/cobbler/default.ks
kernel options :
ks metadata :
virt name : fc6test
virt file size :
virt ram :
virt paravirt :
profile 2 : var_www_cobbler_localmirror_fc6_images_pxeboot
distro : var_www_cobbler_localmirror_fc6_images_pxeboot
kickstart : /etc/cobbler/kickstart_fc5.ks
kernel options :
ks metadata : tree=http://127.0.0.1/localmirror/fc6
virt name : var_www_cobbler_localmirror_fc6_images_pxeboot
virt file size :
virt ram :
virt paravirt :
There are no configured System records.
koan --virt --profile=fc6test --server=localhost
- processing profile: fc6test
- fetching configuration for profile: fc6test
- url=http://localhost/cobbler/profiles/fc6test
- {'kickstart': 'http://127.0.0.1/cobbler/kickstarts/fc6test/ks.cfg',
'name': 'fc6test', 'virt_ram': '', 'virt_paravirt': '',
'kernel_options': 'lang ksdevice=eth0 vga=788 devfs=nomount
ramdisk_size=16438', 'virt_name': 'fc6test', 'virt_file_size': '',
'distro': 'fc6test', 'ks_meta': ''}
- fetching configuration for distro: fc6test
- url=http://localhost/cobbler/distros/fc6test
- {'kernel': '/boot/vmlinuz-2.6.18-1.2798.fc6xen', 'ks_meta': '',
'kernel_options': 'lang ksdevice=eth0 vga=788 devfs=nomount
ramdisk_size=16438', 'initrd': '/boot/initrd-2.6.18-1.2798.fc6xen.img',
'arch': 'x86', 'name': 'fc6test'}
- downloading initrd initrd-2.6.18-1.2798.fc6xen.img
to /tmp/initrd-2.6.18-1.2798.fc6xen.img
-
url=http://localhost/cobbler/images/fc6test/initrd-2.6.18-1.2798.fc6xen.img
- downloading kernel vmlinuz-2.6.18-1.2798.fc6xen
to /tmp/vmlinuz-2.6.18-1.2798.fc6xen
-
url=http://localhost/cobbler/images/fc6test/vmlinuz-2.6.18-1.2798.fc6xen
- kernel saved = /tmp/vmlinuz-2.6.18-1.2798.fc6xen
- initrd saved = /tmp/initrd-2.6.18-1.2798.fc6xen.img
- invalid RAM size specified, defaulting to 256 MB
- invalid file size specified, defaulting to 1 GB
libvir: Xen Daemon error : GET operation failed: No such domain 6
libvir: Xen Daemon error : POST operation failed: (xend.err 'Error
creating domain: I need 262144 KiB, but dom0_min_mem is 262144 and
shrinking to 262144 KiB would leave only -15940 KiB free.')
Failed to create domain fc6test
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/koan/app.py", line 96, in main
k.run()
File "/usr/lib/python2.4/site-packages/koan/app.py", line 154, in run
self.do_virt()
File "/usr/lib/python2.4/site-packages/koan/app.py", line 295, in
do_virt
return self.do_net_install("/tmp",after_download)
File "/usr/lib/python2.4/site-packages/koan/app.py", line 253, in
do_net_install
after_download(self, distro_data, profile_data)
File "/usr/lib/python2.4/site-packages/koan/app.py", line 294, in
after_download
self.do_virt_net_install(profile_data, distro_data)
File "/usr/lib/python2.4/site-packages/koan/app.py", line 574, in
do_virt_net_install
extra=kextra
File "/usr/lib/python2.4/site-packages/koan/virtcreate.py", line 196,
in start_paravirt_install
dom = conn.createLinux(cfgxml, 0)
File "/usr/lib/python2.4/site-packages/libvirt.py", line 249, in
createLinux
if ret is None:raise libvirtError('virDomainCreateLinux() failed')
libvirtError: virDomainCreateLinux() failed
cat /var/lib/cobbler/profiles
---
-
distro: &1 var_www_cobbler_localmirror_fc6_images_pxeboot
kernel_options: ''
kickstart: /etc/cobbler/kickstart_fc5.ks
ks_meta: 'tree=http://127.0.0.1/localmirror/fc6'
name: *1
virt_file_size: ''
virt_name: *1
virt_paravirt: ''
virt_ram: ''
-
distro: fc6test
kernel_options: ''
kickstart: /etc/cobbler/default.ks
ks_meta: ''
name: fc6test
virt_file_size: 3
virt_name: virtguest
virt_paravirt: True
virt_ram: 96
17 years, 5 months
virt-manager and CD drive?
by Tom Horsley
I was impressed that I could install a fully virtual fedora guest directly from the DVD
by pointing the virt-manager wizard at the dvd drive.
I wonder though, if I have a guest OS with multiple CDs needed to install,
will it let me swap CDs during the installation? Or do I need to arrange
for some different source to install from?
17 years, 5 months