User Tools

Site Tools


libvirt:virt-install

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
libvirt:virt-install [2025/09/11 16:34] jonathanlibvirt:virt-install [2025/09/23 19:21] (current) jonathan
Line 1: Line 1:
 ==== virt-install - iscsi ===== ==== virt-install - iscsi =====
  
-<code>+<code -- virt-install with CD-ROM> 
 +virt-install --name squid \ 
 +--memory 8192 --vcpus 4 --cpu host-passthrough 
 +--os-variant ubuntu24.04 --virt-type kvm  \ 
 +--disk path=/mnt/vm1/squid.qcow2 \ 
 +--cdrom /mnt/iso/ubuntu-24.04.2-desktop-amd64.iso \ 
 +--network network=vlan222,model=virtio \ 
 +--graphics vnc --channel unix,target_type=virtio,name=org.qemu.guest_agent.0 \ 
 +--controller type=usb,model=qemu-xhci 
 +--controller type=scsi,model=virtio-scsi 
 +--controller type=sata --controller type=virtio-serial \ 
 +--rng /dev/urandom --noautoconsole --import 
 +</code> 
 + 
 +<code -- virt-install with ISCSI>
 virt-install --name myFirstVM \ virt-install --name myFirstVM \
 --memory 4096 --vcpus 4 --cpu host-passthrough  \ --memory 4096 --vcpus 4 --cpu host-passthrough  \
Line 14: Line 28:
 </code> </code>
  
-<code>+<code -- virt-install with CLOUD-INIT>
 virt-install --name MyFirstVM \ virt-install --name MyFirstVM \
 --memory 4096 --vcpus 4 --cpu host-passthrough  \ --memory 4096 --vcpus 4 --cpu host-passthrough  \
Line 25: Line 39:
 --console pty,target_type=serial \ --console pty,target_type=serial \
 --noautoconsole --noautoconsole
 +</code>
 +
 +
 +<code -- uefi>
 +virt-install --name xrv9k \
 +--memory 16384 --vcpus 4,cores=1 --cpu host-passthrough  \
 +--virt-type kvm  \
 +--osinfo detect=on,require=off \
 +--boot uefi,cdrom,hd,menu=off \
 +--disk path=/home/user1/vm/disks/xrv9k.qcow2,bus=virtio \
 +--network network=ovsbr0,portgroup=vlan2000,virtualport_type=openvswitch,model=virtio \
 +--graphics vnc --channel unix,target_type=virtio,name=org.qemu.guest_agent.0 \
 +--controller type=usb,model=qemu-xhci  \
 +--controller type=sata --controller type=virtio-serial \
 +--rng /dev/urandom --noautoconsole --import
 </code> </code>
  
libvirt/virt-install.1757608471.txt.gz · Last modified: by jonathan