Divyen Patel
2008-Nov-17 04:16 UTC
question regarding python script used to create solaris hvm guest
Hi, I was trying to launch windows 2003 and solaris hvm guest on OpenSolaris with follwing python file using xm create command. -------------------------------------------------------------------------------------------------- -bash-3.2$ cat domU.py name='domU-DP-Rr7MqFiruS' vcpus='1' memory='1024' vif=[ 'type=ioemu' ] builder='hvm' disk=['file://guest-images/domU-DPRr7MqFiruS/win2003.img,hda,w'] boot='c' vnc=1 sdl=1 import os, re arch = os.uname()[4] if re.search('64', arch): arch_libdir = 'lib64' else: arch_libdir = 'lib' device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm' kernel = '/usr/lib/xen/boot/hvmloader' on_crash = 'destroy' -------------------------------------------------------------------------------------------------- Windows domU is starting without any error with this py file, and is able to dynamically set up IP address from the DHCP server. With the same script when I tried to launch Solaris hvm guest, It was not able to load xnf0 interface. During the experiment I cut out “type=ioemu” and used just vif=[ '' ], and that worked. After keeping the vif entry empty it was able to load xnf0 interface and also picked up dynamic address from the DHCP server. Why for the solaris hvm guest vif=[ 'type=ioemu' ] not required to emulate IO devices? Regards, Divyen Patel -- This message posted from opensolaris.org _______________________________________________ xen-discuss mailing list xen-discuss@opensolaris.org
Bob Netherton
2008-Nov-17 04:27 UTC
Re: question regarding python script used to create solaris hvm guest
> Why for the solaris hvm guest vif=[ ''type=ioemu'' ] not required to emulate IO devices?Since you say xnf0 then you must be trying Solaris 10 10/08 (u6). type=ioemu means to emulate the device using qemu-dm services in dom0. Solaris 10 10/08 has PV drivers built in so you can use the normal PV front end/back end network configuration. If you built a Windows install disk with the appropriate PV drivers you would probably have to do the same. And conversely, if you try Solaris 10 5/08 which doesn''t have PV drivers then I you should use type=ioemu. Bob