trouble with xen domU install script xenguest-install.py
by Henning Sprang
Hi,
I try to use xen on fedora, by going the way the fedora5 xen howto in
the wiki describes.
I installed the packages, xend seems to run fine, the xen ethernet
interfaces seem to be there.
I then run the script /usr/sbin/xenguest-install.py
It seems to take 8-9 hours to complete - is there something I can do to
make that faster?
I also had major troubles with the install vm not getting a dhcp
address, but instead of telling me so, after the dhcp condig failed I
got no error, but the network config screen appeared again and again.
Henning
18 years, 1 month
hald, dbus-daemon (messagebus service) - does a guest domain need those?
by Aleksander Adamowski
Hi!
I've noticed that a guest domain installed using xenguest-install.py has
the HAL daemon and mesagebus dbus-daemon daemons active, eating up memory.
Are those daemons really needed for minimal server installation? AFAIK,
they are related to management of hardware and for desktop environments,
while a guest domain is usually:
1. run on "virtual hardware" (no hot plugged devices, the hardware
seen from the domain's perspective is quite uniform)
2. used for server, not dekstop environments
I've disabled those 2 services, rebooted the guest domain and it works
fine - so is it OK to disable those permanently? Or do I risk some
problems occuring?
Maybe it's a good idea to make Anaconda disable those services upon
install by default?
--
Best Regards,
Aleksander Adamowski
GG#: 274614
ICQ UIN: 19780575
http://olo.ab.altkom.pl
18 years, 1 month
Migration of a DomU
by Roger Grosswiler
Hey,
is it possible to migrate easily a DomU from one machine to another -
using complete different hardware?
Thanks,
Roger
18 years, 1 month
Re: [Fedora-xen] problems with using xen-get.org images in fc5
by Henning Sprang
Ted Kaczmarek wrote:
>
> Paste your domU config and an ls of /boot, that should help.
"broken" domU config:
#kernel = "/boot/vmlinuz-2.6-xenU"
kernel = "/boot/vmlinuz-2.6.16-1.2080_FC5xenU"
ramdisk= "/boot/initrd-1.6.16-1.2080_FC5xenU.img"
memory = 128
name = "fedora.fc5"
#nics = 1
vif = [ '' ]
dhcp = "dhcp"
disk = ['file:/var/xen/xen-get-fedora/fedora.fc5.img,sda1,w',
'file:/var/xen/xen-get-fedora/fedora.swap,sda2,w']
root = "/dev/sda1 ro"
#bootloader="/usr/bin/pygrub"
like this, I get:
Using config file "/etc/xen/xen-get-fedora".
Error: Error creating domain: Kernel image does not exist:
/boot/vmlinuz-2.6.16-1.2080_FC5xenU
[root@localhost ~]# ls -l /boot/
total 12741
-rw-r--r-- 1 root root 63847 Mar 14 22:19 config-2.6.15-1.2054_FC5smp
-rw-r--r-- 1 root root 59663 Mar 28 11:27 config-2.6.16-1.2080_FC5xen0
-rw-r--r-- 1 root root 28213 Mar 28 11:38 config-2.6.16-1.2080_FC5xenU
drwxr-xr-x 2 root root 1024 Apr 8 14:42 grub
-rw-r--r-- 1 root root 1788626 Apr 8 11:40 initrd-2.6.15-1.2054_FC5smp.img
-rw-r--r-- 1 root root 1790016 Apr 8 12:26 initrd-2.6.16-1.2080_FC5xen0.img
-rw-r--r-- 1 root root 1601032 Apr 8 12:26 initrd-2.6.16-1.2080_FC5xenU.img
drwx------ 2 root root 12288 Apr 8 13:35 lost+found
-rw-r--r-- 1 root root 831559 Mar 14 22:19 System.map-2.6.15-1.2054_FC5smp
-rw-r--r-- 1 root root 814854 Mar 28 11:27 System.map-2.6.16-1.2080_FC5xen0
-rw-r--r-- 1 root root 637766 Mar 28 11:38 System.map-2.6.16-1.2080_FC5xenU
-rw-r--r-- 1 root root 1564844 Mar 14 22:19 vmlinuz-2.6.15-1.2054_FC5smp
-rw-r--r-- 1 root root 1529298 Mar 28 11:27 vmlinuz-2.6.16-1.2080_FC5xen0
-rw-r--r-- 1 root root 1232494 Mar 28 11:38 vmlinuz-2.6.16-1.2080_FC5xenU
-rw-r--r-- 1 root root 265927 Mar 28 10:35 xen.gz-2.6.16-1.2080_FC5
-rwxr-xr-x 1 root root 734680 Mar 28 12:04 xen-syms-2.6.16-1.2080_FC5
When I remove the comment before the bootloader line, I get:
Using config file "/etc/xen/xen-get-fedora".
Traceback (most recent call last):
File "/usr/bin/pygrub", line 256, in ?
cf = get_config(file, isconfig)
File "/usr/bin/pygrub", line 119, in get_config
fs = fstype.open_fs(fn, offset)
File "/usr/lib/python2.4/site-packages/grub/fsys/ext2/__init__.py",
line 35, in open_fs
return Ext2Fs(fn, offset = offset)
ValueError: unable to open file
Error: Boot loader didn't return any data!
The working config generated by the fedora5 script described in the wiki
looks like:
# Automatically generated xen config file
name = "fedora-simple"
memory = "256"
disk = [ 'file:/var/xen/fedora-simple,xvda,w' ]
vif = [ 'mac=00:16:3e:16:03:83' ]
bootloader="/usr/bin/pygrub"
on_reboot = 'restart'
on_crash = 'restart'
>
>
> I have no problems with any of the images from jailtime.org
> or any of the ones I spun using rpm. These are the same images that I had
> running on Xen since pre 3.0 from hg checkouts sometime in November of
> last year.
I'll see if I can try the same with a jailtime image instead. This can
take a while because the hardware I had for testing will not be
available much longer.
Henning
18 years, 1 month
Gnome desktop in domU? (aka xorg and startx problems in domU)
by Raul Saura
Denis,
You can not run X on a DomU as the guest has no video hardware available,
but you can do the following:
run "Xvnc :0" on DomU, this will start an X server that uses a pseudo-frame
buffer as video-hardware and serves that framebuffer via vnc protocol.
now run "gnome-session" on DomU to start the whole gnome desktop
infraestructure on the guest OS (as gdm will do)
Now, from dom0 that is the only one with a physical screen attached at,
launch vncviewer and connect to domU-ip-address:0, this will show the remote
virtual desktop.
hope this helps.
Raul.
---------- Forwarded message ----------
From: Denis Forveille <denis.forveille(a)gmail.com>
To: fedora-xen(a)redhat.com
Date: Fri, 07 Apr 2006 21:09:33 -0400
Subject: [Fedora-xen] Gnome desktop in domU? (aka xorg and startx problems
in domU)
I'm experimenting with xen on FC5 (as domU and dom0).
The idea is to have a machine running dom0 with 4 guests, one of the guest
would be my workstation/desktop (with gnome running), the others guests
would be application/file/utilities servers.
I would like to perform something like:
- logon to the domU via ssh, from dom0 for example (I also have tried it
with "xm console domU" from dom0, the result is the same)
- run "startx" : that should bring the standard logon screen
- after login, use the gnome desktop as from a standard standalone
workstation
But this does not work: startx does not start (first because the
xorg.confis not created. I've tried to run "X -configuration" to
create
xorg.conf, but the command fails also to create the xorg.conf file)
BTW, on dom0 "startx" and the gnome desktop run perfectly
Q:
- Is it possible to configure X and run "startx" in a domU (I've read
somewhere on the net that this is not possible...). If so how to do it?
- What is the best way to get a full gnome desktop workstation that would
run in domU like a standalone workstation?
I've tried the "vnc" solution, it works great but have limitations (at least
for me). and would greatly prefer what I described previsoulsy:
(I don't know how to get the logon screen with vnc, the screen resolution
can not be easily choosen/changed, the desktop to be somewhat "slower" than
the "local" desktop)
Thanks in advance for any advice or pointer.
(I'm not really a newbee with linux, but I'm far from an expert...)
--
18 years, 1 month
Network problem during FC5 XEN Guest install
by Raul Saura
Hello,
I'm trying to create a xen-guest install using xenguest-install.py script,
following the indications from
http://fedoraproject.org/wiki/FedoraXenQuickstartFC5.
I've had to shrink mi xen0 domain to 128MB in order to allow guest to start
install, otherwise I get the "The privileged domain did not balloon!"
error-message.
I've exported the FC5 DVD through NFS from the xen0 domain itself hoping it
will be visible from the guest during the install process.
Now I'm in the first stage of the anaconda Installer and DHCP IP learning
does not seems to work, in fact no network seems to be available from the
guest, because when I manually configure an IP, the guest can not see the
NFS export either...
I've been tcpduming for a while, and I can not see any traffic from/to the
guest. But in fact I don't even known if i should be seeing any traffic from
the xen0 eth0 interface, should I?
Any help will be welcomed.
Thanks a lot.
Raul.
18 years, 1 month
problems with using xen-get.org images in fc5
by Henning Sprang
Hi,
apart from the FC5 xen install script, I just tried to use the fedory 5
Image from xen-get.org on a fedora5 host system.
xend is started (the fc5 install script which takes so long runs at the
same time).
I adjusted the locations of my disk files from the template config that
came with the cen-get image to match my kernel and disk image file
locations.
When trying to start the vm, I get the error:
"Error: Error creating domain: Kernel image does not exist:
/boot/vmlinuz-2.6.16-1.2080_FC5xenU"
But the file is definitely at exactly this location - I just asked a
colleague for help but he also couldN#t see any error.
I saw that the xen config file generated by the fedora5 install script
for fc5 domU (/usr/sbin/xenguest-install.py) seems to create a very
different looking config file than the ones I ever saw in any howto or
documentation, so I suspect fc5 added some patches to the xen start
scripts and I must make my config file "somehow" else, but I don't see how.
Is it impossible to use a "standard" xen config file in fc5 with the fc5
provided xen packages?
Henning
18 years, 1 month
Reminder post :-)
by Ted Kaczmarek
xm info still doesn't provide changeset info, I know I posted about
this before but that was quite some time back.
Will open a bug up on this as IMHO changeset info can be most valuable.
[root@inyoureyes]/etc/xen# xm info
system : Linux
host : inyoureyes.linsolutions.com
release : 2.6.16-1.2080_FC5xen0
version : #1 SMP Tue Mar 28 04:13:51 EST 2006
machine : i686
nr_cpus : 2
nr_nodes : 1
sockets_per_node : 2
cores_per_socket : 1
threads_per_core : 1
cpu_mhz : 1796
hw_caps : 0383fbff:c1cbfbff:00000000:00000020
total_memory : 2048
free_memory : 1328
xen_major : 3
xen_minor : 0
xen_extra : .0
xen_caps : xen-3.0-x86_32
platform_params : virt_start=0xfc000000
xen_changeset : unavailable
cc_compiler : gcc version 4.1.0 20060304 (Red Hat 4.1.0-3)
cc_compile_by : bhcompile
cc_compile_domain : build.redhat.com
cc_compile_date : Tue Mar 28 03:35:03 EST 2006
Regards,
ted
18 years, 1 month
Fwd: Network problem during FC5 XEN Guest install (the last one...)
by Raul Saura
Sorry for the mail-flood but I finally got It working and I think someone
else could find this useful.
The root of the problem was that no peth0 interface was created on Dom0,
after reading xensources wiki and doing "brctl show" made it clear.
I still dont't know why this was happening but I think It was somehow
related with SELinux or netplugd.
I reinstalled FC5 without SELinux nor iptables, and xenguest-install.py just
worked as expected, and the DomU guest got DHCP and reached the NFS
mount-point exported in the Dom0 Itsef.
Maybe some smart developers should take look at this.
regards.
18 years, 1 month