After install OmniOS CE (Open Solaris fork) run of the such commands can be useful:
Mount iso image for install additional virtualization tools:
- look to cdrom device by: iostat -En
- mount cdrom: mount -r -F hsfs /dev/dsk/<cdrom>s0 /cdrom
Example:
$ iostat -Enc1t0d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0Vendor: NECVMWar Product: VMware IDE CDR10 Revision: 1.00 Serial No:Size: 0,02GB <16891904 bytes>Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0Illegal Request: 1 Predictive Failure Analysis: 0c2t0d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0Vendor: VMware Product: Virtual disk Revision: 2.0 Serial No:6000c29345a261fSize: 64,42GB <64424509440 bytes>Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0Illegal Request: 2 Predictive Failure Analysis: 0$ mount -r -F hsfs /dev/dsk/c1t0d0s0 /media/
Enable dhcp on the NIC:
- look to nic device: dladm show-link
- enable nic: ifconfig <interface> plumb up
- enable dhcp on nic: touch /etc/dhcp.<interface>
- enable nic after reboot: touch /etc/hostname.<interface>
Example:
$ dladm show-linkLINK CLASS MTU STATE BRIDGE OVERvmxnet3s0 phys 1500 up -- --$ ifconfig vmxnet3s0 plumb up$ touch /etc/dhcp.vmxnet3s0$ touch /etc/hostname.vmxnet3s0
Add a new user:
- Enable ssh: svcadm enable ssh
- create home directory: mkdir /export/home
- enable export home directory: echo "* localhost:/export/home/&" >> /etc/auto_home
- add user: useradd -m -b /export/home cloud
- change user password: passwd cloud
No comments:
Post a Comment