Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tools:xen [2015/07/29 00:31] – [XEN Debian 8 appliance] darrontools:xen [2016/07/21 18:45] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ==== XEN Debian 8 appliance ==== ==== XEN Debian 8 appliance ====
  
-Download the net install [[http://without-systemd.org/wiki/images/debian-testing-amd64-netinst.iso|ISO]] and create bootable CD or flash drive.+This installation process demonstrates how to set up Xen on debian. It doesn't go into 
 +great detail and only gives general overview.
  
-Alternatively, you may install Jessie then replace systemd like this after +We first install [[http://cdimage.debian.org/debian-cd/|Debian 8]] with an official CD image and then remove and replace systemd after installation.
-installation.+
  
-== BOOT == 
- 
-apt-get install sysvinit-core sysvinit sysvinit-utils 
- 
-configure sshd root login 
-configure inittab getty hvc0 
- 
-== REBOOT == 
- 
-apt-get remove --purge --auto-remove systemd 
- 
-<code> 
-/bin/echo -e 'Package: systemd\nPin: origin ""\nPin-Priority: -1' > /etc/apt/preferences.d/systemd 
-/bin/echo -e '\nPackage: *systemd*\nPin: origin ""\nPin-Priority: -1' >> /etc/apt/preferences.d/systemd 
-/bin/echo -e '\nPackage: systemd:amd64\nPin: origin ""\nPin-Priority: -1' >> /etc/apt/preferences.d/systemd 
-/bin/echo -e '\nPackage: systemd:i386\nPin: origin ""\nPin-Priority: -1' >> /etc/apt/preferences.d/systemd 
-</code> 
 === Debian 8 installation === === Debian 8 installation ===
  
Line 43: Line 26:
  
 The next step is partitioning. Initially we choose Guided partitioning and after edit the automatic choice for the root partition. The next step is partitioning. Initially we choose Guided partitioning and after edit the automatic choice for the root partition.
 +
 +If you prefer you can choose Manual partitioning. In manual mode you may set up software RAID before creating a volume group and the volumes within it.
 +
 <code> <code>
 Guided Partitioning - use entire disk and set up LVM Guided Partitioning - use entire disk and set up LVM
Line 122: Line 108:
 apt-get dist-upgrade apt-get dist-upgrade
 reboot reboot
 +</code>
 +
 +=== Debian 8 sysvinit ===
 +
 +Login and replace systemd with sysvinit.
 +
 +This process may also be applied to any virtual machines other than domain 0.
 +
 +<code>
 +apt-get install sysvinit-core sysvinit sysvinit-utils
 +</code>
 +
 +If this is a VM, configure the following.
 +
 +    - sshd root login (if required)
 +    - inittab getty hvc0 (1:2345:respawn:/sbin/getty 38400 hvc0)
 +
 +Now reboot, login again and finish the job off.
 +
 +<code>
 +apt-get remove --purge --auto-remove systemd
 +/bin/echo -e 'Package: systemd\nPin: origin ""\nPin-Priority: -1' > /etc/apt/preferences.d/systemd
 +/bin/echo -e '\nPackage: *systemd*\nPin: origin ""\nPin-Priority: -1' >> /etc/apt/preferences.d/systemd
 +/bin/echo -e '\nPackage: systemd:amd64\nPin: origin ""\nPin-Priority: -1' >> /etc/apt/preferences.d/systemd
 +/bin/echo -e '\nPackage: systemd:i386\nPin: origin ""\nPin-Priority: -1' >> /etc/apt/preferences.d/systemd
 </code> </code>
  
Line 269: Line 280:
 === XEN LVM disk maintenance === === XEN LVM disk maintenance ===
  
-If we shut down a VM we can perform disk maintenance on it'virtual disk from Domain 0.+If we shut down a VM we can perform disk maintenance on its virtual disk from Domain 0.
  
 First ensure that the target VM is off-line. Here we only have 1 VM so our output only shows Domain 0 and First ensure that the target VM is off-line. Here we only have 1 VM so our output only shows Domain 0 and
Line 382: Line 393:
 /dev/dm-1                               partition       2097148 0       -1 /dev/dm-1                               partition       2097148 0       -1
 </code> </code>
 +