@@ -59,13 +59,13 @@ your own too (see below).
59
59
After choosing a guest from the list, you may want to see if there
60
60
are any installation notes:
61
61
62
- virt-builder --notes fedora-27
62
+ virt-builder --notes fedora-41
63
63
64
64
=head2 Build a virtual machine
65
65
66
- virt-builder fedora-27
66
+ virt-builder fedora-41
67
67
68
- will build a Fedora 25 image for the same architecture as virt-builder
68
+ will build a Fedora 41 image for the same architecture as virt-builder
69
69
(so running it from an i686 installation will try to build an i686
70
70
image, if available). This will have all default
71
71
configuration (minimal size, no user accounts, random root password,
@@ -77,33 +77,33 @@ The first time this runs it has to download the template over the
77
77
network, but this gets cached (see L</CACHING>).
78
78
79
79
The name of the output file is derived from the template name, so
80
- above it will be F<fedora-27 .img>. You can change the output filename
80
+ above it will be F<fedora-41 .img>. You can change the output filename
81
81
using the I<-o> option:
82
82
83
- virt-builder fedora-27 -o mydisk.img
83
+ virt-builder fedora-41 -o mydisk.img
84
84
85
85
You can also use the I<-o> option to write to existing devices or
86
86
logical volumes.
87
87
88
- virt-builder fedora-27 --format qcow2
88
+ virt-builder fedora-41 --format qcow2
89
89
90
- As above, but write the output in qcow2 format to F<fedora-27 .qcow2>.
90
+ As above, but write the output in qcow2 format to F<fedora-41 .qcow2>.
91
91
92
- virt-builder fedora-27 --size 20G
92
+ virt-builder fedora-41 --size 20G
93
93
94
94
As above, but the output size will be 20 GB. The guest OS is resized
95
95
as it is copied to the output (automatically, using
96
96
L<virt-resize(1)>).
97
97
98
- virt-builder fedora-27 --arch i686
98
+ virt-builder fedora-41 --arch i686
99
99
100
100
As above, but using an i686 template, if available.
101
101
102
102
=head2 Setting the root password
103
103
104
- virt-builder fedora-27 --root-password file:/tmp/rootpw
104
+ virt-builder fedora-41 --root-password file:/tmp/rootpw
105
105
106
- Create a Fedora 25 image. The root password is taken from the file
106
+ Create a Fedora 41 image. The root password is taken from the file
107
107
F</tmp/rootpw>.
108
108
109
109
Note if you I<don’t> set I<--root-password> then the guest is given
@@ -113,7 +113,7 @@ You can also create user accounts. See L</USERS AND PASSWORDS> below.
113
113
114
114
=head2 Set the hostname
115
115
116
- virt-builder fedora-27 --hostname virt.example.com
116
+ virt-builder fedora-41 --hostname virt.example.com
117
117
118
118
Set the hostname to C<virt.example.com>.
119
119
@@ -122,7 +122,7 @@ Set the hostname to C<virt.example.com>.
122
122
To install packages from the ordinary (guest) software repository
123
123
(eg. dnf or apt):
124
124
125
- virt-builder fedora-27 --install "inkscape,@Xfce Desktop"
125
+ virt-builder fedora-41 --install "inkscape,@Xfce Desktop"
126
126
127
127
(In Fedora, C<@> is used to install groups of packages. On Debian
128
128
you would install a meta-package instead.)
@@ -147,18 +147,18 @@ For example:
147
147
dnf -y --best update
148
148
EOF
149
149
150
- virt-builder fedora-27 --firstboot /tmp/dnf-update.sh
150
+ virt-builder fedora-41 --firstboot /tmp/dnf-update.sh
151
151
152
152
or simply:
153
153
154
- virt-builder fedora-27 --firstboot-command 'dnf -y --best update'
154
+ virt-builder fedora-41 --firstboot-command 'dnf -y --best update'
155
155
156
156
which makes the L<dnf(8)> C<update> command run once the first time
157
157
the guest boots.
158
158
159
159
Or:
160
160
161
- virt-builder fedora-27 \
161
+ virt-builder fedora-41 \
162
162
--edit '/etc/dnf/dnf.conf:
163
163
s/gpgcheck=1/gpgcheck=0/'
164
164
@@ -559,7 +559,7 @@ If the guest OS you are installing is similar to the host OS (eg.
559
559
both are Linux), and if libguestfs supports network connections, then
560
560
you can use I<--install> to install packages like this:
561
561
562
- virt-builder fedora-27 --install inkscape
562
+ virt-builder fedora-41 --install inkscape
563
563
564
564
This uses the guest’s package manager and the host’s network
565
565
connection.
@@ -568,7 +568,7 @@ connection.
568
568
569
569
To update the installed packages in the template at build time:
570
570
571
- virt-builder fedora-27 --update
571
+ virt-builder fedora-41 --update
572
572
573
573
Most of the templates that ship with virt-builder come with a very
574
574
minimal selection of packages (known as a "JEOS" or "Just Enough
@@ -580,7 +580,7 @@ OS from the template. This option updates those template packages.
580
580
581
581
Another option is to install the packages when the guest first boots:
582
582
583
- virt-builder fedora-27 --firstboot-install inkscape
583
+ virt-builder fedora-41 --firstboot-install inkscape
584
584
585
585
This uses the guest’s package manager and the guest’s network
586
586
connection.
@@ -628,7 +628,7 @@ For apt, create /tmp/install.sh containing:
628
628
Use the I<--attach> option to attach the CD / disk image and the
629
629
I<--run> option to run the script:
630
630
631
- virt-builder fedora-27 \
631
+ virt-builder fedora-41 \
632
632
--attach extra-packages.iso \
633
633
--run /tmp/install.sh
634
634
@@ -707,7 +707,7 @@ keyboard for some common Linux distributions.
707
707
708
708
For distros that use systemd C<localectl>, use a command like this:
709
709
710
- virt-builder fedora-27 \
710
+ virt-builder fedora-41 \
711
711
--firstboot-command 'localectl set-keymap uk'
712
712
713
713
See L<localectl(1)> and
@@ -749,9 +749,9 @@ of virt-builder to do this.
749
749
750
750
This section contains examples for some common Linux distributions.
751
751
752
- =head3 Setting Japanese in Fedora 25
752
+ =head3 Setting Japanese in Fedora 41
753
753
754
- virt-builder fedora-27 \
754
+ virt-builder fedora-41 \
755
755
--size 20G \
756
756
--update \
757
757
--install @japanese-support \
@@ -1014,7 +1014,7 @@ tools probably work differently as well.
1014
1014
1015
1015
Import the image into Glance (the OpenStack image store) by doing:
1016
1016
1017
- glance image-create --name fedora-27 -image --file fedora-27 .img \
1017
+ glance image-create --name fedora-41 -image --file fedora-41 .img \
1018
1018
--disk-format raw --container-format bare \
1019
1019
--is-public True
1020
1020
@@ -1024,12 +1024,12 @@ parameter should match virt-builder’s I<--format> option (or C<raw> if
1024
1024
you didn't use that option). The I<--container-format> should always
1025
1025
be C<bare> since virt-builder doesn't put images into containers.
1026
1026
1027
- You can use the S<C<glance image-show I<fedora-27 -image>>> command to
1027
+ You can use the S<C<glance image-show I<fedora-41 -image>>> command to
1028
1028
display the properties of the image.
1029
1029
1030
1030
To boot up an instance of your image on a Nova compute node, do:
1031
1031
1032
- nova boot fedora-27 -server --image fedora-27 -image \
1032
+ nova boot fedora-41 -server --image fedora-41 -image \
1033
1033
--flavor m1.medium
1034
1034
1035
1035
Use S<C<nova flavor-list>> to list possible machine flavors. Use
@@ -1060,7 +1060,7 @@ at boot.
1060
1060
1061
1061
A typical virt-builder command would be:
1062
1062
1063
- virt-builder fedora-27 \
1063
+ virt-builder fedora-41 \
1064
1064
--hostname client.example.com \
1065
1065
--update \
1066
1066
--install puppet \
@@ -1294,22 +1294,22 @@ options (see L<nbdkit-xz-plugin(1)> for further explanation):
1294
1294
The index file has a simple text format (shown here without the
1295
1295
digital signature):
1296
1296
1297
- [fedora-18 ]
1298
- name=Fedora® 18
1299
- osinfo=fedora18
1297
+ [fedora-41 ]
1298
+ name=Fedora® 41
1299
+ osinfo=fedora41
1300
1300
arch=x86_64
1301
- file=fedora-18 .xz
1301
+ file=fedora-41 .xz
1302
1302
checksum[sha512]=...
1303
1303
format=raw
1304
1304
size=6442450944
1305
1305
compressed_size=148947524
1306
1306
expand=/dev/sda3
1307
1307
1308
- [fedora-19 ]
1309
- name=Fedora® 19
1310
- osinfo=fedora19
1308
+ [fedora-42 ]
1309
+ name=Fedora® 42
1310
+ osinfo=fedora42
1311
1311
arch=x86_64
1312
- file=fedora-19 .xz
1312
+ file=fedora-42 .xz
1313
1313
checksum[sha512]=...
1314
1314
revision=3
1315
1315
format=raw
@@ -1584,7 +1584,7 @@ package manager at that.
1584
1584
1585
1585
To install a Fedora guest using a local mirror:
1586
1586
1587
- virt-builder fedora-27 \
1587
+ virt-builder fedora-41 \
1588
1588
--edit '/etc/yum.repos.d/fedora.repo:
1589
1589
s{.*baseurl=.*}{baseurl=http://example.com/mirror/};
1590
1590
s{.*metalink=.*}{};
0 commit comments