summaryrefslogtreecommitdiff
path: root/kernels/xen/xen.install
blob: f1a34d52285d3a353e14623d1cc9d9234d688d2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
install_msg() {
    cat << __EOF__
===> IMPORTANT NOTICE:

In order to complete the installation, and enable Xen,
at the very least you must:
1. Edit your GRUB2 config files as specified at
    https://wiki.parabolagnulinux.org/index.php/Xen#Bootloader_Configuration
2. Issue the following commands to allow you to create and start VMs:
    systemctl enable xenstored.service
    systemctl enable xenconsoled.service
3. If you want some domains to automatically start up/shutdown, run the following:
    systemctl enable xendomains.service

For more information refer to the Wiki:
    https://wiki.parabolagnulinux.org/index.php/Xen

__EOF__

}

upgrade_msg() {
    cat << __EOF__

Note: If you are upgrading from one of the previous 4.2 xen builds, and are having issues
      with graphics card passthrough, the default device model used has changed and the 
      newer model can sometimes have issues. To resolve, add (or change ) the following
      line into your domain config file:
         device_model_version = "qemu-xen-traditional"

      Also remember to rebuild your grub configuration if upgrading from a non-xen 4.3.1
           install.
__EOF__

}

post_install() {
    install_msg
    upgrade_msg
}

post_upgrade() {
    upgrade_msg
}

pre_remove() {
   systemctl stop xendomains.service
   systemctl stop xenconsoled.service
   systemctl stop xenstored.service

   systemctl disable xendomains.service
   systemctl disable xenconsoled.service
   systemctl disable xenstored.service
}

post_remove() {
    cat << __EOF__
===> IMPORTANT NOTICE:

In order to finish removing Xen, you will need to modify
your bootloader configuration files to load your Linux
kernel instead of Xen kernel.
__EOF__
}