Information Technology Reference
In-Depth Information
Important Note!
Before you attempt to reconfigure the virtual switch, you must log in from the control
domain's console or from a different interface than the interface being unplumbed;
otherwise, you will abruptly terminate your session! Terminating the network interface
you are using for your login session can be embarrassing.
# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232
index 1 inet 127.0.0.1 netmask ff000000
e1000g0: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 3
inet 10.6.160.125 netmask fffffc00 broadcast 10.6.163.255
ether 0:14:4f:2b:65:4e
# ifconfig e1000g0 down #(See important note!)
# ifconfig e1000g0 unplumb
# ifconfig vsw0 plumb
# ifconfig vsw0 10.6.160.125 netmask 255.255.252.0 up
# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
vsw0: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 5
inet 10.6.160.125 netmask fffffc00 broadcast 10.6.163.255
ether 0:14:4f:fa:85:bb
This change does not persist over a control domain reboot, so you must update
/etc/hostname.* and /etc/dhcp/* to make it permanent. In this example, you
would rename the configuration files for e1000g0 to the equivalent files for vsw0
by issuing the following commands:
# mv /etc/hostname.e1000g0 /etc/hostname.vsw0
# mv /etc/dhcp.e1000g0 /etc/dhcp.vsw0
3.4.5 Creating a Domain and Installing Oracle Solaris
In the following example, we create a guest domain imaginatively named ldom1 ,
with no cryptographic accelerator, a single virtual network device, and a virtual
disk residing in a ZFS file system. The following commands define a ZFS file sys-
tem and allocate within it an empty 10 GB file that will be used for the Solaris
system disk:
# zfs create rpool/ldoms
# zfs set mountpoint=/ldoms rpool/ldoms
# zfs set compression=on rpool/ldoms
# zfs create rpool/ldoms/ldom1
# mkfile -n 10g /ldoms/ldom1/disk0.img
 
 
Search WWH ::




Custom Search