Hi all, I tried to figure this out by myself without much luck... I got Nevada b78 and i recently installed winxp as a guest domain, it works quite ok but i cant figure out how to make the network working. I got only one physical network interface ( bnx0 ) connected using 192.168.99.2 as IP. I would like the winxp guest to use the same IP. 1) How should i setup the winxp network card ? 2) On the solaris end, what do i need to do to make this work ? Should i do something with the vnic900 ? I already tried a few variation but no luck so far... Few infos: -bash-3.2# dladm show-link bnx1 type: non-vlan mtu: 1500 device: bnx1 bnx0 type: non-vlan mtu: 1500 device: bnx0 vnic900 type: non-vlan mtu: 1500 device: vnic900 -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 bnx0: flags=201004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4,CoS> mtu 1500 index 2 inet 192.168.99.2 netmask ffffff00 broadcast 192.168.99.255 ether 0:1c:23:d7:1d:9e lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1 inet6 ::1/128 A dump xml from virsh shows for the network interface: <interface type=''bridge''> <source bridge=''bnx0''/> <mac address=''00:16:3e:64:b5:b9''/> </interface> Also, may be it''s related somehow, eveytime i check the status of the winxp guest, it says "Blocked" but i can access it just fine with VNC.... Thanks in advance for your help/time ! -- Chris This message posted from opensolaris.org
Your configuration looks okay from the information you''ve given. * christian.meunier@magelo.com [2008-01-29 02:56:47]> 1) How should i setup the winxp network card ?Does Windows XP find a network interface? (It should see a Realtek 8139 device.) If so, configure it to use DHCP to acquire an address. Everything should "just work".> 2) On the solaris end, what do i need to do to make this work ?Nothing more.> Should i do something with the vnic900 ?No. That link is created automatically by the tools that start the domain. dme. -- David Edmondson, Sun Microsystems, http://dme.org
On Dom0 side:- # svccfg -s xvm/xend setprop config/default-nic="bnx0" # svcadm refresh xvm/xend # svcadm restart xvm/xend Would try on Winxp HVM DomU side:- Control Panel->Network Connections Right click on Network Connection (xnf0) -> TCP/IP properties. Most probably was set to DHCP. Would try to change to static IP (for example):- 192.168.99.3 255.255.255.0 This message posted from opensolaris.org
Hi David, The windows XP find a network interface just right (the Realtek 8139 as you said). I configured it to use DHCP but it timemouts trying to acquire an IP saying : "Unable to contact the DHCP server". I then tried dbaxps suggestion, i am able to ping myself(winxp guest), ping the dom0 (solaris instance) but unable to ping anything else... Any other ideas ? Any data i can provide to help with ? Thank ! This message posted from opensolaris.org
Are you connected to the network ? If not, you can create virtual network interface at dom0: # /usr/lib/vna bge0 aa:11:22:33:44:55 # ifconfig vnic900 plumb # ifconfig vnic900 10.1.1.100 up Setup fixed IP on your winxp guest and try ping ? Rgds, Andre W. Christian Meunier wrote:> Hi David, > > The windows XP find a network interface just right (the Realtek 8139 as you said). I configured it to use DHCP but it timemouts trying to acquire an IP saying : "Unable to contact the DHCP server". > > I then tried dbaxps suggestion, i am able to ping myself(winxp guest), ping the dom0 (solaris instance) but unable to ping anything else... > > Any other ideas ? Any data i can provide to help with ? > Thank ! > > > This message posted from opensolaris.org > _______________________________________________ > xen-discuss mailing list > xen-discuss@opensolaris.org >
* christian.meunier@magelo.com [2008-01-29 07:34:21]> The windows XP find a network interface just right (the Realtek 8139 > as you said). I configured it to use DHCP but it timemouts trying to > acquire an IP saying : "Unable to contact the DHCP server". > > I then tried dbaxps suggestion, i am able to ping myself(winxp > guest), ping the dom0 (solaris instance) but unable to ping anything > else... > > Any other ideas ? Any data i can provide to help with ?Please provide the output of "/usr/lib/vna" when the guest domain is running. dme. -- David Edmondson, Sun Microsystems, http://dme.org
Here you go: -bash-3.2# /usr/lib/vna 900 bnx0 0:16:3e:64:b5:b9 This message posted from opensolaris.org
* christian.meunier@magelo.com [2008-01-29 07:09:05]> Hi David, thanks for the response ! > > 1) The windows XP find a network interface just right (the Realtek 8139 as you said). I configured it to use DHCP > but it timemouts trying to acquire an IP saying : "Unable to contact the DHCP server" > > Supposedly, the "DHCP server" is the solaris domain right ?No. I''m presuming that you have a DHCP server somewhere on your LAN. If that''s not true then you''ll have to use static IP configuration for the guest domain. dme. -- David Edmondson, Sun Microsystems, http://dme.org
* christian.meunier@magelo.com [2008-01-29 07:47:42]> Here you go: > > -bash-3.2# /usr/lib/vna > 900 bnx0 0:16:3e:64:b5:b9This looks fine, so I''m puzzled as to why it doesn''t work. Next is probably to check the qemu logs in /var/log/xen. Please share the contents of the newest qemu logfile there. dme. -- David Edmondson, Sun Microsystems, http://dme.org
Hi, # /usr/lib/vna bge0 aa:11:22:33:44:55 Which MAC address should i put here ? Speaking of MAC address, is it normal that the vnic900 does not have the same MAC address as the real interface ( bnx0) ? Shouldnt the xml dump form virsh show the MAC address of the bnx0 interface instead of a random one ? Thanks ! This message posted from opensolaris.org
Hi,> # /usr/lib/vna bge0 aa:11:22:33:44:55 > Which MAC address should i put here ? >Any mac address. So in your case: # /usr/lib/vna bnx0 aa:11:22:33:44:55 It will create new virtual interface, mostlikely vnic901 Then # ifconfig vnic901 plumb # ifconfig vnic901 10.1.1.100 up Rgds, Andre W.> Speaking of MAC address, is it normal that the vnic900 does not have the same MAC address as the real interface ( bnx0) ? Shouldnt the xml dump form virsh show the MAC address of the bnx0 interface instead of a random one ? > > Thanks ! > > > This message posted from opensolaris.org > _______________________________________________ > xen-discuss mailing list > xen-discuss@opensolaris.org >
Comment from Andre got me thinking and tried to match the MAC address of my ethernet card, so i used a virsh define winxp.xml with : <interface type=''bridge''> <source bridge=''bnx0''/> <mac address=''00:1c:23:d7:1d:9e''/> </interface> As soon as i restarted the winxp guest, a new vnic has been created using pretty much the command Andre outlined i guess ( /usr/lib/vna bnx0 00:1c:23:d7:1d:9e ) And the DHCP worked in winxp ! However, i am unable to ping dom0 which might be logical since winxp guest and dom0 share the same MAC address ? I tried to plumb the vnic and didnt help much. This message posted from opensolaris.org
* christian.meunier@magelo.com [2008-01-29 09:00:19]> Comment from Andre got me thinking and tried to match the MAC > address of my ethernet card, so i used a virsh define winxp.xml with > : > > <interface type=''bridge''> > <source bridge=''bnx0''/> > <mac address=''00:1c:23:d7:1d:9e''/> > </interface> > > As soon as i restarted the winxp guest, a new vnic has been created using pretty much the command Andre outlined i guess ( /usr/lib/vna bnx0 00:1c:23:d7:1d:9e ) > > And the DHCP worked in winxp ! However, i am unable to ping dom0 which might be logical since winxp guest and dom0 share the same MAC address ? > > I tried to plumb the vnic and didnt help much.You shouldn''t use the same MAC address for dom0 and the guest. dme. -- David Edmondson, Sun Microsystems, http://dme.org
Yes i have a DHCP server (cisco router), just wanted to be sure ;) The good news is that i got it working however i had to switch to interface type=''ethernet'' instead of interface type=''bridged''. Now i wonder what bridged is supposed to do.... Also, if needed, i can switch back to bridged if you want to solve out why it did not work. Thanks for your time. This message posted from opensolaris.org
* christian.meunier@magelo.com [2008-01-29 10:00:52]> The good news is that i got it working however i had to switch to > interface type=''ethernet'' instead of interface type=''bridged''.Where is this specified? dme. -- David Edmondson, Sun Microsystems, http://dme.org