InstallationGuide changed

Updated instructions for Qubes Alpha 2
This commit is contained in:
Joanna Rutkowska 2010-07-01 13:10:55 +00:00
parent 8de8ab802e
commit 64c01f61a1

View File

@ -4,7 +4,7 @@ title: InstallationGuide
permalink: /wiki/InstallationGuide/
---
Installation Guide (for Release 1 Alpha 1)
Installation Guide (for Release 1 Alpha 2)
==========================================
**NOTE:** You can only install Qubes on a **64-bit** CPU! (most recent laptops have 64-bit CPUs)
@ -13,24 +13,22 @@ Installation Guide (for Release 1 Alpha 1)
At this stage we don't have a standalone automatic installer, so the installation process is currently a bit complicated and requires some knowledge of Linux. The installation consists of a few stages that are described in detail below...
I. Installing Fedora 12 Linux
I. Installing Fedora 13 Linux
-----------------------------
First we need to install a minimal Linux distribution that would later become our Dom0 system. We strongly recommend choosing a 64-bit Fedora 12 distribution.
**NOTE:** If you're migrating from Qubes Alpha 1, and want to preserve your AppVMs (specifically your data), you should use ```qvm-backup``` tool to make a backup (Qubes Alpha 2 will let you automatically restore it later).
1. Download the 64-bit version of Fedora 12 installation DVD ISO:
First we need to install a minimal Linux distribution that would later become our Dom0 system. We strongly recommend choosing a **64-bit Fedora 13 distribution**.
1. Download the 64-bit version of Fedora 13 installation DVD ISO:
[http://fedoraproject.org/en/get-fedora-all](http://fedoraproject.org/en/get-fedora-all)
...and burn it on a DVD. Proceed with the default installation...
While it is not absolutely necessary, you might want to enable the Fedora 12 'Updates' repository during the installation to have the updated versions of the packages installed. This requires a network connection (wired, not wireless) during the installation, of course.
1. When asked about type of installation, choose
1. When asked about packages to install, choose
none, and choose "Customize now"...
[![](http://www.qubes-os.org/files/screenshots/release-1-alpha-1/installation-software-selection.png "http://www.qubes-os.org/files/screenshots/release-1-alpha-1/installation-software-selection.png")](http://www.qubes-os.org/files/screenshots/release-1-alpha-1/installation-software-selection.png)
**Graphical Workstation** (this is selected by default), and choose **Customize now**...
1. ...in the next screen choose only the following groups of packages:
@ -45,14 +43,16 @@ none, and choose "Customize now"...
You really won't need anything more in Dom0 (even this is too much).
Note: This might look unnecessary that we install Fedora KDE packages now, only to remove them in one of the next steps and install Qubes KDE packages instead. However, most users will find it easier to proceed this way.
Complete the installation, reboot, verify you have X Window System working, complete the post-installation setup in which you create an unprivileged user account, that will be used for logging into the X system.
If you can't get your X Window System working at this time, it means you have have a graphics card not supported by a mainstream Linux distribution. This really should happen only in case of some very exotic hardware. In any case, this is nothing Qubes or Xen, related, so please do not ask about the solution on Qubes or Xen mailing lists.
If you can't get your X Window System working at this time, it means you have have a graphics card not supported by a mainstream Linux distribution. This really should happen only in case of some very exotic hardware (or very new). In any case, this is nothing Qubes or Xen, related, so please do not ask about the solution on Qubes or Xen mailing lists.
II. Installing Xen
------------------
II. Configuring Qubes repository and Key verification
-----------------------------------------------------
1. Change to root:
1. Login into KDE, start a *konsole*, and change to root:
``` {.wiki}
su -
@ -68,44 +68,60 @@ II. Installing Xen
[Verify the keys](/wiki/VerifyingSignatures) and then install the key in the rpm database:
``` {.wiki}
rpm --import qubes-release-signing-key.asc
rpm --import qubes-release-1-signing-key.asc
```
1. Configure Qubes repository:
``` {.wiki}
wget http://qubes-os.org/yum/qubes.repo
wget http://qubes-os.org/yum/qubes-r1-dom0.repo
mv qubes.repo /etc/yum.repos.d/
```
1. Install Xen and Dom0 kernel using the Qubes repository (Fedora 12 doesn't
III. Installing Qubes KDE packages for Dom0
-------------------------------------------
have support for Xen Dom0 kernel, and the Xen it provides is too old for the Dom0 kernel that Qubes uses, that's why we install Xen and Dom0 kernel from Qubes repository):
1. First remove all the Fedora KDE packages:
``` {.wiki}
yum remove 'kde*'
```
1. Now, install the Qubes-customized KDE packages:
``` {.wiki}
yum install qubes-kde-dom0
yum install knetworkmanager
```
The last package (*knetworkmanager*) is needed only if one intends to use networking in Dom0, rather than in NetVM. However, as we're currently having problems with the NetVM working with our new Dom0 kernel in Alpha 2, we have decided to temporary withhold the release of a new NetVM package for Alpha 2, and so you must currently use networking in Dom0, and it's recommended to install this package. Rest assured, we will be working on getting NetVM back in the next version.
1. Via the KDE "Start Menu", go to: Computer/System Settings/Appearance/Windows, and then choose **Plastik for Qubes** Window decoration plugin.
1. You might also want to install the ```kdebase-workspace-wallpapers``` package to get some nice wallpapers :)
1. **Reboot**
IV. Installing Xen and Dom0 kernel
----------------------------------
1. Install Xen and Dom0 kernel:
``` {.wiki}
yum install kernel-qubes-dom0
```
1. Reboot (but first read this whole paragraph) and verify that the X Window
System still works fine.
NOTE: Before rebooting you might consider changing the `timeout=` line in your `/boot/grub/grub.conf` file to something like `3` to give you some time to choose a filesafe boot in GRUB menu in case your normal boot would not work.
1. Reboot and verify that the X Window System still works fine.
If you can't get your X Window System working at this time, it suggests your graphics card driver is incompatible with Xen, which is a polite way of saying that the driver is most likely broken, as any decently written driver should be Xen compatible (when used in Dom0). The Xen mailing list might be a proper place to report the problem, but we would also be interested in learning about ~~broken~~ Xen-incompatible cards, so please also copy your report to the Qubes mailing list.
NOTE:
- If you have an NVidia graphics card, read the [NVidia Troubleshooting Guide](/wiki/NvidiaTroubleshooting)
- If you have ATI/Radeon you might want to check this [thread](http://groups.google.com/group/qubes-devel/browse_thread/thread/d63f673d6286387e#) at qubes-devel.
III. Installing Qubes
---------------------
V. Installing Qubes
-------------------
1. Install the Qubes Dom0 packages:
``` {.wiki}
yum install qubes-core-dom0 qubes-gui-dom0 qubes-dom0-cleanup
yum install qubes-core-dom0 qubes-gui-dom0
yum install qubes-manager
```
@ -123,22 +139,26 @@ III. Installing Qubes
1. Reboot your system.
IV. Installing Qubes Virtual Machine Templates
----------------------------------------------
VI. Installing Qubes AppVM Template
-----------------------------------
1. Now you can install a template image, which will be used for creating all
your AppVMs, and netvm image, used to isolate all your networking in an unprivileged VM
``` {.wiki}
yum install qubes-template-linux-x64 qubes-servicevm-netvm
yum install qubes-template-linux-x64
```
This will probably take some time...
1. Now, lets create some AppVMs to see if this all works...
NOTE: you should now work as normal user, i.e. the same you use for logging into your X system, and the same you added to the qubes 'group' in the previous step, or you will not be able to star this VM as a normal user!
**NOTE:** If you're migrating from a previous system (e.g. Alpha 1), and want to restore your previous AppVMs from a backup, use the [qvm-backup-restore](/wiki/BackupRestore) tool.
NOTE: you should now work as **normal user**, i.e. the same you use for logging into your X system, and the same you added to the qubes 'group' in the previous step, or you will not be able to star this VM as a normal user!
NOTE: You can also use the graphical Qubes Manager to create/remove AppVMs -- just click on the Qubes Manager icon in the tray!
``` {.wiki}
qvm-create personal --label yellow
@ -158,12 +178,16 @@ qvm-ls
There are much more `qvm-*` tools in the `/usr/bin` -- most of them should be self-explanatory.
3) Wait a few seconds and see if icons have been created and added to the "Start" menu in your Dom0 Window Manager.
1. Wait a few seconds and see if icons have been created and added to the
"Start" menu in your Dom0 Window Manager.
Try running some applications, e.g. Firefox from the random machine. When you run an application for the first time, and the corresponding AppVM has not yet been started, it might take some time (15-30 seconds) for it to start. Subsequent apps from the same AppVM will be starting much faster.
V. Switching to NetVM
---------------------
VII. ~~Switching to NetVM~~
---------------------------
This is temporarily unsupported for Alpha2. We're working on the solution.
1. First shut down all the VMs in the system, e.g.:
@ -184,3 +208,30 @@ V. Switching to NetVM
1. Verify that Xen uses IOMMU/VT-d indeed by looking into `xm dmesg` output
NOTE: Xen can use IOMMU/VT-d only if you have hardware with IOMMU/VT-d support and a non-broken BIOS that also supports VT-d (specifically BIOS should expose a correct ACPI DMAR table)
VIII. Known Issues and Workarounds
----------------------------------
1. If you use full disk encryption via LUKS (default if you chose "Encrypt disk" in Fedora installer), and if you have a Core i5/i7 processor that supports the new AESNI instruction, you should pass the following argument to your kernel (by editing your ```/boot/grub/grub.conf``` file):
``` {.wiki}
rdblacklist=aesni-intel
```
This should be appended the ```kernel``` line in ```grub.conf```. This will disable use of kernel module with AESNI support, which apparently is buggy.
1. If you have Nvidia graphics card, be sure to update your ```xorg-x11-drv-nouveau```, at least to version 0.0.16-7.20100423, otherwise you might have problems with the suspend/resume operation:
``` {.wiki}
yum update 'xorg-*'
```
1. If you have Nvidia graphics card, you can experience strange icon distortions after resume from suspend. Hopefully some new xorg driver will resolve this issue.
1. If you have Intel HD graphics card on Core i5/i7 processor, do **not** enable desktop effects (or at least do not choose OpenGL engine). There is a known problem with those cards drivers that causes X to crash every few minutes, when OpenGL is used. This happens on standard Fedora installation, even without Xen and without Qubes.
1. The clock in AppVMs is not properly updated after resume from S3 sleep, if you don't use NTP in the VMs.
1. Sometimes an AppVM might lock up after a resume from S3 sleep.
**Generally, please consider the suspend/resume to be highly experimental currently, and always save your work before suspending your system too S3 sleep'''**