<font size="4"><u><b>Detailed Instructions for Using the Bundled Xen
3.4.3-RC1-pre and 64-bit Google Chrome OS Live USB Image to Create a
Fedora 11 Linux PV Virtual Machine/Guest Operating System/DomU</b></u></font><br>
<br>
After you have transferred the ChromiumOS64-Xen VMDK image file to a
USB external harddisk or an IDE/SATA/SCSI internal harddisk or a USB
thumb drive/flash memory (let's say /dev/sdc in this tutorial) using
WinImage, and assuming you still have plenty of free space on that same
harddisk/thumb drive/flash memory, you may use that free disk space to
store the virtual disk images for all of your virtual machines.<br>
<br>
# fdisk /dev/sdc<br>
<br>
Create a new primary partition. It will be partition number 4. The
64-bit Google Chrome OS will occupy the first 3 partitions on your
harddisk.<br>
<br>
Type "n" and press enter.<br>
Type "p" and press enter.<br>
Press enter again.<br>
<br>
Assuming you have 100 GB free space left on the harddisk, type "+100G" and press enter.<br>
<br>
Type "w" and press enter.<br>
<br>
# reboot<br>
<br>
After rebooting, you need to create a filesystem on /dev/sdc4. In this tutorial, we will use the ext3 filesystem.<br>
<br>
# mke2fs -j /dev/sdc4<br>
<br>
After completing the above steps, you are now ready to boot into the
Bundled 64-bit Google Chrome OS + Xen 3.4.3-RC1-pre hypervisor Live USB.<br>
<br>
After displaying the blue graphical login screen with "chromium os", press CTRL+ALT+F2 to switch to virtual terminal 2.<br>
<br>
Login as username "chronos" with the password of "enming". <br>
<br>
You are now ready to begin creating and running your very own virtual machines!<br>
<br>
First, you need to remount the root filesystem (/) as read-write.<br>
<br>
$ sudo mount -o remount,rw /<br>
<br>
Uninstall the chromeos-connman package.<br>
<br>
$ sudo dpkg -r chromeos-connman<br>
<br>
Terminate the connmand and dhclient daemons/processes.<br>
<br>
$ sudo kill -9 <process ID of connmand)<br>
<br>
$ sudo kill -9 `pidof dhclient`<br>
<br>
Start the xend daemon.<br>
<br>
$ sudo service xend start<br>
<br>
$ sudo xm list<br>
<br>
You should see Domain 0 listed. In Windows Server 2008 R2 Hyper-V speak, it is referred to as the parent partition.<br>
<br>
$ sudo mkdir /virtualmachines<br>
<br>
We will need to mount the free disk space we created earlier to run our virtual machines.<br>
<br>
$ sudo mount /dev/sdc4 /virtualmachines<br>
<br>
$ cd /virtualmachines<br>
<br>
Create a virtual harddisk space of 10G for the Fedora 11 Linux virtual machine.<br>
<br>
$ sudo dd if=/dev/zero of=fedora11-pv.img bs=1 count=1 seek=10G<br>
<br>
$ sudo mkdir -p /var/cache/apt/archives/partial<br>
<br>
We must ensure peth0 is up but without any IP address configured.<br>
<br>
$ sudo ifconfig peth0 0.0.0.0<br>
<br>
$ sudo ifconfig peth0 down<br>
<br>
$ sudo ifconfig peth0 up<br>
<br>
Now, we will bring up the ethernet bridge eth0.<br>
<br>
$ sudo ifconfig eth0 up<br>
<br>
Get a dynamic IP address for the network interface eth0 from your router.<br>
<br>
$ sudo dhclient eth0<br>
<br>
Install the Apache HTTP web server. This will be required for your virtual machine installation later.<br>
<br>
$ sudo apt-get install apache2<br>
<br>
Start the Apache HTTP server.<br>
<br>
$ sudo /etc/init.d/apache2 start<br>
<br>
$ sudo mkdir /var/www/fedora11<br>
<br>
Insert the Fedora 11 Linux DVD into your DVD drive and mount it.<br>
<br>
$ sudo mount /dev/sr0 /var/www/fedora11<br>
<br>
$ cd /var/www/fedora11/images/pxeboot<br>
<br>
We will need the kernel image and the initial ramdisk image to pxeboot your virtual machine installation.<br>
<br>
$ sudo cp vmlinuz initrd.img /virtualmachines<br>
<br>
$ cd /etc/xen<br>
<br>
Create the virtual machine configuration file.<br>
<br>
$ sudo vi fedora11-pv<br>
<br>
Configuration file for Fedora 11 PV virtual machine:<br>
<br>
name="fedora11-pv"<br>
memory=1024<br>
disk = ['file:/virtualmachines/fedora11-pv.img,xvda,w' ]<br>
vif = [ 'bridge=eth0' ]<br>
vfb = [ 'vnc=1,vncunused=1,vncdisplay=0,vnclisten=<IP address of your Domain 0>,vncpasswd=' ]<br>
vncconsole=0<br>
#bootloader = "/usr/bin/pygrub"<br>
kernel = "/virtualmachines/vmlinuz"<br>
ramdisk = "/virtualmachines/initrd.img"<br>
vcpus=2<br>
on_reboot = 'restart'<br>
on_crash = 'restart'<br>
<br>
Allow incoming VNC and HTTP connections in the firewall.<br>
<br>
$ sudo iptables -I INPUT 4 -p tcp --dport 5900 -j ACCEPT<br>
<br>
$ sudo iptables -I INPUT 5 -p tcp --dport 80 -j ACCEPT<br>
<br>
Change the default firewall policy for the FORWARD and OUTPUT chains to ACCEPT.<br>
<br>
$ sudo iptables -P FORWARD ACCEPT<br>
<br>
$ sudo iptables -P OUTPUT ACCEPT<br>
<br>
Start your virtual machine installation.<br>
<br>
$ sudo xm create fedora11-pv<br>
<br>
Using a laptop or another computer, vnc into the Fedora 11 installation using a vncviewer.<br>
<br>
For example,<br>
<br>
$ vncviewer <IP address of Dom0>:<Display Number><br>
<br>
During the Fedora 11 Linux virtual machine installation process, select
HTTP or URL as the source of installation. Do not select CD/DVD or any
other method.<br>
<br>
E.g.,<br>
<br>
http://<IP address of Dom0>/fedora11<br>
<br>
After you have finished the Fedora 11 Linux virtual machine installation, you need to<br>
<br>
$ sudo xm list<br>
<br>
$ sudo xm destroy <domain ID of rebooted F11 guest operating system><br>
<br>
Edit the virtual machine configuration file *again*.<br>
<br>
$ sudo vi /etc/xen/fedora11-pv<br>
<br>
name="fedora11-pv"<br>

