Ubuntu guest over nfs on XEN

posted in Hypervisor
Saturday, August 24 2013, 03:19 AM
Rafael
Rafael
Offline
0
Hi,

I am running Xen 4.1.2 over Ubuntu server 12.04 - LTS, and I am trying to create VMs using an NFS shared folder, the installation process starts, but when the installation checks the hardware, it says that was not found a HD device and the installation cannot continue. I thought that when I use the NFS option in .cfg files the Xen would emulate a HD device to the guest O.S mapped by /dev/nfs.

Here is my configuration file:
#
# Configuration file for the Xen NFS-root instance ubuntu-openstack.
# Created by xen-tools 4.2.1 on Fri Aug 23 22:47:02 2013.
#

#
#  Common stuff.
#
kernel  = '/xen/imagens/ubuntu-netboot/vmlinuz'
ramdisk = '/xen/imagens/ubuntu-netboot/initrd.gz'
memory  = 2048
vcpus = 2

# Name
name        = 'ubuntu-openstack'
hostname    = 'ubuntu-openstack'

#
#  Networking
#
dhcp        = 'dhcp'
vif         = [ '' ]

#  NFS options
nfs_server = 'ip address'
nfs_root   = '/srv/nfs4/xen/vms'
root       = '/dev/nfs'




Any ideas in how to work this around ?
Responses (1)
  • Accepted Answer

    Monday, September 02 2013, 11:34 AM - #permalink
    0
    Interesting question. I've never done this, but I found the following article on the subject:

    http://wiki.prgmr.com/mediawiki/index.php/Chapter_4:_Storage_with_Xen

    I noted the section right after the line: "First, you’ll need to make some changes to the domU’s kernel to enable root on NFS:"

    Have you done something similar to make sure the result will work? Or is the error coming before that point?

    Thanks.
    The reply is currently minimized Show
Your Reply