docs: add a chapter on installing in a virtual machine
QEMU/KVM: KVM/CPU host, 2-4 GiB, 32 GiB disk, BIOS and UEFI (OVMF with a writable variable store), AHCI for UEFI because OVMF's IDE is slow, the serial console (com0) and the device names the installer shows (ld0, sd0, wd0). Proxmox VE: q35/OVMF or i440fx/SeaBIOS, VirtIO SCSI, the qm create example, boot order, serial socket and the noVNC focus note. The installation chapter points to it. Rebuilt 28 manual pages and the 73-page PDF with page numbers and the chapter outline; www/guide.html updated. The print stylesheet wraps long commands instead of clipping them.
This commit is contained in:
1 parent
d283c85767
commit
cd6bcdc827
27 files changed
+15299
-12199
No files matched your search
@@ -29,6 +29,7 @@
|
||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="chapters/tour.xml"/>
|
||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="chapters/before-install.xml"/>
|
||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="chapters/install.xml"/>
|
||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="chapters/vm.xml"/>
|
||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="chapters/upgrade.xml"/>
|
||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="chapters/mcde.xml"/>
|
||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="chapters/x11.xml"/>
|
||||
|
||||
@@ -7,6 +7,7 @@ what|What Makronix Is|what|what.xml
|
||||
tour|A Tour of the System|tour|tour.xml
|
||||
before-install|Before You Install|before-install|before-install.xml
|
||||
install|Installing Makronix|install|install.xml
|
||||
vm|Installing in a Virtual Machine|vm|vm.xml
|
||||
upgrade|Upgrading Makronix|upgrade|upgrade.xml
|
||||
mcde|MCDE: The Desktop|mcde|mcde.xml
|
||||
x11|The Display and X11|x11|x11.xml
|
||||
|
||||
@@ -7,6 +7,9 @@
|
||||
which decides as much as it can, and the full way, which is NetBSD's
|
||||
installation with every question. Both install the same system.</para>
|
||||
|
||||
<para>If the machine is a virtual one, <xref linkend="vm"/> has the
|
||||
QEMU/KVM and Proxmox VE settings.</para>
|
||||
|
||||
<sect1 id="install-boot">
|
||||
<title>Starting the installer</title>
|
||||
|
||||
|
||||
@@ -0,0 +1,267 @@
|
||||
<!-- License: CNCL 1.0 (Could Not Care Less), see LICENSE at the top of the tree. -->
|
||||
<chapter id="vm">
|
||||
<title>Installing in a Virtual Machine</title>
|
||||
|
||||
<para>A virtual machine is the cheapest way to try Makronix: no disk is
|
||||
overwritten, a snapshot is one command away, and the same installer runs as
|
||||
on real hardware. This chapter gives the settings that matter for QEMU with
|
||||
KVM and for Proxmox VE. The values are starting points; the installer is
|
||||
the same as on a physical machine (<xref linkend="install"/>).</para>
|
||||
|
||||
<sect1 id="vm-needs">
|
||||
<title>What the VM needs</title>
|
||||
|
||||
<itemizedlist>
|
||||
<listitem><para><emphasis>KVM.</emphasis> A virtual machine without
|
||||
hardware acceleration (QEMU's TCG) installs, but slowly. On Linux,
|
||||
<filename>/dev/kvm</filename> must exist and your user must be allowed
|
||||
to use it; on Proxmox VE, KVM is the default.</para></listitem>
|
||||
<listitem><para><emphasis>Memory.</emphasis> 2 GiB installs the system
|
||||
and runs the text console; 4 GiB make the MCDE desktop comfortable.
|
||||
8 GiB are useful only if the guest runs a browser or another VM.</para></listitem>
|
||||
<listitem><para><emphasis>Disk.</emphasis> 32 GiB is a comfortable
|
||||
size for the system, the desktop and a few packages. The source set
|
||||
needs considerably more; <xref linkend="building"/> explains
|
||||
it.</para></listitem>
|
||||
<listitem><para><emphasis>Firmware.</emphasis> UEFI (OVMF) or BIOS.
|
||||
UEFI is the modern choice; the installer and the boot loader handle
|
||||
both. For UEFI, give the VM a writable variable store, not only the
|
||||
read-only firmware image.</para></listitem>
|
||||
<listitem><para><emphasis>Disk and network devices.</emphasis> VirtIO
|
||||
is the fast choice. The installer sees a VirtIO block disk as
|
||||
<filename>ld0</filename>, a SCSI or AHCI disk as
|
||||
<filename>sd0</filename>, and an IDE disk as
|
||||
<filename>wd0</filename>.</para></listitem>
|
||||
<listitem><para><emphasis>A display for the desktop.</emphasis> The
|
||||
graphical installer and <command>dtlogin</command> need a VGA device.
|
||||
<literal>std</literal> is the safe emulation; a serial console is
|
||||
enough for a headless installation.</para></listitem>
|
||||
</itemizedlist>
|
||||
</sect1>
|
||||
|
||||
<sect1 id="vm-qemu">
|
||||
<title>QEMU and KVM</title>
|
||||
|
||||
<para>Create a disk image first. <command>qemu-img</command> makes a
|
||||
sparse qcow2 file; it grows as the installation writes to it.</para>
|
||||
|
||||
<screen>qemu-img create -f qcow2 makronix.qcow2 32G</screen>
|
||||
|
||||
<para>The following command starts a BIOS machine with 4 GiB of memory,
|
||||
four CPUs, an IDE disk, the DVD image, user-mode networking with SSH
|
||||
forwarded to port 2222, and a graphical window:</para>
|
||||
|
||||
<screen>qemu-system-x86_64 -enable-kvm -cpu host -smp 4 -m 4G \
|
||||
-drive file=makronix.qcow2,if=ide,format=qcow2 \
|
||||
-drive file=Makronix-0.99.10-amd64-dvd.iso,media=cdrom,readonly=on \
|
||||
-boot order=dc \
|
||||
-nic user,model=e1000, \
|
||||
hostfwd=tcp:127.0.0.1:2222-:22 \
|
||||
-vga std -display gtk</screen>
|
||||
|
||||
<para>If <filename>/dev/kvm</filename> is not available, remove
|
||||
<literal>-enable-kvm -cpu host</literal> and add
|
||||
<literal>-cpu max</literal>; the installation then runs in emulation and
|
||||
takes much longer. Replace <literal>-display gtk</literal> with
|
||||
<literal>-display none -serial mon:stdio</literal> for a console-only
|
||||
machine; the install media talks on <filename>com0</filename>, as
|
||||
<xref linkend="vm-qemu-serial"/> explains.</para>
|
||||
|
||||
<sect2 id="vm-qemu-uefi">
|
||||
<title>UEFI</title>
|
||||
|
||||
<para>UEFI needs the OVMF firmware and a writable copy of its variable
|
||||
store. The paths differ between distributions; these are the Debian
|
||||
and Ubuntu names:</para>
|
||||
|
||||
<screen>cp /usr/share/OVMF/OVMF_VARS_4M.fd OVMF_VARS.fd
|
||||
qemu-system-x86_64 -enable-kvm -cpu host -smp 4 -m 4G \
|
||||
-machine q35 \
|
||||
-drive if=pflash,format=raw,readonly=on, \
|
||||
file=/usr/share/OVMF/OVMF_CODE_4M.fd \
|
||||
-drive if=pflash,format=raw,file=OVMF_VARS.fd \
|
||||
-device ich9-ahci,id=ahci \
|
||||
-drive file=makronix.qcow2,if=none,id=hd0,format=qcow2 \
|
||||
-device ide-hd,drive=hd0,bus=ahci.0 \
|
||||
-drive file=Makronix-0.99.10-amd64-dvd.iso,media=cdrom,readonly=on, \
|
||||
if=none,id=cd0 \
|
||||
-device ide-cd,drive=cd0,bus=ahci.1 \
|
||||
-boot order=dc \
|
||||
-nic user,model=e1000, \
|
||||
hostfwd=tcp:127.0.0.1:2222-:22 \
|
||||
-vga std -display gtk</screen>
|
||||
|
||||
<para>The AHCI controller is deliberate. OVMF's IDE driver reads a CD
|
||||
or a disk so slowly that the boot loader can need minutes for the
|
||||
kernel; the tree's own test machines put the disk and the CD on AHCI
|
||||
when UEFI is used (<filename>tools/vmsh.sh</filename>).</para>
|
||||
</sect2>
|
||||
|
||||
<sect2 id="vm-qemu-serial">
|
||||
<title>A serial console</title>
|
||||
|
||||
<para>The installer's boot configuration uses
|
||||
<filename>com0</filename> at 115200 baud, so a headless machine can be
|
||||
installed from a terminal. Run QEMU with the serial line on the
|
||||
terminal and no display:</para>
|
||||
|
||||
<screen>qemu-system-x86_64 -enable-kvm -cpu host -smp 4 -m 4G \
|
||||
-drive file=makronix.qcow2,if=ide,format=qcow2 \
|
||||
-drive file=Makronix-0.99.10-amd64-dvd.iso,media=cdrom,readonly=on \
|
||||
-boot order=dc -display none -serial mon:stdio</screen>
|
||||
|
||||
<para><literal>Ctrl-A C</literal> switches between the guest console
|
||||
and the QEMU monitor; <literal>Ctrl-A X</literal> stops the machine.
|
||||
After the installation, boot the disk with <literal>-boot order=c</literal>
|
||||
and leave the CD out.</para>
|
||||
</sect2>
|
||||
|
||||
<sect2 id="vm-qemu-disks">
|
||||
<title>Which disk the installer shows</title>
|
||||
|
||||
<para>In the installer's disk menu, the device name tells you which
|
||||
bus the disk is on:</para>
|
||||
|
||||
<itemizedlist>
|
||||
<listitem><para><filename>ld0</filename> — a VirtIO block
|
||||
device (<literal>if=virtio</literal>). The fastest choice for a
|
||||
Linux KVM host.</para></listitem>
|
||||
<listitem><para><filename>sd0</filename> — SCSI, AHCI or a
|
||||
VirtIO SCSI controller (the Proxmox default).</para></listitem>
|
||||
<listitem><para><filename>wd0</filename> — the emulated IDE
|
||||
controller (<literal>if=ide</literal>), which is the simplest but the
|
||||
slowest.</para></listitem>
|
||||
</itemizedlist>
|
||||
|
||||
<para>After the reboot, remove the CD from the command line (or set
|
||||
<literal>-boot order=c</literal>). The installed system starts from
|
||||
the disk. The network is <filename>vioif0</filename> for VirtIO and
|
||||
<filename>wm0</filename> or <filename>re0</filename> for the emulated
|
||||
cards; the installer's DHCP client configures it either way.</para>
|
||||
</sect2>
|
||||
</sect1>
|
||||
|
||||
<sect1 id="vm-proxmox">
|
||||
<title>Proxmox VE</title>
|
||||
|
||||
<para>Proxmox VE runs QEMU with KVM and adds its own storage, snapshots
|
||||
and a web console. A Makronix VM is an <quote>Other</quote> guest; the
|
||||
settings that matter are the machine type, the firmware, the disk bus and
|
||||
the display.</para>
|
||||
|
||||
<para>In the web interface, create a VM with these values:</para>
|
||||
|
||||
<itemizedlist>
|
||||
<listitem><para><guilabel>OS</guilabel>: the DVD image
|
||||
<filename>Makronix-0.99.10-amd64-dvd.iso</filename> as the CD/DVD, guest
|
||||
type <quote>Other</quote>.</para></listitem>
|
||||
<listitem><para><guilabel>System</guilabel>: machine <literal>q35</literal>,
|
||||
BIOS <literal>OVMF (UEFI)</literal>, an EFI disk, Secure Boot off. For
|
||||
a BIOS VM use machine <literal>i440fx</literal> and SeaBIOS
|
||||
instead.</para></listitem>
|
||||
<listitem><para><guilabel>Disks</guilabel>: SCSI controller
|
||||
<literal>VirtIO SCSI</literal>, 32 GiB. The guest sees it as
|
||||
<filename>sd0</filename>.</para></listitem>
|
||||
<listitem><para><guilabel>CPU</guilabel>: type <literal>host</literal>,
|
||||
4 cores. On a cluster with mixed CPUs, a named model such as
|
||||
<literal>x86-64-v2-AES</literal> is needed for migration; it is slower
|
||||
but portable.</para></listitem>
|
||||
<listitem><para><guilabel>Memory</guilabel>: 4096 MiB (2048 is the
|
||||
minimum for a text installation).</para></listitem>
|
||||
<listitem><para><guilabel>Network</guilabel>: model
|
||||
<literal>VirtIO</literal>, bridge <literal>vmbr0</literal>, firewall as
|
||||
your network needs it.</para></listitem>
|
||||
<listitem><para><guilabel>Display</guilabel>: <literal>std</literal>,
|
||||
and a serial port if you want the text console.</para></listitem>
|
||||
<listitem><para><guilabel>Boot order</guilabel>: CD/DVD first, the
|
||||
SCSI disk second.</para></listitem>
|
||||
</itemizedlist>
|
||||
|
||||
<para>The same VM from the command line:</para>
|
||||
|
||||
<screen>qm create 100 --name makronix --ostype other --machine q35 --bios ovmf \
|
||||
--efidisk0 local-lvm:1,efitype=4m,pre-enrolled-keys=0 \
|
||||
--cpu host --cores 4 --memory 4096 --scsihw virtio-scsi-pci \
|
||||
--scsi0 local-lvm:32 \
|
||||
--ide2 local:iso/Makronix-0.99.10-amd64-dvd.iso,media=cdrom \
|
||||
--boot 'order=ide2;scsi0' --net0 virtio,bridge=vmbr0 \
|
||||
--vga std --serial0 socket
|
||||
qm start 100</screen>
|
||||
|
||||
<para><filename>local-lvm</filename> and <filename>local</filename> are
|
||||
the storage names of your Proxmox installation; replace them with the
|
||||
names in <guilabel>Datacenter > Storage</guilabel>. For a BIOS VM,
|
||||
omit <literal>--bios ovmf</literal> and <literal>--efidisk0</literal>, use
|
||||
<literal>--machine i440fx</literal>, and keep the same
|
||||
<literal>--boot</literal> order.</para>
|
||||
|
||||
<para>Open the console with <guilabel>Console</guilabel> (noVNC) for the
|
||||
graphical installer, or <command>qm terminal 100</command> for the serial
|
||||
one. If the web console shows the installer but the keyboard does not
|
||||
work, click inside the console once; Proxmox forwards the keyboard only
|
||||
after the console has the focus.</para>
|
||||
|
||||
<para>When the installation is finished, detach the ISO and boot the
|
||||
disk:</para>
|
||||
|
||||
<screen>qm set 100 --boot order=scsi0
|
||||
qm set 100 --delete ide2</screen>
|
||||
|
||||
<para><emphasis>Agent and cloud-init:</emphasis> leave the QEMU guest
|
||||
agent off unless you install it in the guest; Makronix does not ship it.
|
||||
Proxmox's snapshots and backups work at the block level without it. For
|
||||
a consistent backup of a running guest, stop it first or use the guest's
|
||||
own backup; a block snapshot of a mounted file system is not a
|
||||
transactional backup.</para>
|
||||
</sect1>
|
||||
|
||||
<sect1 id="vm-after">
|
||||
<title>After the installation</title>
|
||||
|
||||
<para>The first boot is the same as on a physical machine: the MCDE login
|
||||
screen, the account you created, and the network the installer
|
||||
configured. In QEMU's user-mode network, the host reaches the guest's
|
||||
SSH server through the forwarded port:</para>
|
||||
|
||||
<screen>ssh -p 2222 user@127.0.0.1</screen>
|
||||
|
||||
<para>In Proxmox, the guest is on the bridge and gets an address from the
|
||||
network's DHCP server, or the fixed address you configure in the
|
||||
installer. The serial console remains available with
|
||||
<command>qm terminal 100</command>; log out of it with
|
||||
<literal>Ctrl-O</literal>.</para>
|
||||
|
||||
<para>An encrypted installation works in a VM exactly as on hardware: the
|
||||
installer asks for the passphrase, and every boot asks for it again. A
|
||||
Proxmox snapshot of an encrypted guest is a snapshot of the encrypted
|
||||
blocks; the passphrase is still needed to start it.</para>
|
||||
</sect1>
|
||||
|
||||
<sect1 id="vm-trouble">
|
||||
<title>When the VM does not cooperate</title>
|
||||
|
||||
<itemizedlist>
|
||||
<listitem><para><emphasis>The VM starts but the installer does not
|
||||
appear.</emphasis> Check the boot order (CD before disk), and give the
|
||||
firmware a moment: OVMF scans its devices before it reads the CD. With
|
||||
UEFI, make sure the writable variable store is attached; a read-only
|
||||
OVMF image cannot keep the boot entries.</para></listitem>
|
||||
<listitem><para><emphasis>UEFI is very slow.</emphasis> Move the disk
|
||||
and the CD to AHCI (<literal>ich9-ahci</literal> in QEMU, VirtIO SCSI in
|
||||
Proxmox). OVMF's IDE driver is the usual cause.</para></listitem>
|
||||
<listitem><para><emphasis>The desktop does not start.</emphasis> The
|
||||
installer may have completed on a serial console with no VGA device.
|
||||
Add <literal>-vga std</literal> (QEMU) or <literal>vga: std</literal>
|
||||
(Proxmox), start the graphical installer, and use the full installation
|
||||
way if the simple way cannot detect the display.</para></listitem>
|
||||
<listitem><para><emphasis>No network.</emphasis> QEMU's user-mode
|
||||
network is NAT: the guest can reach out, and the host reaches the guest
|
||||
only through a forwarded port. A bridged Proxmox VM behaves like a
|
||||
machine on the LAN; check the bridge and the firewall.</para></listitem>
|
||||
<listitem><para><emphasis>The keyboard is wrong.</emphasis> The
|
||||
installer asks for the keyboard layout; the MCDE session has its own
|
||||
setting. A VM console that sends the wrong keys is usually a host
|
||||
layout problem, not a guest one.</para></listitem>
|
||||
</itemizedlist>
|
||||
</sect1>
|
||||
</chapter>
|
||||
@@ -376,3 +376,11 @@ figcaption {
|
||||
font-family: "DejaVu Sans Mono", monospace;
|
||||
font-size: 0.78rem;
|
||||
}
|
||||
|
||||
@media print {
|
||||
/* Long commands must wrap, not be clipped at the right edge. */
|
||||
pre {
|
||||
white-space: pre-wrap;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
}
|
||||
@@ -6245,6 +6245,7 @@
|
||||
./usr/share/man/man7/makronix-guide-tour.7 man-reference-man .man
|
||||
./usr/share/man/man7/makronix-guide-before-install.7 man-reference-man .man
|
||||
./usr/share/man/man7/makronix-guide-install.7 man-reference-man .man
|
||||
./usr/share/man/man7/makronix-guide-vm.7 man-reference-man .man
|
||||
./usr/share/man/man7/makronix-guide-upgrade.7 man-reference-man .man
|
||||
./usr/share/man/man7/makronix-guide-mcde.7 man-reference-man .man
|
||||
./usr/share/man/man7/makronix-guide-x11.7 man-reference-man .man
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,2 +1,2 @@
|
||||
The Makronix Guide GewOhlQrOR01y70
|
||||
MAKRONIX The Makronix Guide CewOhlQrOR01y70 en_US.UTF-8 2 3
|
||||
The Makronix Guide 2WEqilQ6.S01y70
|
||||
MAKRONIX The Makronix Guide 1WEqilQ6.S01y70 en_US.UTF-8 2 3
|
||||
@@ -385,6 +385,14 @@ figcaption {
|
||||
font-family: "DejaVu Sans Mono", monospace;
|
||||
font-size: 0.78rem;
|
||||
}
|
||||
|
||||
@media print {
|
||||
/* Long commands must wrap, not be clipped at the right edge. */
|
||||
pre {
|
||||
white-space: pre-wrap;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
@@ -471,6 +479,16 @@ boot</a></li>
|
||||
<li><a href="#install-trouble" id="toc-install-trouble">When the
|
||||
installation does not start</a></li>
|
||||
</ul></li>
|
||||
<li><a href="#vm" id="toc-vm">Installing in a Virtual Machine</a>
|
||||
<ul>
|
||||
<li><a href="#vm-needs" id="toc-vm-needs">What the VM needs</a></li>
|
||||
<li><a href="#vm-qemu" id="toc-vm-qemu">QEMU and KVM</a></li>
|
||||
<li><a href="#vm-proxmox" id="toc-vm-proxmox">Proxmox VE</a></li>
|
||||
<li><a href="#vm-after" id="toc-vm-after">After the
|
||||
installation</a></li>
|
||||
<li><a href="#vm-trouble" id="toc-vm-trouble">When the VM does not
|
||||
cooperate</a></li>
|
||||
</ul></li>
|
||||
<li><a href="#upgrade" id="toc-upgrade">Upgrading Makronix</a>
|
||||
<ul>
|
||||
<li><a href="#upgrade-medium" id="toc-upgrade-medium">From the
|
||||
@@ -1170,6 +1188,8 @@ keep it, the simple way uses the whole disk.</p>
|
||||
Makronix's fork of NetBSD's installer. It has two ways: the simple way,
|
||||
which decides as much as it can, and the full way, which is NetBSD's
|
||||
installation with every question. Both install the same system.</p>
|
||||
<p>If the machine is a virtual one, <a href="#vm">Installing in a
|
||||
Virtual Machine</a> has the QEMU/KVM and Proxmox VE settings.</p>
|
||||
<h2 id="install-boot">Starting the installer</h2>
|
||||
<p>Start the machine from the medium. On a machine with UEFI, choose the
|
||||
stick or the DVD in the firmware's boot menu; on a Mac, hold
|
||||
@@ -1272,6 +1292,204 @@ medium again and choose the shell, then inspect the disk with
|
||||
<code>disklabel</code> and mount the root partition by hand. The boot
|
||||
messages are on the console; <code>dmesg</code> repeats them.</p></li>
|
||||
</ul>
|
||||
<h1 id="vm">Installing in a Virtual Machine</h1>
|
||||
<p>A virtual machine is the cheapest way to try Makronix: no disk is
|
||||
overwritten, a snapshot is one command away, and the same installer runs
|
||||
as on real hardware. This chapter gives the settings that matter for
|
||||
QEMU with KVM and for Proxmox VE. The values are starting points; the
|
||||
installer is the same as on a physical machine (<a
|
||||
href="#install">Installing Makronix</a>).</p>
|
||||
<h2 id="vm-needs">What the VM needs</h2>
|
||||
<ul>
|
||||
<li><p><em>KVM.</em> A virtual machine without hardware acceleration
|
||||
(QEMU's TCG) installs, but slowly. On Linux, <code>/dev/kvm</code> must
|
||||
exist and your user must be allowed to use it; on Proxmox VE, KVM is the
|
||||
default.</p></li>
|
||||
<li><p><em>Memory.</em> 2 GiB installs the system and runs the text
|
||||
console; 4 GiB make the MCDE desktop comfortable. 8 GiB are useful only
|
||||
if the guest runs a browser or another VM.</p></li>
|
||||
<li><p><em>Disk.</em> 32 GiB is a comfortable size for the system, the
|
||||
desktop and a few packages. The source set needs considerably more; <a
|
||||
href="#building">Building Makronix</a> explains it.</p></li>
|
||||
<li><p><em>Firmware.</em> UEFI (OVMF) or BIOS. UEFI is the modern
|
||||
choice; the installer and the boot loader handle both. For UEFI, give
|
||||
the VM a writable variable store, not only the read-only firmware
|
||||
image.</p></li>
|
||||
<li><p><em>Disk and network devices.</em> VirtIO is the fast choice. The
|
||||
installer sees a VirtIO block disk as <code>ld0</code>, a SCSI or AHCI
|
||||
disk as <code>sd0</code>, and an IDE disk as <code>wd0</code>.</p></li>
|
||||
<li><p><em>A display for the desktop.</em> The graphical installer and
|
||||
<code>dtlogin</code> need a VGA device. <code>std</code> is the safe
|
||||
emulation; a serial console is enough for a headless
|
||||
installation.</p></li>
|
||||
</ul>
|
||||
<h2 id="vm-qemu">QEMU and KVM</h2>
|
||||
<p>Create a disk image first. <code>qemu-img</code> makes a sparse qcow2
|
||||
file; it grows as the installation writes to it.</p>
|
||||
<pre><code>qemu-img create -f qcow2 makronix.qcow2 32G</code></pre>
|
||||
<p>The following command starts a BIOS machine with 4 GiB of memory,
|
||||
four CPUs, an IDE disk, the DVD image, user-mode networking with SSH
|
||||
forwarded to port 2222, and a graphical window:</p>
|
||||
<pre><code>qemu-system-x86_64 -enable-kvm -cpu host -smp 4 -m 4G \
|
||||
-drive file=makronix.qcow2,if=ide,format=qcow2 \
|
||||
-drive file=Makronix-0.99.10-amd64-dvd.iso,media=cdrom,readonly=on \
|
||||
-boot order=dc \
|
||||
-nic user,model=e1000, \
|
||||
hostfwd=tcp:127.0.0.1:2222-:22 \
|
||||
-vga std -display gtk</code></pre>
|
||||
<p>If <code>/dev/kvm</code> is not available, remove
|
||||
<code>-enable-kvm -cpu host</code> and add <code>-cpu max</code>; the
|
||||
installation then runs in emulation and takes much longer. Replace
|
||||
<code>-display gtk</code> with
|
||||
<code>-display none -serial mon:stdio</code> for a console-only machine;
|
||||
the install media talks on <code>com0</code>, as <a
|
||||
href="#vm-qemu-serial">A serial console</a> explains.</p>
|
||||
<h3 id="vm-qemu-uefi">UEFI</h3>
|
||||
<p>UEFI needs the OVMF firmware and a writable copy of its variable
|
||||
store. The paths differ between distributions; these are the Debian and
|
||||
Ubuntu names:</p>
|
||||
<pre><code>cp /usr/share/OVMF/OVMF_VARS_4M.fd OVMF_VARS.fd
|
||||
qemu-system-x86_64 -enable-kvm -cpu host -smp 4 -m 4G \
|
||||
-machine q35 \
|
||||
-drive if=pflash,format=raw,readonly=on, \
|
||||
file=/usr/share/OVMF/OVMF_CODE_4M.fd \
|
||||
-drive if=pflash,format=raw,file=OVMF_VARS.fd \
|
||||
-device ich9-ahci,id=ahci \
|
||||
-drive file=makronix.qcow2,if=none,id=hd0,format=qcow2 \
|
||||
-device ide-hd,drive=hd0,bus=ahci.0 \
|
||||
-drive file=Makronix-0.99.10-amd64-dvd.iso,media=cdrom,readonly=on, \
|
||||
if=none,id=cd0 \
|
||||
-device ide-cd,drive=cd0,bus=ahci.1 \
|
||||
-boot order=dc \
|
||||
-nic user,model=e1000, \
|
||||
hostfwd=tcp:127.0.0.1:2222-:22 \
|
||||
-vga std -display gtk</code></pre>
|
||||
<p>The AHCI controller is deliberate. OVMF's IDE driver reads a CD or a
|
||||
disk so slowly that the boot loader can need minutes for the kernel; the
|
||||
tree's own test machines put the disk and the CD on AHCI when UEFI is
|
||||
used (<code>tools/vmsh.sh</code>).</p>
|
||||
<h3 id="vm-qemu-serial">A serial console</h3>
|
||||
<p>The installer's boot configuration uses <code>com0</code> at 115200
|
||||
baud, so a headless machine can be installed from a terminal. Run QEMU
|
||||
with the serial line on the terminal and no display:</p>
|
||||
<pre><code>qemu-system-x86_64 -enable-kvm -cpu host -smp 4 -m 4G \
|
||||
-drive file=makronix.qcow2,if=ide,format=qcow2 \
|
||||
-drive file=Makronix-0.99.10-amd64-dvd.iso,media=cdrom,readonly=on \
|
||||
-boot order=dc -display none -serial mon:stdio</code></pre>
|
||||
<p><code>Ctrl-A C</code> switches between the guest console and the QEMU
|
||||
monitor; <code>Ctrl-A X</code> stops the machine. After the
|
||||
installation, boot the disk with <code>-boot order=c</code> and leave
|
||||
the CD out.</p>
|
||||
<h3 id="vm-qemu-disks">Which disk the installer shows</h3>
|
||||
<p>In the installer's disk menu, the device name tells you which bus the
|
||||
disk is on:</p>
|
||||
<ul>
|
||||
<li><p><code>ld0</code> — a VirtIO block device
|
||||
(<code>if=virtio</code>). The fastest choice for a Linux KVM
|
||||
host.</p></li>
|
||||
<li><p><code>sd0</code> — SCSI, AHCI or a VirtIO SCSI controller (the
|
||||
Proxmox default).</p></li>
|
||||
<li><p><code>wd0</code> — the emulated IDE controller
|
||||
(<code>if=ide</code>), which is the simplest but the slowest.</p></li>
|
||||
</ul>
|
||||
<p>After the reboot, remove the CD from the command line (or set
|
||||
<code>-boot order=c</code>). The installed system starts from the disk.
|
||||
The network is <code>vioif0</code> for VirtIO and <code>wm0</code> or
|
||||
<code>re0</code> for the emulated cards; the installer's DHCP client
|
||||
configures it either way.</p>
|
||||
<h2 id="vm-proxmox">Proxmox VE</h2>
|
||||
<p>Proxmox VE runs QEMU with KVM and adds its own storage, snapshots and
|
||||
a web console. A Makronix VM is an “Other” guest; the settings that
|
||||
matter are the machine type, the firmware, the disk bus and the
|
||||
display.</p>
|
||||
<p>In the web interface, create a VM with these values:</p>
|
||||
<ul>
|
||||
<li><p>OS: the DVD image <code>Makronix-0.99.10-amd64-dvd.iso</code> as
|
||||
the CD/DVD, guest type “Other”.</p></li>
|
||||
<li><p>System: machine <code>q35</code>, BIOS <code>OVMF (UEFI)</code>,
|
||||
an EFI disk, Secure Boot off. For a BIOS VM use machine
|
||||
<code>i440fx</code> and SeaBIOS instead.</p></li>
|
||||
<li><p>Disks: SCSI controller <code>VirtIO SCSI</code>, 32 GiB. The
|
||||
guest sees it as <code>sd0</code>.</p></li>
|
||||
<li><p>CPU: type <code>host</code>, 4 cores. On a cluster with mixed
|
||||
CPUs, a named model such as <code>x86-64-v2-AES</code> is needed for
|
||||
migration; it is slower but portable.</p></li>
|
||||
<li><p>Memory: 4096 MiB (2048 is the minimum for a text
|
||||
installation).</p></li>
|
||||
<li><p>Network: model <code>VirtIO</code>, bridge <code>vmbr0</code>,
|
||||
firewall as your network needs it.</p></li>
|
||||
<li><p>Display: <code>std</code>, and a serial port if you want the text
|
||||
console.</p></li>
|
||||
<li><p>Boot order: CD/DVD first, the SCSI disk second.</p></li>
|
||||
</ul>
|
||||
<p>The same VM from the command line:</p>
|
||||
<pre><code>qm create 100 --name makronix --ostype other --machine q35 --bios ovmf \
|
||||
--efidisk0 local-lvm:1,efitype=4m,pre-enrolled-keys=0 \
|
||||
--cpu host --cores 4 --memory 4096 --scsihw virtio-scsi-pci \
|
||||
--scsi0 local-lvm:32 \
|
||||
--ide2 local:iso/Makronix-0.99.10-amd64-dvd.iso,media=cdrom \
|
||||
--boot 'order=ide2;scsi0' --net0 virtio,bridge=vmbr0 \
|
||||
--vga std --serial0 socket
|
||||
qm start 100</code></pre>
|
||||
<p><code>local-lvm</code> and <code>local</code> are the storage names
|
||||
of your Proxmox installation; replace them with the names in Datacenter
|
||||
> Storage. For a BIOS VM, omit <code>--bios ovmf</code> and
|
||||
<code>--efidisk0</code>, use <code>--machine i440fx</code>, and keep the
|
||||
same <code>--boot</code> order.</p>
|
||||
<p>Open the console with Console (noVNC) for the graphical installer, or
|
||||
<code>qm terminal 100</code> for the serial one. If the web console
|
||||
shows the installer but the keyboard does not work, click inside the
|
||||
console once; Proxmox forwards the keyboard only after the console has
|
||||
the focus.</p>
|
||||
<p>When the installation is finished, detach the ISO and boot the
|
||||
disk:</p>
|
||||
<pre><code>qm set 100 --boot order=scsi0
|
||||
qm set 100 --delete ide2</code></pre>
|
||||
<p><em>Agent and cloud-init:</em> leave the QEMU guest agent off unless
|
||||
you install it in the guest; Makronix does not ship it. Proxmox's
|
||||
snapshots and backups work at the block level without it. For a
|
||||
consistent backup of a running guest, stop it first or use the guest's
|
||||
own backup; a block snapshot of a mounted file system is not a
|
||||
transactional backup.</p>
|
||||
<h2 id="vm-after">After the installation</h2>
|
||||
<p>The first boot is the same as on a physical machine: the MCDE login
|
||||
screen, the account you created, and the network the installer
|
||||
configured. In QEMU's user-mode network, the host reaches the guest's
|
||||
SSH server through the forwarded port:</p>
|
||||
<pre><code>ssh -p 2222 user@127.0.0.1</code></pre>
|
||||
<p>In Proxmox, the guest is on the bridge and gets an address from the
|
||||
network's DHCP server, or the fixed address you configure in the
|
||||
installer. The serial console remains available with
|
||||
<code>qm terminal 100</code>; log out of it with
|
||||
<code>Ctrl-O</code>.</p>
|
||||
<p>An encrypted installation works in a VM exactly as on hardware: the
|
||||
installer asks for the passphrase, and every boot asks for it again. A
|
||||
Proxmox snapshot of an encrypted guest is a snapshot of the encrypted
|
||||
blocks; the passphrase is still needed to start it.</p>
|
||||
<h2 id="vm-trouble">When the VM does not cooperate</h2>
|
||||
<ul>
|
||||
<li><p><em>The VM starts but the installer does not appear.</em> Check
|
||||
the boot order (CD before disk), and give the firmware a moment: OVMF
|
||||
scans its devices before it reads the CD. With UEFI, make sure the
|
||||
writable variable store is attached; a read-only OVMF image cannot keep
|
||||
the boot entries.</p></li>
|
||||
<li><p><em>UEFI is very slow.</em> Move the disk and the CD to AHCI
|
||||
(<code>ich9-ahci</code> in QEMU, VirtIO SCSI in Proxmox). OVMF's IDE
|
||||
driver is the usual cause.</p></li>
|
||||
<li><p><em>The desktop does not start.</em> The installer may have
|
||||
completed on a serial console with no VGA device. Add
|
||||
<code>-vga std</code> (QEMU) or <code>vga: std</code> (Proxmox), start
|
||||
the graphical installer, and use the full installation way if the simple
|
||||
way cannot detect the display.</p></li>
|
||||
<li><p><em>No network.</em> QEMU's user-mode network is NAT: the guest
|
||||
can reach out, and the host reaches the guest only through a forwarded
|
||||
port. A bridged Proxmox VM behaves like a machine on the LAN; check the
|
||||
bridge and the firewall.</p></li>
|
||||
<li><p><em>The keyboard is wrong.</em> The installer asks for the
|
||||
keyboard layout; the MCDE session has its own setting. A VM console that
|
||||
sends the wrong keys is usually a host layout problem, not a guest
|
||||
one.</p></li>
|
||||
</ul>
|
||||
<h1 id="upgrade">Upgrading Makronix</h1>
|
||||
<p>An upgrade replaces the base system and keeps your accounts, your
|
||||
files and the packages you installed. There are two ways to do it: from
|
||||
|
||||
+14339
-12197
File diff suppressed because it is too large.
Load diff
@@ -58,6 +58,7 @@ MAN+= makronix-guide-what.7
|
||||
MAN+= makronix-guide-tour.7
|
||||
MAN+= makronix-guide-before-install.7
|
||||
MAN+= makronix-guide-install.7
|
||||
MAN+= makronix-guide-vm.7
|
||||
MAN+= makronix-guide-upgrade.7
|
||||
MAN+= makronix-guide-mcde.7
|
||||
MAN+= makronix-guide-x11.7
|
||||
|
||||
@@ -5,6 +5,9 @@ NetBSD\(aqs installer.
|
||||
It has two ways: the simple way, which decides as much as it can, and
|
||||
the full way, which is NetBSD\(aqs installation with every question.
|
||||
Both install the same system.
|
||||
.PP
|
||||
If the machine is a virtual one, ???
|
||||
has the QEMU/KVM and Proxmox VE settings.
|
||||
.SS Starting the installer
|
||||
Start the machine from the medium.
|
||||
On a machine with UEFI, choose the stick or the DVD in the firmware\(aqs
|
||||
|
||||
@@ -0,0 +1,251 @@
|
||||
.TH "MAKRONIX-GUIDE-VM" "7" "November 2026" "Makronix 0.99.10" "Makronix Guide"
|
||||
.SH Installing in a Virtual Machine
|
||||
A virtual machine is the cheapest way to try Makronix: no disk is
|
||||
overwritten, a snapshot is one command away, and the same installer runs
|
||||
as on real hardware.
|
||||
This chapter gives the settings that matter for QEMU with KVM and for
|
||||
Proxmox VE.
|
||||
The values are starting points; the installer is the same as on a
|
||||
physical machine (???).
|
||||
.SS What the VM needs
|
||||
.IP \(bu 2
|
||||
\f[I]KVM.\f[R] A virtual machine without hardware acceleration
|
||||
(QEMU\(aqs TCG) installs, but slowly.
|
||||
On Linux, \f[CR]/dev/kvm\f[R] must exist and your user must be allowed
|
||||
to use it; on Proxmox VE, KVM is the default.
|
||||
.IP \(bu 2
|
||||
\f[I]Memory.\f[R] 2 GiB installs the system and runs the text console; 4
|
||||
GiB make the MCDE desktop comfortable.
|
||||
8 GiB are useful only if the guest runs a browser or another VM.
|
||||
.IP \(bu 2
|
||||
\f[I]Disk.\f[R] 32 GiB is a comfortable size for the system, the desktop
|
||||
and a few packages.
|
||||
The source set needs considerably more; ???
|
||||
explains it.
|
||||
.IP \(bu 2
|
||||
\f[I]Firmware.\f[R] UEFI (OVMF) or BIOS.
|
||||
UEFI is the modern choice; the installer and the boot loader handle
|
||||
both.
|
||||
For UEFI, give the VM a writable variable store, not only the read\-only
|
||||
firmware image.
|
||||
.IP \(bu 2
|
||||
\f[I]Disk and network devices.\f[R] VirtIO is the fast choice.
|
||||
The installer sees a VirtIO block disk as \f[CR]ld0\f[R], a SCSI or AHCI
|
||||
disk as \f[CR]sd0\f[R], and an IDE disk as \f[CR]wd0\f[R].
|
||||
.IP \(bu 2
|
||||
\f[I]A display for the desktop.\f[R] The graphical installer and
|
||||
\f[CR]dtlogin\f[R] need a VGA device.
|
||||
\f[CR]std\f[R] is the safe emulation; a serial console is enough for a
|
||||
headless installation.
|
||||
.SS QEMU and KVM
|
||||
Create a disk image first.
|
||||
\f[CR]qemu\-img\f[R] makes a sparse qcow2 file; it grows as the
|
||||
installation writes to it.
|
||||
.IP
|
||||
.EX
|
||||
qemu\-img create \-f qcow2 makronix.qcow2 32G
|
||||
.EE
|
||||
.PP
|
||||
The following command starts a BIOS machine with 4 GiB of memory, four
|
||||
CPUs, an IDE disk, the DVD image, user\-mode networking with SSH
|
||||
forwarded to port 2222, and a graphical window:
|
||||
.IP
|
||||
.EX
|
||||
qemu\-system\-x86_64 \-enable\-kvm \-cpu host \-smp 4 \-m 4G \(rs
|
||||
\-drive file=makronix.qcow2,if=ide,format=qcow2 \(rs
|
||||
\-drive file=Makronix\-0.99.10\-amd64\-dvd.iso,media=cdrom,readonly=on \(rs
|
||||
\-boot order=dc \(rs
|
||||
\-nic user,model=e1000, \(rs
|
||||
hostfwd=tcp:127.0.0.1:2222\-:22 \(rs
|
||||
\-vga std \-display gtk
|
||||
.EE
|
||||
.PP
|
||||
If \f[CR]/dev/kvm\f[R] is not available, remove
|
||||
\f[CR]\-enable\-kvm \-cpu host\f[R] and add \f[CR]\-cpu max\f[R]; the
|
||||
installation then runs in emulation and takes much longer.
|
||||
Replace \f[CR]\-display gtk\f[R] with
|
||||
\f[CR]\-display none \-serial mon:stdio\f[R] for a console\-only
|
||||
machine; the install media talks on \f[CR]com0\f[R], as A serial console
|
||||
explains.
|
||||
.SS UEFI
|
||||
UEFI needs the OVMF firmware and a writable copy of its variable store.
|
||||
The paths differ between distributions; these are the Debian and Ubuntu
|
||||
names:
|
||||
.IP
|
||||
.EX
|
||||
cp /usr/share/OVMF/OVMF_VARS_4M.fd OVMF_VARS.fd
|
||||
qemu\-system\-x86_64 \-enable\-kvm \-cpu host \-smp 4 \-m 4G \(rs
|
||||
\-machine q35 \(rs
|
||||
\-drive if=pflash,format=raw,readonly=on, \(rs
|
||||
file=/usr/share/OVMF/OVMF_CODE_4M.fd \(rs
|
||||
\-drive if=pflash,format=raw,file=OVMF_VARS.fd \(rs
|
||||
\-device ich9\-ahci,id=ahci \(rs
|
||||
\-drive file=makronix.qcow2,if=none,id=hd0,format=qcow2 \(rs
|
||||
\-device ide\-hd,drive=hd0,bus=ahci.0 \(rs
|
||||
\-drive file=Makronix\-0.99.10\-amd64\-dvd.iso,media=cdrom,readonly=on, \(rs
|
||||
if=none,id=cd0 \(rs
|
||||
\-device ide\-cd,drive=cd0,bus=ahci.1 \(rs
|
||||
\-boot order=dc \(rs
|
||||
\-nic user,model=e1000, \(rs
|
||||
hostfwd=tcp:127.0.0.1:2222\-:22 \(rs
|
||||
\-vga std \-display gtk
|
||||
.EE
|
||||
.PP
|
||||
The AHCI controller is deliberate.
|
||||
OVMF\(aqs IDE driver reads a CD or a disk so slowly that the boot loader
|
||||
can need minutes for the kernel; the tree\(aqs own test machines put the
|
||||
disk and the CD on AHCI when UEFI is used (\f[CR]tools/vmsh.sh\f[R]).
|
||||
.SS A serial console
|
||||
The installer\(aqs boot configuration uses \f[CR]com0\f[R] at 115200
|
||||
baud, so a headless machine can be installed from a terminal.
|
||||
Run QEMU with the serial line on the terminal and no display:
|
||||
.IP
|
||||
.EX
|
||||
qemu\-system\-x86_64 \-enable\-kvm \-cpu host \-smp 4 \-m 4G \(rs
|
||||
\-drive file=makronix.qcow2,if=ide,format=qcow2 \(rs
|
||||
\-drive file=Makronix\-0.99.10\-amd64\-dvd.iso,media=cdrom,readonly=on \(rs
|
||||
\-boot order=dc \-display none \-serial mon:stdio
|
||||
.EE
|
||||
.PP
|
||||
\f[CR]Ctrl\-A C\f[R] switches between the guest console and the QEMU
|
||||
monitor; \f[CR]Ctrl\-A X\f[R] stops the machine.
|
||||
After the installation, boot the disk with \f[CR]\-boot order=c\f[R] and
|
||||
leave the CD out.
|
||||
.SS Which disk the installer shows
|
||||
In the installer\(aqs disk menu, the device name tells you which bus the
|
||||
disk is on:
|
||||
.IP \(bu 2
|
||||
\f[CR]ld0\f[R] \(em a VirtIO block device (\f[CR]if=virtio\f[R]).
|
||||
The fastest choice for a Linux KVM host.
|
||||
.IP \(bu 2
|
||||
\f[CR]sd0\f[R] \(em SCSI, AHCI or a VirtIO SCSI controller (the Proxmox
|
||||
default).
|
||||
.IP \(bu 2
|
||||
\f[CR]wd0\f[R] \(em the emulated IDE controller (\f[CR]if=ide\f[R]),
|
||||
which is the simplest but the slowest.
|
||||
.PP
|
||||
After the reboot, remove the CD from the command line (or set
|
||||
\f[CR]\-boot order=c\f[R]).
|
||||
The installed system starts from the disk.
|
||||
The network is \f[CR]vioif0\f[R] for VirtIO and \f[CR]wm0\f[R] or
|
||||
\f[CR]re0\f[R] for the emulated cards; the installer\(aqs DHCP client
|
||||
configures it either way.
|
||||
.SS Proxmox VE
|
||||
Proxmox VE runs QEMU with KVM and adds its own storage, snapshots and a
|
||||
web console.
|
||||
A Makronix VM is an \(lqOther\(rq guest; the settings that matter are
|
||||
the machine type, the firmware, the disk bus and the display.
|
||||
.PP
|
||||
In the web interface, create a VM with these values:
|
||||
.IP \(bu 2
|
||||
OS: the DVD image \f[CR]Makronix\-0.99.10\-amd64\-dvd.iso\f[R] as the
|
||||
CD/DVD, guest type \(lqOther\(rq.
|
||||
.IP \(bu 2
|
||||
System: machine \f[CR]q35\f[R], BIOS \f[CR]OVMF (UEFI)\f[R], an EFI
|
||||
disk, Secure Boot off.
|
||||
For a BIOS VM use machine \f[CR]i440fx\f[R] and SeaBIOS instead.
|
||||
.IP \(bu 2
|
||||
Disks: SCSI controller \f[CR]VirtIO SCSI\f[R], 32 GiB.
|
||||
The guest sees it as \f[CR]sd0\f[R].
|
||||
.IP \(bu 2
|
||||
CPU: type \f[CR]host\f[R], 4 cores.
|
||||
On a cluster with mixed CPUs, a named model such as
|
||||
\f[CR]x86\-64\-v2\-AES\f[R] is needed for migration; it is slower but
|
||||
portable.
|
||||
.IP \(bu 2
|
||||
Memory: 4096 MiB (2048 is the minimum for a text installation).
|
||||
.IP \(bu 2
|
||||
Network: model \f[CR]VirtIO\f[R], bridge \f[CR]vmbr0\f[R], firewall as
|
||||
your network needs it.
|
||||
.IP \(bu 2
|
||||
Display: \f[CR]std\f[R], and a serial port if you want the text console.
|
||||
.IP \(bu 2
|
||||
Boot order: CD/DVD first, the SCSI disk second.
|
||||
.PP
|
||||
The same VM from the command line:
|
||||
.IP
|
||||
.EX
|
||||
qm create 100 \-\-name makronix \-\-ostype other \-\-machine q35 \-\-bios ovmf \(rs
|
||||
\-\-efidisk0 local\-lvm:1,efitype=4m,pre\-enrolled\-keys=0 \(rs
|
||||
\-\-cpu host \-\-cores 4 \-\-memory 4096 \-\-scsihw virtio\-scsi\-pci \(rs
|
||||
\-\-scsi0 local\-lvm:32 \(rs
|
||||
\-\-ide2 local:iso/Makronix\-0.99.10\-amd64\-dvd.iso,media=cdrom \(rs
|
||||
\-\-boot \(aqorder=ide2;scsi0\(aq \-\-net0 virtio,bridge=vmbr0 \(rs
|
||||
\-\-vga std \-\-serial0 socket
|
||||
qm start 100
|
||||
.EE
|
||||
.PP
|
||||
\f[CR]local\-lvm\f[R] and \f[CR]local\f[R] are the storage names of your
|
||||
Proxmox installation; replace them with the names in Datacenter >
|
||||
Storage.
|
||||
For a BIOS VM, omit \f[CR]\-\-bios ovmf\f[R] and
|
||||
\f[CR]\-\-efidisk0\f[R], use \f[CR]\-\-machine i440fx\f[R], and keep the
|
||||
same \f[CR]\-\-boot\f[R] order.
|
||||
.PP
|
||||
Open the console with Console (noVNC) for the graphical installer, or
|
||||
\f[CR]qm terminal 100\f[R] for the serial one.
|
||||
If the web console shows the installer but the keyboard does not work,
|
||||
click inside the console once; Proxmox forwards the keyboard only after
|
||||
the console has the focus.
|
||||
.PP
|
||||
When the installation is finished, detach the ISO and boot the disk:
|
||||
.IP
|
||||
.EX
|
||||
qm set 100 \-\-boot order=scsi0
|
||||
qm set 100 \-\-delete ide2
|
||||
.EE
|
||||
.PP
|
||||
\f[I]Agent and cloud\-init:\f[R] leave the QEMU guest agent off unless
|
||||
you install it in the guest; Makronix does not ship it.
|
||||
Proxmox\(aqs snapshots and backups work at the block level without it.
|
||||
For a consistent backup of a running guest, stop it first or use the
|
||||
guest\(aqs own backup; a block snapshot of a mounted file system is not
|
||||
a transactional backup.
|
||||
.SS After the installation
|
||||
The first boot is the same as on a physical machine: the MCDE login
|
||||
screen, the account you created, and the network the installer
|
||||
configured.
|
||||
In QEMU\(aqs user\-mode network, the host reaches the guest\(aqs SSH
|
||||
server through the forwarded port:
|
||||
.IP
|
||||
.EX
|
||||
ssh \-p 2222 user\(at127.0.0.1
|
||||
.EE
|
||||
.PP
|
||||
In Proxmox, the guest is on the bridge and gets an address from the
|
||||
network\(aqs DHCP server, or the fixed address you configure in the
|
||||
installer.
|
||||
The serial console remains available with \f[CR]qm terminal 100\f[R];
|
||||
log out of it with \f[CR]Ctrl\-O\f[R].
|
||||
.PP
|
||||
An encrypted installation works in a VM exactly as on hardware: the
|
||||
installer asks for the passphrase, and every boot asks for it again.
|
||||
A Proxmox snapshot of an encrypted guest is a snapshot of the encrypted
|
||||
blocks; the passphrase is still needed to start it.
|
||||
.SS When the VM does not cooperate
|
||||
.IP \(bu 2
|
||||
\f[I]The VM starts but the installer does not appear.\f[R] Check the
|
||||
boot order (CD before disk), and give the firmware a moment: OVMF scans
|
||||
its devices before it reads the CD.
|
||||
With UEFI, make sure the writable variable store is attached; a
|
||||
read\-only OVMF image cannot keep the boot entries.
|
||||
.IP \(bu 2
|
||||
\f[I]UEFI is very slow.\f[R] Move the disk and the CD to AHCI
|
||||
(\f[CR]ich9\-ahci\f[R] in QEMU, VirtIO SCSI in Proxmox).
|
||||
OVMF\(aqs IDE driver is the usual cause.
|
||||
.IP \(bu 2
|
||||
\f[I]The desktop does not start.\f[R] The installer may have completed
|
||||
on a serial console with no VGA device.
|
||||
Add \f[CR]\-vga std\f[R] (QEMU) or \f[CR]vga: std\f[R] (Proxmox), start
|
||||
the graphical installer, and use the full installation way if the simple
|
||||
way cannot detect the display.
|
||||
.IP \(bu 2
|
||||
\f[I]No network.\f[R] QEMU\(aqs user\-mode network is NAT: the guest can
|
||||
reach out, and the host reaches the guest only through a forwarded port.
|
||||
A bridged Proxmox VM behaves like a machine on the LAN; check the bridge
|
||||
and the firewall.
|
||||
.IP \(bu 2
|
||||
\f[I]The keyboard is wrong.\f[R] The installer asks for the keyboard
|
||||
layout; the MCDE session has its own setting.
|
||||
A VM console that sends the wrong keys is usually a host layout problem,
|
||||
not a guest one.
|
||||
@@ -28,6 +28,9 @@ Before You Install
|
||||
.B makronix-guide-install(7)
|
||||
Installing Makronix
|
||||
.TP
|
||||
.B makronix-guide-vm(7)
|
||||
Installing in a Virtual Machine
|
||||
.TP
|
||||
.B makronix-guide-upgrade(7)
|
||||
Upgrading Makronix
|
||||
.TP
|
||||
|
||||
+201
@@ -40,6 +40,7 @@ the MCDE desktop</p>
|
||||
<li><a href="#before-install" id="toc-before-install">Before You
|
||||
Install</a></li>
|
||||
<li><a href="#install" id="toc-install">Installing Makronix</a></li>
|
||||
<li><a href="#vm" id="toc-vm">Installing in a Virtual Machine</a></li>
|
||||
<li><a href="#upgrade" id="toc-upgrade">Upgrading Makronix</a></li>
|
||||
<li><a href="#mcde" id="toc-mcde">MCDE: The Desktop</a></li>
|
||||
<li><a href="#x11" id="toc-x11">The Display and X11</a></li>
|
||||
@@ -533,6 +534,8 @@ keep it, the simple way uses the whole disk.</p>
|
||||
Makronix's fork of NetBSD's installer. It has two ways: the simple way,
|
||||
which decides as much as it can, and the full way, which is NetBSD's
|
||||
installation with every question. Both install the same system.</p>
|
||||
<p>If the machine is a virtual one, <a href="#vm">Installing in a
|
||||
Virtual Machine</a> has the QEMU/KVM and Proxmox VE settings.</p>
|
||||
<h2 id="install-boot">Starting the installer</h2>
|
||||
<p>Start the machine from the medium. On a machine with UEFI, choose the
|
||||
stick or the DVD in the firmware's boot menu; on a Mac, hold
|
||||
@@ -635,6 +638,204 @@ medium again and choose the shell, then inspect the disk with
|
||||
<code>disklabel</code> and mount the root partition by hand. The boot
|
||||
messages are on the console; <code>dmesg</code> repeats them.</p></li>
|
||||
</ul>
|
||||
<h1 id="vm">Installing in a Virtual Machine</h1>
|
||||
<p>A virtual machine is the cheapest way to try Makronix: no disk is
|
||||
overwritten, a snapshot is one command away, and the same installer runs
|
||||
as on real hardware. This chapter gives the settings that matter for
|
||||
QEMU with KVM and for Proxmox VE. The values are starting points; the
|
||||
installer is the same as on a physical machine (<a
|
||||
href="#install">Installing Makronix</a>).</p>
|
||||
<h2 id="vm-needs">What the VM needs</h2>
|
||||
<ul>
|
||||
<li><p><em>KVM.</em> A virtual machine without hardware acceleration
|
||||
(QEMU's TCG) installs, but slowly. On Linux, <code>/dev/kvm</code> must
|
||||
exist and your user must be allowed to use it; on Proxmox VE, KVM is the
|
||||
default.</p></li>
|
||||
<li><p><em>Memory.</em> 2 GiB installs the system and runs the text
|
||||
console; 4 GiB make the MCDE desktop comfortable. 8 GiB are useful only
|
||||
if the guest runs a browser or another VM.</p></li>
|
||||
<li><p><em>Disk.</em> 32 GiB is a comfortable size for the system, the
|
||||
desktop and a few packages. The source set needs considerably more; <a
|
||||
href="#building">Building Makronix</a> explains it.</p></li>
|
||||
<li><p><em>Firmware.</em> UEFI (OVMF) or BIOS. UEFI is the modern
|
||||
choice; the installer and the boot loader handle both. For UEFI, give
|
||||
the VM a writable variable store, not only the read-only firmware
|
||||
image.</p></li>
|
||||
<li><p><em>Disk and network devices.</em> VirtIO is the fast choice. The
|
||||
installer sees a VirtIO block disk as <code>ld0</code>, a SCSI or AHCI
|
||||
disk as <code>sd0</code>, and an IDE disk as <code>wd0</code>.</p></li>
|
||||
<li><p><em>A display for the desktop.</em> The graphical installer and
|
||||
<code>dtlogin</code> need a VGA device. <code>std</code> is the safe
|
||||
emulation; a serial console is enough for a headless
|
||||
installation.</p></li>
|
||||
</ul>
|
||||
<h2 id="vm-qemu">QEMU and KVM</h2>
|
||||
<p>Create a disk image first. <code>qemu-img</code> makes a sparse qcow2
|
||||
file; it grows as the installation writes to it.</p>
|
||||
<pre><code>qemu-img create -f qcow2 makronix.qcow2 32G</code></pre>
|
||||
<p>The following command starts a BIOS machine with 4 GiB of memory,
|
||||
four CPUs, an IDE disk, the DVD image, user-mode networking with SSH
|
||||
forwarded to port 2222, and a graphical window:</p>
|
||||
<pre><code>qemu-system-x86_64 -enable-kvm -cpu host -smp 4 -m 4G \
|
||||
-drive file=makronix.qcow2,if=ide,format=qcow2 \
|
||||
-drive file=Makronix-0.99.10-amd64-dvd.iso,media=cdrom,readonly=on \
|
||||
-boot order=dc \
|
||||
-nic user,model=e1000, \
|
||||
hostfwd=tcp:127.0.0.1:2222-:22 \
|
||||
-vga std -display gtk</code></pre>
|
||||
<p>If <code>/dev/kvm</code> is not available, remove
|
||||
<code>-enable-kvm -cpu host</code> and add <code>-cpu max</code>; the
|
||||
installation then runs in emulation and takes much longer. Replace
|
||||
<code>-display gtk</code> with
|
||||
<code>-display none -serial mon:stdio</code> for a console-only machine;
|
||||
the install media talks on <code>com0</code>, as <a
|
||||
href="#vm-qemu-serial">A serial console</a> explains.</p>
|
||||
<h3 id="vm-qemu-uefi">UEFI</h3>
|
||||
<p>UEFI needs the OVMF firmware and a writable copy of its variable
|
||||
store. The paths differ between distributions; these are the Debian and
|
||||
Ubuntu names:</p>
|
||||
<pre><code>cp /usr/share/OVMF/OVMF_VARS_4M.fd OVMF_VARS.fd
|
||||
qemu-system-x86_64 -enable-kvm -cpu host -smp 4 -m 4G \
|
||||
-machine q35 \
|
||||
-drive if=pflash,format=raw,readonly=on, \
|
||||
file=/usr/share/OVMF/OVMF_CODE_4M.fd \
|
||||
-drive if=pflash,format=raw,file=OVMF_VARS.fd \
|
||||
-device ich9-ahci,id=ahci \
|
||||
-drive file=makronix.qcow2,if=none,id=hd0,format=qcow2 \
|
||||
-device ide-hd,drive=hd0,bus=ahci.0 \
|
||||
-drive file=Makronix-0.99.10-amd64-dvd.iso,media=cdrom,readonly=on, \
|
||||
if=none,id=cd0 \
|
||||
-device ide-cd,drive=cd0,bus=ahci.1 \
|
||||
-boot order=dc \
|
||||
-nic user,model=e1000, \
|
||||
hostfwd=tcp:127.0.0.1:2222-:22 \
|
||||
-vga std -display gtk</code></pre>
|
||||
<p>The AHCI controller is deliberate. OVMF's IDE driver reads a CD or a
|
||||
disk so slowly that the boot loader can need minutes for the kernel; the
|
||||
tree's own test machines put the disk and the CD on AHCI when UEFI is
|
||||
used (<code>tools/vmsh.sh</code>).</p>
|
||||
<h3 id="vm-qemu-serial">A serial console</h3>
|
||||
<p>The installer's boot configuration uses <code>com0</code> at 115200
|
||||
baud, so a headless machine can be installed from a terminal. Run QEMU
|
||||
with the serial line on the terminal and no display:</p>
|
||||
<pre><code>qemu-system-x86_64 -enable-kvm -cpu host -smp 4 -m 4G \
|
||||
-drive file=makronix.qcow2,if=ide,format=qcow2 \
|
||||
-drive file=Makronix-0.99.10-amd64-dvd.iso,media=cdrom,readonly=on \
|
||||
-boot order=dc -display none -serial mon:stdio</code></pre>
|
||||
<p><code>Ctrl-A C</code> switches between the guest console and the QEMU
|
||||
monitor; <code>Ctrl-A X</code> stops the machine. After the
|
||||
installation, boot the disk with <code>-boot order=c</code> and leave
|
||||
the CD out.</p>
|
||||
<h3 id="vm-qemu-disks">Which disk the installer shows</h3>
|
||||
<p>In the installer's disk menu, the device name tells you which bus the
|
||||
disk is on:</p>
|
||||
<ul>
|
||||
<li><p><code>ld0</code> — a VirtIO block device
|
||||
(<code>if=virtio</code>). The fastest choice for a Linux KVM
|
||||
host.</p></li>
|
||||
<li><p><code>sd0</code> — SCSI, AHCI or a VirtIO SCSI controller (the
|
||||
Proxmox default).</p></li>
|
||||
<li><p><code>wd0</code> — the emulated IDE controller
|
||||
(<code>if=ide</code>), which is the simplest but the slowest.</p></li>
|
||||
</ul>
|
||||
<p>After the reboot, remove the CD from the command line (or set
|
||||
<code>-boot order=c</code>). The installed system starts from the disk.
|
||||
The network is <code>vioif0</code> for VirtIO and <code>wm0</code> or
|
||||
<code>re0</code> for the emulated cards; the installer's DHCP client
|
||||
configures it either way.</p>
|
||||
<h2 id="vm-proxmox">Proxmox VE</h2>
|
||||
<p>Proxmox VE runs QEMU with KVM and adds its own storage, snapshots and
|
||||
a web console. A Makronix VM is an “Other” guest; the settings that
|
||||
matter are the machine type, the firmware, the disk bus and the
|
||||
display.</p>
|
||||
<p>In the web interface, create a VM with these values:</p>
|
||||
<ul>
|
||||
<li><p>OS: the DVD image <code>Makronix-0.99.10-amd64-dvd.iso</code> as
|
||||
the CD/DVD, guest type “Other”.</p></li>
|
||||
<li><p>System: machine <code>q35</code>, BIOS <code>OVMF (UEFI)</code>,
|
||||
an EFI disk, Secure Boot off. For a BIOS VM use machine
|
||||
<code>i440fx</code> and SeaBIOS instead.</p></li>
|
||||
<li><p>Disks: SCSI controller <code>VirtIO SCSI</code>, 32 GiB. The
|
||||
guest sees it as <code>sd0</code>.</p></li>
|
||||
<li><p>CPU: type <code>host</code>, 4 cores. On a cluster with mixed
|
||||
CPUs, a named model such as <code>x86-64-v2-AES</code> is needed for
|
||||
migration; it is slower but portable.</p></li>
|
||||
<li><p>Memory: 4096 MiB (2048 is the minimum for a text
|
||||
installation).</p></li>
|
||||
<li><p>Network: model <code>VirtIO</code>, bridge <code>vmbr0</code>,
|
||||
firewall as your network needs it.</p></li>
|
||||
<li><p>Display: <code>std</code>, and a serial port if you want the text
|
||||
console.</p></li>
|
||||
<li><p>Boot order: CD/DVD first, the SCSI disk second.</p></li>
|
||||
</ul>
|
||||
<p>The same VM from the command line:</p>
|
||||
<pre><code>qm create 100 --name makronix --ostype other --machine q35 --bios ovmf \
|
||||
--efidisk0 local-lvm:1,efitype=4m,pre-enrolled-keys=0 \
|
||||
--cpu host --cores 4 --memory 4096 --scsihw virtio-scsi-pci \
|
||||
--scsi0 local-lvm:32 \
|
||||
--ide2 local:iso/Makronix-0.99.10-amd64-dvd.iso,media=cdrom \
|
||||
--boot 'order=ide2;scsi0' --net0 virtio,bridge=vmbr0 \
|
||||
--vga std --serial0 socket
|
||||
qm start 100</code></pre>
|
||||
<p><code>local-lvm</code> and <code>local</code> are the storage names
|
||||
of your Proxmox installation; replace them with the names in Datacenter
|
||||
> Storage. For a BIOS VM, omit <code>--bios ovmf</code> and
|
||||
<code>--efidisk0</code>, use <code>--machine i440fx</code>, and keep the
|
||||
same <code>--boot</code> order.</p>
|
||||
<p>Open the console with Console (noVNC) for the graphical installer, or
|
||||
<code>qm terminal 100</code> for the serial one. If the web console
|
||||
shows the installer but the keyboard does not work, click inside the
|
||||
console once; Proxmox forwards the keyboard only after the console has
|
||||
the focus.</p>
|
||||
<p>When the installation is finished, detach the ISO and boot the
|
||||
disk:</p>
|
||||
<pre><code>qm set 100 --boot order=scsi0
|
||||
qm set 100 --delete ide2</code></pre>
|
||||
<p><em>Agent and cloud-init:</em> leave the QEMU guest agent off unless
|
||||
you install it in the guest; Makronix does not ship it. Proxmox's
|
||||
snapshots and backups work at the block level without it. For a
|
||||
consistent backup of a running guest, stop it first or use the guest's
|
||||
own backup; a block snapshot of a mounted file system is not a
|
||||
transactional backup.</p>
|
||||
<h2 id="vm-after">After the installation</h2>
|
||||
<p>The first boot is the same as on a physical machine: the MCDE login
|
||||
screen, the account you created, and the network the installer
|
||||
configured. In QEMU's user-mode network, the host reaches the guest's
|
||||
SSH server through the forwarded port:</p>
|
||||
<pre><code>ssh -p 2222 user@127.0.0.1</code></pre>
|
||||
<p>In Proxmox, the guest is on the bridge and gets an address from the
|
||||
network's DHCP server, or the fixed address you configure in the
|
||||
installer. The serial console remains available with
|
||||
<code>qm terminal 100</code>; log out of it with
|
||||
<code>Ctrl-O</code>.</p>
|
||||
<p>An encrypted installation works in a VM exactly as on hardware: the
|
||||
installer asks for the passphrase, and every boot asks for it again. A
|
||||
Proxmox snapshot of an encrypted guest is a snapshot of the encrypted
|
||||
blocks; the passphrase is still needed to start it.</p>
|
||||
<h2 id="vm-trouble">When the VM does not cooperate</h2>
|
||||
<ul>
|
||||
<li><p><em>The VM starts but the installer does not appear.</em> Check
|
||||
the boot order (CD before disk), and give the firmware a moment: OVMF
|
||||
scans its devices before it reads the CD. With UEFI, make sure the
|
||||
writable variable store is attached; a read-only OVMF image cannot keep
|
||||
the boot entries.</p></li>
|
||||
<li><p><em>UEFI is very slow.</em> Move the disk and the CD to AHCI
|
||||
(<code>ich9-ahci</code> in QEMU, VirtIO SCSI in Proxmox). OVMF's IDE
|
||||
driver is the usual cause.</p></li>
|
||||
<li><p><em>The desktop does not start.</em> The installer may have
|
||||
completed on a serial console with no VGA device. Add
|
||||
<code>-vga std</code> (QEMU) or <code>vga: std</code> (Proxmox), start
|
||||
the graphical installer, and use the full installation way if the simple
|
||||
way cannot detect the display.</p></li>
|
||||
<li><p><em>No network.</em> QEMU's user-mode network is NAT: the guest
|
||||
can reach out, and the host reaches the guest only through a forwarded
|
||||
port. A bridged Proxmox VM behaves like a machine on the LAN; check the
|
||||
bridge and the firewall.</p></li>
|
||||
<li><p><em>The keyboard is wrong.</em> The installer asks for the
|
||||
keyboard layout; the MCDE session has its own setting. A VM console that
|
||||
sends the wrong keys is usually a host layout problem, not a guest
|
||||
one.</p></li>
|
||||
</ul>
|
||||
<h1 id="upgrade">Upgrading Makronix</h1>
|
||||
<p>An upgrade replaces the base system and keeps your accounts, your
|
||||
files and the packages you installed. There are two ways to do it: from
|
||||
|
||||
Reference in new issue
Block a user