OpenSolaris

Discussions Communities Projects Download Source Browser

Home » OpenSolaris Forums » distribution » discuss

Thread: How to use the default QEMU network adpater in MilaX 0.3

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 0 Threads: [ Previous | Next ]
bnsmb

Posts: 554
From: DE

Registered: 1/19/06
How to use the default QEMU network adpater in MilaX 0.3
Posted: May 11, 2008 3:36 AM

  Click to reply to this thread Reply

The default QEMU network adapter is not supported out of the box by
MilaX 0.3. Therefore you must call QEMU with the parameter to emulate
another network adapter:

-net nic,model=rtl8139


To use the default QEMU network adapter you can use the following code
while MilaX is booted in a QEMU virtual machine:

# become root user
#
(alex@milax)$ su -
Password:
Sun Microsystems Inc. SunOS 5.11 MilaX_03 April 2008

# note: the prompt does not reflect the new userid!
#
(alex@milax)# id
uid=0(root) gid=0(root)

# view current network adapter configuration
#
(alex@milax)# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu
8232 index 1
inet 127.0.0.1 netmask ff000000
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu
8252 index 1
inet6 ::1/128

# unload the ni driver
#
(alex@milax)# rem_drv ni

# reload the ni driver
#
(alex@milax)# add_drv -i '"pci10ec,8029"' ni

# plumb the network adapter
#
(alex@milax)# ifconfig -a plumb

# check the results
#
(alex@milax)# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu
8232 index 1
inet 127.0.0.1 netmask ff000000
ni0: flags=201000842<BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 3
inet 0.0.0.0 netmask 0
ether 52:54:0:12:34:57
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu
8252 index 1
inet6 ::1/128

# configure the network adapter using dhcp
#
(alex@milax)# ifconfig ni0 dhcp start

# check the results
#
(alex@milax)# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu
8232 index 1
inet 127.0.0.1 netmask ff000000
ni0: flags=201004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4,CoS> mtu
1500 index 3
inet 10.0.2.16 netmask ffffff00 broadcast 10.0.2.255
ether 52:54:0:12:34:57
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu
8252 index 1
inet6 ::1/128

That's it


regards

Bernd

--
Bernd Schemmer, Frankfurt am Main, Germany
http://home.arcor.de/bnsmb/index.html

M s temprano que tarde el mundo cambiar .
Fidel Castro

_______________________________________________
distribution-discuss mailing list
distribution-discuss at opensolaris dot org
http://mail.opensolaris.org/mailman/listinfo/distribution-discuss





Terms of Use | Privacy | Trademarks | Copyright Policy | Site Guidelines
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Use.
Copyright © 1995-2005 Sun Microsystems, Inc.