mirror of
https://github.com/PhyllomeOS/wiki.git
synced 2025-02-01 17:35:19 +00:00
docs: update gofurther/virt-install
This commit is contained in:
parent
e71e847cc6
commit
dbc4ad98fb
@ -2,65 +2,28 @@
|
|||||||
title: Linux family
|
title: Linux family
|
||||||
description:
|
description:
|
||||||
published: true
|
published: true
|
||||||
date: 2021-11-26T20:24:17.493Z
|
date: 2021-11-26T20:40:46.772Z
|
||||||
tags:
|
tags:
|
||||||
editor: markdown
|
editor: markdown
|
||||||
dateCreated: 2021-11-12T15:27:40.366Z
|
dateCreated: 2021-11-12T15:27:40.366Z
|
||||||
---
|
---
|
||||||
|
|
||||||
> Section under construction
|
# Deploy common Linux systems automatically
|
||||||
{.is-warning}
|
|
||||||
|
|
||||||
# How to deploy common Linux systems
|
`virt-install` is a command-line utility that can be used to create virtual machines. It is preinstalled on Phyllome OS.
|
||||||
|
|
||||||
## Introduction
|
* For Fedora, you can install it using the following command:
|
||||||
|
|
||||||
*virt-install* is a command-line utility to install virtual machines.
|
|
||||||
|
|
||||||
### Prerequesites
|
|
||||||
|
|
||||||
* These prerequesites are for Fedora only, as Phyllome OS ships with virt-install by default.
|
|
||||||
|
|
||||||
Install the *virt-install* command-line tool on Fedora :
|
|
||||||
|
|
||||||
```
|
```
|
||||||
# dnf install virt-install
|
# dnf install virt-install
|
||||||
```
|
```
|
||||||
|
|
||||||
## Manual installation
|
## Automated installation using an ISO file and a local kickstart
|
||||||
|
|
||||||
Use the following command to automatically launch the Fedora installation process. It will also automatically create a disk image to install Fedora on. Make sure you have at least 20 GB of free space.
|
|
||||||
|
|
||||||
```
|
|
||||||
$ virt-install --install fedora32
|
|
||||||
|
|
||||||
Using fedora32 --location https://download.fedoraproject.org/pub/fedora/linux/releases/32/Everything/x86_64/os
|
|
||||||
Using default --name fedora32
|
|
||||||
Using fedora32 default --memory 2048
|
|
||||||
Using fedora32 default --disk size=20
|
|
||||||
|
|
||||||
Starting install...
|
|
||||||
Retrieving file vmlinuz... | 10 MB 00:00:00
|
|
||||||
Retrieving file initrd.img... | 74 MB 00:00:03
|
|
||||||
Allocating 'fedora32-2.qcow2' | 20 GB 00:00:00
|
|
||||||
Running graphical console command: virt-viewer --connect qemu:///session --wait fedora32
|
|
||||||
```
|
|
||||||
|
|
||||||
It should automatically launch the guest console. Eventually, you should see the Anaconda installer first page.
|
|
||||||
|
|
||||||
Other options include : `android-x86-9.0`, `centos8`, `clearlinux`, `debian9`, `macosx10.7`, `nixos-20.03`, `ubuntu20.04`, `win10`
|
|
||||||
|
|
||||||
> The virt-install package that comes with Fedora 34 doesn't work yet with argument *fedora34*
|
|
||||||
{.is-warning}
|
|
||||||
|
|
||||||
## Automated installation
|
|
||||||
|
|
||||||
### Local iso and kickstart
|
|
||||||
|
|
||||||
> Requires an Internet connection
|
> Requires an Internet connection
|
||||||
{.is-info}
|
{.is-info}
|
||||||
|
|
||||||
* Fetch a Fedora iso file using wget and put it in the current working directory
|
* Fetch a Fedora ISO file using wget and put it in the current working directory
|
||||||
|
|
||||||
```
|
```
|
||||||
$ wget https://download.fedoraproject.org/pub/fedora/linux/releases/34/Server/x86_64/iso/Fedora-Server-dvd-x86_64-34-1.2.iso
|
$ wget https://download.fedoraproject.org/pub/fedora/linux/releases/34/Server/x86_64/iso/Fedora-Server-dvd-x86_64-34-1.2.iso
|
||||||
@ -72,10 +35,9 @@ $ wget https://download.fedoraproject.org/pub/fedora/linux/releases/34/Server/x8
|
|||||||
$ wget https://git.phyllo.me/home/kickstart/raw/branch/main/leaves/imd.cfg
|
$ wget https://git.phyllo.me/home/kickstart/raw/branch/main/leaves/imd.cfg
|
||||||
```
|
```
|
||||||
|
|
||||||
> If using a custom kickstart script, make sure it includes the cdrom option.
|
> If using a custom kickstart script, make sure it does include the `cdrom` option.
|
||||||
{.is-warning}
|
{.is-warning}
|
||||||
|
|
||||||
|
|
||||||
* Deploy a UEFI-based machine with Fedora Server using the relative path of the local kickstart file
|
* Deploy a UEFI-based machine with Fedora Server using the relative path of the local kickstart file
|
||||||
|
|
||||||
```
|
```
|
||||||
@ -163,7 +125,6 @@ virt-install \
|
|||||||
--memory 4096 \
|
--memory 4096 \
|
||||||
--video virtio \
|
--video virtio \
|
||||||
--graphics spice,listen=none \
|
--graphics spice,listen=none \
|
||||||
--graphics egl-headless,gl.enable=yes \
|
|
||||||
--channel spicevmc \
|
--channel spicevmc \
|
||||||
--channel unix,target.type=virtio,target.name=org.qemu.guest_agent.0 \
|
--channel unix,target.type=virtio,target.name=org.qemu.guest_agent.0 \
|
||||||
--autoconsole none \
|
--autoconsole none \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user