Hello, I''m running Ubuntu 8.04 server that I''ve been testing out using LVM based xen virtual servers. The install went as it should, then I made my first test image using: xen-create-image --hostname=test1.test.com --lvm=vg0 --size=10Gb --swap=1Gb --ip=192.168.31.231 --force --memory=50Mb --arch=amd64 --debootstrap After it finishes I use xm create to start the virtual machine but I keep getting: Error: (38, ''Function not implemented'') I even tried uninstalling, then reinstalling xen but that didn''t help. Has anyone seen this before, or know how to take care of it? Here''s the configuration file I''m using: # Configuration file for the Xen instance test1.tlthost.net, created # by xen-tools 3.8 on Sun Mar 28 14:46:54 2010. # Kernel + memory size # kernel = ''/boot/vmlinuz-2.6.24-27-xen'' ramdisk = ''/boot/initrd.img-2.6.24-27-xen'' memory = ''50'' # # Disk device(s). # root = ''/dev/xvda2 ro'' disk = [ ''phy:/dev/vg0/test1.tlthost.net-swap,xvda1,w'', ''phy:/dev/vg0/test1.tlthost.net-disk,xvda2,w'', ] # # Hostname # name = ''test1.tlthost.net'' # # Networking # vif = [ ''ip=192.168.31.231,mac=00:16:3E:52:A0:C9'' ] # # Behaviour # on_poweroff = ''destroy'' on_reboot = ''restart'' on_crash = ''restart'' extra = ''2 console=xvc0'' Here is xm info: root@dom0:~# xm info host : dom0 release : 2.6.24-27-xen version : #1 SMP Fri Mar 12 02:51:39 UTC 2010 machine : x86_64 nr_cpus : 1 nr_nodes : 1 cores_per_socket : 1 threads_per_core : 1 cpu_mhz : 2611 hw_caps : 078bf3ff:ebd3fbff:00000000:00000010:00002001:0000001d:0 000001d:00000000 virt_caps : total_memory : 895 free_memory : 54 node_to_cpu : node0:0 node_to_memory : node0:54 xen_major : 3 xen_minor : 2 xen_extra : .1-rc1-pre xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x 86_32p hvm-3.0-x86_64 xen_scheduler : credit xen_pagesize : 4096 platform_params : virt_start=0xffff800000000000 xen_changeset : unavailable cc_compiler : gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu4) cc_compile_by : buildd cc_compile_domain : buildd cc_compile_date : Sat Feb 21 03:01:02 UTC 2009 xend_config_format : 4 Thanks, Tom _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2010-Apr-05 06:05 UTC
Re: [Xen-users] Re-occuring error trying to set up first DOM
On Wed, Mar 31, 2010 at 4:20 AM, Tom Potwin <wxman2@gmail.com> wrote:> Hello, > > I''m running Ubuntu 8.04 server that I''ve been testing out using LVM based > xen virtual servers. The install went as it should, then I made my first > test image using: > xen-create-image --hostname=test1.test.com --lvm=vg0 --size=10Gb --swap=1Gb > --ip=192.168.31.231 --force --memory=50Mb --arch=amd64 --debootstrap > > After it finishes I use xm create to start the virtual machine but I keep > getting: > Error: (38, ''Function not implemented'') > > I even tried uninstalling, then reinstalling xen but that didn''t help. Has > anyone seen this before, or know how to take care of it?I''m guessing you use Ubuntu''s bundled version of Xen? There were some problems reported on this list when using Ubuntu''s version. Try building from source downloaded from http://www.xen.org/products/xen_source.html If you don''t know how to build from source, then the easiest way to gen xen working is to use a Linux distro which has good xen version bundled and supported, and widely used. Centos or opensuse (with latest updates) should be a good choice. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Tom Potwin
2010-Apr-05 16:27 UTC
RE: [Xen-users] Re-occuring error trying to set up first DOM
Hi Thanks for the response. When I first installed it, I turned on the backports. What I''ve tried now is shutting them back off, completely uninstalling the whole thing, then reinstalled it. After a reboot, and running the same xen-create-image, I checked lvdisplay and it showed the two new LV''s. Then, when I ran xm create /etc/xen/test1.test.com.cfg I get: Error: Device 0 (vif) could not be connected. Hotplug scripts not working. After a web search I found this solution in the comments at http://www.debian-administration.org/articles/396: Now if you try to boot a domU it will fail with: Error: Device 0 (vif) could not be connected. Hotplug scripts not working. You need to link the xen-backend.rules file in /etc/udev from /etc/udev/rules.d - cd /etc/udev/rules.d ; ln -s ../xen-backend.rules xen-backend.rules This will make the vif error go away, now you''ll be getting cannot mount fs errors, unknown block device. This is because the initrd is now required for your domU to boot, so add this to your domU config file(s): ramdisk = "/boot/initrd.img-2.6.16-2-xen-686" After reading that, I uninstalled/reinstalled to start fresh. This time I made the fixes as I went. Now it''s working perfectly. Tom -----Original Message----- From: Fajar A. Nugraha [mailto:fajar@fajar.net] Sent: Monday, April 05, 2010 2:06 AM To: littimes@tlt.com Cc: xen-users@lists.xensource.com Subject: Re: [Xen-users] Re-occuring error trying to set up first DOM On Wed, Mar 31, 2010 at 4:20 AM, Tom Potwin <wxman2@gmail.com> wrote:> Hello, > > I''m running Ubuntu 8.04 server that I''ve been testing out using LVM > based xen virtual servers. The install went as it should, then I made > my first test image using: > xen-create-image --hostname=test1.test.com --lvm=vg0 --size=10Gb > --swap=1Gb > --ip=192.168.31.231 --force --memory=50Mb --arch=amd64 --debootstrap > > After it finishes I use xm create to start the virtual machine but I > keep > getting: > Error: (38, ''Function not implemented'') > > I even tried uninstalling, then reinstalling xen but that didn''t help. > Has anyone seen this before, or know how to take care of it?I''m guessing you use Ubuntu''s bundled version of Xen? There were some problems reported on this list when using Ubuntu''s version. Try building from source downloaded from http://www.xen.org/products/xen_source.html If you don''t know how to build from source, then the easiest way to gen xen working is to use a Linux distro which has good xen version bundled and supported, and widely used. Centos or opensuse (with latest updates) should be a good choice. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users