[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Problem creating xen paravirtual guest


  • To: "akshayakarle@xxxxxxxxx" <akshayakarle@xxxxxxxxx>
  • From: Mark Pryor <tlviewer@xxxxxxxxx>
  • Date: Sat, 1 Oct 2011 13:46:53 -0700 (PDT)
  • Cc: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Sat, 01 Oct 2011 13:48:24 -0700
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Q3cJ5fFZ5gJLvSXZa9xn474GLUtD45HSNutNWmKReU+Tv+3k0WmKoZioSrGr6tyA6+UChaK4etkwZgqeLmhZN19mIDRx6GK/LlZ3/8p2piDCaDtXDLzfVSzWS9ESfwJtOoXE0NNySlw0R6Avip/1WJD0Ltn5F/ohNnK7XHJ+uyc=;
  • List-id: Xen user discussion <xen-users.lists.xensource.com>





________________________________
From: "akshayakarle@xxxxxxxxx" <akshayakarle@xxxxxxxxx>
To: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Sent: Friday, September 30, 2011 11:44 PM
Subject: [Xen-users] Problem creating xen paravirtual guest


Hi all,

I installed kernel-x86_64 2.6.32.26-174.1.xendom0.el6.
x86_64 on cent os 6 x86_64 and got xen-4.0.1 working on it. I have been able 
to create full virtual systems with virt-install and virt-manager, but 
when I tried creating paravirtual domu cent os 5 x86_64 I am getting the 
following error:

ERROR    Could not find a kernel path for virt type 'xen'
Domain installation does not appear to have been
 successful.  If it was, you can restart your domain
 by running 'virsh start cent'; otherwise, please
 restart your installation.
ERROR    Could not find a kernel path for virt type 'xen'
Traceback (most recent call last):
  File "/usr/bin/virt-install", line 1054, in <module>
    main()
  File "/usr/bin/virt-install", line 936, in main
    start_time, guest.start_install)
  File "/usr/bin/virt-install", line 978, in do_install
    dom = install_func(conscb, progresscb, wait=(not wait))
  File "/usr/lib/python2.6/site- packages/virtinst/Guest.py", line 971, in 
start_install
    self._prepare_install(meter)
  File "/usr/lib/python2.6/site- packages/virtinst/Guest.py", line 772, in 
_prepare_install
    meter = meter)
  File "/usr/lib/python2.6/site- packages/virtinst/ DistroInstaller.py", line 
252, in prepare
    self._prepare_kernel_and_ initrd(guest, distro, meter)
  File "/usr/lib/python2.6/site- packages/virtinst/ DistroInstaller.py", line 
194, in _prepare_kernel_and_initrd
    type=self.os_type, distro=distro)
  File "/usr/lib/python2.6/site- packages/virtinst/OSDistro.py" , line 144, in 
acquireKernel
    scratchdir, type, distro)
  File "/usr/lib/python2.6/site- packages/virtinst/OSDistro.py" , line 130, in 
_acquireMedia
    return (store.acquireKernel(guest, fetcher, progresscb),
  File "/usr/lib/python2.6/site- packages/virtinst/OSDistro.py" , line 429, in 
acquireKernel
    "'%s'" % self.type))
ValueError: Could not find a kernel path for virt type 'xen'

I created the virtual machine using virt-install using the following command:
virt-install -n cent5 -r 256 -l 
http://mirror.centos.org/centos/5/os/x86_64/images/xen/ --disk 
path=/home/aks/vm/cent.img -p

Hope you can help me out.
-------------------------------------------------

the http path is too deep. You can see that it find the ./images/xen directory 
starting with your path above.
Use the --debug param to see the details.

I attempted the same thing here
---------------------------- virt-install test ------------------
sudo  virt-install --debug -n cent5 -r 784 --os-variant=rhel5 --os-type=linux 
-l http://mirror.centos.org/centos/5/os/x86_64/ --disk path=/dev/maxvm/testxx -p
Sat, 01 Oct 2011 13:43:23 DEBUG    Launched with command line:
/usr/bin/virt-install --debug -n cent5 -r 784 --os-variant=rhel5 
--os-type=linux -l http://mirror.centos.org/centos/5/os/x86_64/ --disk 
path=/dev/maxvm/testxx -p
Sat, 01 Oct 2011 13:43:23 DEBUG    Requesting libvirt URI default
Sat, 01 Oct 2011 13:43:24 DEBUG    Received libvirt URI xen:///
Sat, 01 Oct 2011 13:43:24 DEBUG    Requesting virt method 'xen', hv type 
'default'.
Sat, 01 Oct 2011 13:43:24 DEBUG    Received virt method 'xen'
Sat, 01 Oct 2011 13:43:24 DEBUG    Hypervisor name is 'xen'
Sat, 01 Oct 2011 13:43:24 DEBUG    parse_disk: returning ('/dev/maxvm/testxx', 
None, None, 'disk', None, False, False, None, True, None)
Sat, 01 Oct 2011 13:43:24 DEBUG    DISPLAY is set: graphics defaulting to VNC.
Sat, 01 Oct 2011 13:43:24 DEBUG    DistroInstaller location is a network source.


