[Fedora-xen] First VM error: No such domain vmguest1

Peter Guthrie peter at unixplanet.co.uk
Fri Aug 11 08:14:42 UTC 2006


Chris Lalancette wrote:
> Peter Guthrie wrote:
>>
>> Can anyone help with the following error I get when trying to create 
>> my first VM.
>>
>> Xen0 host is FC5 x86_64 on a dual cpu, dual core opteron 275 with 4Gb 
>> of memory up to date with patches.
>>
>> # uname -a
>> Linux dhcp-201.local.net 2.6.17-1.2157_FC5xen0 #1 SMP Tue Jul 11 
>> 23:30:05 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux
>>
>> # xenguest-install.py
>> What is the name of your virtual machine? vmguest1
>> How much RAM should be allocated (in megabytes)? 512
>> What would you like to use as the disk (path)? /var/tmp/vmguest1-disk
>> How large would you like the disk to be (in gigabytes)? 8
>> What is the install location? 
>> http://zeniiia.linux.org.uk/pub/distributions/fedora/linux/core/5/i386/os/ 
>>
>>
>>
>> Starting install...
>> libvir: Xen Daemon error : POST operation failed: No such domain 
>> vmguest1
>> Failed to get devices for domain vmguest1
>> Traceback (most recent call last):
>>  File "/usr/sbin/xenguest-install.py", line 460, in ?
>>    main()
>>  File "/usr/sbin/xenguest-install.py", line 451, in main
>>    start_paravirt_install(name, ram, disk, mac, uuid, src, 
>> options.extra)
>>  File "/usr/sbin/xenguest-install.py", line 331, in 
>> start_paravirt_install
>>    dom = conn.createLinux(cfgxml, 0)
>>  File "/usr/lib64/python2.4/site-packages/libvirt.py", line 233, in 
>> createLinux    if ret is None:raise 
>> libvirtError('virDomainCreateLinux() failed')
>> libvirt.libvirtError: virDomainCreateLinux() failed
>>
>> Here's the output from 'xm log':
>>
>> [2006-08-10 16:47:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:1216) 
>> XendDomainInfo.construct: None
>> [2006-08-10 16:47:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:1248) 
>> XendDomainInfo.initDomain: 1 1.0
>> [2006-08-10 16:47:50 xend] DEBUG (balloon:134) Balloon: free 128; 
>> need 513; retries: 10.
>> [2006-08-10 16:47:50 xend] DEBUG (balloon:143) Balloon: setting dom0 
>> target to 3393.
>> [2006-08-10 16:47:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:987) 
>> Setting memory target of domain Domain-0 (0) to 3393 MiB.
>> [2006-08-10 16:47:50 xend] DEBUG (balloon:128) Balloon: free 513; 
>> need 513; done.
>> [2006-08-10 16:47:50 xend] INFO (image:134) buildDomain os=linux 
>> dom=1 vcpus=1
>> [2006-08-10 16:47:50 xend] DEBUG (image:177) dom            = 1
>> [2006-08-10 16:47:50 xend] DEBUG (image:178) image          = 
>> /var/lib/xen/vmlinuz.i0GIQN
>> [2006-08-10 16:47:50 xend] DEBUG (image:179) store_evtchn   = 1
>> [2006-08-10 16:47:50 xend] DEBUG (image:180) console_evtchn = 2
>> [2006-08-10 16:47:50 xend] DEBUG (image:181) cmdline        =   
>> root=/dev/xvd 
>> method=http://zeniiia.linux.org.uk/pub/distributions/fedora/linux/core/5/i386/os/ 
>>
>> [2006-08-10 16:47:50 xend] DEBUG (image:182) ramdisk        = 
>> /var/lib/xen/initrd.img.4rNZB1
>> [2006-08-10 16:47:50 xend] DEBUG (image:183) vcpus          = 1
>> [2006-08-10 16:47:50 xend] DEBUG (image:184) features       =
>> [2006-08-10 16:47:50 xend.XendDomainInfo] ERROR (XendDomainInfo:197) 
>> Domain construction failed
>> Traceback (most recent call last):
>>  File 
>> "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 
>> 190, in create
>>    vm.initDomain()
>>  File 
>> "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 
>> 1311, in initDomain
>>    raise VmError(str(exn))
>> VmError: (9, \047Bad file descriptor\047)
>> [2006-08-10 16:47:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:1397) 
>> XendDomainInfo.destroy: domid=1
>> [2006-08-10 16:47:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:1405) 
>> XendDomainInfo.destroyDomain(1)
>> [2006-08-10 16:47:50 xend] ERROR (SrvBase:87) Request create failed.
>> Traceback (most recent call last):
>>  File "/usr/lib64/python2.4/site-packages/xen/web/SrvBase.py", line 
>> 85, in perform
>>    return op_method(op, req)
>>  File 
>> "/usr/lib64/python2.4/site-packages/xen/xend/server/SrvDomainDir.py", 
>> line 82, in op_create
>>    raise XendError("Error creating domain: " + str(ex))
>> XendError: Error creating domain: (9, \047Bad file descriptor\047)
>>
>>
>> Looks like some sort of path error creating one of the files.
>>
>> Peter
>>
>> -- 
>> Fedora-xen mailing list
>> Fedora-xen at redhat.com
>> https://www.redhat.com/mailman/listinfo/fedora-xen
>
> Peter,
>     Could you take a look at /var/log/xend-debug.log?  My guess is 
> that there are lines in there saying:
>
> ERROR: Non PAE-kernel on PAE host.
> ERROR: Error constructing guest OS
>
> During the development of FC6, we decided to turn on PAE, but as the 
> message above says, non-PAE kernels (i.e. FC5 kernels) will not boot 
> on PAE hypervisors.  Therefore, you will not be able to install an FC5 
> guest with an FC6 Hypervisor and dom0.  You will need to point your 
> installation to an FC6 development tree, which should have PAE enabled 
> kernels.
>
> Chris Lalancette

Chris,

Thanks for the pointer to check that log file, it actually says:

---------------------------------------------------------
Nothing to flush.
ERROR: Kernel not a Xen-compatible Elf image.
ERROR: Error constructing guest OS
---------------------------------------------------------

Do I perhaps need to point it somehow at the Xen kernel and initrd here:

http://zeniiia.linux.org.uk/pub/distributions/fedora/linux/core/5/i386/os/images/xen/

instead of

http://zeniiia.linux.org.uk/pub/distributions/fedora/linux/core/5/i386/os/

Peter




More information about the Fedora-xen mailing list