OpenVZ Forum


Home » General » Support » Sparc, Debian and OpenVZ
Sparc, Debian and OpenVZ [message #13008] Thu, 17 May 2007 13:06 Go to next message
slybob is currently offline  slybob
Messages: 20
Registered: March 2007
Junior Member
Hey

I have been playing with openVZ for a few months on a couple of okay PC's(256mb athlon \ 512mb 1.6ghz celeron) on domestic adsl connections. I have been offered a Sunfire V210 (2x UltraSPARC IIIi, 2 or 4 gb ram, 2x 37 Gb RaidM scsi. 8mb pipe.) in a datacentre in london so would like to attempt some more advanced virtualisation on it with a view to setting up a proof of concept. I understand there is some support for sparc but I have been unable to find any real data about how to get this working.

Get control of the computer monday, pre installed with debian 3.1 (minimal)

Cheers,

Andy


How I learned to stop worrying and love SMTP
http://www.moonet.co.uk/

[Updated on: Thu, 17 May 2007 13:07]

Report message to a moderator

Re: Sparc, Debian and OpenVZ [message #13010 is a reply to message #13008] Thu, 17 May 2007 13:52 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

I was adding SPARC64 support to 2.6.18 kernel.
So you can take 2.6.18-OVZ kernel from site, compile it and install. OVZ tools should compile fine as well.
After that all you need is a template for SPARC64 distro and that's it.

Feel free to ask for any help or assistance.


http://static.openvz.org/userbars/openvz-developer.png
Re: Sparc, Debian and OpenVZ [message #13012 is a reply to message #13010] Thu, 17 May 2007 14:13 Go to previous messageGo to next message
slybob is currently offline  slybob
Messages: 20
Registered: March 2007
Junior Member
Sounds good. Does that stop us migrating a SPARC64 VE to IBM metal?

How I learned to stop worrying and love SMTP
http://www.moonet.co.uk/
Re: Sparc, Debian and OpenVZ [message #13013 is a reply to message #13012] Thu, 17 May 2007 14:17 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

Sorry, can't catch the question... What do you mean?
Whether it is possible to migrate VE from SPARC to IBM PC?
impossible, these platforms have different CPU command sets.
Or have you meant something else?


http://static.openvz.org/userbars/openvz-developer.png

[Updated on: Thu, 17 May 2007 14:18]

Report message to a moderator

Re: Sparc, Debian and OpenVZ [message #13014 is a reply to message #13013] Thu, 17 May 2007 14:18 Go to previous messageGo to next message
slybob is currently offline  slybob
Messages: 20
Registered: March 2007
Junior Member
no, that was the question, thanks.

How I learned to stop worrying and love SMTP
http://www.moonet.co.uk/
Re: Sparc, Debian and OpenVZ [message #13018 is a reply to message #13010] Thu, 17 May 2007 16:47 Go to previous messageGo to next message
slybob is currently offline  slybob
Messages: 20
Registered: March 2007
Junior Member
are you aware of any sparc64 templates?

How I learned to stop worrying and love SMTP
http://www.moonet.co.uk/
icon10.gif  Re: Sparc, Debian and OpenVZ [message #13019 is a reply to message #13018] Thu, 17 May 2007 16:52 Go to previous messageGo to next message
slybob is currently offline  slybob
Messages: 20
Registered: March 2007
Junior Member
just found em

http://openvz.org/download/template/cache/



How I learned to stop worrying and love SMTP
http://www.moonet.co.uk/
Re: Sparc, Debian and OpenVZ [message #13041 is a reply to message #13019] Fri, 18 May 2007 07:23 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

yep, that's it Smile
debian/ubuntu templates are quire easy to create.
RHEL/CentOS/fedora AFAIK do not support SPARC Sad((


http://static.openvz.org/userbars/openvz-developer.png
Re: Sparc, Debian and OpenVZ [message #13144 is a reply to message #13041] Mon, 21 May 2007 15:04 Go to previous messageGo to next message
slybob is currently offline  slybob
Messages: 20
Registered: March 2007
Junior Member
Im a little confused about getting this going..

http://wiki.openvz.org/Kernel_build#Rebuilding_kernel_from_s ources

This how to explains how to patch the kernel with the patch supplied as a .gz but the sparc patch is supplied as an rpm.

I assume kernel-2.6.18-ovz028stab031.1.src.rpm is my puppy. Its an twin processor UltraSpark IIIi with 2gb of ram.

How do I get this rpm into debian

uname -a
Linux debian 2.6.18-4-sparc64-smp #1 SMP Mon Mar 26 13:14:08 UTC 2007 sparc64 GNU/Linux

thanks,







How I learned to stop worrying and love SMTP
http://www.moonet.co.uk/
Re: Sparc, Debian and OpenVZ [message #13146 is a reply to message #13144] Mon, 21 May 2007 15:12 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

Everything available on downloads w/o RPM as well.

Take this patch: http://download.openvz.org/kernel/branches/2.6.18/028stab031 .1/patches/patch-ovz028stab031.1-combined.gz
and apply on mainstream 2.6.18 kernel downloaded from kernel.org from here: http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.18.tar .bz2

the problem in config only Smile
take your debian/ubuntu config, put it as .config and run:
# make oldconfig

then select all OpenVZ options as described http://wiki.openvz.org/Kernel_configuration


http://static.openvz.org/userbars/openvz-developer.png
Re: Sparc, Debian and OpenVZ [message #13149 is a reply to message #13146] Mon, 21 May 2007 16:08 Go to previous messageGo to next message
slybob is currently offline  slybob
Messages: 20
Registered: March 2007
Junior Member
last couple of commands, it was asking me for input on "file to patch:"

Cheers,

debian:/usr/src/kernel-2.6.18# gzip -dc patch-ovz028stab031.1-combined.gz | patch -p1
patching file COPYING.SWsoft
can't find file to patch at input line 358
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -uprN linux-2.6.18/Documentation/dontdiff linux-2.6.18.ovz/Documentation/dontdiff
|--- linux-2.6.18/Documentation/dontdiff        2006-09-19 23:42:06.000000000 -0400
|+++ linux-2.6.18.ovz/Documentation/dontdiff    2007-05-02 09:32:31.000000000 -0400
--------------------------
File to patch:
debian:/usr/src/kernel-2.6.18# ls -l
total 47348
-rw-r--r-- 1 root root    18494 2007-05-21 17:05 COPYING.SWsoft
drwxr-xr-x 3 root root     4096 2007-05-21 15:44 debian
-rw-rw-rw- 1 root root    39115 2007-04-26 17:28 kernel-2.6.18-i686.config.ovz
-rw-rw-rw- 1 root root    39201 2007-04-26 17:28 kernel-2.6.18-i686-enterprise.config.ovz
-rw-rw-rw- 1 root root    39163 2007-04-26 17:28 kernel-2.6.18-i686-smp.config.ovz
-rw-rw-rw- 1 root root    35722 2007-04-26 17:28 kernel-2.6.18-ia64.config.ovz
-rw-rw-rw- 1 root root    35886 2007-04-26 17:28 kernel-2.6.18-ppc64.config.ovz
-rw-rw-rw- 1 root root    35881 2007-04-26 17:28 kernel-2.6.18-x86_64.config.ovz
-rw-rw-rw- 1 root root    35958 2007-04-26 17:28 kernel-2.6.18-x86_64-smp.config.ovz
-rw-rw-rw- 1 root root    22676 2007-04-26 17:29 kernel-ovz.spec
-rw-rw-rw- 1 root root     2596 2007-04-26 17:28 linux-2.6.0-nonintconfig.patch
-rw-rw-rw- 1 root root   695322 2007-04-26 17:28 linux-2.6.17-aic94xx-1.0.2.patch
-rw-rw-rw- 1 root root   657872 2007-04-26 17:28 linux-2.6.18-drbd-0.7.22-0.8.0.patch
-rw-rw-rw- 1 root root    42796 2007-04-26 17:28 linux-2.6.18-drbd-8.0.0-8.0.2.patch
-rw-rw-rw- 1 root root 41863580 2007-04-26 17:28 linux-2.6.18.tar.bz2
-rw-rw-rw- 1 root root    35062 2007-04-26 17:28 linux-2.6.8.1-drbd-0.7.19-0.7.20.patch
-rw-rw-rw- 1 root root   375316 2007-04-26 17:28 linux-2.6.8.1-drbd-0.7.19.patch
-rw-rw-rw- 1 root root    56808 2007-04-26 17:28 linux-2.6.9-drbd-0.7.20-0.7.22.patch
-rw-rw-rw- 1 root root  3272613 2007-04-26 17:29 patch-028stab031-core
-rw-r--r-- 1 root root  1078894 2007-05-02 14:32 patch-ovz028stab031.1-combined.gz
debian:/usr/src/kernel-2.6.18#


How I learned to stop worrying and love SMTP
http://www.moonet.co.uk/
Re: Sparc, Debian and OpenVZ [message #13151 is a reply to message #13149] Mon, 21 May 2007 17:34 Go to previous messageGo to next message
slybob is currently offline  slybob
Messages: 20
Registered: March 2007
Junior Member
Hi, sorry, found my way out of that little maze Smile This is my first kernel compile so please excuse me. I couldn't find an existing configure file that bore any resemblance to the .configure generated by make oldconfig command.

running make after make oldconfig with the options specified in http://wiki.openvz.org/Kernel_configuration produced the following error.


kernel/cpt/cpt_context.c:134:2: error: #error Arch is not supported
make[2]: *** [kernel/cpt/cpt_context.o] Error 1
make[1]: *** [kernel/cpt] Error 2
make: *** [kernel] Error 2


Cheers,


How I learned to stop worrying and love SMTP
http://www.moonet.co.uk/
Re: Sparc, Debian and OpenVZ [message #13159 is a reply to message #13151] Tue, 22 May 2007 06:54 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

No problem. You are welcom.

Fix for the first problem (patch doesn't apply) - you should apply in to *extracted* kernel sources. I guess you finally resolved it yourself Smile

Fix for this problem: check your .config file and remove CONFIG_CPT=m option. it should be unset, since checkpointing feature is not supported on SPARC64.


http://static.openvz.org/userbars/openvz-developer.png
Re: Sparc, Debian and OpenVZ [message #13160 is a reply to message #13151] Tue, 22 May 2007 06:55 Go to previous message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

you can send me your .config file via email dev at openvz org
so I can review it and check if anything else needs fixing.


http://static.openvz.org/userbars/openvz-developer.png
Previous Topic: *SOLVED* network problem if I set onboot=yes
Next Topic: *SOLVED* OS upgrade
Goto Forum:
  


Current Time: Sat Apr 27 16:07:05 GMT 2024

Total time taken to generate the page: 0.02504 seconds