<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jacob</id>
	<title>Alpine Linux - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jacob"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/Jacob"/>
	<updated>2026-04-28T07:47:30Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Xen_Dom0&amp;diff=15958</id>
		<title>Xen Dom0</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Xen_Dom0&amp;diff=15958"/>
		<updated>2019-05-22T03:18:33Z</updated>

		<summary type="html">&lt;p&gt;Jacob: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This guide will show you how to perform a Xen Dom0 install on a HDD, so you can have your Dom0. The first step is to perform a normal HDD install of Alpine Linux, which can be accomplished following the guide [[Install to disk]]. Once the install is finished, and you have rebooted into your new system, it&#039;s time to install the Xen packages:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# apk add xen xen-hypervisor seabios ovmf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;seabios&#039;&#039;&#039; and &#039;&#039;&#039;ovmf&#039;&#039;&#039; provide BIOS and UEFI firmwares for Xen virtual machines. Please be advised that ovmf is part of the community repository. In order to download it, you will need to add the community repository to [[Alpine_Linux_package_management#Packages_and_Repositories|your configuration]].&lt;br /&gt;
&lt;br /&gt;
This will install Xen Hypervisor, xl cli command and all the required packages. The next step is to modify your extlinux.cfg and add an entry to boot Xen:&lt;br /&gt;
&lt;br /&gt;
Normal boot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
LABEL xen&lt;br /&gt;
  KERNEL /boot/mboot.c32&lt;br /&gt;
  APPEND /boot/xen.gz --- /boot/grsec root=UUID=&amp;lt;YOUR-DISK-UUID&amp;gt; modules=ext4 --- /boot/grsec.gz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Serial console boot:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
LABEL xen&lt;br /&gt;
  KERNEL /boot/mboot.c32&lt;br /&gt;
  APPEND /boot/xen.gz com1=115200,8n1 console=com1 --- /boot/grsec root=UUID=&amp;lt;YOUR-DISK-UUID&amp;gt; modules=ext4  --- /boot/grsec.gz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Note|&amp;lt;nowiki&amp;gt;remember to change &amp;lt;YOUR-DISK-UUID&amp;gt; with the UUID of your boot disk (you can copy it from the normal Alpine Linux boot entry)&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
com1=115200,8n1 console=com1 redirect xen and dom0 to a physical serial port, handy if you want to use a serial null modem cable instead of a keyboard+monitor combo or if your server has an kvm over ip.&lt;br /&gt;
&lt;br /&gt;
It&#039;s also a good idea to check [http://wiki.xen.org/wiki/Xen_Hypervisor_Boot_Options Xen Boot options] and set dom0_mem, dom0_vcpus_pin and dom0_max_vcpus at least.&lt;br /&gt;
&lt;br /&gt;
The next step is to load the necessary kernel modules for Xen, we will add them to /etc/modules, so they will be loaded automatically on boot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# echo &amp;quot;xen_netback&amp;quot; &amp;gt;&amp;gt; /etc/modules&lt;br /&gt;
# echo &amp;quot;xen_blkback&amp;quot; &amp;gt;&amp;gt; /etc/modules&lt;br /&gt;
# echo &amp;quot;tun&amp;quot; &amp;gt;&amp;gt; /etc/modules&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The last step is to configure startup services, we will need udev and xencommons at least to be started on boot:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rc-update add xenconsoled&lt;br /&gt;
rc-update add xendomains&lt;br /&gt;
rc-update add xenqemu&lt;br /&gt;
rc-update add xenstored&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Ok, now you have a fully functional Xen install, it&#039;s time to boot into it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also remember to configure at least one network bridge following the [[Bridge]] guide.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Xen Dom0 on USB or SD]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Virtualization]]&lt;/div&gt;</summary>
		<author><name>Jacob</name></author>
	</entry>
</feed>