View previous topic :: View next topic |
Author |
Message |
pepoluan n00b


Joined: 28 Feb 2011 Posts: 43 Location: Jakarta, Indonesia
|
Posted: Mon Feb 28, 2011 4:58 am Post subject: Gentoo as DomU on VMware and/or XenServer |
|
|
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 |
|
 |
Suicidal l33t


Joined: 30 Jul 2003 Posts: 959 Location: /dev/null
|
Posted: Mon Feb 28, 2011 5:29 am Post subject: |
|
|
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. |
|
Back to top |
|
 |
pepoluan n00b


Joined: 28 Feb 2011 Posts: 43 Location: Jakarta, Indonesia
|
Posted: Mon Feb 28, 2011 6:51 am Post subject: |
|
|
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
Many thanks for your answers! _________________ Nobody is Perfect.
I am Nobody. |
|
Back to top |
|
 |
Suicidal l33t


Joined: 30 Jul 2003 Posts: 959 Location: /dev/null
|
Posted: Mon Feb 28, 2011 4:25 pm Post subject: |
|
|
Not a problem, if you have problems with the kernel config pm me and I can post mine for you to wget. |
|
Back to top |
|
 |
LucianoBarcaro n00b

Joined: 16 Mar 2011 Posts: 5 Location: Cascavel
|
Posted: Fri Mar 18, 2011 8:13 pm Post subject: Kernel config |
|
|
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 |
|
 |
cach0rr0 Bodhisattva


Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Fri Mar 18, 2011 9:44 pm Post subject: |
|
|
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 |
|
 |
idella4 Retired Dev


Joined: 09 Jun 2006 Posts: 1600 Location: Australia, Perth
|
Posted: Fri Mar 18, 2011 10:24 pm Post subject: |
|
|
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 |
|
 |
LucianoBarcaro n00b

Joined: 16 Mar 2011 Posts: 5 Location: Cascavel
|
|
Back to top |
|
 |
pepoluan n00b


Joined: 28 Feb 2011 Posts: 43 Location: Jakarta, Indonesia
|
|
Back to top |
|
 |
|