Mr. Teo En Ming (Zhang Enming)
2009-Dec-03 10:29 UTC
[Xen-users] Announcing the Release of the World''s First 64-bit Build of Google''s Chromium OS with Xen Virtualization Support
I have integrated the open source Xen hypervisor 3.4.3 RC1-pre and Jeremy Fitzhardinge''s pv-ops dom0-patched kernel 2.6.31.6 into my 64-bit build of ChromiumOS. With the integrated Xen virtualization support, you can now create and run virtual machines or guest operating systems in Google''s Chromium OS. If you do not have a need to create virtual machines, you can simply run ChromiumOS64 as a Xen domU virtual machine. To run Windows XP, Windows Vista, Windows 7, Windows 2000, Windows Server 2003 and/or Windows Server 2008 as a hardware virtual machine (HVM), you need to have a processor with hardware virtualization support, e.g. Intel VT-x or AMD Pacifica. To enable PCI/PCI-e and/or VGA pass-through to HVM virtual machines, you need to have a motherboard with a supporting chipset capable of Intel Virtualization Technology for Directed Input/Output (VT-d). VGA passthrough is more involved and may require you to modify the code to properly support your specific PCI Express x16 graphics card and recompile the Xen hypervisor and Xen tools. Download your copy now! Please note that this is a pre-alpha release. Download links: http://www.chromiumos64.org http://www.chromiumos64.com -- 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@gmail.com Mobile Phone (Starhub Prepaid): +65-8369-2618 Street: Bedok Reservoir Road Country: Singapore _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Mr. Teo En Ming (Zhang Enming)
2009-Dec-03 13:12 UTC
[Xen-users] Re: Announcing the Release of the World''s First 64-bit Build of Google''s Chromium OS with Xen Virtualization Support
On Thu, Dec 3, 2009 at 6:29 PM, Mr. Teo En Ming (Zhang Enming) <space.time.universe@gmail.com> wrote:> I have integrated the open source Xen hypervisor 3.4.3 RC1-pre and > Jeremy Fitzhardinge''s pv-ops dom0-patched kernel 2.6.31.6 into my > 64-bit build of ChromiumOS. With the integrated Xen virtualization > support, you can now create and run virtual machines or guest > operating systems in Google''s Chromium OS. If you do not have a need > to create virtual machines, you can simply run ChromiumOS64 as a Xen > domU virtual machine. > > To run Windows XP, Windows Vista, Windows 7, Windows 2000, Windows > Server 2003 and/or Windows Server 2008 as a hardware virtual machine > (HVM), you need to have a processor with hardware virtualization > support, e.g. Intel VT-x or AMD Pacifica. > > To enable PCI/PCI-e and/or VGA pass-through to HVM virtual machines, > you need to have a motherboard with a supporting chipset capable of > Intel Virtualization Technology for Directed Input/Output (VT-d). VGA > passthrough is more involved and may require you to modify the code to > properly support your specific PCI Express x16 graphics card and > recompile the Xen hypervisor and Xen tools. > > Download your copy now! Please note that this is a pre-alpha release. > > Download links: > > http://www.chromiumos64.org > http://www.chromiumos64.com >This is a Xen 3.4.3-RC1-pre Live USB image + 64-bit Google Chrome OS bundled together. -- 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@gmail.com Mobile Phone (Starhub Prepaid): +65-8369-2618 Street: Bedok Reservoir Road Country: Singapore _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Mr. Teo En Ming (Zhang Enming)
2009-Dec-04 11:54 UTC
[Xen-users] Re: Announcing the Release of the World''s First 64-bit Build of Google''s Chromium OS with Xen Virtualization Support
*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 on_reboot = ''restart'' on_crash = ''restart'' 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 on_reboot = ''restart'' on_crash = ''restart'' 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@gmail.com Mobile Phone (Starhub Prepaid): +65-8369-2618 Street: Bedok Reservoir Road Country: Singapore _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Mr. Teo En Ming (Zhang Enming)
2009-Dec-04 19:50 UTC
[Xen-users] Re: Announcing the Release of the World''s First 64-bit Build of Google''s Chromium OS with Xen Virtualization Support
*Detailed Instructions for Installing and Running Windows XP HVM Virtual Machine on the Bundled Xen 3.4.3-RC1-pre + 64-bit Google Chrome OS Live USB Image* After verifying that the installation and execution of Fedora 11 Linux PV virtual machine works with the bundled Xen 3.4.3-rc1-pre + 64-bit Google Chrome OS, I proceeded to installing and running Windows XP as a HVM virtual machine. Here are the exact steps: Remount the root filesystem (/) in read-write mode. $ sudo mount -o remount,rw / Start the xend daemon. $ sudo service xend start Configure Xen networking. $ sudo ifconfig eth0 up $ sudo dhclient eth0 Check that the dynamic configuration of network interface eth0 works. $ sudo ifconfig eth0 Check that the entries in the kernel routing table are correct. $ route Check that the domain name servers have been configured correctly by the DHCP protocol. $ cat /etc/resolv.conf Mount the disk partition containing disk images of all the virtual machines. $ sudo mount /dev/sdc4 /virtualmachines $ cd /virtualmachines Create a 5 GB virtual harddisk for installing Windows XP as a virtual machine. $ sudo dd if=/dev/zero of=windows-xp.img bs=1 count=1 seek=5G $ cd /etc/xen Configure firewalling rules. Allow incoming VNC connections. $ sudo iptables -I INPUT 4 -p tcp --dport 5900 -j ACCEPT Set the default firewall policies to ACCEPT for the FORWARD and OUTPUT chains. $ sudo iptables -P FORWARD ACCEPT $ sudo iptables -P OUTPUT ACCEPT Create Windows XP HVM virtual machine configuration file. $ sudo vi windows import os, re arch = os.uname()[4] if re.search(''64'', arch): arch_libdir = ''lib64'' else: arch_libdir = ''lib'' kernel = "/usr/lib/xen/boot/hvmloader" builder=''hvm'' memory = 3072 # Should be at least 2KB per MB of domain memory, plus a few MB per vcpu. shadow_memory = 8 name = "winxphome32" vif = [ ''bridge=eth0'' ] acpi = 1 apic = 1 disk = [ ''file:/virtualmachines/windows-xp.img,hda,w'', ''phy:/dev/sr0,hdc:cdrom,r'' ] device_model = ''/usr/lib/xen/bin/qemu-dm'' #----------------------------------------------------------------------------- # boot on floppy (a), hard disk (c) or CD-ROM (d) # default: hard disk, cd-rom, floppy boot="cd" sdl=0 vnc=1 vnclisten="<IP address of domain 0>" vncdisplay=0 vncconsole=0 vncpasswd='''' serial=''pty'' usbdevice=''tablet'' Start the Windows XP HVM virtual machine. $ sudo xm create windows You will need to use a VNC viewer on another computer or laptop to remote in on the Windows XP virtual machine installation. For example, $ vncviewer <IP address of domain 0> or $ xtightvncviewer <IP address of domain 0> Follow through the Windows XP virtual machine installation and you are done. Using the same concept outlined above, you can also create Windows Vista, Windows 7, Windows Server 2003, and/or Windows Server 2008 virtual machines with the bundled Xen 3.4.3-rc1-pre + 64-bit Google Chrome OS Live USB image. -- 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@gmail.com Mobile Phone (Starhub Prepaid): +65-8369-2618 Street: Bedok Reservoir Road Country: Singapore _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users