User Tools

Site Tools


public:virt-install_examples

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
public:virt-install_examples [2024/05/13 09:42] thomaspublic: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 =====
 +
 +<code>
 +virt-install \
 +--virt-type kvm \
 +--name msdos-test \
 +--os-variant msdos6.22 \
 +--graphics vnc,listen=0.0.0.0,password=foobar --noautoconsole \
 +--disk size=2 \
 +--memory 32 \
 +--disk path=/dos/Disk1.img,device=floppy \
 +--boot fd,hd,menu=on \
 +--import
 +</code>
 +
 +You can switch to a next floppy disk during installation with this command:
 +
 +<code>
 +virsh change-media msdos-test /dos/Disk1.img /dos/Disk2.img 
 +</code>
 +
 +===== Windows 98 =====
 +
 +Note that not all Windows 98 CD-ROMS are bootable. Most require a boot floppy. However, [[https://winworldpc.com/product/windows-98/98-second-edition|the OEM version of Windows 98 SE]] is bootable.
 +
 +<code>
 +virt-install \
 +--virt-type kvm \
 +--name windows98-test \
 +--cdrom /windows98.iso \
 +--os-variant win98 \
 +--graphics vnc,listen=0.0.0.0,password=foobar --noautoconsole \
 +--disk size=50 \
 +--memory 128 \
 +--network model=rtl8139,network=bridged
 +</code>
 +
 +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 =====
 +
 +<code>
 +virt-install \
 +--virt-type kvm \
 +--name windowsxp-test \
 +--cdrom /WindowsXP.iso \
 +--os-variant winxp \
 +--graphics vnc,listen=0.0.0.0,password=foobar \
 +--noautoconsole \
 +--disk pool=kvm,size=100 \
 +--memory 2048 \
 +--network model=rtl8139,network=bridged
 +</code>
 +
 +Special about this case, is that we use the ''winxp'' os variant, and the rtl8139 network adapter. The i1000 network adapter does not seem to be supported by default.
  
 ===== Windows Server 2022 ===== ===== Windows Server 2022 =====
public/virt-install_examples.1715593362.txt.gz · Last modified: by thomas

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki