Thanks Its working now.
Trilok Nuwal
On 4/6/07, Akio Takebe <[EMAIL PROTECTED]> wrote:
Hi,
You need the type=ioemu.
vif = [ 'type=ioemu, bridge=xenbr0', mac=00:50:56:38:51:bf' ]
Best Regards,
Akio Takebe
>Hi,
>
>I am creating RHEL4 -HVM domain on RHEL5 with below is config file.
>--------------------
>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"
>builder='hvm'
>memory =2000
>name = "Dom-El4"
>vcpus=8
>nic=1
>vif = [ 'bridge=xenbr0 , mac=00:50:56:38:51:bf' ]
>disk = [ 'phy:/dev/cciss/c0d1,hda,w' ]
>device_model='/usr/' + arch_libdir + '/xen/bin/qemu-dm'
>pae=1
>sdl=0
>vnc=1
>vncviewer=1
>vnclisten="0.0.0.0"
>vncpasswd=""
>ne2000=1
>serial='pty'
>usb=1
>usbdevice='mouse'
>--------------
>Every thing works fine except that vif is not exported to guest domain.
>Could you try this?. Could you please tell me what could be wrong here
and
>any possible solutions.
>
>Thanks,
>--Trilok
>On 4/6/07, trilok nuwal <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>> On 4/6/07, trilok nuwal <[EMAIL PROTECTED]> wrote:
>> >
>> >
>> > Thanks Akio,
>> >
>> > I am able to start this successfully without any problem.
>> >
>> > I was trying this one from alot of days. I was trying the almost same
>> > way but
>> > 1) i was not using xvda. But i have a question to u.
>> > Why we cant use name like hda,hdb ?
>>
>>
>> Actually this is working with hda also.
>>
>>
>> 2) second thing i am not using the fstab option for creating the initrd
>> > image.
>> >
>> > Thanks a lot for help,
>> >
>> > Trilok
>> >
>> >
>> >
>> > On 4/6/07, Akio Takebe <[EMAIL PROTECTED] > wrote:
>> > >
>> > > Hi,
>> > >
>> > > Sorry, it is typo. (also I)
>> > >
>> > > xdav is wrong, xvda is true.
>> > > And you need to rewrite /etc/fstab on guest image,
>> > > then remake initrd of guest with the /etc/fstab of guest.
>> > >
>> > > mkinitrd has --fstab option, you can use it.
>> > > e.g.
>> > > # mount /home/disk /mnt
>> > > # mkinirtd /boot//boot/initrd-2.6.18-8.el5xenU.img
2.6.18-8.el5xen--
>> > > fstab /mnt/
>> > > etc/fstab --with xenblk --with xennet --preload xenblk --preload
>> > > xennet
>> > >
>> > > Best Regards,
>> > >
>> > > Akio Takebe
>> > >
>> > > >When i use xdav1 then it is giving the errors below.
>> > > >
>> > > >-------
>> > > >kernel="/boot/vmlinuz-2.6.18-8.el5xen"
>> > > >ramdisk="/boot/initrd-2.6.18-8.el5xen.img"
>> > > >memory=300
>> > > >vcpus=2
>> > > >name="dom-123"
>> > > >disk = [ 'file:/home/disk,xdav1,w' ]
>> > > >root="/dev/xdav1 selinux=0"
>> > > >vif = [ ' ' ]
>> > > >extra=""
>> > > >
>> > > >[EMAIL PROTECTED] /]# xm create -c /etc/xen/dom-1
>> > > >Using config file "/etc/xen/dom-1".
>> > > >Error: Unable to find number for device (xdav)
>> > > >
>> > > >What could be wrong.
>> > > >Thanks
>> > > >Trilok
>> > > >On 4/6/07, Akio Takebe < [EMAIL PROTECTED]> wrote:
>> > > >>
>> > > >> Hi,
>> > > >>
>> > > >> You should use not hdb, xdva.
>> > > >>
>> > > >> Best Regards,
>> > > >>
>> > > >> Akio Takebe
>> > > >>
>> > > >> >>
>> > > >> >> Hi All,
>> > > >> >>
>> > > >> >> Did anybody try to run RHEL5 PVM guest on RHEL 5 xen host,
>> > > >> >>
>> > > >> >> I am getting these errors.
>> > > >> >>
>> > > >> >> Waiting for driver initialization.
>> > > >> >> Creating root device.
>> > > >> >> Mounting root filesystem.
>> > > >> >> mount: could not find filesystem '/dev/root'
>> > > >> >> Setting up other filesystems.
>> > > >> >> Setting up new root fs
>> > > >> >> setuproot: moving /dev failed: No such file or directory
>> > > >> >> no fstab.sys, mounting internal defaults
>> > > >> >> setuproot: error mounting /proc: No such file or directory
>> > > >> >> setuproot: error mounting /sys: No such file or directory
>> > > >> >> Switching to new root and running init.
>> > > >> >> unmounting old /dev
>> > > >> >> unmounting old /proc
>> > > >> >> unmounting old /sys
>> > > >> >> switchroot: mount failed: No such file or directory
>> > > >> >> Kernel panic - not syncing: Attempted to kill init!
>> > > >> >>
>> > > >> >>
>> > > >> >> My config file is :
>> > > >> >>
>> > > >> >> kernel="/boot/vmlinuz-2.6.18-8.el5xen"
>> > > >> >> ramdisk="/boot/initrd- 2.6.18-8.el5xen.img"
>> > > >> >> memory=300
>> > > >> >> vcpus=2
>> > > >> >> name="dom-123"
>> > > >> >> disk = [ 'file:/home/xen-disk,hdb1,w' ]
>> > > >> >> root="/dev/hdb1"
>> > > >> >> vif = [ ' bridge=xenbr2 ' ]
>> > > >> >> extra=""
>> > > >> >>
>> > > >> >> Kernel is same as in dom0.
>> > > >> >> kernel="/boot/vmlinuz-2.6.18-8.el5xen "
>> > > >> >>
>> > > >> >> In guest root a modify the /etc/fstab
>> > > >> >>
>> > > >> >> /dev/hdb1 / ext3 defaults 1
1
>> > > >> >> none /dev/pts devpts gid=5,mode=620 0 0
>> > > >> >> none /dev/shm tmpfs defaults 0 0
>> > > >> >> none /proc proc defaults 0
0
>> > > >> >> none /sys sysfs defaults 0
0
>> > > >> >> --
>> > > >> >> I made the guest root fs from the Host root itself.
>> > > >> >> mount /home/xen-disk /dir-123 -o loop
>> > > >> >> cp -ax /root /dev /var /etc /usr /bin /sbin /lib /lib64
/selinux
>> > >
>> > > >> >> /dir-123
>> > > >> >> cp: cannot create directory `/dir-01-05-25/selinux':
Permission
>> > > denied
>> > > >> (
>> > > >> >> Only selinux could not able to copy)
>> > > >> >> --
>> > > >> >> Could anybody tell me what could be wrong here.
>> > > >> >>
>> > > >> >> Thanks,
>> > > >> >> --Trilok
>> > > >> >
>> > > >>
>> > >
>-------------------------------text/plain----------------------------
>> > > >---
>> > > >> >_______________________________________________
>> > > >> >rhelv5-list mailing list
>> > > >> > [email protected]
>> > > >> > https://www.redhat.com/mailman/listinfo/rhelv5-list
>> > > >>
>> > > >> _______________________________________________
>> > > >> rhelv5-list mailing list
>> > > >> [email protected]
>> > > >> https://www.redhat.com/mailman/listinfo/rhelv5-list
>> > > >>
>> > > >
>> > >
>-------------------------------text/plain----------------------------
>> > > >---
>> > >
>> > > >_______________________________________________
>> > > >rhelv5-list mailing list
>> > > >[email protected]
>> > > > https://www.redhat.com/mailman/listinfo/rhelv5-list
>> > > >
>> > > >
>> > > >---html-part included links-------
>> > > >mailto: [EMAIL PROTECTED]
>> > > >mailto: [email protected]
>> > >
>> > > _______________________________________________
>> > > rhelv5-list mailing list
>> > > [email protected]
>> > > https://www.redhat.com/mailman/listinfo/rhelv5-list
>> > >
>> >
>> >
>>
>
>
>---html-part included links-------
>http://0.0.0.0
>mailto:[EMAIL PROTECTED]
>mailto:[EMAIL PROTECTED]
>mailto:[email protected]
_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list