Virtualizing MilaX
MilaX can be successfully loaded in Vmware, Qemu and VirtualBox (you can download MilaX VirtualBox images from VirtualBox Images site). Some remarks (thanks to Bernd Schemmer) for Qemu:
Sample command to run:
/usr/local/bin/qemu -net user -net nic,model=rtl8139 -usb -usbdevice
tablet -L /usr/local/share/qemu -boot d \
-m 512 -hda /home/xtrnaw7/data/nobackup/qemu/harddisk/milax.hdd \
-cdrom /home/xtrnaw7/data/nobackup/qemu/cdimg/milax.iso -redir tcp:1022::22
The parameter ‘-redir tcp:1022::22′ redirects the port 1022 to the port 22 of the Qemu virtual machine. Using this parameter you can ssh to the port localhost:1022 and will be redirected to the ssh running in the Qemu virtual machine.
If you are using a Milax Version prior to 0.2 you should edit the grub boot menu entry and add the parameter "-B atapi-cd-dma-enabled=0,atapi-other-dma-enabled=0" to the kernel line.
If you are using Milax Version 0.3 or newer just select the Qemu entry in the Grub menu.
For more extensive details, and step by step instruction, refer to article "How to install Milax 0.3 on a virtual disk in a Qemu Virtual Machine" by Bernd Schemmer: HTML PDF .
Also it will be useful to read "How to access a Solaris partition from Windows or Linux" .
How to use the default Qemu network adpater in MilaX 0.3:
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 mtu
8232 index 1
inet 127.0.0.1 netmask ff000000
lo0: flags=2002000849 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 mtu
8232 index 1
inet 127.0.0.1 netmask ff000000
ni0: flags=201000842 mtu 1500 index 3
inet 0.0.0.0 netmask 0
ether 52:54:0:12:34:57
lo0: flags=2002000849 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 mtu
8232 index 1
inet 127.0.0.1 netmask ff000000
ni0: flags=201004843 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 mtu
8252 index 1
inet6 ::1/128