Oded ,

I have Fedora Core 6  on an i386 mahine ; I had used a Virtual
Machine Monitor to create and start a domU. (which is para virtualized
and FC6 based). This Virtual Machine Monitor is part of the Fedora
Core 6 installation.
(Applications->Systems Tools->Virtual Machine Monitor).
It works without any problems.

Installation is quite simple, and you can find a step by step description here:
http://wiki.xensource.com/xenwiki/XenIntro#head-b92d8b84fba2c72099710afd1027e8eafdad0f98

Regards,
Rami Rosen




On 11/29/06, Oded Arbel <[EMAIL PROTECTED]> wrote:

--=-3LD+5Pxn+/qCKd/a9nM3
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi list - a Xen question for the Xen masters out there, if you please.

I have a Fedora Core 6 with Xen 3.0.3 installed which is running a Cent
OS 4.4 on a fully virtualized domU (all this on an EM64T dual-cpu). The
cpuinfo claims I have VT support, but I'm not very happy with the
performance I'm getting (the VM stutters a lot and is generally very
slow and painful).

So I decided to try to paravirtualize it. I downloaded a RHEL 4.4 kernel
RPM from XenSource web site, and installed in on both the disk image the
vm is running from, and in my host. I then modified the vm config file
to look like this:
<snip>
name = "sub1"
## builder = "hvm"
memory = "512"
disk = [ 'file:/var/xen/sub1/hda,hda,w' ]
vif = [ 'mac=00:16:3e:35:fe:9c, bridge=xenbr0', ]
uuid = "7fb7a5f3-199c-df57-3556-ba823c98b372"
## device_model = "/usr/lib64/xen/bin/qemu-dm"
## kernel = "/usr/lib/xen/boot/hvmloader"
vnc=1
vncunused=1
#pae=1

#bootloader="/usr/bin/pygrub"
initrd = "/boot/xeninitrd"
kernel = "/boot/xenkernel"
root = "/dev/hda1 ro"

vcpus=1
## serial = "pty" # enable serial console
on_reboot   = 'restart'
on_crash    = 'restart'
<snap>

(commented out lines is the values used for the fully-virtualized
setup).

Now when I try to start the VM, I get:
# xm create -c sub1
Using config file "/etc/xen/sub1".
Error: (22, 'Invalid argument')

