User Tools

Site Tools


virtualization:xen_virtualization

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
virtualization:xen_virtualization [2017/01/25 12:03]
gcooper
virtualization:xen_virtualization [2017/01/25 12:06]
gcooper
Line 104: Line 104:
   - Do a "yum install <package>" for needed packages such as [[ssh]]-server   - Do a "yum install <package>" for needed packages such as [[ssh]]-server
  
-DomU+=== DomU ===
  
 Use separate disk partition Use separate disk partition
  
 +<file>
 mkfs.ext3 /dev/sdxn mkfs.ext3 /dev/sdxn
 +</file>
  
-**Ubuntu Guest**+=== Ubuntu Guest ===
  
 +<file>
 mount /dev/sdxn /mnt  mount /dev/sdxn /mnt 
  
Line 117: Line 120:
 mount --bind /dev /mnt/dev mount --bind /dev /mnt/dev
 mount proc /mnt/proc -t proc mount proc /mnt/proc -t proc
-chroot /mnt /bin/bash +chroot /mnt /bin/bash 
 +</file> 
  
-Open another terminal and copy some files to the new guest partition +Open another terminal and copy some files to the new guest partition.  You may need to create some folders first.
-You may need to create some folders first+
  
 +<file>
 cp /etc/resolv.conf /mnt/etc/resolv.conf cp /etc/resolv.conf /mnt/etc/resolv.conf
 cp /etc/network/interface /mnt/network/interface cp /etc/network/interface /mnt/network/interface
Line 127: Line 131:
 cp /etc/apt/source.list /mnt/etc/apt/sources.list cp /etc/apt/source.list /mnt/etc/apt/sources.list
 cp -R /lib/modules/2.6.24-17-xen/* /mnt/lib/modules/2.6.24-17-xen/ cp -R /lib/modules/2.6.24-17-xen/* /mnt/lib/modules/2.6.24-17-xen/
 +</file>
  
-Back int the original (chroot'ed) terminal+Back in the original (chroot'ed) terminal:
  
 +<file>
 apt-get update apt-get update
 apt-get upgrade apt-get upgrade
-apt-get install vim [[ssh]]+apt-get install vim ssh 
 +</file>
  
-Edit the /etc/fstab file +Edit the ''/etc/fstab'' file:
-/dev/hda1               /               ext3 defaults        1       2+
  
 +<file>
 +/dev/hda1               /               ext3 defaults        1  2
 +</file>
 +
 +<file>
 passwd passwd
 exit    #the chroot environment exit    #the chroot environment
 umount  /mnt/dev /mnt/proc /mnt umount  /mnt/dev /mnt/proc /mnt
 +</file>
  
 Create the Xen configuration file adjusting the IP addressing Create the Xen configuration file adjusting the IP addressing
  
-vi /etc/xen/domu1.cfg +<file> 
 +vi /etc/xen/domu1.cfg
  
 kernel      = '/boot/vmlinuz-2.6.24-17-xen' kernel      = '/boot/vmlinuz-2.6.24-17-xen'
Line 174: Line 187:
 xm create /etc/xen/domu1.cfg -c xm create /etc/xen/domu1.cfg -c
  
-xm list +xm list 
 +</file> 
  
 **Centos Guest** **Centos Guest**
virtualization/xen_virtualization.txt · Last modified: 2017/01/25 12:06 by gcooper