[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] Re: Announcing the Release of the World's First 64-bit Build of Google's Chromium OS with Xen Virtualization Support


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: "Mr. Teo En Ming (Zhang Enming)" <space.time.universe@xxxxxxxxx>
  • Date: Fri, 4 Dec 2009 19:54:42 +0800
  • Cc: space.time.universe@xxxxxxxxx
  • Delivery-date: Fri, 04 Dec 2009 03:55:39 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=oN0OZreHH4ZIp30r1Y++arOTLVuqgzjoPBUjixXDHKbXmOs++40YGC7X5hbp+k7k8l W6sDz24rBd1MOtWm8X+ufUtZTPGxvKwaMXNLeVRUApYG00pPWt/8hsSLweVIx2XljvHv ZGDfcv8ZAX8xmXisxKfbXuGWuSh6doamTvR3U=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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

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.

# fdisk /dev/sdc

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.

Type "n" and press enter.
Type "p" and press enter.
Press enter again.

Assuming you have 100 GB free space left on the harddisk, type "+100G" and press enter.

Type "w" and press enter.

# reboot

After rebooting, you need to create a filesystem on /dev/sdc4. In this tutorial, we will use the ext3 filesystem.

# mke2fs -j /dev/sdc4

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.

After displaying the blue graphical login screen with "chromium os", press CTRL+ALT+F2 to switch to virtual terminal 2.

Login as username "chronos" with the password of "enming".

You are now ready to begin creating and running your very own virtual machines!

First, you need to remount the root filesystem (/) as read-write.

$ sudo mount -o remount,rw /

Uninstall the chromeos-connman package.

$ sudo dpkg -r chromeos-connman

Terminate the connmand and dhclient daemons/processes.

$ sudo kill -9 <process ID of connmand)

$ sudo kill -9 `pidof dhclient`

Start the xend daemon.

$ sudo service xend start

$ sudo xm list

You should see Domain 0 listed. In Windows Server 2008 R2 Hyper-V speak, it is referred to as the parent partition.

$ sudo mkdir /virtualmachines

We will need to mount the free disk space we created earlier to run our virtual machines.

$ sudo mount /dev/sdc4 /virtualmachines

$ cd /virtualmachines

Create a virtual harddisk space of 10G for the Fedora 11 Linux virtual machine.

$ sudo dd if=/dev/zero of=fedora11-pv.img bs=1 count=1 seek=10G

$ sudo mkdir -p /var/cache/apt/archives/partial

We must ensure peth0 is up but without any IP address configured.

$ sudo ifconfig peth0 0.0.0.0

$ sudo ifconfig peth0 down

$ sudo ifconfig peth0 up

Now, we will bring up the ethernet bridge eth0.

$ sudo ifconfig eth0 up

Get a dynamic IP address for the network interface eth0 from your router.

$ sudo dhclient eth0

Install the Apache HTTP web server. This will be required for your virtual machine installation later.

$ sudo apt-get install apache2

Start the Apache HTTP server.

$ sudo /etc/init.d/apache2 start

$ sudo mkdir /var/www/fedora11

Insert the Fedora 11 Linux DVD into your DVD drive and mount it.

$ sudo mount /dev/sr0 /var/www/fedora11

$ cd /var/www/fedora11/images/pxeboot

We will need the kernel image and the initial ramdisk image to pxeboot your virtual machine installation.

$ sudo cp vmlinuz initrd.img /virtualmachines

$ cd /etc/xen

Create the virtual machine configuration file.

$ sudo vi fedora11-pv

Configuration file for Fedora 11 PV virtual machine:

name="fedora11-pv"
memory=1024
disk = ['file:/virtualmachines/fedora11-pv.img,xvda,w' ]
vif = [ 'bridge=eth0' ]
vfb = [ 'vnc=1,vncunused=1,vncdisplay=0,vnclisten=<IP address of your Domain 0>,vncpasswd=' ]
vncconsole=0
#bootloader = "/usr/bin/pygrub"
kernel = "/virtualmachines/vmlinuz"
ramdisk = "/virtualmachines/initrd.img"
vcpus=2
>>
Allow incoming VNC and HTTP connections in the firewall.

$ sudo iptables -I INPUT 4 -p tcp --dport 5900 -j ACCEPT

$ sudo iptables -I INPUT 5 -p tcp --dport 80 -j ACCEPT

Change the default firewall policy for the FORWARD and OUTPUT chains to ACCEPT.

$ sudo iptables -P FORWARD ACCEPT

$ sudo iptables -P OUTPUT ACCEPT

Start your virtual machine installation.

$ sudo xm create fedora11-pv

Using a laptop or another computer, vnc into the Fedora 11 installation using a vncviewer.

For example,

$ vncviewer <IP address of Dom0>:<Display Number>

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.

E.g.,

http://<IP address of Dom0>/fedora11

After you have finished the Fedora 11 Linux virtual machine installation, you need to

$ sudo xm list

$ sudo xm destroy <domain ID of rebooted F11 guest operating system>

Edit the virtual machine configuration file *again*.

$ sudo vi /etc/xen/fedora11-pv

name="fedora11-pv"
memory=1024
disk = ['file:/virtualmachines/fedora11-pv.img,xvda,w' ]
vif = [ 'bridge=eth0' ]
vfb = [ 'vnc=1,vncunused=1,vncdisplay=0,vnclisten=<IP address of your Domain 0>,vncpasswd=' ]
vncconsole=0
bootloader = "/usr/bin/pygrub"
#kernel = "/virtualmachines/vmlinuz"
#ramdisk = "/virtualmachines/initrd.img"
vcpus=2
> >
You may now start your newly installed Fedora 11 Linux virtual machine.

$ sudo xm create fedora11-pv

You will need to VNC into your virtual machine again.

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.

--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
My Primary Blog: http://teo-en-ming-aka-zhang-enming.blogspot.com
My Secondary Blog: http://enmingteo.wordpress.com
My Youtube videos: http://www.youtube.com/user/enmingteo
Email: space.time.universe@xxxxxxxxx
Mobile Phone (Starhub Prepaid): +65-8369-2618
Street: Bedok Reservoir Road
Country: Singapore

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.