Problems installing Xen
by Chip Motley
Hello,
I set up my first dual boot with Fedora 6 and WinXp. The partitions were
setup as shown below. My problem occurred after the installation of Xen.
When I went to /boot/grub and looked at grub.conf there was no reference to
Xen. I ran "Xend start" and received the following message:
ERROR: Could not obtain handle on privileged command interface (2 = No such
file or directory)
ERROR: Could not obtain handle on privileged command interface (2 = No such
file or directory) Traceback (most recent call last):
File "/usr/sbin/xend", line 49, in ?
from xen.xend.server import SrvDaemon
File "/usr/lib/python2.4/site-packages/xen/xend/server/SrvDaemon.py", line
21, in ?
import relocate
File "/usr/lib/python2.4/site-packages/xen/xend/server/relocate.py", line
26, in ?
from xen.xend import XendDomain
File "/usr/lib/python2.4/site-packages/xen/xend/XendDomain.py", line 33, in
?
import XendDomainInfo
File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 39,
in ?
import image
File "/usr/lib/python2.4/site-packages/xen/xend/image.py", line 36, in ?
xc = xen.lowlevel.xc.xc()
xen.lowlevel.xc.Error: (2, 'No such file or directory')
I looked in the Yum.log and found the following:
Feb 15 01:42:04 Installed: xen-libs.i386 3.0.3-3.fc6
Feb 15 01:42:05 Installed: bridge-utils.i386 1.1-2
Feb 15 01:42:05 Installed: gnome-python2-gnomekeyring.i386 2.16.0-1.fc6
Feb 15 01:42:06 Installed: libvirt-python.i386 0.1.11-1.fc6
Feb 15 01:42:06 Installed: python-virtinst.noarch 0.98.0-1.fc6
Feb 15 01:42:12 Installed: libvirt.i386 0.1.11-1.fc6
Feb 15 01:42:14 Installed: virt-manager.i386 0.2.6-3.fc6
Feb 15 01:42:17 Installed: xen.i386 3.0.3-3.fc6
How do I install Xen correctly? PS I am new to Linux
Thanks Chip Motley
17 years, 2 months
destroydevice
by Jordi Prats
Hi,
It seems there's a problem on 2.6.19-1.2895.fc6xen xen kernel and the xm
tool: creating a new VM it aborts showing this error:
[root@inf16 ~]# xm create /etc/xen/rata.cfg
Using config file "/etc/xen/rata.cfg".
Error: destroyDevice() takes exactly 3 arguments (2 given)
[root@inf16 ~]#
Anyone knows what is causing this? On the xen-users list there's some
other messages related to this isue (one mine). Mats Petersson say that
this may be causes by a backport.
There's something broken on the package? There's any easy workarround?
Thank you,
--
......................................................................
__
/ / Jordi Prats Català
C E / S / C A Departament de Sistemes
/_/ Centre de Supercomputació de Catalunya
Gran Capità, 2-4 (Edifici Nexus) · 08034 Barcelona
T. 93 205 6464 · F. 93 205 6979 · jprats(a)cesca.es
......................................................................
pgp:0x5D0D1321
......................................................................
17 years, 2 months
Problem creating VM image.
by Ashok Thapliyal
hi,
i have fedora core 6 installed with xen support.
im trying to create a VM guest image using virt-manager
what is the url that i can give in the install location as it is asking for
a http,ftp,nfs location. i don't know what url to give ,,,
or
how can i set up an installation tree on the host OS ??
i have no clue as to how i can make this image file.
can anyone please tell me???
thanks in advance
Warm regards
Ashok thapliyal
17 years, 2 months
DomU boot on Fedora 6 fails with 'VFS: Cannot open root device'
by Anne Facq
Hello
I have got a problem booting a DomU on Linux Fedora Core 6 (kernel
2.6.19-1.2895.fc6xen)
I did the following operations :
1) dd if=/dev/zero of=/home/xen/vm1 bs=1k seek=6144k count=1
2) mkfs.ext3 /home/xen/vm1
3) mount -o loop /home/xen/vm1 /mnt
4) cp -ax /{root,dev,var,etc,usr,bin,sbin,lib,boot} /mnt
5) mkdir -m 755 /mnt/{proc,sys,home,tmp,mnt}
6) DomU fstab :
/dev/sdb1 / ext3 defaults 1 1
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
7) cat > /etc/xen/vm1
kernel = "/boot/vmlinuz-2.6.19-1.2895.fc6xen"
memory = 512
name = 'vm1'
vif = [ '' ]
disk = [ 'file:/home/xen/vm1,sdb1,w' ]
root = '/dev/sdb1 ro'
extra = 'ro selinux=0 3'
8) When I launch :
xm create -c vm1
I get the following error message :
----
VFS: Cannot open root device "sdb1" or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on
unknown-block(0,0)
----
I tried several devices but I got the same message
Any advice ?
Thanks in advance.
Anne Facq
17 years, 2 months
Re: VNC and FreeNX disrupted is lost under XEN Dom0 kernel (mouse and keyboard are frozen) - resolved
by Jan Andrejkovic
Hello,
I resolved the problem by installing 3rd party graphic driver. My
motherboard is Via J7F2WE2G and in the xorg.conf I had defafult Vesa driver.
This driver caused below problem under FC6XEN kernel (also under
2.6.19-1.2911.fc6xen). I also noticed that under FC6XEN my xorg log had this
error at the end:
Fatal server error:
Caught signal 11. Server aborting
As I explained the server was working but because of this error it was not
working properly.
The problem was resolved by installing Via OpenChrome drivers from
http://washington.kelkoo.net/epia/ and also I updated Xorg.conf using 'X
-configure'
Regards,
Jan
2007/2/14, Jan Andrejkovic <jandrejkovic(a)gmail.com>:
>
> Hello,
>
> I thought there is a pobrlem between FreeNX and FC6 XEN Dom0 kerenel but
> now I discovered that there is also the same problem between VNC server and
> XEN enabled kernel (vnc-server-4.1.2-9.fc6 and 2.6.19-1.2895.fc6xen ).
> Does anybody have the same problem?
>
> Do you know any workaround?
>
> Thank you,
>
> Jan
>
> 2007/2/12, Jan Andrejkovic <jandrejkovic(a)gmail.com >:
> >
> > Hello FC XEN list,
> >
> > I already sent this e-mail to main Fedora mailing list but now I
> > realised it will be better to send it to XEN dist list:
> >
> > I have FC6 installed with latests patches (I use GNOME and XEN kernel
> > 2.6.19-1.2895.fc6xen) with all current updates. I installed FreeNX from
> > fedora extras and I tried to connect to this Dom0 kernel from Win XP client
> > ( 2.1.0-16). The connection was successful but after a few seconds I
> > lost the control using mouse and keyboard. I saw the screen, Gnome was just
> > not responding. Even when I tried to resume abandoned session I saw the
> > dektop again but I was not able to re-gain the control.
> >
> > Then I removed freenx downloaded from extras and I installed newest rpms
> > from nomachine web-site:
> > nxclient-2.1.0-11.i386.rpm
> > nxnode-2.1.0-15.i386.rpm
> > nxserver-2.1.0-18.i386.rpm
> > and for compatibility I had to add:
> > compat-libstdc++-296-2.96-138.i386.rpm (downloaded from rpmfind)
> >
> > However the result was the same - sesssion gets frozen after a couple of
> > seconds.
> > Then I tried to use older kernel - 2.6.18-1.2798.fc6xen with the same
> > result - once I just moved the mouse over gnome main menu the session was
> > frozen.
> >
> > (I did not make so much observations yet but I think it is somehow
> > related to mouse because when the session is waiting for the text input it
> > will not get frozen so easily.
> >
> > In final I tried non-XEN kernel 2.6.19-1.2895.fc6 and it seems to be
> > working fine.
> >
> > Does anybody notice the same behaviour? I would like to try GUI manager
> > to setup some domains but I can't... (Well, VNC is probaby the option...)
> >
> > Thank you,
> >
> > Jan
> >
> >
>
17 years, 2 months
xen time sync problem
by Nadeem Shahbaz
Hi,
I am facing problem in sync time within DomU with Dom0. After gone
through mailing lists, I have set /proc/sys/xen/independent_wallclock
to 0. But still DomU are not syncing their time :-S Machine using
kernel-xen-2.6.19-1.2911.fc6
xen-3.0.3-3.fc6
xen-libs-3.0.3-3.fc6
Please advice to solve this weird problem, Thanks
17 years, 2 months
XEN Problem with root device
by Claus Reheis
Hi all!
At first I have to admit that I am very inexperienced in using XEN!
What I try to do is get OpenSuse 10.2 working on my FC6 Station.
To do that I did the following steps:
1)Installed the XEN Kernel: 2.6.19-1.2911.fc6xen
2)Installed OpenSuse 10.2 on my girlfriends Laptop
3)made a complete image of the installation and put it in my home:
/home/user/opensuse102xen.img
4)created an suse.xen.cfg:
kernel = "/boot/vmlinuz-2.6.19-1.2895.fc6xen"
memory = 512
name = "opensuse102"
vif = ['']
#nics = 1
#dhcp = "dhcp"
disk = disk = ['file:/home/rehcla/opensuse102xen.img,xvda,w']
root = "/dev/xvda ro"
5)did edit the /etc/fstab in the Image:
/dev/xvda / ext3 acl,user_xattr
1 1
#/dev/hda1 /windows/C ntfs
ro,users,gid=users,umask=0002,nls=utf8 0 0
#/dev/hda2 swap swap defaults
0 0
proc /proc proc defaults
0 0
sysfs /sys sysfs noauto
0 0
debugfs /sys/kernel/debug debugfs noauto
0 0
usbfs /proc/bus/usb usbfs noauto
0 0
devpts /dev/pts devpts mode=0620,gid=5
0 0
When I try to start Xen with:
"xm create opensuse102 -c suse.xen.cfg"
I get this:
Using config file "./suse.xen.cfg".
Started domain opensuse102
Linux version 2.6.19-1.2895.fc6xen
(brewbuilder(a)hs20-bc2-2.build.redhat.com) (gcc version 4.1.1 20070105
(Red Hat 4.1.1-51)) #1 SMP Wed Jan 10 19:47:12 EST 2007
BIOS-provided physical RAM map:
Xen: 0000000000000000 - 0000000020800000 (usable)
0MB HIGHMEM available.
520MB LOWMEM available.
NX (Execute Disable) protection: active
Zone PFN ranges:
DMA 0 -> 133120
Normal 133120 -> 133120
HighMem 133120 -> 133120
early_node_map[1] active PFN ranges
0: 0 -> 133120
ACPI in unprivileged domain disabled
Built 1 zonelists. Total pages: 132080
Kernel command line: root=/dev/xvda ro
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
CPU 0 irqstacks, hard=c07e0000 soft=c07c0000
PID hash table entries: 4096 (order: 12, 16384 bytes)
Xen reported: 3391.494 MHz processor.
Console: colour dummy device 80x25
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Software IO TLB disabled
vmalloc area: e1000000-f4ffe000, maxmem 2d7fe000
Memory: 512768k/532480k available (2166k kernel code, 11200k reserved,
1100k data, 184k init, 0k highmem)
virtual kernel memory layout:
fixmap : 0xf5315000 - 0xf57fe000 (5028 kB)
pkmap : 0xf5000000 - 0xf5200000 (2048 kB)
vmalloc : 0xe1000000 - 0xf4ffe000 ( 319 MB)
lowmem : 0xc0000000 - 0xe0800000 ( 520 MB)
.init : 0xc078e000 - 0xc07bc000 ( 184 kB)
.data : 0xc061da2c - 0xc0730bf4 (1100 kB)
.text : 0xc0400000 - 0xc061da2c (2166 kB)
Checking if this processor honours the WP bit even in supervisor mode...
Ok.
Calibrating delay using timer specific routine.. 8489.82 BogoMIPS
(lpj=16979653)
Security Framework v1.0.0 initialized
SELinux: Initializing.
SELinux: Starting in permissive mode
selinux_register_security: Registering secondary module capability
Capability LSM initialized as secondary
Mount-cache hash table entries: 512
CPU: Trace cache: 12K uops, L1 D cache: 16K
CPU: L2 cache: 2048K
Checking 'hlt' instruction... OK.
SMP alternatives: switching to UP code
Freeing SMP alternatives: 12k freed
Brought up 1 CPUs
Grant table initialized
NET: Registered protocol family 16
Brought up 1 CPUs
PCI: Fatal: No config space access function found
PCI: setting up Xen PCI frontend stub
ACPI: Interpreter disabled.
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI: disabled
xen_mem: Initialising balloon driver.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: System does not support PCI
PCI: System does not support PCI
NetLabel: Initializing
NetLabel: domain hash size = 128
NetLabel: protocols = UNLABELED CIPSOv4
NetLabel: unlabeled traffic allowed by default
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
TCP established hash table entries: 131072 (order: 9, 2621440 bytes)
TCP bind hash table entries: 65536 (order: 8, 1310720 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
IA-32 Microcode Update Driver: v1.14-xen <tigran(a)veritas.com>
audit: initializing netlink socket (disabled)
audit(1172096781.555:1): initialized
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
SELinux: Registering netfilter hooks
ksign: Installing public key data
Loading keyring
- Added public key A803A00FB8A89D68
- User ID: Red Hat, Inc. (Kernel Module GPG key)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
rtc: IRQ 8 is not free.
Non-volatile memory driver v1.2
Linux agpgart interface v0.101 (c) Dave Jones
RAMDISK driver initialized: 16 RAM disks of 16384K size 4096 blocksize
Xen virtual console successfully installed as xvc0
Linux version 2.6.19-1.2895.fc6xen
(brewbuilder(a)hs20-bc2-2.build.redhat.com) (gcc version 4.1.1 20070105
(Red Hat 4.1.1-51)) #1 SMP Wed Jan 10 19:47:12 EST 2007
BIOS-provided physical RAM map:
Xen: 0000000000000000 - 0000000020800000 (usable)
0MB HIGHMEM available.
520MB LOWMEM available.
NX (Execute Disable) protection: active
Zone PFN ranges:
DMA 0 -> 133120
Normal 133120 -> 133120
HighMem 133120 -> 133120
early_node_map[1] active PFN ranges
0: 0 -> 133120
ACPI in unprivileged domain disabled
Built 1 zonelists. Total pages: 132080
Kernel command line: root=/dev/xvda ro
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
CPU 0 irqstacks, hard=c07e0000 soft=c07c0000
PID hash table entries: 4096 (order: 12, 16384 bytes)
Xen reported: 3391.494 MHz processor.
Console: colour dummy device 80x25
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Software IO TLB disabled
vmalloc area: e1000000-f4ffe000, maxmem 2d7fe000
Memory: 512768k/532480k available (2166k kernel code, 11200k reserved,
1100k data, 184k init, 0k highmem)
virtual kernel memory layout:
fixmap : 0xf5315000 - 0xf57fe000 (5028 kB)
pkmap : 0xf5000000 - 0xf5200000 (2048 kB)
vmalloc : 0xe1000000 - 0xf4ffe000 ( 319 MB)
lowmem : 0xc0000000 - 0xe0800000 ( 520 MB)
.init : 0xc078e000 - 0xc07bc000 ( 184 kB)
.data : 0xc061da2c - 0xc0730bf4 (1100 kB)
.text : 0xc0400000 - 0xc061da2c (2166 kB)
Checking if this processor honours the WP bit even in supervisor mode...
Ok.
Calibrating delay using timer specific routine.. 8489.82 BogoMIPS
(lpj=16979653)
Security Framework v1.0.0 initialized
SELinux: Initializing.
SELinux: Starting in permissive mode
selinux_register_security: Registering secondary module capability
Capability LSM initialized as secondary
Mount-cache hash table entries: 512
CPU: Trace cache: 12K uops, L1 D cache: 16K
CPU: L2 cache: 2048K
Checking 'hlt' instruction... OK.
SMP alternatives: switching to UP code
Freeing SMP alternatives: 12k freed
Brought up 1 CPUs
Grant table initialized
NET: Registered protocol family 16
Brought up 1 CPUs
PCI: Fatal: No config space access function found
PCI: setting up Xen PCI frontend stub
ACPI: Interpreter disabled.
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI: disabled
xen_mem: Initialising balloon driver.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: System does not support PCI
PCI: System does not support PCI
NetLabel: Initializing
NetLabel: domain hash size = 128
NetLabel: protocols = UNLABELED CIPSOv4
NetLabel: unlabeled traffic allowed by default
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
TCP established hash table entries: 131072 (order: 9, 2621440 bytes)
TCP bind hash table entries: 65536 (order: 8, 1310720 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
IA-32 Microcode Update Driver: v1.14-xen <tigran(a)veritas.com>
audit: initializing netlink socket (disabled)
audit(1172096781.555:1): initialized
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
SELinux: Registering netfilter hooks
ksign: Installing public key data
Loading keyring
- Added public key A803A00FB8A89D68
- User ID: Red Hat, Inc. (Kernel Module GPG key)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
rtc: IRQ 8 is not free.
Non-volatile memory driver v1.2
Linux agpgart interface v0.101 (c) Dave Jones
RAMDISK driver initialized: 16 RAM disks of 16384K size 4096 blocksize
Xen virtual console successfully installed as xvc0
Event-channel device installed.
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 50MHz system bus speed for PIO modes; override with
idebus=xx
ide-floppy driver 0.99.newide
usbcore: registered new interface driver libusual
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
PNP: No PS/2 controller found. Probing ports directly.
i8042.c: No controller found.
mice: PS/2 mouse device common for all mice
TCP bic registered
Initializing XFRM netlink socket
NET: Registered protocol family 1
NET: Registered protocol family 17
Using IPI No-Shortcut mode
XENBUS: Device with no driver: device/vbd/51712
XENBUS: Device with no driver: device/vif/0
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
VFS: Cannot open root device "xvda" or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on
unknown-block(0,0)
Can some help me?
Thanks!
Claus Reheis
17 years, 2 months
Console is unavailable
by Ciaran Byrne
Hi,
I hope you don't mind me contacting you like this, but I got your emails
from an inconclusive discussion about the following subject. I am
experimenting with virtualization in RHEL 5 Beta 2, and everything
appears to go well until I try to connect to the console of the new
virtual machine. The error includes the message "connection refused".
There is no qemu-dm process running and /var/log/xen/qemu-dm.3598.log
contains the following line:
xc_get_pfn_list returned error 22
I have attached xend.log for today in case it helps.
Incidentally, I seem to have found that there is no way to recover the
new virtual machine after I have installed Fedora unless I save it just
before the final reboot. I then do virsh restore xen-machine1.saved. I
am hoping this is the right thing to do.
Many thanks,
Ciaran Byrne
[2007-02-21 10:07:45 xend 2758] INFO (SrvDaemon:283) Xend Daemon started
[2007-02-21 10:07:45 xend 2758] INFO (SrvDaemon:287) Xend changeset: unavailable .
[2007-02-21 10:07:45 xend.XendDomainInfo 2758] DEBUG (XendDomainInfo:212) XendDomainInfo.recreate({'paused': 0, 'cpu_time': 21785358755L, 'ssidref': 0, 'handle': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'shutdown_reason': 0, 'dying': 0, 'dom': 0, 'mem_kb': 1443380, 'maxmem_kb': -4, 'max_vcpu_id': 1, 'crashed': 0, 'running': 1, 'shutdown': 0, 'online_vcpus': 2, 'blocked': 0})
[2007-02-21 10:07:45 xend.XendDomainInfo 2758] INFO (XendDomainInfo:224) Recreating domain 0, UUID 00000000-0000-0000-0000-000000000000.
[2007-02-21 10:07:45 xend.XendDomainInfo 2758] WARNING (XendDomainInfo:246) No vm path in store for existing domain 0
[2007-02-21 10:07:45 xend.XendDomainInfo 2758] DEBUG (XendDomainInfo:712) Storing VM details: {'shadow_memory': '0', 'uuid': '00000000-0000-0000-0000-000000000000', 'on_reboot': 'restart', 'on_poweroff': 'destroy', 'name': 'Domain-0', 'xend/restart_count': '0', 'vcpus': '2', 'vcpu_avail': '3', 'memory': '1410', 'on_crash': 'restart', 'maxmem': '1410'}
[2007-02-21 10:07:45 xend.XendDomainInfo 2758] DEBUG (XendDomainInfo:747) Storing domain details: {'cpu/0/availability': 'online', 'memory/target': '1443840', 'cpu/1/availability': 'online', 'name': 'Domain-0', 'console/limit': '1048576', 'vm': '/vm/00000000-0000-0000-0000-000000000000', 'domid': '0'}
[2007-02-21 10:07:45 xend 2758] DEBUG (XendDomain:153) number of vcpus to use is 0
[2007-02-21 10:07:45 xend 2758] INFO (SrvServer:116) unix path=/var/lib/xend/xend-socket
[2007-02-21 10:07:45 xend.XendDomainInfo 2758] DEBUG (XendDomainInfo:933) XendDomainInfo.handleShutdownWatch
[2007-02-21 10:23:10 xend.XendDomainInfo 2758] DEBUG (XendDomainInfo:265) XendDomainInfo.restore(['domain', ['domid', '1'], ['uuid', 'f4842de3-c5c9-9d03-7d13-9d0b90fda55c'], ['vcpus', '1'], ['vcpu_avail', '1'], ['cpu_weight', '1.0'], ['memory', '500'], ['shadow_memory', '0'], ['maxmem', '500'], ['features'], ['name', 'xen-machine1'], ['on_poweroff', 'destroy'], ['on_reboot', 'destroy'], ['on_crash', 'destroy'], ['image', ['linux', ['kernel', '/var/lib/xen/vmlinuz.17k0rg'], ['ramdisk', '/var/lib/xen/initrd.img.rF_ALq'], ['args', ' method=http://download.fedora.redhat.com/pub/fedora/linux/core/6/i386/os/ '], ['vnc', '1'], ['vncunused', '1']]], ['device', ['vif', ['backend', '0'], ['script', 'vif-bridge'], ['bridge', 'xenbr0'], ['mac', '00:16:3e:0c:7d:61']]], ['device', ['vbd', ['backend', '0'], ['dev', 'xvda:disk'], ['uname', 'phy:/dev/sda4'], ['mode', 'w']]], ['state', '-b----'], ['shutdown_reason', 'poweroff'], ['cpu_time', '727.940923805'], ['online_vcpus', '1'], ['up_time', '10187.961659'], ['start_time', '1171453340.59'], ['store_mfn', '280846'], ['console_mfn', '280845']])
[2007-02-21 10:23:10 xend.XendDomainInfo 2758] DEBUG (XendDomainInfo:296) parseConfig: config is ['domain', ['domid', '1'], ['uuid', 'f4842de3-c5c9-9d03-7d13-9d0b90fda55c'], ['vcpus', '1'], ['vcpu_avail', '1'], ['cpu_weight', '1.0'], ['memory', '500'], ['shadow_memory', '0'], ['maxmem', '500'], ['features'], ['name', 'xen-machine1'], ['on_poweroff', 'destroy'], ['on_reboot', 'destroy'], ['on_crash', 'destroy'], ['image', ['linux', ['kernel', '/var/lib/xen/vmlinuz.17k0rg'], ['ramdisk', '/var/lib/xen/initrd.img.rF_ALq'], ['args', ' method=http://download.fedora.redhat.com/pub/fedora/linux/core/6/i386/os/ '], ['vnc', '1'], ['vncunused', '1']]], ['device', ['vif', ['backend', '0'], ['script', 'vif-bridge'], ['bridge', 'xenbr0'], ['mac', '00:16:3e:0c:7d:61']]], ['device', ['vbd', ['backend', '0'], ['dev', 'xvda:disk'], ['uname', 'phy:/dev/sda4'], ['mode', 'w']]], ['state', '-b----'], ['shutdown_reason', 'poweroff'], ['cpu_time', '727.940923805'], ['online_vcpus', '1'], ['up_time', '10187.961659'], ['start_time', '1171453340.59'], ['store_mfn', '280846'], ['console_mfn', '280845']]
[2007-02-21 10:23:10 xend.XendDomainInfo 2758] DEBUG (XendDomainInfo:395) parseConfig: result is {'shadow_memory': 0, 'uuid': 'f4842de3-c5c9-9d03-7d13-9d0b90fda55c', 'on_crash': 'destroy', 'on_reboot': 'destroy', 'localtime': None, 'image': ['linux', ['kernel', '/var/lib/xen/vmlinuz.17k0rg'], ['ramdisk', '/var/lib/xen/initrd.img.rF_ALq'], ['args', ' method=http://download.fedora.redhat.com/pub/fedora/linux/core/6/i386/os/ '], ['vnc', '1'], ['vncunused', '1']], 'on_poweroff': 'destroy', 'bootloader_args': None, 'cpus': None, 'name': 'xen-machine1', 'backend': [], 'vcpus': 1, 'cpu_weight': 1.0, 'features': None, 'vcpu_avail': 1, 'memory': 500, 'device': [('vif', ['vif', ['backend', '0'], ['script', 'vif-bridge'], ['bridge', 'xenbr0'], ['mac', '00:16:3e:0c:7d:61']]), ('vbd', ['vbd', ['backend', '0'], ['dev', 'xvda:disk'], ['uname', 'phy:/dev/sda4'], ['mode', 'w']])], 'bootloader': None, 'cpu': None, 'maxmem': 500}
[2007-02-21 10:23:10 xend.XendDomainInfo 2758] DEBUG (XendDomainInfo:1253) XendDomainInfo.construct: None
[2007-02-21 10:23:10 xend.XendDomainInfo 2758] DEBUG (XendDomainInfo:712) Storing VM details: {'shadow_memory': '0', 'uuid': 'f4842de3-c5c9-9d03-7d13-9d0b90fda55c', 'on_reboot': 'destroy', 'image': "(linux (kernel /var/lib/xen/vmlinuz.17k0rg) (ramdisk /var/lib/xen/initrd.img.rF_ALq) (args ' method=http://download.fedora.redhat.com/pub/fedora/linux/core/6/i386/os/ ') (vnc 1) (vncunused 1))", 'on_poweroff': 'destroy', 'name': 'xen-machine1', 'xend/restart_count': '0', 'vcpus': '1', 'vcpu_avail': '1', 'memory': '500', 'on_crash': 'destroy', 'maxmem': '500'}
[2007-02-21 10:23:10 xend 2758] DEBUG (DevController:110) DevController: writing {'backend-id': '0', 'mac': '00:16:3e:0c:7d:61', 'handle': '0', 'state': '1', 'backend': '/local/domain/0/backend/vif/1/0'} to /local/domain/1/device/vif/0.
[2007-02-21 10:23:10 xend 2758] DEBUG (DevController:112) DevController: writing {'bridge': 'xenbr0', 'domain': 'xen-machine1', 'handle': '0', 'script': '/etc/xen/scripts/vif-bridge', 'state': '1', 'frontend': '/local/domain/1/device/vif/0', 'mac': '00:16:3e:0c:7d:61', 'online': '1', 'frontend-id': '1'} to /local/domain/0/backend/vif/1/0.
[2007-02-21 10:23:11 xend 2758] DEBUG (blkif:24) exception looking up device number for xvda: [Errno 2] No such file or directory: '/dev/xvda'
[2007-02-21 10:23:11 xend 2758] DEBUG (DevController:110) DevController: writing {'backend-id': '0', 'virtual-device': '51712', 'device-type': 'disk', 'state': '1', 'backend': '/local/domain/0/backend/vbd/1/51712'} to /local/domain/1/device/vbd/51712.
[2007-02-21 10:23:11 xend 2758] DEBUG (DevController:112) DevController: writing {'domain': 'xen-machine1', 'frontend': '/local/domain/1/device/vbd/51712', 'dev': 'xvda', 'state': '1', 'params': '/dev/sda4', 'mode': 'w', 'online': '1', 'frontend-id': '1', 'type': 'phy'} to /local/domain/0/backend/vbd/1/51712.
[2007-02-21 10:23:11 xend.XendDomainInfo 2758] DEBUG (XendDomainInfo:747) Storing domain details: {'console/port': '2', 'name': 'xen-machine1', 'console/limit': '1048576', 'vm': '/vm/f4842de3-c5c9-9d03-7d13-9d0b90fda55c', 'domid': '1', 'cpu/0/availability': 'online', 'memory/target': '512000', 'store/port': '1'}
[2007-02-21 10:23:11 xend 2758] DEBUG (balloon:133) Balloon: 97588 KiB free; 0 to scrub; need 520192; retries: 20.
[2007-02-21 10:23:11 xend 2758] DEBUG (balloon:148) Balloon: setting dom0 target to 996 MiB.
[2007-02-21 10:23:11 xend.XendDomainInfo 2758] DEBUG (XendDomainInfo:1014) Setting memory target of domain Domain-0 (0) to 996 MiB.
[2007-02-21 10:23:12 xend 2758] DEBUG (balloon:127) Balloon: 521064 KiB free; need 520192; done.
[2007-02-21 10:23:12 xend 2758] DEBUG (XendCheckpoint:155) [xc_restore]: /usr/lib/xen/bin/xc_restore 21 1 130048 1 2
[2007-02-21 10:23:12 xend 2758] ERROR (XendCheckpoint:236) xc_linux_restore start: max_pfn = 1fc00
[2007-02-21 10:23:12 xend 2758] ERROR (XendCheckpoint:236) Increased domain reservation by 7f000 KB
[2007-02-21 10:23:12 xend 2758] ERROR (XendCheckpoint:236) Reloading memory pages: 0%
[2007-02-21 10:23:28 xend 2758] ERROR (XendCheckpoint:236) Received all pages (0 races)
[2007-02-21 10:23:28 xend 2758] ERROR (XendCheckpoint:236) 100%
[2007-02-21 10:23:28 xend 2758] ERROR (XendCheckpoint:236) Memory reloaded.
[2007-02-21 10:23:28 xend 2758] ERROR (XendCheckpoint:236) Decreased reservation by 2082 pages
[2007-02-21 10:23:28 xend 2758] ERROR (XendCheckpoint:236) Domain ready to be built.
[2007-02-21 10:23:28 xend 2758] ERROR (XendCheckpoint:236) Restore exit with rc=0
[2007-02-21 10:23:28 xend 2758] DEBUG (XendCheckpoint:209) store-mfn 65550
[2007-02-21 10:23:28 xend 2758] DEBUG (XendCheckpoint:209) console-mfn 65549
[2007-02-21 10:23:28 xend 2758] DEBUG (DevController:143) Waiting for devices vif.
[2007-02-21 10:23:28 xend 2758] DEBUG (DevController:149) Waiting for 0.
[2007-02-21 10:23:28 xend 2758] DEBUG (DevController:464) hotplugStatusCallback /local/domain/0/backend/vif/1/0/hotplug-status.
[2007-02-21 10:23:28 xend 2758] DEBUG (DevController:478) hotplugStatusCallback 1.
[2007-02-21 10:23:28 xend 2758] DEBUG (DevController:143) Waiting for devices usb.
[2007-02-21 10:23:28 xend 2758] DEBUG (DevController:143) Waiting for devices vbd.
[2007-02-21 10:23:28 xend 2758] DEBUG (DevController:149) Waiting for 51712.
[2007-02-21 10:23:28 xend 2758] DEBUG (DevController:464) hotplugStatusCallback /local/domain/0/backend/vbd/1/51712/hotplug-status.
[2007-02-21 10:23:28 xend 2758] DEBUG (DevController:478) hotplugStatusCallback 1.
[2007-02-21 10:23:28 xend 2758] DEBUG (DevController:143) Waiting for devices irq.
[2007-02-21 10:23:28 xend 2758] DEBUG (DevController:143) Waiting for devices pci.
[2007-02-21 10:23:28 xend 2758] DEBUG (DevController:143) Waiting for devices ioports.
[2007-02-21 10:23:28 xend 2758] DEBUG (DevController:143) Waiting for devices tap.
[2007-02-21 10:23:28 xend 2758] DEBUG (DevController:143) Waiting for devices vtpm.
[2007-02-21 10:23:28 xend.XendDomainInfo 2758] DEBUG (XendDomainInfo:672) XendDomainInfo.completeRestore
[2007-02-21 10:23:28 xend.XendDomainInfo 2758] DEBUG (XendDomainInfo:747) Storing domain details: {'console/ring-ref': '65549', 'console/port': '2', 'name': 'xen-machine1', 'console/limit': '1048576', 'vm': '/vm/f4842de3-c5c9-9d03-7d13-9d0b90fda55c', 'domid': '1', 'cpu/0/availability': 'online', 'memory/target': '512000', 'store/ring-ref': '65550', 'store/port': '1'}
[2007-02-21 10:23:28 xend.XendDomainInfo 2758] DEBUG (XendDomainInfo:682) XendDomainInfo.completeRestore done
[2007-02-21 10:23:28 xend.XendDomainInfo 2758] DEBUG (XendDomainInfo:933) XendDomainInfo.handleShutdownWatch
17 years, 2 months
Problem renaming Logical Volumes
by Daniel Tuijnman
Hi all,
Sorry if this is not really a Xen problem, but it is something which you
wouldn't want to do if you were not playing with virtual machines...
I had one small VM set up to use as a base for other (paravirtualized) VM's.
(both dom0 and the domU's in question are Fedora Core 6 installs).
I gave it a LV, say /dev/VG_domU/base, as its (only) disk /dev/xvda, and
partitioned it during install as follows:
/dev/xvda1 /boot filesystem
/dev/xvda2 PV for VG VG_base, with LV's
swap for swap
root as / filesystem
which is the way I usually partition my Linux installs (except that I
usually create LV's for /usr, /var, /tmp, /home etc.)
Then in dom0, I created another LV /dev/VG_domU/derived, did a dd from
/dev/VG_domU/base to /dev/VG_domU/derived, et voila, I have another VM.
But this other VM has on its disk a VG with the same name, so I wanted to
rename the VG: you never know if you want to access both VG's at the same
time.
So I used kpartx to make it visible:
# kpartx -a /dev/VG_domU/derived
# vgscan
# vgrename /dev/VG_base /VG_derived
Then, of course, the name of the VG are mentioned a number of times:
- in /boot/grub/grub.conf the name of the root partition
- in /etc/fstab
- and in /init on /boot/initrd...img
But after that, the cloned VM with the renamed VG wouldn't boot - kernel
panic.
Does someone has an idea what I'm missing here?
Greetings,
Daniel
--
Daniël Tuijnman phone: +31-24-377.7329
De Voorstenkamp 19-59 mobile: +31-6-4611.4589
NL-6545 GR Nijmegen fax: +31-24-373.3632
========================================================================
The tree of liberty must be refreshed from time to time with the blood of
patriots & tyrants.
Thomas Jefferson
========================================================================
17 years, 2 months
Preparing a Dom0 Kernel
by David Pilger
Hi,
What is the procedure to build one of the kernels from these
repositories (http://hg.et.redhat.com/kernel/) to function as domain0?
I built kernel 2.6.19.2 and tried to boot it with Xen. The function
elf_xen_note_check prints the following error:
"ERROR: Not a Xen-ELF image: No ELF notes or '__xen_guest' section found.
Thanks in advance for your help,
David.
17 years, 2 months