User Tools

Site Tools


unix:virtualization:virtlib:quickreference

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
unix:virtualization:virtlib:quickreference [2022/10/31 23:12] – c/libvirt/ rodolicounix:virtualization:virtlib:quickreference [2025/01/24 23:58] (current) rodolico
Line 32: Line 32:
       * This will attach a new bridge to domain //domain//, using //bridge// defined on hypervisor, called vnet3 on the virtual, with the mac address set to whatever you use.       * This will attach a new bridge to domain //domain//, using //bridge// defined on hypervisor, called vnet3 on the virtual, with the mac address set to whatever you use.
     * detach-interface //domain// --type bridge --mac 00:16:3e:xx:xx:xx --config     * detach-interface //domain// --type bridge --mac 00:16:3e:xx:xx:xx --config
 +  * Attach/Detach Block Device
 +    * virsh detach-disk router sda --config
 +    * virsh attach-disk router /dev/vg/lvname sda --config --targetbus=virtio
   * Remove virtual image (config file only)<code bash> virsh undefine domainname</code>   * Remove virtual image (config file only)<code bash> virsh undefine domainname</code>
   * **change-media //name// //drive//** - Insert or Eject a CDROM   * **change-media //name// //drive//** - Insert or Eject a CDROM
Line 272: Line 275:
  
 You can now do things like <code bash>ifconfig dom113</code> or <code bash>ip a show dom113</code> You can now do things like <code bash>ifconfig dom113</code> or <code bash>ip a show dom113</code>
 +
 +===== Adding USB Drive Image =====
 +
 +Building and using a USB Thumbdrive image is a little weird, but it can be done. See [[software:multibootusb|]] for an example of one way I did it.
  
 ===== Links ===== ===== Links =====
unix/virtualization/virtlib/quickreference.1667275950.txt.gz · Last modified: 2022/10/31 23:12 by rodolico