Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Script to install Citrix XenServer guest addons / XenServer
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
pepoluan
n00b
n00b


Joined: 28 Feb 2011
Posts: 41
Location: Jakarta, Indonesia

PostPosted: Thu Jul 07, 2011 8:16 am    Post subject: Script to install Citrix XenServer guest addons / XenServer Reply with quote

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
View user's profile Send private message
msalerno
Veteran
Veteran


Joined: 17 Dec 2002
Posts: 1338
Location: Sweating in South Florida

PostPosted: Fri Jul 08, 2011 6:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
pepoluan
n00b
n00b


Joined: 28 Feb 2011
Posts: 41
Location: Jakarta, Indonesia

PostPosted: Sat Jul 09, 2011 6:16 am    Post subject: Reply with quote

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
View user's profile Send private message
pepoluan
n00b
n00b


Joined: 28 Feb 2011
Posts: 41
Location: Jakarta, Indonesia

PostPosted: Sat Jul 09, 2011 4:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
soban_
l33t
l33t


Joined: 27 Aug 2008
Posts: 668
Location: /home/soban

PostPosted: Sat Jul 09, 2011 10:14 pm    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic-p-6748726.html#6748726 <- There is one more problem.
_________________
gg: 525600
Back to top
View user's profile Send private message
pepoluan
n00b
n00b


Joined: 28 Feb 2011
Posts: 41
Location: Jakarta, Indonesia

PostPosted: Sun Jul 10, 2011 2:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
soban_
l33t
l33t


Joined: 27 Aug 2008
Posts: 668
Location: /home/soban

PostPosted: Sun Jul 10, 2011 5:04 pm    Post subject: Reply with quote

When you finish it - give him here, ok? : )
_________________
gg: 525600
Back to top
View user's profile Send private message
pepoluan
n00b
n00b


Joined: 28 Feb 2011
Posts: 41
Location: Jakarta, Indonesia

PostPosted: Mon Jul 11, 2011 8:02 am    Post subject: Reply with quote

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
View user's profile Send private message
pepoluan
n00b
n00b


Joined: 28 Feb 2011
Posts: 41
Location: Jakarta, Indonesia

PostPosted: Mon Jul 11, 2011 9:38 am    Post subject: Reply with quote

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
View user's profile Send private message
pepoluan
n00b
n00b


Joined: 28 Feb 2011
Posts: 41
Location: Jakarta, Indonesia

PostPosted: Tue Jul 26, 2011 1:19 pm    Post subject: Reply with quote

My HOWTO on "Paravirtualizing Gentoo on XenServer" is now complete!

http://en.gentoo-wiki.com/wiki/User:Pepoluan/Paravirtualized_Gentoo_VMs_on_XenServer

Feel free to leave any comments / suggestions / criticisms in the article's Discussion Page :)
_________________
Nobody is Perfect.
I am Nobody.
Back to top
View user's profile Send private message
msalerno
Veteran
Veteran


Joined: 17 Dec 2002
Posts: 1338
Location: Sweating in South Florida

PostPosted: Tue Aug 02, 2011 1:23 pm    Post subject: Reply with quote

Looks great!

2 questions, can you include your kernels .config and do you have a base template you would share?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum