Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo as DomU on VMware and/or XenServer
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
pepoluan
n00b
n00b


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

PostPosted: Mon Feb 28, 2011 4:58 am    Post subject: Gentoo as DomU on VMware and/or XenServer Reply with quote

Hello! First post here.

I'm a Gentoo newbie, but have been using Linux since Fedora first came out. So, I'd like some guidance for installation, if you don't mind...

Scenario: Deploying Gentoo as DomU on VMware *and* XenServer 5.6 fp 1

Explanation: The VMware is provided by my company's Cloud Server Provider; not really sure which version. The XenServer is used in-house. Can't change hypervisor due to some company policy regarding country representative and patently-stupid taxation rules (please don't get me started on this... I'll rant for days)

Main Questions:

[1.] Which kernel to use? I guess for VMware I should use generic; but what about XenServer?

[2.] Is there a guide to running Gentoo paravirtualized on XenServer somewhere?

[3.] What about the so-called 'VM tools'? Should I install them?

Additional Questions:

None ATM. But feel free to remind/warn me of any issues regarding Gentoo as DomU VMs.

Thanks beforehand for your kind assistance!
_________________
Nobody is Perfect.
I am Nobody.
Back to top
View user's profile Send private message
Suicidal
l33t
l33t


Joined: 30 Jul 2003
Posts: 940
Location: /dev/null

PostPosted: Mon Feb 28, 2011 5:29 am    Post subject: Reply with quote

I currently have a xen domu guest on vr.org running hardened-sources, pax and grsecurity.

Other than the xen stuff in the kernel nothing is different on the guest side.

Only thing I can think to warn about is that when I enabled all the xen stuff in kernel (vs the debial livecd I installed with) it changed /dev/hda to /dev/xvda and it switched from a realtek nic to a xen emulated nic.

I would recommend using UUID's in fstab and grub config since the dev names changed, which I always do anyway.

Creating symlinks from /dev/xvda* to /dev/hda* will make the grub install to your mbr much smoother as well.
_________________
Who controls the past now, controls the future
Who controls the present now, controls the past.
Back to top
View user's profile Send private message
pepoluan
n00b
n00b


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

PostPosted: Mon Feb 28, 2011 6:51 am    Post subject: Reply with quote

Suicidal wrote:
Only thing I can think to warn about is that when I enabled all the xen stuff in kernel (vs the debial livecd I installed with) it changed /dev/hda to /dev/xvda and it switched from a realtek nic to a xen emulated nic.

I would recommend using UUID's in fstab and grub config since the dev names changed, which I always do anyway.

Creating symlinks from /dev/xvda* to /dev/hda* will make the grub install to your mbr much smoother as well.

Ah yes, the hda/xvda switcheroo. Thanks for reminding :)

Suicidal wrote:
I currently have a xen domu guest on vr.org running hardened-sources, pax and grsecurity.

Other than the xen stuff in the kernel nothing is different on the guest side.

Thanks! Yeah I should've written hardened-sources above :oops:

Many thanks for your answers!
_________________
Nobody is Perfect.
I am Nobody.
Back to top
View user's profile Send private message
Suicidal
l33t
l33t


Joined: 30 Jul 2003
Posts: 940
Location: /dev/null

PostPosted: Mon Feb 28, 2011 4:25 pm    Post subject: Reply with quote

Not a problem, if you have problems with the kernel config pm me and I can post mine for you to wget.
_________________
Who controls the past now, controls the future
Who controls the present now, controls the past.
Back to top
View user's profile Send private message
LucianoBarcaro
n00b
n00b


Joined: 16 Mar 2011
Posts: 3
Location: Cascavel

PostPosted: Fri Mar 18, 2011 8:13 pm    Post subject: Kernel config Reply with quote

Hi suicidal,

plz, can you send to me your .config ?

I can't figure what's missing to get xenfs to work.

I'm receiving 'XENFS: not registering filesystem on non-xen platform'.

I've a xenserver 5.6 running with a gentoo vm.

Thanks.
Back to top
View user's profile Send private message
cach0rr0
Moderator
Moderator


Joined: 13 Nov 2008
Posts: 4121
Location: Houston, Republic of Texas

PostPosted: Fri Mar 18, 2011 9:44 pm    Post subject: Reply with quote

Suicidal wrote:

Creating symlinks from /dev/xvda* to /dev/hda* will make the grub install to your mbr much smoother as well.


shouldn't you be able to do this with a device.map ?
I had to do this on KVM with virtio hdd, because the device is /dev/vda

Step 3 from here:
http://www.linux-kvm.org/page/Boot_from_virtio_block_device
Code:

in guest os, change /boot/grub/device.map from "(hd0) /dev/sda" to "(hd0) /dev/vda"


only, well, use /dev/xvda for this, then run grub manually (not using grub-install) with this:

Code:

       --device-map=FILE
              use the device map file FILE


e.g.
Code:

grub --device-map /path/to/custom/device.map

then the usual root (hd0) and setup (hd0,0) stuff
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
idella4
Veteran
Veteran


Joined: 09 Jun 2006
Posts: 1587
Location: Australia, Perth

PostPosted: Fri Mar 18, 2011 10:24 pm    Post subject: Reply with quote

pepoluan
I may be a little late on this

XenServer 5.6 fp 1 is of citrix in origin.

a gentoo vm is like any other. the aforementioned kernels and any regular kernel can be used.
citrix it seems has its own documents for xen.
_________________
idella4@aus
Back to top
View user's profile Send private message
LucianoBarcaro
n00b
n00b


Joined: 16 Mar 2011
Posts: 3
Location: Cascavel

PostPosted: Thu Mar 31, 2011 4:08 am    Post subject: Gentoo paravirtualized running under XenServer Reply with quote

Hi all,

after a little while, I finally got gentoo running under XenServer.

If anyone needs help, please, visit:

http://templatesxen.blogspot.com/2011/03/gentoo-paravirtualizado-no-xenserver.html

I´ll write an english version soon.
Back to top
View user's profile Send private message
pepoluan
n00b
n00b


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

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

I've finally documented the HOWTO on Paravirtualizing Gentoo over XenServer in Gentoo-Wiki:

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

(still draft; comments/suggestions/criticisms are welcome, leave them in the Discussion Page of the article)
_________________
Nobody is Perfect.
I am Nobody.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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