Install the driver in the global zone.
Create a new zone by following the procedure here:
http://www.oracle.com/technetwork/articles/servers-storage-admin/o11-092-s11-zones-intro-524494.html
After doing the command:
# zoneadm -z my-zone install
Which creates the whole file system structure, we can modify that Zone's file system by just going into it from the Global Zone:
# cd /export/home/my-zone/dev
Now, we just need to create the node inside there.
In the global zone:
# ls -l /dev/dty/a001s
crw-rw-rw- 1 root other 203, 1 Aug 4 19:24 /dev/dty/a001s
Did the following:
# mkdir /export/home/my-zone/dev/dty
# chmod 777 /export/home/my-zone/dev/dty
# mknod /export/home/my-zone/dev/dty/a001s c 203 1
Verify that its the same:
# ls -l /export/home/my-zone/dev/dty/a001s
crw-r--r-- 1 root root 203, 1 Aug 4 20:08
/export/home/my-zone/dev/dty/a001s
Now reboot the my-zone zone:
# zoneadm -z my-zone reboot
Log back into that zone:
# zlogin my-zone
[Connected to zone 'my-zone' pts/4]
Last login: Fri Aug 4 21:02:18 on pts/4
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
Verify the device is still there:
bash-3.00# ls -l /dev/dty/a001s
crw-r--r-- 1 root root 203, 1 Aug 4 21:08 /dev/dty/a001s
Verify that the tty works:
bash-3.00# stty -a </dev/dty/a001s | grep speed
speed 9600 baud;
All done!
