allow non-root user to stop/start xen host
by Gary Siao
hi gurus
i am a newbie to XEN and would like to know if there's a way to allow
non-root user to use the XM command to stop and start XEN VM hosts.
thanks !
17 years, 4 months
32 bit domU, 64 bit dom0?
by Tom Horsley
I tried to follow the instructions in the FC6 Xen fedoraproject wiki
page and tried installing 32 bit FC6 guest while booted in x86_64 dom0,
the virt-manager tells me invalid argument and the xend-debug.log
file says ERROR: Kernel not a Xen-compatible Elf image.
Does this mean it is, in fact, impossible to run a 32bit guest
(x86 architecture) on a 64 bit x86_64 host?
Or does it just mean virt-manager isn't prepared to try doing an
install from a 32 bit fedora install tree?
Installing an x86_64 guest seems to be working fine, by the way.
(I can't ever seem to find a plain statement about 32 versus 64
bit compatibility under Xen, though I have seen plain statements
that I can't run a 64 bit guest under and 32 bit host, which
sort of implies by omission that maybe I can run a 32 bit guest
under a 64 bit host as long as we are talking x86 architecture
in general).
17 years, 4 months
older rhel/centos/FC guests on fc6 host and non working console solved
by Paul Wouters
I spend some time figuring out why my old centos/rhel/fc images I converted
for xen didnt have a proper serial console. It turns out they have either
a missing or older version of /dev/xvc0.
The fix is to make sure the new device eixsts. either in the initrd and/or
some other place. Since these older versions of the OS are likely booting
with a newer kernel (from your FC6 host), you have a non working udev, so
you need to make sure the device exists manually:
mknod /dev/xvc0 c 250 187
Be aware that there are many wrong/old google hits on the majore/minors
of this.
I hope this helps others not waste as much time as me :)
Paul
17 years, 4 months
From multi-boot to multi-guest?
by Tom Horsley
Xen is mostly of interest to me so I can do development and testing
on multiple operating systems without rebooting. I already have
several /boot and root partitions for several OS setup on my machine.
I can also boot the Fedora Core 6 xen kernel as dom0, but my experiments
with the redhat virt-manager tool seem to indicate the only way it can
create new guests is if I want to install more copies of fedora.
What I'd really like to do is just turn the various /boot and root
partitions I currently have into guests under Xen. Are there any
instructions a person starting with absolutely no knowledge of Xen
can follow to do this?
Things I can guess:
I'll have to change my fstab file in each OS to not mount other
partitions owned by other OSes.
I'll have to give them all unique host names and IP addresses.
Things I have no idea how to imagine:
How do I setup the network for each guest?
Is creating the guest just a matter of building a proper config file
to point to my existing boot and root partitions and pass to xm?
If so, what the devil goes in the config file (which
file names are specified relative to the filesystems mounted on
dom0 and which ones are relative to the domU mountpoints)? Or
do I need to copy some info out of the existing partitions so
it lives somewhere on dom0?
How do I make sure the kernels in the existing boot partitions will
support paravirtualization? (I have no fancy new Pacifica or
Vanderpool instructions on my machine).
What have I missed that will drop me into virtualization hell
when I try this stuff? :-).
Thanks for any pointers to get me started! (Speaking of getting
started - are there any web pages on Xen that are somewhere
in between the Sunday Supplement and the Phd level - everything
I find seems to have hype with no content or content that only
makes sense if I was in at the beginning of the long conversation
I missed :-).
17 years, 4 months
Windows XP guest reboot quickly and get killed, ideas?
by Guiber
Hello,
I am trying to set up a fully virtualized windows xp. I have many
problems. Here is my configuration (Dell XPS M1210):
vmx, pae, 2*2GHz,
RAM 512Mo,
fedora core 6, xen 3.03
Disk sda, Cdrom hdc
broadcom B44, intel ipw3945
Fedora is in Domain-0 and I would like to add guest windows xp.
First of all I have no internet access when booting the xen kernel. The
problem may come from fedora, I found a patched kernel :
http://people.redhat.com/sct/packages/kernel/kernel-xen-2.6.18-1.2857.4.2...
which solve the errors I could find in fedora dmesg but I still don't
have internet access. ifconfig shows errors in eth0 and there are lots
of interfaces I don't know about. See
2006_12_07_errors_no_eth0_kernel_sctxen
Then here is how I have proceeded for my installation:
- Create a partition for windows in my LVM group: principal/winxp (1,5
Go)
- Launch virt-manager and configure a new virtual guest:
winxp, fully virtualized, from cdrom, install to /dev/principal/winxp,
use 100 Mo for the new guest
On validation a window open and the installation begins. It is all
marvellous until the (normal) reboot of the guest; then I have been
unable to create the guest again "xm create winxp". Fedora as only sda
and hdc, whereas windows as hda as first drive. I don'y know if it is a
problem, I have the line : DEBUG (blkif:24) exception looking up device
number for hda: [Errno 2] No such file or directory: \047/dev/hda\047
Else, the guest reboot quickly (1,5s) so xend stop it after a while.
I tried to change from hda to sda in the configuration file; to install
to a file; to install from an iso...
When changing hda to sda vnc come up and I can see a bosch error.
See 2006_12_07_errors_xm_dmesg_second_attempt_sda
and from "[2006-12-07 12:34:45" in the xend_logs
When installing the guest in a file I can reboot and get vnc but the
screen is all black and the guest is automatically "paused" with 0% CPU
and 26% (around 30Mo) memory.
See 2006_12_07_errors_xm_dmesg_from_scratch_reboot
and from [2006-12-07 13:42:02 in the xend_logs
When installing from an iso: impossible,
virt-manager (libvirt?) can't see my iso (which I checked with a mount
-o ro,loop). As this problem can come from a selinux policy I did:
"semanage fcontext -l | grep xen_image_t" and put the iso in /xen but
it solved nothing.
Thank you very much for your help,
(I am not a member of the list, keep me on the CC please)
Guillaume
nota bene, some errors I could get from places to places and that
might be enough to understand where the problem come from:
DEBUG
(blkif:24) exception looking up device number for hda: [Errno 2] No
such file or directory: \047/dev/hda \047 (XEN) (GUEST: 13)
int13_harddisk: function
42. LBA out of range (XEN) (GUEST:
13) int13_harddisk: function 08, unmapped device for ELDL=81 (XEN)
(GUEST:
12) *** int 15h function AX=E980, BX=00F2 not yet supported! (XEN)
(GUEST: 12) unsupported PCI BIOS function 0x0E (XEN) (GUEST: 12)
int13_harddisk: function 15, unmapped device for ELDL=81
// Fedora dmesg
PCI: BIOS Bug: MCFG area at f0000000 is not E820-reserved
audit(1165470833.831:44): avc: denied { read write } for pid=6706
comm="ifconfig" name="principal-winxp" dev=tmpfs ino=1066
scontext=system_u:system_r:i fconfig_t:s0
tcontext=system_u:object_r:fixed_disk_device_t:s0 tclass=blk_file
17 years, 4 months
Problem with install guest FC6 (i386) on platform FC6 (x86_64)
by Safonov Alexey
Dear colleagues!
My server is an opteron 280 (x86_64) running with 4GB memory. Install
distributive Fedora Core 6 (x86_64) with support of system virtualized XEN.
#uname -a
Linux srv-bd3.mup-uga.vrn.ru 2.6.18-1.2849.fc6xen #1 SMP Fri Nov 10 12:57:36
EST 2006 x86_64 x86_64 x86_64 GNU/Linux
I would like to establish guest OS i386. Too FC6. At installation the
mistake stands out:
[2006-12-03 19:54:39 xend 4116] INFO (image:214) configuring linux guest
[2006-12-03 19:54:39 xend 4116] INFO (image:232) setting use_graphics
[2006-12-03 19:54:39 xend 4116] DEBUG (balloon:127) Balloon: 524316 KiB
free; need 512000; done.
[2006-12-03 19:54:39 xend 4116] INFO (image:138) buildDomain os=linux dom=8
vcpus=2
[2006-12-03 19:54:39 xend 4116] DEBUG (image:193) dom = 8
[2006-12-03 19:54:39 xend 4116] DEBUG (image:194) image =
/var/lib/xen/vmlinuz.Y4RxAr
[2006-12-03 19:54:39 xend 4116] DEBUG (image:195) store_evtchn = 1
[2006-12-03 19:54:39 xend 4116] DEBUG (image:196) console_evtchn = 2
[2006-12-03 19:54:39 xend 4116] DEBUG (image:197) cmdline =
method=http://192.168.0.252/install/fc6/i386
[2006-12-03 19:54:39 xend 4116] DEBUG (image:198) ramdisk =
/var/lib/xen/initrd.img.pXzZUK
[2006-12-03 19:54:39 xend 4116] DEBUG (image:199) vcpus = 2
[2006-12-03 19:54:39 xend 4116] DEBUG (image:200) features =
[2006-12-03 19:54:39 xend.XendDomainInfo 4116] ERROR (XendDomainInfo:202)
Domain construction failed
Traceback (most recent call last):
File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py", line
195, in create
vm.initDomain()
File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py", line
1363, in initDomain
raise VmError(str(exn))
VmError: (22, 'Invalid argument')
If to install guest OS FC6 (x86_64) install and run is normal. Whether there
is an opportunity to install as guest FC6 (i386) on FC6 (x86_64)?
17 years, 4 months
X resolution
by Lee Hornby
Hello All
Working fc6 xen Dom0.
Is it possible to get fc6 client working with X on more than 800*600
resolution?
Googling hasn't turned up much.
regards
Lee
17 years, 4 months
resize domU
by Gary Siao
Hi gurus
I have setup XEN using FC6 and used raw disk as disk storage for DomU
instead of using disk image.
I have already resize the LV on Dom0 which DomU uses and restarted DomU but
still DomU sees the old size..
I would like to ask help on the procedure on resizing DomU
Thanks much
17 years, 4 months
Re: Fedora-xen Digest, Vol 13, Issue 10
by Stan Larson
I'm not a Xen guru (or any other guru for that matter) and I haven't
used FC6. However, I have documented detailed procedures for expanding
a DomU on FC5 at the following HowTo on XenSource. In a nutshell, I
added a partition to the DomU using fdisk within the guest environment
and then used LVM to expand the existing logical partition that
contained the root filesystem.
http://wiki.xensource.com/xenwiki/FC5Zimbra
Skip down to the section labeled "Expand A Guest Domain's Disk Space And
Filesystem".
Stan Larson
I/S Manager
Freedom Sales & Marketing
P: (727) 835-1150
F: (727) 835-1151
stan(a)freedomics.com
www.freedomics.com
fedora-xen-request(a)redhat.com wrote:
> Send Fedora-xen mailing list submissions to
> fedora-xen(a)redhat.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://www.redhat.com/mailman/listinfo/fedora-xen
> or, via email, send a message with subject or body 'help' to
> fedora-xen-request(a)redhat.com
>
> You can reach the person managing the list at
> fedora-xen-owner(a)redhat.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Fedora-xen digest..."
>
>
> Today's Topics:
>
> 1. resize domU (Gary Siao)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 4 Dec 2006 12:27:23 -0500
> From: "Gary Siao" <garysiao(a)gmail.com>
> Subject: [Fedora-xen] resize domU
> To: fedora-xen(a)redhat.com
> Message-ID:
> <fc834d60612040927n6c124354yfe56e1f0129dad89(a)mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi gurus
>
> I have setup XEN using FC6 and used raw disk as disk storage for DomU
> instead of using disk image.
>
> I have already resize the LV on Dom0 which DomU uses and restarted DomU but
> still DomU sees the old size..
>
> I would like to ask help on the procedure on resizing DomU
>
> Thanks much
>
17 years, 4 months