WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

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

To: "akshayakarle@xxxxxxxxx" <akshayakarle@xxxxxxxxx>
Subject: Re: [Xen-users] Problem creating xen paravirtual guest
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
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1317502013; bh=ERPPbssqsonri4X5Ri5/Okj9/fwPgNTS6O80MRNk258=; 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=FxjvSA91kYqsOhVBuq7fcgXJa1pWomdPqsAOa1viHp9o1lfKrFUoxikJ9axhzFYtmp6XECD7cRN4mYt3Vv9rEbcW9GqCMtTe0w5mzMWp/TL9Q9GSIOxBOtct1LeLHNosutwrrW3hj54NLMAyj5OHGpxea7IUznks7MrJqlyJzxE=
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=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1317451472.87232.YahooMailNeo@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <1317146528.29046.YahooMailNeo@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <1317451472.87232.YahooMailNeo@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Reply-to: Mark Pryor <tlviewer@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx




________________________________
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

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Xen-users] Problem creating xen paravirtual guest, Mark Pryor <=