Xen 3.0.4-1 and NIC driver
by Abhishek Gaurav
Hi,
I am trying to install Xen-3.0.4-1 and the 2.6.16-33 kernel that comes
with 3.0.4-1, on a Dell Optiplex 745 system. The manual installation
(make world install) goes fine, however, on reboot the eth0 couldn't be
brought up. It complains with the following message:
Error for wireless request "Set Encode" (8B2A) :
SET failed on device eth0 ; No such device.
SIOCSIFADDR: No such device
eth0: unknown interface: No such device
eth0: unknown interface: No such device
The lspci shows:
03:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5754
Gigabit Ethernet PCI Express (rev 02)
I tried to upgrade the tg3 driver, but the driver wouldn't compile with
the 2.6.16.33-xen kernel. It does compile with the 2.6.19-1.2895.fc6 kernel.
Does anybody have any experience with this ?
Thanks,
Abhishek.
17 years, 3 months
Re: virt-manager andd CD isos
by Daniel P. Berrange
On Tue, Mar 06, 2007 at 10:22:11AM +0000, William John Murray wrote:
> Hello there,
> I am trying to install Scientific Linux as a virtual system
> under FC7-T2. There are only multi-CD isos and if I try to install
> from the (RAM) versions of those the installation proceeds to the
> end of the first CD, but then asks for the second one.
> Does anyone know how I can give it the 2nd?
There is no good way to do this because Xen does not provide any formal
API for virt-manager to call to do a CDROM media change :-(
There is a really *horrible* hack you can use to trigger a media change
by writing into a special part of the xen virtual filesystem (aka xenstore)
however I won't recommend this unless you're brave. Assuming you are brave,
it goes something like this...
Figure out what virtual device backend number is associated with
the CDROM device in that particular guest. To do this run the tool
xenstore-ls /local/domain/0/backend/vbd
There will be many entries here, 1 per guest, per virtual disk. You need to
find the number associated with the (guest, device) tuple you want to change.
In this example I'm only running a single guest, with 2 disks so it is
reasonably simple - i see:
# xenstore-ls /local/domain/0/backend/vbd
17 = ""
768 = ""
domain = "rhel4x86_64"
frontend = "/local/domain/17/device/vbd/768"
uuid = "f84acd8a-d236-c279-e502-e8823767f007"
dev = "hda"
state = "2"
params = "/var/lib/xen/images/rhel4x86_64.img"
mode = "w"
online = "1"
frontend-id = "17"
type = "file"
node = "/dev/loop1"
physical-device = "7:1"
hotplug-status = "connected"
5632 = ""
domain = "rhel4x86_64"
frontend = "/local/domain/17/device/vbd/5632"
uuid = "fbed1ba7-7f82-3466-0a14-4bb7d82bd578"
dev = "hdc"
state = "2"
params = "/var/lib/xen/images/disk1.iso"
mode = "r"
online = "1"
frontend-id = "17"
type = "file"
node = "/dev/loop0"
physical-device = "7:0"
hotplug-status = "connected"
And so in this example, the VBD backend number corresponding to my guest
'rhel4x86_64' and the 'hdc' device is '5632'.
Now before continuing make absolutely 100% sure the guest OS has unmounted
the CDROM device, or bad stuff will happen.
Now we need to update the 'params' field to specify a new filename for
this VDB. This can be done with xenstore-write
xenstore-write /local/domain/0/backend/vbd/5632/params /var/lib/xen/images/disk2.iso
Wait a few seconds and QEMU should notice that the 'params' field was
updated and thus attempt a media change in the virtual CDROM - if the
guest OS was still accessing the CDROM device this will likely fail.
Be very careful not to overwrite the wrong VDB device, and don't change
any of the other fields even if you think you want to. In addition this
*only* works for fullyvirtualized guests with CDROM devices. It is not
possible to change regular harddisk media, or to change paravirt devices
with this technique. There is near zero error reporting or checking, so
if this doesn't work you get to keep both halves - or more likely you
don't get to keep either half :-)
BTW, any Xen related questions for Fedora can also be sent to the fedora-xen
mailing lists where there's a large community of knowledge Xen folks to help
out.
Regards,
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, 3 months
install guest fc6, stop copying files
by Xin Chen
Hi all,
I got a problem here:
I installed Fodera 6 with Xen 3 as domain 0.
Then I was trying to install a guest system which is also Fodera 6, I
use vir-install and text installation,
step by step, everything is good until ready to copy files, it stopped!
I check /var/log/xen/ *.log , nothing there.
did anyone have the same problem?
please help.
thanks in advance!
xin
17 years, 3 months
RE: [Fedora-xen] Error creating domain in RHEL5 dom0_min_mem
by Ronald Warsow
hallo
i have had that problem also.
my system is equipped with only 512 MB RAM, but i got it fixed:
under /etc/xen look in the file *xen-config.sxp*
at line 124 you see (domain-min-mem 256)
i adjusted it to 128 and booted *without* the bootparameter dom0_mem=...
my script, to save some keying:
#!/bin/bash
virt-install -n xen1 -r 256 --vcpus=1 -f ./xen.img -s 3.5 --nographics
-p -d -l "http://sunsite.mff.cuni.cz/pub/fedora/test/6.91/Prime/i386/os/"
adjust it to your needs: see virt-install --help
as far i can remember: this script will ask for the mirror anyway.
'don't know why.
minor problem !
--
ronald
17 years, 3 months
When starting a Xen Domain U - import grub.fsys gives "ImportError: No module named fsys"
by Mark Ryden
Hello,
I had installed a domain called XenGuest (Fedora Core 6) on i386
machine with the gnome virtual manager applet.
After installation finished succesfully and running :
xm create -c /etc/xen/XenGuest
I get the following error:
Using config file "/etc/xen/XenGuest".
Traceback (most recent call last):
File "/usr/bin/pygrub", line 26, in ?
import grub.fsys
ImportError: No module named fsys
Is some python module is missing ?
"rpm -q python" returns:
python-2.4.4-1.fc6
My machine is FC6 on i386.
"uname -a" returns:
Linux myhost 2.6.19-1.2911.6.4.fc6xen #1 SMP Sat Feb 24 14:57:17
EST 2007 i686 i686 i386 GNU/Linux
Any ideas?
Mark
17 years, 3 months
virt-install error on every restart
by suyash jape
Hi all
I have installed fedorra dcore 6 xen.
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.18-1.2798.fc6xen #1 SMP Mon Oct 16 15:11:19
EDT 2006 i686 i686 i386 GNU/Linux
[root@localhost ~]# rpm -qa|grep xen
kernel-xen-2.6.18-1.2798.fc6
xen-3.0.3-0.1.rc3
xen-libs-3.0.3-0.1.rc3
[root@localhost ~]# rpm -qa|grep libvirt
libvirt-0.1.7-2
libvirt-python-0.1.7-2
virt-install works the first time i boot...but on restart it gives the
following error:
[root@localhost ~]# virt-install
Traceback (most recent call last):
File "/usr/sbin/virt-install", line 396, in ?
main()
File "/usr/sbin/virt-install", line 329, in main
guest = virtinst.ParaVirtGuest()
File "/usr/lib/python2.4/site-packages/virtinst/ParaVirtGuest.py", line
37, in __init__
XenGuest.XenGuest.__init__(self, hypervisorURI=hypervisorURI)
File "/usr/lib/python2.4/site-packages/virtinst/XenGuest.py", line 174, in
__i nit__
self.conn = libvirt.open(hypervisorURI)
File "/usr/lib/python2.4/site-packages/libvirt.py", line 39, in open
if ret is None:raise libvirtError('virConnectOpen() failed')
libvirt.libvirtError: virConnectOpen() failed
I removed xen and reinstalled it with yum. Again it works the first time but
gives error on restart.
Any ideas as to what may be the problem?
Thanks.
17 years, 3 months
performance and resource monitoring and statistics
by suyash jape
Hi,
I am planning to monitor performance metrics of Dom0 and DomUs (CPU
,Memory,Disk I/O ,Netowrk I/O) .....and define benmchmarks/thresholds to
allocate resources accoring to the performance metrics.I am using xm top and
Xenmon to collect these metrics.
1)Any suggestions as to how i should go about defing these metrics.? The
metrics given out by Xenmon are a bit unclear.Could anyone give some link
which describes these parameters.
2)And are there performance thresholds defined for virtualized enviroment
like Xen.
Any updates on the follwoing post would be helpful.
Thanks..........
Henning Sprang wrote:
> Hi,
> Apart from normal service availability and quality monitoring and
> measuring of ressources on a system as it would be done for any normal
> machine, I think about additionally monitoring Xen-specific data and
> creating one/some Nagios plugins for this.
>
> So one idea is that I want to know when cpu, net and disk I/O on a Xen
> host are saturated, which could, depending on specific needs and
> SLA's, make it necessary to add ressources to the host or migrate VM's
> to other hosts on which these ressources aren't saturatd yet, or
> aother measures.
>
> While, as far as I understand it, CPU scheduling and traffic shaping
> are highly useful to set rules to allocate a given share of the
> available ressources to specific vm's, and set minimal and maximal
> amounts of these shares, in some cases it might be desirable to get
> more information, and be warned.
>
> As a result of this, I started to analyze (with a nagios plugin)
> different sources of xen runtime data, beginning with the output of
> xentop -b -i 2, and will mgo on to look deeper into libxenstats,
> XenMon and xenoprof(of which I am not yet sure if it's good for
> analyzing production runtime data, or if it's more the kind of
> profiling one does in non-production environments).
> Getting CPU share and seeing when the CPU is fully loaded is no great
> deal.
> Getting useful information of net and disk I/O saturation requires a
> lot of math and measuring (what's the maximum possible net/disk I/O on
> that machine, under the given configuration? ) - they both are
> depending on overall hardware, cpu scheduling and a lot of other
> factors - I am really not sure if this is worth the trouble.
>
> I am at the same time working on implementations and looking at
> information and publications on that topic, like multiple papers on
> XenMon available, and so on.
>
> Did anybody else think about this, or anybody has comments if this is
> the right direction to think or better/concrete data to collect and
> look at?
>
> Henning
>
17 years, 3 months
Error creating domain in RHEL5 dom0_min_mem
by Deependra Singh Shekhawat
Hello,
I am trying to install RHEL5 beta2 as a virtual machine in RHEL5 beta2. But
all the time I get this error:
Starting install...
libvir: Xen Daemon error : GET operation failed: No such domain rhel5b2-pv1
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 235124 KiB free.')
Failed to create domain rhel5b2-pv1
Traceback (most recent call last):
File "/usr/sbin/virt-install", line 406, in ?
main()
File "/usr/sbin/virt-install", line 370, in main
dom = guest.start_install(conscb)
File "/usr/lib/python2.4/site-packages/virtinst/ParaVirtGuest.py", line
202, in start_install
return XenGuest.XenGuest.start_install(self, consolecb)
File "/usr/lib/python2.4/site-packages/virtinst/XenGuest.py", line 355, in
start_install
self.domain = self.conn.createLinux(cxml, 0)
File "/usr/lib/python2.4/site-packages/libvirt.py", line 249, in
createLinux
if ret is None:raise libvirtError('virDomainCreateLinux() failed')
libvirt.libvirtError: virDomainCreateLinux() failed
Note that I have tried both GUI and command line but all the time the same
error.
Here is my grub.conf file:
title Red Hat Enterprise Linux Client (2.6.18-1.2747.el5xen)
root (hd0,5)
kernel /boot/xen.gz-2.6.18-1.2747.el5 dom0_mem=256M
module /boot/vmlinuz-2.6.18-1.2747.el5xen ro root=LABEL=/ rhgb quiet
module /boot/initrd-2.6.18-1.2747.el5xen.img
Note that I have only 512 MB RAM available.
Please help.
Regards
Deependra Shekhawat
17 years, 3 months