On 12/05/2016 09:40 AM, Zbigniew Łukasiak wrote:
> Here is a list of stuff that I got into trouble trying out Qubes. I
> am a long time Linux user (since 1993) - so I know a bit about the
> Linux environment - but I never liked administration stuff.
Welcome to Qubes!
As you have noticed, this is hardly a typical linux system... Before
checking your questions, a few guidelines for interpretation:
- everything happens in virtual machines, which brings with it the fact
that device sharing is (intentionally, for increased security) hard
- there is a "super" vm, called dom0, which represents your physical
system (e.g. it has, by default, all the physical devices and contains
disk images for all other VMs)
- some of these virtual machine are read-only-like (anything but
templates and dom0), in the sense that only part of the filesystem is
persisted. The other part, while writable, will be reset to the
"template" master copy on reboot
- a lot of things work the linux way, with the added complexity of
having several VM at once (with intermixed windows) and something
readonly on many filesystems
> 1. Immediately after installation I wanted to add USB headphones to
> the personal vm and I went into Devices configuration of that vm and
> I added all lines with USB to the vm. I don't remember if it froze
> immediately or maybe after a reboot of the vm - but I've got
> completely cut off from the top level Qubes system. Fortunately a
> hard reboot fixed the problem.
By assigning devices via the Devices configuration you are moving them
away from dom0. If some of these devices are needed for dom0 to work
(say, you have a USB keyboard/mouse) then it'll look like the system has
freezed.
By using the Devices configuration you can only move PCI (or any other
single-virtualizable) devices: this means that you cannot move a single
USB device, but only a single USB controller (and all its USB device
tree) at once. This is a limitation of hardware virtualization
technologies: they typically work only with discrete PCI devices.
Some USB devices can be proxied from the VM that holds the USB
controllers to specific AppVMs using qvm-usb (after having the usb proxy
arrangement set up)
>
> 2. The suspend button activates a popup that says:
>
> "Do you want to suspend to RAM?"
>
> This is a bit confusing - I thought that suspension saves the RAM
> onto the disk, not in the opposite direction.
There has always been a lot of confusion with this, but usually:
- suspend means to RAM
- hibernation means to disk
Different systems may have confusing wording.. Even Windows has a story
of changing the meaning of sleep/suspend/hibernate.
> 3. Initially I did not understand how can I change the templates. I
> thought that to have additional software or to make any special
> configuration in a template I need to create a new template and I
> started reading the documentation at
>
https://www.qubes-os.org/doc/qubes-builder/ - that was really
> confusing. There are also additional questions that the docs don't
> answer, like if the changes in the template will be visible in a vm
> based on it and if yes - then when?
You can simply boot the template: it will start with its root in
read-write, and then you can add software and shut the VM down.
After you start (or re-start) any AppVM based on that template you will
find the software installed. This happens even if you install it
manually (e.g. by copying something in /opt).
If you want to try the software before you actually install it, boot an
AppVM out of your template: according to the summary above, you will be
able to do "sudo dnf install xyz" and try it out, but everything out of
/home and /usr/local will be gone after a reboot.
>
> 4. I still don't really understand how the keyboard configuration
> works. What worked for me to have Polish letters in a vm was to set
> it up both in the top level environment (System Tools > Settings
> Manager
>> Keyboard) and in the vm (setxkbmap pl). Initially I spent a lot of
> time in trying to do it only in the vm - but it failed in mysterious
> ways.
You can set a default layout for dom0, and you can set a layout for each
VM from the VM Manager (right click on a VM, set keyboard layout). This
can be done from dom0 shell too.
Qubes tools will make sure the layout that's been set from the VM
manager is set on reboot.
--
Alex