View previous topic :: View next topic |
Author |
Message |
pepoluan n00b
Joined: 28 Feb 2011 Posts: 42 Location: Jakarta, Indonesia
|
Posted: Thu Jul 07, 2011 8:16 am Post subject: Script to install Citrix XenServer guest addons / XenServer |
|
|
Yes, I know Christopher Wojno has shared a method to install XS Tools in a Gentoo guest.
I just make a script that automates the process.
But, with a significant improvement (in my not-so-humble opinion): My script does not install the RHEL/CentOS initscript, but installs its own custom OpenRC-compatible initscript.
The script itself, at 402 lines, is perhaps too long to post here. So I share it for all on BitBucket:
https://bitbucket.org/pepoluan/install-xe-guest-utilities-for-gentoo
Comments are welcome!
Edit: IMPORTANT NOTICE: The script has been fixed, and just pushed to BitBucket. Sorry for the inconvenience. _________________ Nobody is Perfect.
I am Nobody.
Last edited by pepoluan on Mon Jul 11, 2011 7:58 am; edited 2 times in total |
|
Back to top |
|
|
msalerno Veteran
Joined: 17 Dec 2002 Posts: 1338 Location: Sweating in South Florida
|
Posted: Fri Jul 08, 2011 6:26 pm Post subject: |
|
|
Are you using a custom kernel? If so, can you post your .config as well? I have a gentoo VM running on a citrix xen host, but the kernel was taken from a different distro, and is pretty ancient. |
|
Back to top |
|
|
pepoluan n00b
Joined: 28 Feb 2011 Posts: 42 Location: Jakarta, Indonesia
|
Posted: Sat Jul 09, 2011 6:16 am Post subject: |
|
|
msalerno wrote: | Are you using a custom kernel? If so, can you post your .config as well? I have a gentoo VM running on a citrix xen host, but the kernel was taken from a different distro, and is pretty ancient. |
Just the most recent hardened sources, but with deeply-customized .config (had to dig around to enable *all* Xen guest pv_ops options. (And disable all unnecessary options).
I'll post my .config here on Monday when I get back to the office.
BTW, the script -- and the .config -- has been tested, and it works splendidly on my VMs, which has gone into production. I'll post the .config of my latest VM, which is a Squid3 server. And I definitely am *very* satisfied of its performance after addition of the guest utilities _________________ Nobody is Perfect.
I am Nobody. |
|
Back to top |
|
|
pepoluan n00b
Joined: 28 Feb 2011 Posts: 42 Location: Jakarta, Indonesia
|
Posted: Sat Jul 09, 2011 4:46 pm Post subject: |
|
|
I feel ashamed...
Please read the 'VERY IMPORTANT NOTICE' on the 1st post before anyone thinks of trying my script.
*Nearly died of embarrassment*
Edit: Script at BitBucket has been fixed. _________________ Nobody is Perfect.
I am Nobody.
Last edited by pepoluan on Mon Jul 11, 2011 7:59 am; edited 1 time in total |
|
Back to top |
|
|
soban_ l33t
Joined: 27 Aug 2008 Posts: 668 Location: /home/soban
|
|
Back to top |
|
|
pepoluan n00b
Joined: 28 Feb 2011 Posts: 42 Location: Jakarta, Indonesia
|
Posted: Sun Jul 10, 2011 2:57 pm Post subject: |
|
|
soban_ wrote: | https://forums.gentoo.org/viewtopic-p-6748726.html#6748726 <- There is one more problem. |
Hmm... lots of people seem to have problem with paravirtualization of x86 kernel.
I'm currently writing an article for Gentoo Wiki. I'll post the link here when it's finished. _________________ Nobody is Perfect.
I am Nobody. |
|
Back to top |
|
|
soban_ l33t
Joined: 27 Aug 2008 Posts: 668 Location: /home/soban
|
Posted: Sun Jul 10, 2011 5:04 pm Post subject: |
|
|
When you finish it - give him here, ok? : ) _________________ gg: 525600 |
|
Back to top |
|
|
pepoluan n00b
Joined: 28 Feb 2011 Posts: 42 Location: Jakarta, Indonesia
|
Posted: Mon Jul 11, 2011 8:02 am Post subject: |
|
|
msalerno wrote: | Are you using a custom kernel? If so, can you post your .config as well? I have a gentoo VM running on a citrix xen host, but the kernel was taken from a different distro, and is pretty ancient. |
As promised, here's my .config:
Code: | Linux/x86_64 2.6.39-hardened-r4 Kernel Configuration |
http://pastebin.com/jDwFFZV5
HTH _________________ Nobody is Perfect.
I am Nobody. |
|
Back to top |
|
|
pepoluan n00b
Joined: 28 Feb 2011 Posts: 42 Location: Jakarta, Indonesia
|
Posted: Mon Jul 11, 2011 9:38 am Post subject: |
|
|
ebuild for XenServer Tools is finished. I think. Find it here:
https://bitbucket.org/pepoluan/xe-guest-utilities-ebuild
IMPORTANT NOTE: It is NOT YET tested!! Just eyeball it, and tell me if I made some stupid or not-so-stupid mistakes. _________________ Nobody is Perfect.
I am Nobody. |
|
Back to top |
|
|
pepoluan n00b
Joined: 28 Feb 2011 Posts: 42 Location: Jakarta, Indonesia
|
|
Back to top |
|
|
msalerno Veteran
Joined: 17 Dec 2002 Posts: 1338 Location: Sweating in South Florida
|
Posted: Tue Aug 02, 2011 1:23 pm Post subject: |
|
|
Looks great!
2 questions, can you include your kernels .config and do you have a base template you would share? |
|
Back to top |
|
|
|