Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have been trying to make xen work on a remote machine with no GUI.Installed XEN hypervisor on the machine and booted in that kernel.Try to create VM using virt-manager. I tried accessing virt-manager through X11 forwarding(ssh -X) but still i cant create VM using it.Is there a solution to it.

Details:

Emulator used: usr/lib/xen-default/bin/qemu-dm
virsh version output:

info : libvirt version: 0.9.8  
Compiled against library: libvir 0.9.8  
Using library: libvir 0.9.8  
Using API: Xen 0.9.8  j
Running hypervisor: Xen 4.1.0  

using virt-manger after allocating space for the disk its showing following error

Unable to complete install: 'POST operation failed: xend_post: error from xen daemon: '

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 45, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/create.py", line 1909, in do_install
    guest.start_install(False, meter=meter)
  File "/usr/lib/python2.7/dist-packages/virtinst/Guest.py", line 1236, in start_install
    noboot)
  File "/usr/lib/python2.7/dist-packages/virtinst/Guest.py", line 1304, in _create_guest
    dom = self.conn.createLinux(start_xml or final_xml, 0)
  File "/usr/lib/python2.7/dist-packages/libvirt.py", line 2166, in createLinux
    if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirtError: POST operation failed: xend_post: error from xen daemon: <Fault 3: 'VM'>

I tired to create using virt-install --name=hello --ram=512 --file-size 10 --location=/home/admin/ubuntu-12.04-server-amd64.iso --file=/VMA/new/123 but its showing

**ERROR    Couldn't find xen kernel for Ubuntu tree.**

this the grub configuration ,it boot directly to first option here

submenu "Xen 4.1-amd64" {
menuentry 'Ubuntu GNU/Linux, with Xen 4.1-amd64 and Linux 3.2.0-23-generic' --class ubuntu --class gnu-linux --class gnu --class os --class xen {
menuentry 'Ubuntu, with Linux 3.2.0-23-generic' --class ubuntu --class gnu-linux --class gnu --class os {

it boot directly to first option here, but uname -a shows

Linux ubuntu 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

grub.cfg:

set default="0"

### BEGIN /etc/grub.d/20_linux_xen ###
submenu "Xen 4.1-amd64" {
menuentry 'Ubuntu GNU/Linux, with Xen 4.1-amd64 and Linux 3.2.0-23-generic' --class ubuntu --class gnu-linux --class gnu --class os --class xen {

    insmod part_msdos

    insmod ext2

    set root='(hd0,msdos6)'

    search --no-floppy --fs-uuid --set=root a24dc20d-d11a-465a-a040-839468167da0

    echo    'Loading Xen 4.1-amd64 ...'

    multiboot   /xen-4.1-amd64.gz placeholder  

    echo    'Loading Linux 3.2.0-23-generic ...'

    module  /vmlinuz-3.2.0-23-generic placeholder root=UUID=870d5785-bf0b-4af9-bf15-1b8e891e793a ro  

    echo    'Loading initial ramdisk ...'

    module  /initrd.img-3.2.0-23-generic

}

menuentry 'Ubuntu GNU/Linux, with Xen 4.1-amd64 and Linux 3.2.0-23-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os --class xen {

    insmod part_msdos


    insmod ext2
    set root='(hd0,msdos6)'

    search --no-floppy --fs-uuid --set=root a24dc20d-d11a-465a-a040-839468167da0

    echo    'Loading Xen 4.1-amd64 ...'

    multiboot   /xen-4.1-amd64.gz placeholder 

    echo    'Loading Linux 3.2.0-23-generic ...'

    module  /vmlinuz-3.2.0-23-generic placeholder root=UUID=870d5785-bf0b-4af9-bf15-1b8e891e793a ro single 

    echo    'Loading initial ramdisk ...'

    module  /initrd.img-3.2.0-23-generic

}
}
menuentry 'Ubuntu, with Linux 3.2.0-23-generic' --class ubuntu --class gnu-linux --class gnu --class os {

    recordfail

    gfxmode $linux_gfx_mode

    insmod gzio

    insmod part_msdos

    insmod ext2

    set root='(hd0,msdos6)'

    search --no-floppy --fs-uuid --set=root a24dc20d-d11a-465a-a040-839468167da0

    linux   /vmlinuz-3.2.0-23-generic root=UUID=870d5785-bf0b-4af9-bf15-1b8e891e793a ro

    initrd  /initrd.img-3.2.0-23-generic

}
menuentry 'Ubuntu, with Linux 3.2.0-23-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {

    recordfail

    insmod gzio

    insmod part_msdos

    insmod ext2

    set root='(hd0,msdos6)'

    search --no-floppy --fs-uuid --set=root a24dc20d-d11a-465a-a040-839468167da0

    echo    'Loading Linux 3.2.0-23-generic ...'

    linux   /vmlinuz-3.2.0-23-generic root=UUID=870d5785-bf0b-4af9-bf15-1b8e891e793a ro recovery nomodeset 

    echo    'Loading initial ramdisk ...'

    initrd  /initrd.img-3.2.0-23-generic
}
share|improve this question
    
Your last line indicates kernel issue. Did you boot to the right xen kernel ? post your uname -a output please. –  Chakri May 25 '12 at 13:28
    
his the grub configuration ,it boot directly to first option here "Xen 4.1-amd64" { menuentry 'Ubuntu GNU/Linux, with Xen 4.1-amd64 and Linux 3.2.0-23-generic' --class ubuntu --class gnu-linux --class gnu --class os --class xen { menuentry 'Ubuntu, with Linux 3.2.0-23-generic' --class ubuntu --class gnu-linux --class gnu --class os { it boots directly to first option here..but uname -a shows Linux ubuntu 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux –  ananthan May 25 '12 at 15:48
    
So the issue is "the box not booting to xen kernel" . Can you manually select the xen line and hit enter. I think your grub default is still pointing back to regular kernel. –  Chakri May 25 '12 at 16:27
    
I am able to install and run vm through KVM..but i dont want to use that...how can i fix this –  ananthan May 25 '12 at 16:28
    
I am not sure why are you switching the topic to KVM ? aren't we discussing about XEN. Again can post the results of " grep -i 'default=' /boot/grub/grub.cfg" –  Chakri May 25 '12 at 16:32

1 Answer 1

up vote 3 down vote accepted

This fixed the issue..

mkdir /usr/lib64/xen -p

cp /usr/lib/xen-4.1/* -r /usr/lib64/xen/

cp -r /usr/share/qemu-linaro/ /usr/share/qemu

share|improve this answer
    
A pair of soft-links does not do the jobs? –  Nils Oct 2 '12 at 21:05
    
yes... it will also work...i tried this way and it worked.. –  ananthan Oct 3 '12 at 3:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.