and this log in the xend.log:
<snip>
[2006-11-29 12:39:43 xend.XendDomainInfo 2655] DEBUG
(XendDomainInfo:190) XendDomainInfo.create(['vm', ['name', 'sub1'],
['memory', '512'], ['on_reboot', 'restart'], ['on_crash', 'restart'],
['vcpus', 1], ['uuid', '7fb7a5f3-199c-df57-3556-ba823c98b372'],
['image', ['linux', ['kernel', '/boot/xenkernel'], ['root', '/dev/hda1
ro'], ['vnc', 1], ['vncunused', 1], ['display', 'localhost:10.0'],
['xauthority', '/root/.Xauthority']]], ['device', ['vbd', ['uname',
'file:/var/xen/sub1/hda'], ['dev', 'hda'], ['mode', 'w']]], ['device',
['vif', ['bridge', 'xenbr0'], ['mac', '00:16:3e:35:fe:9c']]]])
[2006-11-29 12:39:43 xend.XendDomainInfo 2655] DEBUG
(XendDomainInfo:296) parseConfig: config is ['vm', ['name', 'sub1'],
['memory', '512'], ['on_reboot', 'restart'], ['on_crash', 'restart'],
['vcpus', 1], ['uuid', '7fb7a5f3-199c-df57-3556-ba823c98b372'],
['image', ['linux', ['kernel', '/boot/xenkernel'], ['root', '/dev/hda1
ro'], ['vnc', 1], ['vncunused', 1], ['display', 'localhost:10.0'],
['xauthority', '/root/.Xauthority']]], ['device', ['vbd', ['uname',
'file:/var/xen/sub1/hda'], ['dev', 'hda'], ['mode', 'w']]], ['device',
['vif', ['bridge', 'xenbr0'], ['mac', '00:16:3e:35:fe:9c']]]]
[2006-11-29 12:39:43 xend.XendDomainInfo 2655] DEBUG
(XendDomainInfo:395) parseConfig: result is {'shadow_memory': None,
'uuid': '7fb7a5f3-199c-df57-3556-ba823c98b372', 'on_crash': 'restart',
'on_reboot': 'restart', 'localtime': None, 'image': ['linux', ['kernel',
'/boot/xenkernel'], ['root', '/dev/hda1 ro'], ['vnc', 1], ['vncunused',
1], ['display', 'localhost:10.0'], ['xauthority', '/root/.Xauthority']],
'on_poweroff': None, 'bootloader_args': None, 'cpus': None, 'name':
'sub1', 'backend': [], 'vcpus': 1, 'cpu_weight': None, 'features': None,
'vcpu_avail': None, 'memory': 512, 'device': [('vbd', ['vbd', ['uname',
'file:/var/xen/sub1/hda'], ['dev', 'hda'], ['mode', 'w']]), ('vif',
['vif', ['bridge', 'xenbr0'], ['mac', '00:16:3e:35:fe:9c']])],
'bootloader': None, 'cpu': None, 'maxmem': None}
[2006-11-29 12:39:43 xend.XendDomainInfo 2655] DEBUG
(XendDomainInfo:1253) XendDomainInfo.construct: None
[2006-11-29 12:39:43 xend.XendDomainInfo 2655] DEBUG
(XendDomainInfo:1285) XendDomainInfo.initDomain: 4 1.0
[2006-11-29 12:39:43 xend 2655] INFO (image:214) configuring linux guest
[2006-11-29 12:39:43 xend 2655] INFO (image:232) setting use_graphics
[2006-11-29 12:39:43 xend 2655] DEBUG (balloon:127) Balloon: 524780 KiB
free; need 524288; done.
[2006-11-29 12:39:43 xend 2655] INFO (image:138) buildDomain os=linux
dom=4 vcpus=1
[2006-11-29 12:39:43 xend 2655] DEBUG (image:193) dom            = 4
[2006-11-29 12:39:43 xend 2655] DEBUG (image:194) image
= /boot/xenkernel
[2006-11-29 12:39:43 xend 2655] DEBUG (image:195) store_evtchn   = 1
[2006-11-29 12:39:43 xend 2655] DEBUG (image:196) console_evtchn = 2
[2006-11-29 12:39:43 xend 2655] DEBUG (image:197) cmdline        =
root=/dev/hda1 ro
[2006-11-29 12:39:43 xend 2655] DEBUG (image:198) ramdisk        =
[2006-11-29 12:39:43 xend 2655] DEBUG (image:199) vcpus          = 1
[2006-11-29 12:39:43 xend 2655] DEBUG (image:200) features       =
[2006-11-29 12:39:43 xend.XendDomainInfo 2655] 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')
[2006-11-29 12:39:43 xend.XendDomainInfo 2655] DEBUG
(XendDomainInfo:1449) XendDomainInfo.destroy: domid=4
[2006-11-29 12:39:43 xend.XendDomainInfo 2655] DEBUG
(XendDomainInfo:1457) XendDomainInfo.destroyDomain(4)
<snap>

Any idea how to fix it ? grepping google brought up a couple of
configuration changes (that you can see above after I implemented them)
none of which didn't solve the problem.

Thanks in advance for any suggestion on what to try.

--
Oded
::..
"The Air Force is reacting to the EPA ban on CFC's by replacing them in
the cooling systems of the intercontinental (ballistic) missiles with 2
to 10 nuclear warheads on board. If they are ever fired, it will be an
environmentally friendly nuclear holocaust, not threatening the Ozone
layer."
    -- Access to Energy, July 1993


--=-3LD+5Pxn+/qCKd/a9nM3
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; CHARSET=3DUTF-8">
  <META NAME=3D"GENERATOR" CONTENT=3D"GtkHTML/3.12.1">
</HEAD>
<BODY>
Hi list - a Xen question for the Xen masters out there, if you please.<BR>
<BR>
I have a Fedora Core 6 with Xen 3.0.3 installed which is running a Cent OS =
4.4 on a fully virtualized domU (all this on an EM64T dual-cpu). The cpuinf=
o claims I have VT support, but I'm not very happy with the performance I'm=
 getting (the VM stutters a lot and is generally very slow and painful). <B=
R>
<BR>
So I decided to try to paravirtualize it. I downloaded a RHEL 4.4 kernel RP=
M from XenSource web site, and installed in on both the disk image the vm i=
s running from, and in my host. I then modified the vm config file to look =
like this:<BR>
&lt;snip&gt;<BR>
name =3D &quot;sub1&quot;<BR>
## builder =3D &quot;hvm&quot;<BR>
memory =3D &quot;512&quot;<BR>
disk =3D [ 'file:/var/xen/sub1/hda,hda,w' ]<BR>
vif =3D [ 'mac=3D00:16:3e:35:fe:9c, bridge=3Dxenbr0', ]<BR>
uuid =3D &quot;7fb7a5f3-199c-df57-3556-ba823c98b372&quot;<BR>
## device_model =3D &quot;/usr/lib64/xen/bin/qemu-dm&quot;<BR>
## kernel =3D &quot;/usr/lib/xen/boot/hvmloader&quot;<BR>
vnc=3D1<BR>
vncunused=3D1<BR>
#pae=3D1<BR>
<BR>
#bootloader=3D&quot;/usr/bin/pygrub&quot;<BR>
initrd =3D &quot;/boot/xeninitrd&quot;<BR>
kernel =3D &quot;/boot/xenkernel&quot;<BR>
root =3D &quot;/dev/hda1 ro&quot;<BR>
<BR>
vcpus=3D1<BR>
## serial =3D &quot;pty&quot; # enable serial console<BR>
on_reboot&nbsp;&nbsp; =3D 'restart'<BR>
on_crash&nbsp;&nbsp;&nbsp; =3D 'restart'<BR>
&lt;snap&gt;<BR>
<BR>
(commented out lines is the values used for the fully-virtualized setup).<B=
R>
<BR>
Now when I try to start the VM, I get:<BR>
# xm create -c sub1 <BR>
Using config file &quot;/etc/xen/sub1&quot;.<BR>
Error: (22, 'Invalid argument')<BR>
<BR>
and this log in the xend.log:<BR>
&lt;snip&gt;<BR>
[2006-11-29 12:39:43 xend.XendDomainInfo 2655] DEBUG (XendDomainInfo:190) X=
endDomainInfo.create(['vm', ['name', 'sub1'], ['memory', '512'], ['on_reboo=
t', 'restart'], ['on_crash', 'restart'], ['vcpus', 1], ['uuid', '7fb7a5f3-1=
99c-df57-3556-ba823c98b372'], ['image', ['linux', ['kernel', '/boot/xenkern=
el'], ['root', '/dev/hda1 ro'], ['vnc', 1], ['vncunused', 1], ['display', '=
localhost:10.0'], ['xauthority', '/root/.Xauthority']]], ['device', ['vbd',=
 ['uname', 'file:/var/xen/sub1/hda'], ['dev', 'hda'], ['mode', 'w']]], ['de=
vice', ['vif', ['bridge', 'xenbr0'], ['mac', '00:16:3e:35:fe:9c']]]])=0D<BR=
>
[2006-11-29 12:39:43 xend.XendDomainInfo 2655] DEBUG (XendDomainInfo:296) p=
arseConfig: config is ['vm', ['name', 'sub1'], ['memory', '512'], ['on_rebo=
ot', 'restart'], ['on_crash', 'restart'], ['vcpus', 1], ['uuid', '7fb7a5f3-=
199c-df57-3556-ba823c98b372'], ['image', ['linux', ['kernel', '/boot/xenker=
nel'], ['root', '/dev/hda1 ro'], ['vnc', 1], ['vncunused', 1], ['display', =
'localhost:10.0'], ['xauthority', '/root/.Xauthority']]], ['device', ['vbd'=
, ['uname', 'file:/var/xen/sub1/hda'], ['dev', 'hda'], ['mode', 'w']]], ['d=
evice', ['vif', ['bridge', 'xenbr0'], ['mac', '00:16:3e:35:fe:9c']]]]<BR>
[2006-11-29 12:39:43 xend.XendDomainInfo 2655] DEBUG (XendDomainInfo:395) p=
arseConfig: result is {'shadow_memory': None, 'uuid': '7fb7a5f3-199c-df57-3=
556-ba823c98b372', 'on_crash': 'restart', 'on_reboot': 'restart', 'localtim=
e': None, 'image': ['linux', ['kernel', '/boot/xenkernel'], ['root', '/dev/=
hda1 ro'], ['vnc', 1], ['vncunused', 1], ['display', 'localhost:10.0'], ['x=
authority', '/root/.Xauthority']], 'on_poweroff': None, 'bootloader_args': =
None, 'cpus': None, 'name': 'sub1', 'backend': [], 'vcpus': 1, 'cpu_weight'=
: None, 'features': None, 'vcpu_avail': None, 'memory': 512, 'device': [('v=
bd', ['vbd', ['uname', 'file:/var/xen/sub1/hda'], ['dev', 'hda'], ['mode', =
'w']]), ('vif', ['vif', ['bridge', 'xenbr0'], ['mac', '00:16:3e:35:fe:9c']]=
)], 'bootloader': None, 'cpu': None, 'maxmem': None}<BR>
[2006-11-29 12:39:43 xend.XendDomainInfo 2655] DEBUG (XendDomainInfo:1253) =
XendDomainInfo.construct: None<BR>
[2006-11-29 12:39:43 xend.XendDomainInfo 2655] DEBUG (XendDomainInfo:1285) =
XendDomainInfo.initDomain: 4 1.0<BR>
[2006-11-29 12:39:43 xend 2655] INFO (image:214) configuring linux guest<BR=
>
[2006-11-29 12:39:43 xend 2655] INFO (image:232) setting use_graphics<BR>
[2006-11-29 12:39:43 xend 2655] DEBUG (balloon:127) Balloon: 524780 KiB fre=
e; need 524288; done.<BR>
[2006-11-29 12:39:43 xend 2655] INFO (image:138) buildDomain os=3Dlinux dom=
=3D4 vcpus=3D1<BR>
[2006-11-29 12:39:43 xend 2655] DEBUG (image:193) dom&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =3D 4<BR>
[2006-11-29 12:39:43 xend 2655] DEBUG (image:194) image&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =3D /boot/xenkernel<BR>
[2006-11-29 12:39:43 xend 2655] DEBUG (image:195) store_evtchn&nbsp;&nbsp; =
=3D 1<BR>
[2006-11-29 12:39:43 xend 2655] DEBUG (image:196) console_evtchn =3D 2<BR>
[2006-11-29 12:39:43 xend 2655] DEBUG (image:197) cmdline&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp; =3D&nbsp; root=3D/dev/hda1 ro<BR>
[2006-11-29 12:39:43 xend 2655] DEBUG (image:198) ramdisk&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp; =3D <BR>
[2006-11-29 12:39:43 xend 2655] DEBUG (image:199) vcpus&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =3D 1<BR>
[2006-11-29 12:39:43 xend 2655] DEBUG (image:200) features&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp; =3D <BR>
[2006-11-29 12:39:43 xend.XendDomainInfo 2655] ERROR (XendDomainInfo:202) D=
omain construction failed<BR>
Traceback (most recent call last):<BR>
&nbsp; File &quot;/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInf=
o.py&quot;, line 195, in create<BR>
&nbsp;&nbsp;&nbsp; vm.initDomain()<BR>
&nbsp; File &quot;/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInf=
o.py&quot;, line 1363, in initDomain<BR>
&nbsp;&nbsp;&nbsp; raise VmError(str(exn))<BR>
VmError: (22, 'Invalid argument')<BR>
[2006-11-29 12:39:43 xend.XendDomainInfo 2655] DEBUG (XendDomainInfo:1449) =
XendDomainInfo.destroy: domid=3D4<BR>
[2006-11-29 12:39:43 xend.XendDomainInfo 2655] DEBUG (XendDomainInfo:1457) =
XendDomainInfo.destroyDomain(4)<BR>
&lt;snap&gt;<BR>
<BR>
Any idea how to fix it ? grepping google brought up a couple of configurati=
on changes (that you can see above after I implemented them) none of which =
didn't solve the problem.<BR>
<BR>
Thanks in advance for any suggestion on what to try.<BR>
<BR>
<TABLE CELLSPACING=3D"0" CELLPADDING=3D"0" WIDTH=3D"100%">
<TR>
<TD>
--<BR>
Oded<BR>
::..<BR>
&quot;The Air Force is reacting to the EPA ban on CFC's by replacing them i=
n the cooling systems of the intercontinental (ballistic) missiles with 2 t=
o 10 nuclear warheads on board. If they are ever fired, it will be an envir=
onmentally friendly nuclear holocaust, not threatening the Ozone layer.&quo=
t; <BR>
&nbsp;&nbsp;&nbsp;&nbsp;-- Access to Energy, July 1993 <BR>
<BR>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>

--=-3LD+5Pxn+/qCKd/a9nM3--


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to