memory=1024<br>

disk = ['file:/virtualmachines/fedora11-pv.img,xvda,w' ]<br>

vif = [ 'bridge=eth0' ]<br>

vfb = [ 'vnc=1,vncunused=1,vncdisplay=0,vnclisten=<IP address of your Domain 0>,vncpasswd=' ]<br>

vncconsole=0<br>

bootloader = "/usr/bin/pygrub"<br>

#kernel = "/virtualmachines/vmlinuz"<br>

#ramdisk = "/virtualmachines/initrd.img"<br>

vcpus=2<br>

on_reboot = 'restart'<br>

on_crash = 'restart'<br>
<br>
You may now start your newly installed Fedora 11 Linux virtual machine.<br>
<br>
$ sudo xm create fedora11-pv<br>
<br>
You will need to VNC into your virtual machine again.<br>
<br>
The above tutorial demonstrates the installation process for a Fedora
11 Linux virtual machine. However, you may also install Windows XP,
Windows Vista, Windows 7, Windows 2000, Windows Server 2003, and/or
Windows Server 2008 as a HVM virtual machine. Other Linux and UNIX
guest operating systems are supported too.<br><br>-- <br>Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering)<br>Alma Maters:<br>(1) Singapore Polytechnic<br>(2) National University of Singapore<br>
My Primary Blog: <a href="http://teo-en-ming-aka-zhang-enming.blogspot.com">http://teo-en-ming-aka-zhang-enming.blogspot.com</a><br>My Secondary Blog: <a href="http://enmingteo.wordpress.com">http://enmingteo.wordpress.com</a><br>
My Youtube videos: <a href="http://www.youtube.com/user/enmingteo">http://www.youtube.com/user/enmingteo</a><br>Email: <a href="mailto:space.time.universe@gmail.com">space.time.universe@gmail.com</a><br>Mobile Phone (Starhub Prepaid): +65-8369-2618<br>
Street: Bedok Reservoir Road<br>Country: Singapore<br>