Starting install...
Sat, 01 Oct 2011 13:43:24 DEBUG    Attempting to detect distro:
Sat, 01 Oct 2011 13:43:25 DEBUG    Fetching URI: 
http://mirror.centos.org/centos/5/os/x86_64/.treeinfo
Sat, 01 Oct 2011 13:43:25 DEBUG    Saved file to 
/var/lib/xen/virtinst-.treeinfo.CbmW53
Retrieving file 
.treeinfo...                                                                                                    
 |  416 B     00:00
Sat, 01 Oct 2011 13:43:25 DEBUG    Fetching URI: 
http://mirror.centos.org/centos/5/os/x86_64/images/xen/vmlinuz
Retrieving file vmlinuz...                                    91% 
[==============================================-    ] 1.1 MB/s | 1.9 MB     
00:00 ETA Sat, 01 Oct 2011 13:43:26 DEBUG    Saved file to 
/var/lib/xen/virtinst-vmlinuz.rOEso2
Retrieving file 
vmlinuz...                                                                                                      
 | 2.1 MB     00:00
Sat, 01 Oct 2011 13:43:26 DEBUG    Fetching URI: 
http://mirror.centos.org/centos/5/os/x86_64/images/xen/initrd.img
Retrieving file initrd.img...                                 93% 
[===============================================-   ] 1.5 MB/s |  10 MB     
00:00 ETA Sat, 01 Oct 2011 13:43:32 DEBUG    Saved file to 
/var/lib/xen/virtinst-initrd.img.qU6NBY
Retrieving file 
initrd.img...                                                                                                   
 |  11 MB     00:05
Sat, 01 Oct 2011 13:43:32 DEBUG    Creating guest from:
<domain type='xen'>
  <name>cent5</name>
  <currentMemory>802816</currentMemory>
  <memory>802816</memory>
  <uuid>f4d301ef-49dd-5756-e78c-dbc00671fdbb</uuid>
  <os>
    <type arch='x86_64'>linux</type>
    <kernel>/var/lib/xen/virtinst-vmlinuz.rOEso2</kernel>
    <initrd>/var/lib/xen/virtinst-initrd.img.qU6NBY</initrd>
    <cmdline>method=http://mirror.centos.org/centos/5/os/x86_64/</cmdline>
  </os>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>destroy</on_reboot>
  <on_crash>destroy</on_crash>
  <vcpu>1</vcpu>
  <devices>
    <disk type='block' device='disk'>
      <source dev='/dev/maxvm/testxx'/>
      <target dev='xvda' bus='xen'/>
    </disk>
    <interface type='bridge'>
      <source bridge='br0'/>
      <mac address='00:16:36:78:ec:f6'/>
    </interface>
    <input type='mouse' bus='xen'/>
    <graphics type='vnc' port='-1' keymap='en-us'/>
  </devices>
</domain>

Sat, 01 Oct 2011 13:43:33 DEBUG    Removing /var/lib/xen/virtinst-vmlinuz.rOEso2
Sat, 01 Oct 2011 13:43:33 DEBUG    Removing 
/var/lib/xen/virtinst-initrd.img.qU6NBY
Sat, 01 Oct 2011 13:43:33 ERROR    POST operation failed: xend_post: error from 
xen daemon: (xend.err 'Device 51712 (vbd) could not be connected.\nDevice 
/dev/mapper/maxvm-testxx is mounted in the privileged domain,\nand so cannot be 
mounted by a guest.')
Domain installation may not have been
 successful.  If it was, you can restart your domain
 by running 'virsh start cent5'; otherwise, please
 restart your installation.
Sat, 01 Oct 2011 13:43:33 ERROR    POST operation failed: xend_post: error from 
xen daemon: (xend.err 'Device 51712 (vbd) could not be connected.\nDevice 
/dev/mapper/maxvm-testxx is mounted in the privileged domain,\nand so cannot be 
mounted by a guest.')
---------------------------------------- snip test -------------------

-- 

Mark


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.