trilok nuwal
2007-Feb-01  13:25 UTC
Re: [Xen-users] Booting Linux OS as a guest domain on RHEL5 on full virtualized machine.
As per uyour suggestion i modified my config file for guest domain
  [root@ca-ostest209 home]# cat /etc/xen/dom.vti
   import os, re
   arch = os.uname()[4]
   if re.search(''64'', arch):
       arch_libdir = ''lib64''
   else:
       arch_libdir = ''lib''
   kernel = "/usr/lib/xen/boot/hvmloader"
   disk = [ ''file:/home/hd.img,ioemu:sda,w'' ]
   vif = [ ''mac=00:50:56:39:85:78 , bridge=xenbr0'' ]
   device_model = ''*/usr/*'' + arch_libdir +
''/xen/bin/qemu-dm''
   builder=''hvm''
   memory = 1000
   name = "domU"
   vcpus=1
   sdl=0
   vnc=1
   vncviewer=0
   vncpasswd="oracle"
   ne2000=1
   serial=''pty''
   usb=1
   usbdevice="tablet"
Create the guest domain  : on console i got this one*
   [root@ca-ostest209 /]# xm create -c /etc/xen/dom.vti
   Using config file "/etc/xen/dom.vti".
   Started domain domU
   [root@ca-ostest209 home]# xm list
   Name                                      ID   Mem VCPUs        State
Time(s)
   Domain-0                                 0  3004     8     r-----
392043.7
   domU                                       5  1008     1     r-----
16320.8
     This looks like domU is running on the machine.
  I am not getting any error in xend.log
 logs in qemu-dm.21952.log
   domid: 6
   qemu: the number of cpus is 1
   qemu_map_cache_init nr_buckets = 3e8
   shared page at pfn:3e7ff
   buffered io page at pfn:3e7fd
   char device redirected to /dev/pts/1
   I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0
 when i open #vncclient on my machine and try to connect the domU.
   Then on VNC client screen i found
   Boot from hard disk 0 failed
   FATAL: Could not read the boot disk
Can i know what wrong in the creation of image file or in config file ?
On 1/30/07, Henning Sprang <henning_sprang@gmx.de>
wrote:>
> On 1/30/07, trilok nuwal <tc.nuwal@gmail.com> wrote:
> > Firstly i am creating a guest os image by the below method
> >
>
> First: you didn''t answer the question if you read all available
docs,
> and it seems like you did not. That''s sad, because it''s
required that
> everybody invests some time of it''s own before using
other''s time to
> get help.
> Come back after you read the docs, and please don''t paste web
contents
> here - if you want to tell us which howto you used, a link is enough.
> And dont use html mail.
>
> As for yout problem:
>
> Try vnc=1 (it should be obvious even without knowing xen that vnc is
> surely not enabled by setting vnc=0 as you do).
> Then try connectin to the vnc server with vncviewer.
> -c doesn''t work with hvm domains which you want to access via vnc.
> and, add usb=1 and usbdevice="tablet" to your config - otherwise
you
> mouse pointer is messed up in vnc.
>
>
> Henning
>
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
Henning Sprang
2007-Feb-01  16:44 UTC
Re: [Xen-users] Booting Linux OS as a guest domain on RHEL5 on full virtualized machine.
On 2/1/07, trilok nuwal <tc.nuwal@gmail.com> wrote:> Can i know what wrong in the creation of image file or in config file ?Your disk config is wrong. ioemu is deprecated (as of xen 3.0.3, or even sooner), and I am not sure, if sda works, but hda works for me. see /etc/xen/xmexample.hvm for an example. Henning _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Daniel P. Berrange
2007-Feb-01  16:49 UTC
Re: [Xen-users] Booting Linux OS as a guest domain on RHEL5 on full virtualized machine.
On Thu, Feb 01, 2007 at 05:44:29PM +0100, Henning Sprang wrote:> On 2/1/07, trilok nuwal <tc.nuwal@gmail.com> wrote: > > Can i know what wrong in the creation of image file or in config file ? > > Your disk config is wrong. > ioemu is deprecated (as of xen 3.0.3, or even sooner), and I am not > sure, if sda works, but hda works for me.QEMU only emulates an IDE block layer, so for HVM guests you have to use hda -> hdd for normal disk devices. If you have accelerated PV drivers for your guest OS, though you can also make use of xvda ->xvd... In either cae ioemu: is no longer needed on disk devices as of the Xen 3.0.3 release. Dan. -- |=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=| |=- Perl modules: http://search.cpan.org/~danberr/ -=| |=- Projects: http://freshmeat.net/~danielpb/ -=| |=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=| _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users