public:virt-install_examples
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| public:virt-install_examples [2024/05/06 18:41] – [Windows 11] thomas | public:virt-install_examples [2024/05/16 21:27] (current) – [MS-DOS 6.0] thomas | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== virt-install examples ====== | ====== virt-install examples ====== | ||
| + | ===== MS-DOS 6.0 ===== | ||
| + | |||
| + | < | ||
| + | virt-install \ | ||
| + | --virt-type kvm \ | ||
| + | --name msdos-test \ | ||
| + | --os-variant msdos6.22 \ | ||
| + | --graphics vnc, | ||
| + | --disk size=2 \ | ||
| + | --memory 32 \ | ||
| + | --disk path=/ | ||
| + | --boot fd, | ||
| + | --import | ||
| + | </ | ||
| + | |||
| + | You can switch to a next floppy disk during installation with this command: | ||
| + | |||
| + | < | ||
| + | virsh change-media msdos-test / | ||
| + | </ | ||
| + | |||
| + | ===== Windows 98 ===== | ||
| + | |||
| + | Note that not all Windows 98 CD-ROMS are bootable. Most require a boot floppy. However, [[https:// | ||
| + | |||
| + | < | ||
| + | virt-install \ | ||
| + | --virt-type kvm \ | ||
| + | --name windows98-test \ | ||
| + | --cdrom / | ||
| + | --os-variant win98 \ | ||
| + | --graphics vnc, | ||
| + | --disk size=50 \ | ||
| + | --memory 128 \ | ||
| + | --network model=rtl8139, | ||
| + | </ | ||
| + | |||
| + | You need to connect to the guest before 10 seconds have passed to choose the correct boot option. If that is too short, then you can temporarily suspend the guest immediately after the virt-install command, connect via VNC, then resume the guest. | ||
| + | |||
| + | Also, multiple reboots may be required to install this OS. You may need to set the CDROM as boot device for longer than just the first boot. | ||
| + | ===== Windows XP ===== | ||
| + | |||
| + | < | ||
| + | virt-install \ | ||
| + | --virt-type kvm \ | ||
| + | --name windowsxp-test \ | ||
| + | --cdrom / | ||
| + | --os-variant winxp \ | ||
| + | --graphics vnc, | ||
| + | --noautoconsole \ | ||
| + | --disk pool=kvm, | ||
| + | --memory 2048 \ | ||
| + | --network model=rtl8139, | ||
| + | </ | ||
| + | |||
| + | Special about this case, is that we use the '' | ||
| + | |||
| + | ===== Windows Server 2022 ===== | ||
| + | |||
| + | < | ||
| + | virt-install \ | ||
| + | --virt-type kvm \ | ||
| + | --name windows2022-test \ | ||
| + | --cdrom / | ||
| + | --os-variant win2k22 \ | ||
| + | --graphics vnc, | ||
| + | --disk size=50 \ | ||
| + | --memory 4096 \ | ||
| + | --tpm backend.type=emulator, | ||
| + | --boot loader=/ | ||
| + | --network network=bridged | ||
| + | </ | ||
| ===== Windows 11 ===== | ===== Windows 11 ===== | ||
| Line 20: | Line 92: | ||
| ===== Windows 10 ===== | ===== Windows 10 ===== | ||
| - | See Windows 11 example, but you can ignore the '' | + | See Windows 11 example, but you can ignore the '' |
| + | |||
| + | ===== Debian 11 ===== | ||
| + | |||
| + | < | ||
| + | virt-install \ | ||
| + | --virt-type kvm \ | ||
| + | --name debian11-test \ | ||
| + | --cdrom / | ||
| + | --os-variant / | ||
| + | --graphics vnc, | ||
| + | --disk size=50 \ | ||
| + | --memory 4096 \ | ||
| + | --tpm backend.type=emulator, | ||
| + | --boot loader=/ | ||
| + | --network network=bridged | ||
| + | </ | ||
| + | |||
| + | ===== Common useful options ===== | ||
| + | |||
| + | This is the default option that is used for a network adapter. You can use it explicitly to e.g. generate a network adapter with a specific MAC address: | ||
| + | |||
| + | < | ||
| + | --network network=default, | ||
| + | </ | ||
| + | {{tag> | ||
public/virt-install_examples.1715020881.txt.gz · Last modified: by thomas
