Skip to contentSkip to conversation

Attempt to load 2.6.31 under Xen 3.5 on top of Ubuntu 9.04 Server (dom0_mem has not been specified)

DISCUSSION Boris Derzhavets 3 participants 7 messages Sep 11, 2009 – Sep 12, 2009

lore
Share & tools
lore
#0 lore raw

Typo.
System fails to boot without dom0_mem=1024M (2048M) at xen.gz line.

--- On Fri, 9/11/09, Boris Derzhavets <[email protected]> wrote:

From: Boris Derzhavets <[email protected]>
Subject: Attempt to load 2.6.31 under Xen 3.5 on top of Ubuntu 9.04 Server (dom0_mem has not been specified)
To: "Pasi Kärkkäinen" <[email protected]>
Cc: "[email protected]" <[email protected]>, "Konrad Rzeszutek Wilk" <[email protected]>
Date: Friday, September 11, 2009, 4:04 AM

System loads to boot.
dom0_mem=1024M resolves problem.

Boris.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw

Re: How to build xen.gz with static built-in command line dom0_mem=1024M ?

There is no supported way, as we expect to have a sane bootloader that can parse boot args. If youw ant to hack it in, edit the line 'cmdline = cmdline_cook(...' in arch/x86/setup.c to read 'cmdline = "my args go here";' instead.

-- Keir

Quoted 5 lines · Boris Derzhavets
#3 lore raw

Re: How to build xen.gz with static built-in command line dom0_mem=1024M ?

  Works for loading Dom0 ( JF's 2.6.31) under both Xen 3.4.1 and Xen 3.5 via both Grub legacy & Grub2.

Still have one issue , regarding Ubuntu Servers not Xen. xend starts fine on 9.04 ( Grub Legacy)
xend fails to start on 9.10 alpha 4 ( Grub2)

Thanks.
Boris.

--- On Fri, 9/11/09, Keir Fraser <[email protected]> wrote:

From: Keir Fraser <[email protected]>
Subject: Re: [Xen-devel] How to build xen.gz with static built-in command line dom0_mem=1024M ?
To: "Boris Derzhavets" <[email protected]>, "[email protected]" <[email protected]>
Date: Friday, September 11, 2009, 7:30 AM

There is no supported way, as we expect to have a sane bootloader that can parse boot args. If youw ant to hack it in, edit the line 'cmdline = cmdline_cook(...' in arch/x86/setup.c to read 'cmdline = "my args go here";' instead.

-- Keir

Quoted 5 lines · Boris Derzhavets

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#4 lore raw

Re: How to build xen.gz with static built-in command line dom0_mem=1024M ?

Quoted 7 lines · Boris Derzhavets

  Works for loading Dom0 ( JF's 2.6.31) under both Xen 3.4.1 and Xen 3.5 via both Grub legacy & Grub2.

Still have one issue , regarding Ubuntu Servers not Xen. xend starts fine on 9.04 ( Grub Legacy)
xend fails to start on 9.10 alpha 4 ( Grub2)

Grub/Grub2 doesn't have anything to do with xend.

The issue is somewhere else.

-- Pasi

Quoted 34 lines

Thanks.
Boris.

--- On Fri, 9/11/09, Keir Fraser <[email protected]> wrote:

From: Keir Fraser <[email protected]>
Subject: Re: [Xen-devel] How to build xen.gz with static built-in command line dom0_mem=1024M ?
To: "Boris Derzhavets" <[email protected]>, "[email protected]" <[email protected]>
Date: Friday, September 11, 2009, 7:30 AM

There is no supported way, as we expect to have a sane bootloader that can parse boot args. If youw ant to hack it in, edit the line 'cmdline = cmdline_cook(...' in arch/x86/setup.c to read 'cmdline = "my args go here";' instead.

-- Keir

Quoted 5 lines · Boris Derzhavets

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#5 lore raw

Failure to start xend in Xen 3.4.1 Dom0 ( 2.6.31 pvops) on top Ubuntu 9.10 Server

In reply to Keir Fraser

Suggestion below has been used to load Dom0 via grub entry:

menuentry "Xen 3.4 / Ubuntu 9.10 kernel 2.6.31" {
insmod ext2
set root=(hd0,13)
multiboot (hd0,13)/xen-3.4.gz
module (hd0,13)/vmlinuz-2.6.31
module (hd0,13)/initrd-2.6.31.img
}

Dom0 was loaded OK.
However, /etc/init.d/xend start generates xend.log :-

[2009-09-12 17:57:48 3372] INFO (SrvDaemon:336) Xend changeset: unavailable.. [2009-09-12 17:57:49 3372] ERROR (SrvDaemon:349) Exception starting xend ((111, 'Connection refused')) Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/server/SrvDaemon.py", line 341, in run servers = SrvServer.create()
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/server/SrvServer.py", line 251, in create root.putChild('xend', SrvRoot())
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/server/SrvRoot.py", line 40, in __init__ self.get(name)
  File "/usr/local/lib/python2.6/dist-packages/xen/web/SrvDir.py", line 84, in get val = val.getobj()
  File "/usr/local/lib/python2.6/dist-packages/xen/web/SrvDir.py", line 52, in getobj self.obj = klassobj()
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/server/SrvNode.py", line 30, in __init__ self.xn = XendNode.instance()
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 949, in instance inst.save()
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 484, in save self.save_networks()
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 499, in save_networks for network_uuid in XendNetwork.get_all()])
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/XendBase.py", line 102, in get_record for key in keys])
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/XendNetwork.py", line 196, in get_VIFs vms = XendDomain.instance().get_all_vms()
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/XendDomain.py", line 1736, in instance inst.init()
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/XendDomain.py", line 113, in init xstransact.Mkdir(XS_VMROOT)
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/xenstore/xstransact.py", line 355, in Mkdir complete(path, lambda t: t.mkdir(*args))
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/xenstore/xstransact.py", line 361, in complete t = xstransact(path)
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/xenstore/xstransact.py", line 29, in __init__ self.transaction = xshandle().transaction_start()
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/xenstore/xsutil.py", line 18, in xshandle xs_handle = xen.lowlevel.xs.xs()
Error: (111, 'Connection refused')
[2009-09-12 17:57:49 3371] INFO (SrvDaemon:220) Xend exited with status 1.

