|
|
Linux XEN DomU on OpenSolaris Dom0From ezUnix
IntroductionXen is like the Mach microkernel, where you can have multiple operating systems running at once and a thin kernel handles switching between them and managing device access. This thin layer in Xen is called the hypervisor, and is analogous to the Mach microkernel. It provides an idealized hardware layer that you port your OS to, and in return you get the ability to run multiple operating system instances at once (e.g., run two copies of Redhat's latest, one copy of the Novell Desktop, and an NetBSD), freeze and restore snapshots of a running OS, and more.
RequirementsCPU with Intel's VM or AMD's AMD-V technology.
SoftwareWriting this howto we used Solaris Express CE b103 which comes with preinstalled XEN.
PreparationBooting your system chose Solaris xVM to boot into Xen kernel. # dd if=/dev/zero of=suse.img bs=1048576 count=20480
Configuration filesNow create a HVM enabled configuration file for your Linux DomU (host), i.e suse.cfg: #Kernel and memory size kernel = '/usr/lib/xen/boot/hvmloader' builder = 'hvm' memory = '512' name = 'suse' vcpus=2 pae=0 acpi=0 apic=0 usb=1 #usbdevice="tablet" #cpus = 2 device_model = '/usr/lib/xen/bin/qemu-dm' #Install from ISO image: #disk = [ 'file:/xen/linux/suse.img,hda,w', 'file:/xen/linux/SuSe.iso,hdc:cdrom,r' ] #Install from CD/DVD: disk = [ 'file:/xen/linux/suse.img,hda,w', 'phy:/dev/dsk/c0t0d0s2,hdc:cdrom,r' ] # Hostname and Networking vif = [ 'type=ioemu, bridge=e1000g0, mac=00:00:00:ff:fe:02' ] # Behaviour boot = 'd' #d is cdrom boot, c is disk boot. nographic='0' vnc = '1' vncviewer = '1' vnclisten="0.0.0.0" audio='1' on_poweroff = 'destroy' on_reboot = 'restart' on_crash = 'preserve'
Also note that this image is set to place the console onto a VNC enabled terminal. InstallationPut your Linux install CD/DVD into CD/DVD tray and begin installation: # xm create suse.cfg Where suse.cfg is the created config file. Then quickly in another terminal (on another machine if you like) start up vncviewer to connect to your installation screen (using localhost in this case). # vncviewer 127.0.0.1:1 You can also use virt-manager to see your running XEN hosts. To open graphical window just right click on your newly created Linux host, right-click and chose Open.
References
|