Christian Smith - Sun Microsystems - Dublin Ireland
2007-Nov-19 19:57 UTC
Windows XP guest has no network connectivity on nv77
Hi All, I have created a windows guest config file (below) and would like to have its network interface bridged to the hosts primary (nge0). When I use virt-install it works fine but when using the config file with ''xm create Template1.hvm'' the windows guest complains that it has little or no connectivity. I have also set the default-nic option in the xvm/xend config. Thanks in advance, Christian bash-3.2# svccfg export xvm/xend | grep default-nic <propval name=''default-nic'' type=''astring'' value=''nge0''/> bash-3.2# ifconfig -a lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 nge0: flags=201004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4,CoS> mtu 1500 index 2 inet 129.156.226.56 netmask ffffff00 broadcast 129.156.226.255 ether 0:14:4f:a1:cf:22 nge1: flags=201004802<BROADCAST,MULTICAST,DHCP,IPv4,CoS> mtu 1500 index 3 inet 0.0.0.0 netmask 0 ether 0:14:4f:a1:cf:23 lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1 inet6 ::1/128 bash-3.2# dladm show-link nge0 type: non-vlan mtu: 1500 device: nge0 nge1 type: non-vlan mtu: 1500 device: nge1 vnic900 type: non-vlan mtu: 1500 device: vnic900 vnic901 type: non-vlan mtu: 1500 device: vnic901 vnic902 type: non-vlan mtu: 1500 device: vnic902 bash-3.2# cat Template1.hvm disk = [ ''file:/etc/opt/xvm/vms/Template1/Template1.img,hdc,w'', ''file:/etc/opt/xvm/images/winxp_sp2.iso,hda:cdrom,r'' ] memory = 384 name = "Template1" kernel = "/usr/lib/xen/boot/hvmloader" builder=''hvm'' vif = [ ''bridge=nge0'' ] on_poweroff = ''destroy'' on_reboot = ''restart'' on_crash = ''preserve'' vnc=1 vncpasswd='''' vnclisten="0.0.0.0" boot=''c'' serial=''null'' usb=1 usbdevice="tablet" 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''
Mark Johnson
2007-Nov-19 20:37 UTC
Re: Windows XP guest has no network connectivity on nv77
Christian Smith - Sun Microsystems - Dublin Ireland wrote:> Hi All, > > I have created a windows guest config file (below) and would like to > have its network interface bridged to the hosts primary (nge0). When I > use virt-install it works fine but when using the config file with ''xm > create Template1.hvm'' the windows guest complains that it has little or > no connectivity. I have also set the default-nic option in the xvm/xend > config. > > bash-3.2# cat Template1.hvm > disk = [ ''file:/etc/opt/xvm/vms/Template1/Template1.img,hdc,w'', > ''file:/etc/opt/xvm/images/winxp_sp2.iso,hda:cdrom,r'' ] > memory = 384 > name = "Template1" > kernel = "/usr/lib/xen/boot/hvmloader" > builder=''hvm'' > vif = [ ''bridge=nge0'' ]You need to have type in there... Without it, you default to a para-virtualized NIC. e.g. vif = [ ''type=ioemu,bridge=nge0,mac=xx:xx:xx:xx:xx:xx'' ] MRJ
Christian Smith - Sun Microsystems - Dublin Ireland
2007-Nov-20 11:33 UTC
Re: Windows XP guest has no network connectivity on nv77
Hi Mark, Thats sorted it, thanks! -Christian Mark Johnson wrote:> Christian Smith - Sun Microsystems - Dublin Ireland wrote: > >> Hi All, >> >> I have created a windows guest config file (below) and would like to >> have its network interface bridged to the hosts primary (nge0). When I >> use virt-install it works fine but when using the config file with ''xm >> create Template1.hvm'' the windows guest complains that it has little or >> no connectivity. I have also set the default-nic option in the xvm/xend >> config. >> >> bash-3.2# cat Template1.hvm >> disk = [ ''file:/etc/opt/xvm/vms/Template1/Template1.img,hdc,w'', >> ''file:/etc/opt/xvm/images/winxp_sp2.iso,hda:cdrom,r'' ] >> memory = 384 >> name = "Template1" >> kernel = "/usr/lib/xen/boot/hvmloader" >> builder=''hvm'' >> vif = [ ''bridge=nge0'' ] >> > > You need to have type in there... Without it, you default > to a para-virtualized NIC. e.g. > > vif = [ ''type=ioemu,bridge=nge0,mac=xx:xx:xx:xx:xx:xx'' ] > > > > > MRJ > > _______________________________________________ > xen-discuss mailing list > xen-discuss@opensolaris.org >