Boris.

--- On Fri, 9/11/09, Keir Fraser <[email protected]> wrote:

From: Keir Fraser <[email protected]>
Subject: Re: [Xen-devel] How to build xen.gz with static built-in command line dom0_mem=1024M ?
To: "Boris Derzhavets" <[email protected]>, "[email protected]" <[email protected]>
Date: Friday, September 11, 2009, 7:30 AM

There is no supported way, as we expect to have a sane bootloader that can parse boot args. If youw ant to hack it in, edit the line 'cmdline = cmdline_cook(...' in arch/x86/setup.c to read 'cmdline = "my args go here";' instead.

-- Keir

Quoted 5 lines · Boris Derzhavets

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#6 lore raw

Re: Failure to start xend in Xen 3.4.1 Dom0 ( 2.6.31 pvops) on top Ubuntu 9.10 Server

 One more notice.

Jeremy's  2.6.31-rc6 kernel just several times caused xend failure to start.
Actually, 2.6.31-rc6  hadn't  problems with supporting Dom0 on top of Ubuntu 9.10 , i.e. xend started almost every time. 2.6.29.6 & 2.6.30.2 xenified kernels also don't have any problems with
xend startup after loading Dom0.
It seems to me as issue dependent on kernel supporting Dom0, first time  raised up for 2.6.31-rc9. On the other hand 2.6.31 works fine under Xen 3.4.1 on top of Ubuntu 9.04 Server.

Xen port to Ubuntu is done every time via tuning Config.mk to place xen folder under /usr/local/lib/phyton2.6/dist-packages.

Boris.

--- On Sat, 9/12/09, Boris Derzhavets <[email protected]> wrote:

From: Boris Derzhavets <[email protected]>
Subject: [Xen-devel] Failure to start xend in Xen 3.4.1 Dom0 ( 2.6.31 pvops) on top Ubuntu 9.10 Server
To: "[email protected]" <[email protected]>, "Keir Fraser" <[email protected]>
Date: Saturday, September 12, 2009, 10:13 AM

Suggestion below has been used to load Dom0 via grub entry:

menuentry "Xen 3.4 / Ubuntu 9.10 kernel 2.6.31" {
insmod ext2
set root=(hd0,13)
multiboot (hd0,13)/xen-3.4.gz
module (hd0,13)/vmlinuz-2.6.31
module (hd0,13)/initrd-2.6.31.img
}

Dom0 was loaded OK.
However, /etc/init.d/xend start generates xend.log :-

[2009-09-12 17:57:48 3372] INFO (SrvDaemon:336) Xend changeset: unavailable. [2009-09-12 17:57:49 3372] ERROR (SrvDaemon:349) Exception starting xend ((111, 'Connection refused')) Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/server/SrvDaemon.py", line 341, in run servers = SrvServer.create()
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/server/SrvServer.py", line 251, in create
root.putChild('xend', SrvRoot())
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/server/SrvRoot.py", line 40, in __init__ self.get(name)
  File "/usr/local/lib/python2.6/dist-packages/xen/web/SrvDir.py", line 84, in get val = val..getobj()
  File "/usr/local/lib/python2.6/dist-packages/xen/web/SrvDir.py", line 52, in getobj self.obj = klassobj()
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/server/SrvNode.py", line 30, in __init__ self.xn = XendNode.instance()
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 949, in instance inst.save()
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 484, in save self.save_networks()
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 499, in
save_networks
    for network_uuid in XendNetwork.get_all()])
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/XendBase.py", line 102, in get_record for key in keys])
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/XendNetwork.py", line 196, in get_VIFs vms = XendDomain.instance().get_all_vms()
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/XendDomain.py", line 1736, in instance inst.init()
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/XendDomain.py", line 113, in init xstransact.Mkdir(XS_VMROOT)
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/xenstore/xstransact.py", line 355, in Mkdir complete(path, lambda t: t.mkdir(*args))
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/xenstore/xstransact.py", line 361, in
complete
    t = xstransact(path)
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/xenstore/xstransact.py", line 29, in __init__ self.transaction = xshandle().transaction_start()
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/xenstore/xsutil.py", line 18, in xshandle xs_handle = xen.lowlevel.xs.xs()
Error: (111, 'Connection refused')
[2009-09-12 17:57:49 3371] INFO (SrvDaemon:220) Xend exited with status 1.

Boris.

--- On Fri, 9/11/09, Keir Fraser <[email protected]> wrote:

From: Keir Fraser <[email protected]>
Subject: Re: [Xen-devel] How to build xen.gz with static built-in command line dom0_mem=1024M ?
To: "Boris Derzhavets" <[email protected]>,
"[email protected]" <[email protected]>
Date: Friday, September 11, 2009, 7:30 AM

There is no supported way, as we expect to have a sane bootloader that can parse boot args. If youw ant to hack it in, edit the line 'cmdline = cmdline_cook(...' in arch/x86/setup.c to read 'cmdline = "my args go here";' instead.

-- Keir

Quoted 5 lines · Boris Derzhavets

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

-----Inline Attachment Follows-----

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel