Download the ISO Images
FC-6-i386-DVD.iso
FC-6-x86_64-DVD.iso
Notes:
1. The Fedora ISO images can be downloaded here. Or, any other Fedora's mirror site.
2. When you have CD images, use the instructions here, to make the DVD image.
Example: 32-bit Guest
Boot into 32-bit Solaris dom0. Refer to this article for the instructions on how to boot a 32-bit Solaris dom0.
Note: Use 64bit dom0 to boot 64bit Fedora. The processes are the same.
Create the DVD image mount directory.
#mkdir -p /export/install/xen/fedora/32/dvd
Mount DVD ISO image at /export/install/xen/fedora/32/dvd
bash-3.00# lofiadm -a /fs2/FC-6-i386-DVD.iso
/dev/lofi/1
bash-3.00# mount -F hsfs /dev/lofi/1 /export/install/xen/fedora/32/dvd/
Update dfstab to share export/install/xen/fedora/32/dvd and restart the NFS server. (This doesn't work across reboots; lofi needs improvements in this area.)
Notes: The news NFS sharing management approach in the current OpenSolaris is through sharemgr. The modification to /etc/dfs/dfstab is not recommented. Refer to this article for the details on sharemgr.
Change directory to the workspace.
cd /export/install/xen/fedora/32/
Create the disk image.
dd if=/dev/zero of=disk.img bs=1024k seek=8k count=1
Use the following install.py file
name = "fedora-install"
vcpus = 1
memory = "512"
kernel = "/export/install/xen/fedora/32/dvd/images/xen/vmlinuz"
ramdisk = "/export/install/xen/fedora/32/dvd/images/xen/initrd.img"
extra = "headless ip=dhcp vnc vncpassword=wibble method=nfs:10.239.35.97:/export/install/xen/fedora/32/dvd lang=en_US keymap=us ksdevice=eth0"
disk = ['file:/export/install/xen/fedora/32/disk.img,hda,w']
vif = ['']
on_shutdown = "destroy"
on_reboot = "restart"
on_crash = "destroy"
Notes:
1. “method=nfs:10.239.35.97:/export/install/xen/fedora/32/dvd” should be changed according to your host's IP.
2. If you mount the Fedora DVD image at a different space. The items of “kernel”, “ramdisk” and “method” should be changed according to the actual directory.
Create the installation domain.
#xm create -c install.py
Notes:
1. The parameter of “-c” couldn't be ignored, or you will use the “xm console” to get it.
2. The Fedora installer will boot the kernel, get the IP for the NIC interface, and mount installation tree on the NFS server and come to a place with the following display:
Running anaconda, the Fedora Core system installer - please wait...
Starting VNC...
The VNC server is now running.
Please connect to 10.239.35.127:1 to begin the install...
Starting graphical installation...
Press <enter> for a shell
XKB extension not present on :1
3. Use the VNCview to connect to the VNC server and continue the installation.
#java -jar /usr/share/gnome/vino/vino-client.jar 10.239.35.127:1
The IP address and the display number is gotten from the above display. The installation will be processed in the graphic mode.
Once the install completes and everything has shut down, perform these steps:
mkdir /export/guests/fedora/32/
mv disk.img /export/guests/fedora/32/
make a .py file
name = "fedora32"
vcpus = 1
memory = "512"
disk = ['file:/export/guests/fedora/32/disk.img,hda,w']
vif = ['']
on_shutdown = "destroy"
on_reboot = "restart"
on_crash = "destroy"
Notes:
The HVM will boot to a text mode shell. To use the graphic mode, you'd refer to this article.