Dom0 kernels
by M A Young
I have built a new set of kernel packages based on fedora rawhide
kernels and the xen/dom0/hackery branch of Jeremy's git repository
( http://git.kernel.org/?p=linux/kernel/git/jeremy/xen.git;a=summary ).
This batch (kernel-2.6.29-0.114.2.6.rc6.fc11) is available via the koji
build system at
http://koji.fedoraproject.org/koji/taskinfo?taskID=1149500
These are really for development and debugging purposes only, as I am
still having problems getting them to boot, but others have reported more
success at getting kernels based on this git repository working, so you
might be lucky.
Note to install these packages on Fedora 10 you will need to have
rpm-4.6.0-1.fc10 installed (currently in updates-testing but it should be
available in updates soon) because of the change to SHA-256 file digest
hashing in recent Fedora 11 builds.
Michael Young
13 years, 6 months
Success with Fedora 10 Xen pv_ops 2.6.29-rc8 dom0
by Pasi Kärkkäinen
Hello!
I've used a lot of time trying to get my custom Xen pv_ops dom0 kernel working with
virt-install and/or virt-manager on Fedora 10, and now it seems I got things
working.
If you want to play with this you need:
1) New enough pv_ops dom0 kernel (2.6.29-rc8 or newer) so it has /sys/hypervisor support included
- Compile with CONFIG_HIGHPTE=n since it seems to be broken still
2) libvirt 0.6.1 and related packages from Fedora 10 updates-testing
In addition to those I'm using Xen 3.3.1-9 packages from rawhide/F11 rebuilt for F10.
With the older Fedora 10 libvirt packages libvirtd was crashing often for me, and
I had some other issues with virt-install console window not opening but stalling etc..
Today I was able to run the following on Fedora 10 32bit PAE pv_ops dom0:
- CentOS 5.3 32bit PAE PV domU
- Fedora 10 32bit PAE PV domU
- Use virt-install to install Fedora 10 32bit PAE PV domU (using custom kickstart
to force PAE kernel installation to avoid the anaconda BUG which installs
wrong non-PAE kernel as a default).
Fedora 11 (rawhide) installation most probably works too.
I'm using LVM volumes for domU disks (tap:aio is not yet supported by pv_ops
dom0 kernel).
Network seems to work after running "ifdown eth0 && ifup eth0"
on the guest.. dunno why that's needed. That's something to figure out later:)
Graphical domU console works with virt-viewer and virt-install during installation.
Issues:
- virt-manager complains about default network (virbr0) being inactive and
asks if I want to start it. If I click Yes, then I get error: "libvirtError: cannot create bridge 'virbr0': File exists"
virbr0 works just fine with virt-install. So dunno what's the problem with that..
have to look into that later.
Thanks to everyone involved for helping me with this!
-- Pasi
14 years, 2 months
Configuring Xen on FC10
by Samir Selman
Hi,
I am working at Stanford on a research project and I have installed Fedora
Core 10. Can someone help me on what are the steps to configure Xen on FC10.
Thanks
14 years, 2 months
Live migration fails depending on on the kernel Version of DomU
by Harald Schwier
Hi,
I'm running a two node cluster xen-Cluster with CentOS 5.3. I'm using
gfs2 for the cluster filesystem and kernel 2.6.18-128.1.6.el5xen #1 SMP
for the Dom0 kernel.
Live migration works fine as long as the DomU guest is running CentOS 5.3
or SLC 4.7 with kernel version 2.6.9-55.EL.cern. But if the SLC 4.7 guest is
running the current 2.6.9-78.0.17.EL.cern kernel, the migration freezes
without
an error message.
Any idea why the DomU kernel has an impact on live migration? Is there a
possibility to migrate a DomU guest running kernel 2.6.9-78.0.17.EL.cern?
Thanks in advance,
Harald
Migration from hosta to hostb
hosta /var/log/xen/xend.log
....
[2009-04-29 09:05:14 xend 5219] DEBUG (DevController:510)
hotplugStatusCallback 1.
[2009-04-29 09:05:14 xend 5219] DEBUG (DevController:154) Waiting for
devices usb.
[2009-04-29 09:05:14 xend 5219] DEBUG (DevController:154) Waiting for
devices vbd.
[2009-04-29 09:05:14 xend 5219] DEBUG (DevController:160) Waiting for 768.
[2009-04-29 09:05:14 xend 5219] DEBUG (DevController:496)
hotplugStatusCallback /local/domain/0/backend/vbd/17/768/hotplug-status.
[2009-04-29 09:05:14 xend 5219] DEBUG (DevController:496)
hotplugStatusCallback /local/domain/0/backend/vbd/17/768/hotplug-status.
[2009-04-29 09:05:14 xend 5219] DEBUG (DevController:510)
hotplugStatusCallback 1.
[2009-04-29 09:05:14 xend 5219] DEBUG (DevController:160) Waiting for 5632.
[2009-04-29 09:05:14 xend 5219] DEBUG (DevController:496)
hotplugStatusCallback /local/domain/0/backend/vbd/17/5632/hotplug-status.
[2009-04-29 09:05:14 xend 5219] DEBUG (DevController:496)
hotplugStatusCallback /local/domain/0/backend/vbd/17/5632/hotplug-status.
[2009-04-29 09:05:14 xend 5219] DEBUG (DevController:510)
hotplugStatusCallback 1.
[2009-04-29 09:05:14 xend 5219] DEBUG (DevController:154) Waiting for
devices irq.
[2009-04-29 09:05:14 xend 5219] DEBUG (DevController:154) Waiting for
devices vkbd.
[2009-04-29 09:05:14 xend 5219] DEBUG (DevController:154) Waiting for
devices vfb.
[2009-04-29 09:05:14 xend 5219] DEBUG (DevController:154) Waiting for
devices pci.
[2009-04-29 09:05:14 xend 5219] DEBUG (DevController:154) Waiting for
devices ioports.
[2009-04-29 09:05:14 xend 5219] DEBUG (DevController:154) Waiting for
devices tap.
[2009-04-29 09:05:14 xend 5219] DEBUG (DevController:154) Waiting for
devices vtpm.
[2009-04-29 09:08:04 xend 5219] DEBUG (XendCheckpoint:89) [xc_save]:
/usr/lib64/xen/bin/xc_save 23 17 0 0 5
[2009-04-29 09:08:14 xend 5219] INFO (XendCheckpoint:351) Saving memory
pages: iter 1 95%^M 1: sent 982654, skipped 355, delta 9327ms, dom0
57%, target 1%, sent 3452Mb/s, dirtied 1Mb/s 412 pages
[2009-04-29 09:08:14 xend 5219] INFO (XendCheckpoint:351) Saving memory
pages: iter 2 0%^M 2: sent 398, skipped 15, delta 20 ms, dom0 100%,
target 0%, sent 652Mb/s, dirtied 24Mb/s 15 pages
[2009-04-29 09:08:14 xend 5219] INFO (XendCheckpoint:351) Saving memory
pages: iter 3 0%^M 3: sent 0, skipped 15, Start last iteration
[2009-04-29 09:08:14 xend 5219] DEBUG (XendCheckpoint:322) suspend
[2009-04-29 09:08:14 xend 5219] DEBUG (XendCheckpoint:92) In
saveInputHandler suspend
[2009-04-29 09:08:14 xend 5219] DEBUG (XendCheckpoint:94) Suspending 17 ...
[2009-04-29 09:08:14 xend.XendDomainInfo 5219] DEBUG
(XendDomainInfo:1036) XendDomainInfo.handleShutdownWatch
[2009-04-29 09:08:14 xend.XendDomainInfo 5219] DEBUG
(XendDomainInfo:1036) XendDomainInfo.handleShutdownWatch
hostb /var/log/xen/xend.log
....
[2009-04-29 09:08:04 xend 5175] INFO (XendCheckpoint:179) restore hvm
domain 11, apic=0, pae=0
[2009-04-29 09:08:04 xend 5175] DEBUG (image:328) args: boot, val: c
[2009-04-29 09:08:04 xend 5175] DEBUG (image:328) args: fda, val: None
[2009-04-29 09:08:04 xend 5175] DEBUG (image:328) args: fdb, val: None
[2009-04-29 09:08:04 xend 5175] DEBUG (image:328) args: soundhw, val: None
[2009-04-29 09:08:04 xend 5175] DEBUG (image:328) args: localtime, val: None
[2009-04-29 09:08:04 xend 5175] DEBUG (image:328) args: serial, val: pty
[2009-04-29 09:08:04 xend 5175] DEBUG (image:328) args: std-vga, val: None
[2009-04-29 09:08:04 xend 5175] DEBUG (image:328) args: isa, val: None
[2009-04-29 09:08:04 xend 5175] DEBUG (image:328) args: vcpus, val: 1
[2009-04-29 09:08:04 xend 5175] DEBUG (image:328) args: acpi, val: 1
[2009-04-29 09:08:04 xend 5175] DEBUG (image:328) args: usb, val: 1
[2009-04-29 09:08:04 xend 5175] DEBUG (image:328) args: usbdevice, val: None
[2009-04-29 09:08:04 xend 5175] DEBUG (image:328) args: k, val: de
[2009-04-29 09:08:05 xend 5175] DEBUG (image:388) No VNC passwd
configured for vfb access
[2009-04-29 09:08:05 xend 5175] DEBUG (XendCheckpoint:198)
restore:shadow=0x9, _static_max=0x400, _static_min=0x400,
[2009-04-29 09:08:05 xend 5175] DEBUG (balloon:143) Balloon: 29835376
KiB free; need 1065984; done.
[2009-04-29 09:08:05 xend 5175] DEBUG (XendCheckpoint:215) [xc_restore]:
/usr/lib64/xen/bin/xc_restore 23 11 2 3 1 0 0
[2009-04-29 09:08:05 xend 5175] INFO (XendCheckpoint:351)
xc_domain_restore start: p2m_size = 100000
[2009-04-29 09:08:05 xend 5175] INFO (XendCheckpoint:351) Reloading
memory pages: 0%
14 years, 4 months
Problem: mount: could not find,filesystem '/dev/root'
by Yang Xin
Hi, All:
I got a problem (mount: could not find,filesystem '/dev/root') in booting
a fedora7-xen kernel which was downloaded at
http://rpm.pbone.net/index.php3/stat/3/srodzaj/1/search/kernel-i686. Also I
had tried fedora8-xen kernel, same problem.
Here is my "grub.conf":
title Fedora (2.6.21-7.fc7xen)
root (hd0,0)
kernel /xen.gz-2.6.21-7.fc7
module /vmlinuz-2.6.21-7.fc7xen ro /dev/VolGroup00/LogVol00 rhgb
quiet
module /initrd-2.6.21-7.fc7xen.img
title Fedora (2.6.27.21-170.2.56.fc10.i686.PAE)
root (hd0,0)
kernel /vmlinuz-2.6.27.21-170.2.56.fc10.i686.PAE ro
root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.27.21-170.2.56.fc10.i686.PAE.img
title Fedora (2.6.27.21-170.2.56.fc10.i686)
root (hd0,0)
kernel /vmlinuz-2.6.27.21-170.2.56.fc10.i686 ro
root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.27.21-170.2.56.fc10.i686.img
The "ro /dev/VolGroup00/LogVol00 rhgb quiet" part was the same in all the
three ones, but "Fedora (2.6.27.21-170.2.56.fc10.i686.PAE)" and "Fedora
(2.6.27.21-170.2.56.fc10.i686)" could boot normally (this showed the path
should be right).
The difference between the first and the latter two was "module", but the
tries:
title Fedora (2.6.21-7.fc7xen)
root (hd0,0)
kernel /xen.gz-2.6.21-7.fc7 ro /dev/VolGroup00/LogVol00 rhgb quiet
module /vmlinuz-2.6.21-7.fc7xen
module /initrd-2.6.21-7.fc7xen.img
and
title Fedora (2.6.21-7.fc7xen)
root (hd0,0)
kernel /xen.gz-2.6.21-7.fc7 ro /dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.21-7.fc7xen.img
neither worked.
My os was Fedora 10, and xen was install by "yum install xen". What should
I do for this problem??
By the way, it seemed that "yum install kernel-xen" installed
"2.6.27.21-170.2.56.fc10.i686.PAE", which did not worked. Since when I
booted with this fedora-xen kernel, "xend start" command (or xm command)
brought "ERROR Internal error: Could not obtain handle on privileged command
interface (2 = No such file or directory)" error, which I've no idea either.
(From google, someone told that it was caused by wrong kernel...)
Any helps will be very appreciated!
Best Regards!
Xin
14 years, 5 months
Guest shutdown problems
by Christian Axelsson
Hello
I have a problem shutting down xen guests. Using xm shutdown guests get
shut down but gets stuck in state '---s-d' or sometimes '------'.
When trying to clone a domain when in this state (my original purpose of
the whole operation) I'll get the error:
[root@hydra virtinst--devel]# ./virt-clone -o minimal -n new_img -f
/var/lib/xen/images/new_img.img
ERROR: virDomainGetXMLDesc() failed failed Xen syscall
xenDaemonDomainDumpXMLByID failed to find this domain -490299505
The same errors occurs when for example trying to attach to the console
using virsh.
I have tried to use 'xm destroy' to kill the guest the hard way but it
has no effect - the state remains unchanged. I have also tried this on a
few different guest installations with the same result. A thing worth
noting is that the output from 'xm list --long' differs, I've attached
the out put pre boot, after boot and after shutdown. Note how all the
devices in the guests are missing after shutdown.
Both the hosts and the guests are fedora 8 installations.
Regards,
Christian Axelsson
smiler(a)lanil.mine.nu
[?1034h(domain
(domid 0)
(on_crash restart)
(uuid 00000000-0000-0000-0000-000000000000)
(bootloader_args )
(vcpus 2)
(name Domain-0)
(on_poweroff destroy)
(on_reboot restart)
(bootloader )
(maxmem 16777215)
(memory 1491)
(shadow_memory 0)
(cpu_weight 256)
(cpu_cap 0)
(features )
(on_xend_start ignore)
(on_xend_stop ignore)
(cpu_time 1644.84369405)
(online_vcpus 2)
(image (linux (kernel )))
(status 2)
(state r-----)
)
(domain
(domid 2)
(on_crash restart)
(uuid a7638797-e237-3891-5e64-390f828238ca)
(bootloader_args )
(vcpus 1)
(name minimal)
(on_poweroff destroy)
(on_reboot restart)
(bootloader /usr/bin/pygrub)
(maxmem 512)
(memory 512)
(shadow_memory 0)
(cpu_weight 256)
(cpu_cap 0)
(features )
(on_xend_start ignore)
(on_xend_stop ignore)
(start_time 1206360333.14)
(cpu_time 9.753408915)
(online_vcpus 1)
(image
(linux
(kernel )
(notes
(FEATURES
'writable_page_tables|writable_descriptor_tables|auto_translated_physmap|pae_pgdir_above_4gb|supervisor_mode_kernel'
)
(VIRT_BASE 18446744071562067968)
(GUEST_VERSION 2.6)
(PADDR_OFFSET 18446744071562067968)
(GUEST_OS linux)
(HYPERCALL_PAGE 18446744071564189696)
(LOADER generic)
(SUSPEND_CANCEL 1)
(ENTRY 18446744071564165120)
(XEN_VERSION xen-3.0)
)
)
)
(status 2)
(state -b----)
(store_mfn 196619)
(console_mfn 196618)
(device
(vif
(bridge xenbr0)
(mac 00:16:3e:3f:93:b8)
(script vif-bridge)
(uuid 94afd732-920b-2e0b-b3d5-e79174754a80)
(backend 0)
)
)
(device
(vbd
(uname file:/var/lib/xen/images/minimal.img)
(uuid 8f4f4da3-5f8a-3fee-28e8-41dc49e876cd)
(mode w)
(dev xvda:disk)
(backend 0)
(bootable 1)
)
)
(device
(console
(protocol vt100)
(location 2)
(uuid 0046f2d3-058b-d524-9273-f1dac2ca950b)
)
)
)
[?1034h(domain
(domid 0)
(on_crash restart)
(uuid 00000000-0000-0000-0000-000000000000)
(bootloader_args )
(vcpus 2)
(name Domain-0)
(on_poweroff destroy)
(on_reboot restart)
(bootloader )
(maxmem 16777215)
(memory 1491)
(shadow_memory 0)
(cpu_weight 256)
(cpu_cap 0)
(features )
(on_xend_start ignore)
(on_xend_stop ignore)
(cpu_time 1648.92600832)
(online_vcpus 2)
(image (linux (kernel )))
(status 2)
(state r-----)
)
(domain
(domid 2)
(on_crash restart)
(uuid a7638797-e237-3891-5e64-390f828238ca)
(bootloader_args )
(vcpus 1)
(name minimal)
(on_poweroff destroy)
(on_reboot restart)
(bootloader /usr/bin/pygrub)
(maxmem 512)
(memory 512)
(shadow_memory 0)
(cpu_weight 256)
(cpu_cap 0)
(features )
(on_xend_start ignore)
(on_xend_stop ignore)
(start_time 1206360333.14)
(cpu_time 13.048743365)
(online_vcpus 1)
(image
(linux
(kernel )
(notes
(FEATURES
'writable_page_tables|writable_descriptor_tables|auto_translated_physmap|pae_pgdir_above_4gb|supervisor_mode_kernel'
)
(VIRT_BASE 18446744071562067968)
(GUEST_VERSION 2.6)
(PADDR_OFFSET 18446744071562067968)
(GUEST_OS linux)
(HYPERCALL_PAGE 18446744071564189696)
(LOADER generic)
(SUSPEND_CANCEL 1)
(ENTRY 18446744071564165120)
(XEN_VERSION xen-3.0)
)
)
)
(status 0)
(state ---s-d)
(store_mfn 196619)
(console_mfn 196618)
)
[?1034h(domain
(domid 0)
(on_crash restart)
(uuid 00000000-0000-0000-0000-000000000000)
(bootloader_args )
(vcpus 2)
(name Domain-0)
(on_poweroff destroy)
(on_reboot restart)
(bootloader )
(maxmem 16777215)
(memory 1491)
(shadow_memory 0)
(cpu_weight 256)
(cpu_cap 0)
(features )
(on_xend_start ignore)
(on_xend_stop ignore)
(cpu_time 1635.21430615)
(online_vcpus 2)
(image (linux (kernel )))
(status 2)
(state r-----)
)
(domain
(on_crash restart)
(uuid a7638797-e237-3891-5e64-390f828238ca)
(bootloader_args )
(vcpus 1)
(name minimal)
(on_poweroff destroy)
(on_reboot restart)
(bootloader /usr/bin/pygrub)
(maxmem 512)
(memory 512)
(shadow_memory 0)
(cpu_weight 256)
(cpu_cap 0)
(features )
(on_xend_start ignore)
(on_xend_stop ignore)
(start_time 1206309092.82)
(cpu_time 0.0)
(image
(linux
(kernel )
(notes
(FEATURES
'writable_page_tables|writable_descriptor_tables|auto_translated_physmap|pae_pgdir_above_4gb|supervisor_mode_kernel'
)
(VIRT_BASE 18446744071562067968)
(GUEST_VERSION 2.6)
(PADDR_OFFSET 18446744071562067968)
(GUEST_OS linux)
(HYPERCALL_PAGE 18446744071564189696)
(LOADER generic)
(SUSPEND_CANCEL 1)
(ENTRY 18446744071564165120)
(XEN_VERSION xen-3.0)
)
)
)
(status 0)
(device
(vif
(bridge xenbr0)
(mac 00:16:3e:3f:93:b8)
(backend 0)
(uuid 94afd732-920b-2e0b-b3d5-e79174754a80)
(script vif-bridge)
)
)
(device
(vbd
(uuid 8f4f4da3-5f8a-3fee-28e8-41dc49e876cd)
(bootable 1)
(driver paravirtualised)
(dev xvda:disk)
(uname file:/var/lib/xen/images/minimal.img)
(mode w)
(backend 0)
)
)
(device
(console
(protocol vt100)
(location 2)
(uuid 0046f2d3-058b-d524-9273-f1dac2ca950b)
)
)
)
14 years, 5 months